agentleFS
cenconq25cenconq25/claude-code-app-studio/.claude/skills/code-review/SKILL.md

code-review

Skill41 starsChanged 7 months agoMITView on GitHub

Architectural and quality review of one or more files. Verifies coding standards, SOLID, testability, mobile anti-patterns, and ADR compliance. Use after /dev-story and before /story-done.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use starter, media-processing and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ww-w-aiSkill

    starter

    Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).

    Also in 4 projects that use this

  • mrgoonieSkill

    media-processing

    Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.

    Also in 5 projects that use this

  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 15 projects that use this

  • mrgoonieSkill

    aesthetic

    Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.

    Also in 4 projects that use this

  • AWSSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 32 projects that use this

  • AWSSkill

    resolving-merge-conflicts

    Use when you need to resolve an in-progress git merge/rebase conflict.

    Also in 48 projects that use this

  • +1 more from mrgoonie
  • +2 more from aws

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 174 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read-only quality pass over a recent change.

    line 13
  2. Very specific:

    Read the target file(s) in full.

    line 21
  3. Very specific:

    Read CLAUDE.md and .claude/docs/coding-standards.md to refresh the active project rules.

    line 25
  4. Very specific:

    If the section is [TO BE CONFIGURED], skip the framework-specialist phase.

    line 42
  5. Very specific:

    Search the changed files (and any matching story file) for ADR references: patterns like ADR-NNN, docs/architecture/ADR-, or Governing ADR:.

    line 48
  6. Distinctive:

    Ask qa-tester to verify:

    line 153
  7. Distinctive:

    Wait for all specialists to return before composing output.

    line 167

“Common” is measured: kept by at least 6 in 10 of the 174 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Code Review

Read-only quality pass over a recent change. Confirms the diff respects the project's coding rules, the governing ADR, and mobile-specific health checks (cold start, frame budget, memory, battery, deep-link surface).


Phase 1: Load Targets

Read the target file(s) in full. If a directory is given, glob it for source files (*.ts, *.tsx, *.js, *.dart, *.swift, *.kt, *.kts, *.java, *.m, *.mm).

Read CLAUDE.md and .claude/docs/coding-standards.md to refresh the active project rules. Read .claude/docs/technical-preferences.md to capture frame budget, cold-start budget, memory ceiling, and forbidden patterns.


Phase 2: Identify Framework Specialists

Open the ## Framework Specialists section of technical-preferences.md. Note:

  • Primary specialist (architecture and lifecycle calls).
  • Language/UI specialist (RN screens, SwiftUI views, Compose composables, Flutter widgets).
  • Native modules / platform channels specialist (bridges, JNI, Obj-C++).
  • State management specialist (Redux, Riverpod, MVI, Combine, etc.).

If the section is [TO BE CONFIGURED], skip the framework-specialist phase.


Phase 3: ADR Compliance

Search the changed files (and any matching story file) for ADR references: patterns like ADR-NNN, docs/architecture/ADR-, or Governing ADR:. If none are found, log: "No ADR references found — ADR compliance check skipped."

For each referenced ADR, read it and pull out the Decision and Consequences sections. Classify each deviation:

  • BLOCKING — the code uses a pattern explicitly rejected by the ADR.
  • DRIFT — the code diverges from the chosen approach without using a forbidden pattern.
  • MINOR — small textual difference that does not change architecture.

Phase 4: Standards Compliance

For each target file, score these checks:

  • All public APIs (exports, public methods, public protocols) carry doc comments.
  • No method exceeds 40 lines (excluding data declarations).
  • Cyclomatic complexity stays under 10 per method.
  • Dependencies are injected; no module-scope singletons holding mutable app state.
  • Tunable values come from config/remote config, not magic numbers.
  • Modules expose interfaces (TS interface, Swift protocol, Kotlin interface, abstract Dart class) rather than concrete implementations.
  • No hardcoded user-facing strings — all strings flow through the localization system.

Cite line numbers for every failure.


Phase 5: Architecture and SOLID

Architecture:

  • Dependency direction is correct (UI -> domain -> data, never reverse).
  • No circular module imports.
  • UI does not own domain state directly; state passes through a state container.
  • Cross-feature communication goes through events / streams / navigation, not direct calls.
  • New code matches the patterns already in the codebase — flag novelty.

SOLID:

  • Single Responsibility: each class/screen/hook has one reason to change.
  • Open/Closed: extension via composition, not edits to closed code.
  • Liskov Substitution: subtypes honour parent contracts.
  • Interface Segregation: no fat protocols/interfaces.
  • Dependency Inversion: depend on abstractions, not concretes.

Phase 6: Mobile-Specific Concerns

  • Cold-start budget respected — no synchronous heavy work in app entry, AppDelegate.didFinishLaunching, MainActivity.onCreate, or React Native App.tsx top-level.
  • No allocations in animation callbacks, gesture handlers, or list cell builders.
  • List rendering uses virtualization (FlatList/SectionList, LazyColumn, LazyVStack, ListView.builder).
  • Image loads use a cache layer (FastImage, Coil, SDWebImage, cached_network_image).
  • Network calls have explicit timeout, retry, and offline handling.
  • Background work uses platform-correct APIs (WorkManager, BGTaskScheduler).
  • Deep links and universal links validate input before navigating.
  • Sensitive data lands in Keychain / Keystore, never AsyncStorage, SharedPreferences, NSUserDefaults, or unencrypted SQLite.
  • Battery-affecting features (location, camera, BLE) release resources on screen exit.
  • No string-concatenated SQL; use parameterized queries.
  • Memory: no retain cycles in closures (Swift [weak self], Dart avoid capturing State, RN avoid capturing component refs).

Phase 7: Specialist Reviews (in parallel)

Spawn every applicable specialist via Task at the same time — do not chain.

Framework specialists

Decide per file:

  • React Native screens / hooks / RN-specific code -> RN specialist.
  • Flutter widgets / Dart code -> Flutter specialist.
  • SwiftUI / UIKit / Swift code -> iOS specialist (UI variant if SwiftUI).
  • Compose / Views / Kotlin code -> Android specialist (Compose variant if Compose).
  • Native module / platform channel / JNI code -> native modules specialist.
  • Cross-cutting (build config, app entry, lifecycle) -> primary specialist.

Testability review

For Logic and Integration stories, also spawn qa-tester in parallel. Pass:

  • The diff under review.
  • The story's ## QA Test Cases section.
  • The story's Acceptance Criteria.

Ask qa-tester to verify:

  • Test seams exist — public hooks, exported functions, dependency injection points.
  • Each QA test case maps to a code path that is reachable in test mode.
  • No AC is hidden behind a hardcoded value or non-injectable singleton.
  • No new edge cases are introduced without a corresponding test.
  • Observable side effects (analytics events, navigation, persistence) have at least an interaction test.

For Visual/Feel and UI stories: qa-tester instead checks that the manual verification steps in QA Test Cases are physically reachable in the build (e.g., the state transition the tester needs to observe is reachable).

Wait for all specialists to return before composing output.


Phase 8: Render the Review

## Code Review: [target]

### Framework Specialist Findings: [N/A | CLEAN | ISSUES]
[per-specialist output]

### Testability: [N/A | TESTABLE | GAPS | BLOCKING]
[qa-tester output — list test seams missing or untestable ACs]

### ADR Compliance: [NONE FOUND | COMPLIANT | DRIFT | BLOCKING]
[ADR-by-ADR result and severity]

### Standards Compliance: [X/7 passing]
[failures with file:line]

### Architecture: [CLEAN | MINOR | VIOLATIONS]
[specific concerns]

### SOLID: [COMPLIANT | ISSUES]
[specific violations]

### Mobile-Specific Concerns
[cold start, frame budget, battery, secure storage, deep links, etc.]

### Positive Observations
[Always include — what the change did well]

### Required Changes
[Must-fix before approval. Any BLOCKING ADR finding lands here.]

### Suggestions
[Nice-to-have improvements]

### Verdict: [APPROVED | APPROVED WITH SUGGESTIONS | CHANGES REQUIRED]

This skill writes nothing to disk.


Quality Gates / PASS-FAIL

  • APPROVED — every required check passed and no BLOCKING items remain.
  • APPROVED WITH SUGGESTIONS — required checks passed; nice-to-haves remain.
  • CHANGES REQUIRED — at least one BLOCKING ADR violation, standards failure, mobile anti-pattern, or testability gap is present.

Examples

Example 1 — A new RN list screen: Reads src/screens/inbox/InboxScreen.tsx, finds ADR-022 (list virtualization policy), spawns RN specialist + qa-tester, flags an inline .map() over 2000+ items as a frame-budget violation, returns CHANGES REQUIRED.

Example 2 — A pricing config edit: Single file assets/data/pricing.json. Standards check passes; no ADR referenced. qa-tester confirms a smoke check exists for the price flow. Verdict: APPROVED.


Next Steps

  • APPROVED -> run /story-done [story-path].
  • CHANGES REQUIRED -> fix and re-run /code-review.
  • BLOCKING ADR violation -> run /architecture-decision to capture the correct approach before re-implementing.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.