agentleFS
GiggleLiuGiggleLiu/cryochamber/.claude/skills/review-implementation/SKILL.md

review-implementation

Skill34 starsChanged 7 months agoMITView on GitHub

Use after implementing a feature or any code change to verify completeness and correctness before committing

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 1

    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. Very specific:

    Read quality-reviewer-prompt.md from this skill directory

    line 49
  2. Distinctive:

    When the subagent returns:

    line 59
  3. Very specific:

    After creating a PR (from any flow), run make copilot-review to request GitHub Copilot code review on the PR.

    line 100

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

Review Implementation

Dispatches a quality review subagent with fresh context (no implementation history bias):

  • Quality reviewer -- DRY, KISS, HC/LC, HCI, test quality

Invocation

  • /review-implementation -- auto-detect from git diff
  • /review-implementation generic -- code quality only (explicit)

Step 1: Detect What Changed

Determine what files were added or modified:

# Check for NEW files (not just modifications)
git diff --name-only --diff-filter=A HEAD~1..HEAD
# Also check against main for branch-level changes
git diff --name-only --diff-filter=A main..HEAD

Extract the changed file paths and a summary of what changed.

Step 2: Prepare Subagent Context

Get the git SHAs for the review range:

BASE_SHA=$(git merge-base main HEAD)  # or HEAD~N for batch reviews
HEAD_SHA=$(git rev-parse HEAD)

Get the diff summary and changed file list:

git diff --stat $BASE_SHA..$HEAD_SHA
git diff --name-only $BASE_SHA..$HEAD_SHA

Step 3: Dispatch Quality Reviewer

Dispatch using Task tool with subagent_type="superpowers:code-reviewer":

  • Read quality-reviewer-prompt.md from this skill directory
  • Fill placeholders:
    • {DIFF_SUMMARY} -> output of git diff --stat
    • {CHANGED_FILES} -> list of changed files
    • {PLAN_STEP} -> description of what was implemented (or "standalone review")
    • {BASE_SHA}, {HEAD_SHA} -> git range
  • Prompt = filled template

Step 4: Collect and Address Findings

When the subagent returns:

  1. Parse results -- identify ISSUE items from the report
  2. Fix automatically -- clear issues, Important+ quality issues
  3. Report to user -- ambiguous issues, Minor quality items, anything you're unsure about
  4. Present consolidated report

Step 5: Present Consolidated Report

## Review: [Feature/Fix/Generic] [Name]

### Build Status
- `make test`: PASS / FAIL
- `make clippy`: PASS / FAIL

### Code Quality (from quality reviewer)
- DRY: OK / ...
- KISS: OK / ...
- HC/LC: OK / ...

### HCI (if CLI changed)
...

### Test Coverage
- Coverage: [X.X%] -- OK (>=95%) / CRITICAL (<95%)

### Test Quality
...

### Fixes Applied
- [list of issues automatically fixed by main agent]

### Remaining Items (needs user decision)
- [list of issues that need user input]

Integration

Copilot Review (after PR creation)

After creating a PR (from any flow), run make copilot-review to request GitHub Copilot code review on the PR.

Standalone

Invoke directly via /review-implementation for any code change.

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.