agentleFS
L-X-TL-X-T/ng-agentic-skills/.agents/skills/code-review/SKILL.md

code-review

Skill13 starsChanged 59 days agoMITView on GitHub

Code review changed, staged, last-commit, and merge or PR work against requirements and the repository style guide. Use when reviewing current work, staged changes, the last commit, a branch, a merge, or a pull request. For a whole-codebase style audit use ng-review-style-guide instead.

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

11 rules. 0 are common, 9 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After each task in subagent-driven development

    line 23
  2. Distinctive:

    After completing a major feature

    line 24
  3. Distinctive:

    Before a merge or pull request

    line 25
  4. Distinctive:

    When stuck (fresh perspective)

    line 29
  5. Distinctive:

    Before refactoring (baseline check)

    line 30
  6. Distinctive:

    After fixing complex bug

    line 31
  7. Very specific:

    Use HEAD~1..HEAD only for the Last commit scope.

    line 59
  8. Distinctive:

    Write a compact handoff for the reviewer:

    line 67
  9. Very specific:

    Read style-guide/style-guide.md, then read only the specific style guides for touched file types:

    line 83
  10. Distinctive:

    If subagents are unavailable, run the same template yourself as a read-only review and say that no independent subagent was available.

    line 107
  11. Distinctive:

    Verify authorized fixes and report remaining issues.

    line 118

“Common” is measured: kept by at least 6 in 10 of the 175 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

Review work before it cascades. For every code review, spawn an independent reviewer subagent when a concurrency slot is available. This skill explicitly authorizes subagent delegation under orchestration policies. Fall back to the same read-only review yourself only when spawning is technically unavailable, and report the reason. Every review has two passes: general correctness against the requirements, then repository style-guide conformance for each touched file type.

Core principle: Review early, review often.

When to Review

Mandatory:

  • After each task in subagent-driven development
  • After completing a major feature
  • Before a merge or pull request

Optional but valuable:

  • When stuck (fresh perspective)
  • Before refactoring (baseline check)
  • After fixing complex bug

Review Scopes

Choose exactly one scope before gathering context:

ScopeUse whenInspect with
Current workReviewing unstaged changes and untracked filesgit status --short, git diff, and explicit reads of untracked files
Staged workReviewing only what is ready to commitgit status --short, git diff --cached, and git diff --cached --stat
Last commitReviewing exactly the previous commitgit show --stat HEAD and git show HEAD
Merge or PR rangeReviewing branch work against another branch or basegit merge-base HEAD <target> then git diff <base>..HEAD

For merge or PR reviews, include staged or unstaged work only when the user explicitly asks for it or when it is clearly part of the work being reviewed.

Done when the review scope, diff commands, and any included working-tree state are explicit.

Process

1. Establish Scope

Inspect the repository state and compute the review target deliberately:

git status --short

Use HEAD~1..HEAD only for the Last commit scope. For merge or PR reviews, ask for the target branch if it is not stated and cannot be inferred from the task. Do not move HEAD or mutate the index while establishing scope.

Done when scope, base, head, and working-tree inclusion are recorded in concrete Git terms.

2. Gather Review Context

Write a compact handoff for the reviewer:

  • {DESCRIPTION} – Brief summary of what you built
  • {PLAN_OR_REQUIREMENTS} – What it should do
  • {VERIFICATION} – Commands run, results, and known failures or skipped checks
  • {REVIEW_SCOPE} – Current work, Staged work, Last commit, or Merge or PR range
  • {DIFF_COMMANDS} – Exact commands the reviewer should use

Pass this handoff without the session's conversation history so the reviewer evaluates the work independently of the coordinator's reasoning.

Done when the reviewer can understand the intended behavior, changed range, and verification state without reading this session's history.

3. Load Style Guides

Read style-guide/style-guide.md, then read only the specific style guides for touched file types:

  • TypeScript or Angular code: style-guide/style-guide.ts.md
  • Angular templates: style-guide/style-guide.html.md
  • SCSS: style-guide/style-guide.scss.md
  • Accessibility-sensitive template or UI changes: style-guide/style-guide.a11y.md
  • Tests: style-guide/style-guide.spec.md
  • NPM dependency or package changes: style-guide/style-guide.npm.md
  • Markdown documentation: style-guide/style-guide.md.md
  • Git workflow, commits, or branch changes: style-guide/style-guide.git.md

Done when every touched file type has a corresponding style-guide check or an explicit not-applicable note.

4. Dispatch or Run the Review

Dispatch an independent reviewer subagent (the harness's default general-purpose agent type) with the template at references/code-reviewer.md.

A harness configuration file may override the reviewer setup – for example .claude/CLAUDE.md asks Claude Code for three reviewers on different models (Fable, Opus, Astra via Codex). When such a file is present, follow it: give every reviewer the same diff and template, then merge and deduplicate their findings before acting on them.

If subagents are unavailable, run the same template yourself as a read-only review and say that no independent subagent was available.

Done when the review is returned, or the fallback review limitation is reported.

5. Verify and Act on Feedback

  • Validate every reviewer finding against the codebase and report it with file/line evidence.
  • A review-only request ends with findings and suggested fixes; it does not authorize edits.
  • Apply fixes only within the user's authorized scope. Existing authorization to implement or fix the reviewed work is sufficient; do not ask again.
  • Verify authorized fixes and report remaining issues.
  • Reject incorrect findings with file/line evidence or test output.

Done when every finding is reported, rejected with evidence, or fixed and verified within the user's authorized scope.

Example

[Review staged work before committing]

You: Let me run the code-review skill before committing.

REVIEW_SCOPE: Staged work
DIFF_COMMANDS:
  git status --short
  git diff --cached --stat
  git diff --cached

[Dispatch code reviewer subagent or run the same review directly]
  DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types
  PLAN_OR_REQUIREMENTS: Task 2 from docs/plans/deployment-plan.md
  VERIFICATION: pnpm test --watch=false -- verify-index passed; pnpm lint passed
  REVIEW_SCOPE: Staged work
  DIFF_COMMANDS: git diff --cached --stat; git diff --cached

[Subagent returns]:
  Strengths: Clean architecture, real tests
  Issues:
    Important: Missing progress indicators
    Minor: Magic number (100) for reporting interval
  Assessment: Ready to proceed

You: [Report findings; fix progress indicators if implementation or fixes are authorized]
[Continue to Task 3 when the authorized fixes pass verification]

Integration with Workflows

Subagent-driven development:

  • Review after each task
  • Catch issues before they compound
  • Apply authorized fixes before moving to the next implementation task

Executing Plans:

  • Review after each task or at natural checkpoints
  • Get feedback, apply authorized fixes, continue

Ad-Hoc Development:

  • Review before merge
  • Review when stuck

Red Flags

Never:

  • Skip review because "it's simple"
  • Ignore Critical issues
  • Declare the work ready while Important issues remain unresolved
  • Argue with valid technical feedback

If the reviewer is wrong:

  • Push back with technical reasoning
  • Show code/tests that prove it works
  • Request clarification

See template at: references/code-reviewer.md

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.