agentleFS
nwiizonwiizo/ccswarm/.agents/skills/review-fix/SKILL.md

review-fix

Skill153 starsChanged 8 months agoMITView on GitHub

Review uncommitted changes, fix actionable correctness issues, and verify the result.

5 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

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When subagents are enabled in Codex, prefer delegating this workflow to the review-fix-agent custom agent.

    line 9
  2. Distinctive:

    If no changes exist, abort with "nothing to review".

    line 18
  3. Distinctive:

    Run build and lint to establish a clean starting point:

    line 22
  4. Distinctive:

    If the baseline already fails, report the failures and stop.

    line 29
  5. Distinctive:

    Do not change unrelated code.

    line 57
  6. Distinctive:

    After all fixes, run:

    line 58
  7. Distinctive:

    If clippy or test compilation fails, revert the offending edit and downgrade it to a warning.

    line 65

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

When subagents are enabled in Codex, prefer delegating this workflow to the review-fix-agent custom agent.

Review uncommitted changes, fix actionable issues, and verify the result.

Workflow

Phase 1: Scope

  1. git status --short and git diff --stat HEAD to determine what changed.
  2. If no changes exist, abort with "nothing to review".

Phase 2: Baseline

Run build and lint to establish a clean starting point:

cargo clippy --workspace -- -D warnings 2>&1 | tail -20
cargo test --workspace --no-run 2>&1 | tail -5

If the baseline already fails, report the failures and stop. Do not mask pre-existing breakage.

Phase 3: Review

Inspect the diff and new untracked files. Check for:

CategoryWhat to look for
Stale referencesDeleted modules, commands, docs, or templates still referenced
Code duplicationIdentical structs or functions across files worth extracting
Provider abstraction gapsHard-coded CLI names instead of the AgentProvider trait
Dead asyncAsync work discarded and then repeated synchronously
Sort instabilityUtc::now() used as a fallback sort key
Hardcoded pathsFilesystem paths that should be relative to repo_path
Unused paramsAccepted CLI arguments silently ignored
SecurityPath traversal, credential leaks, unchecked user input

Classify each finding:

  • Fix: clear bug or correctness issue. Fix it now.
  • Warn: design concern or missing feature. Report it, but do not fix unless trivial.
  • Note: style or informational only.

Phase 4: Fix

For each fix-level finding:

  1. Make the minimal, surgical edit.
  2. Do not change unrelated code.
  3. After all fixes, run:
cargo clippy --workspace -- -D warnings
cargo test --workspace --no-run

If clippy or test compilation fails, revert the offending edit and downgrade it to a warning.

Phase 5: Report

Output a structured summary:

## Review + Fix Report

### Fixed
- <file>:<line> - <description>

### Warnings
- <file>:<line> - <description>

### Notes
- <description>

### Verification
- clippy: PASS / FAIL
- test compile: PASS / FAIL
- files modified: N

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.