agentleFS
MarkTripoliMarkTripoli/skills/skills/delivery/fix-code-review/SKILL.md

fix-code-review

Skill2 starsChanged 2 months agoMITView on GitHub

Validates every critical and major finding in a code-review artifact, fixes the proven ones, disputes the wrong ones with evidence, and records a receipt. Use when the user runs /fix-code-review or /review-code ends with status findings; not for fixing a reproduced bug (use /fix-bug) or addressing pull request threads (use /resolve-pr-reviews).

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    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. Distinctive:

    Read the writing guide and the collection conventions before drafting, revising, or replying.

    line 6
  2. Distinctive:

    When the latest evidence inspection failed, reserve the repair: use the attempt id your assignment names and do not reserve again.

    line 16
  3. Very specific:

    Use references/code_review_fixes_answer.md exactly.

    line 46

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Read the writing guide and the collection conventions before drafting, revising, or replying; a checkout of the collection has both under shared/.

Fix Code Review Findings

Repair the reviewed change, verify, and send through another code review before PR creation. The delivery workflow's review loop (or the user, by hand) alternates /review-code and /fix-code-review until a review is clean.

Setup

Locate the task and read task.md, creating it from the request when absent. Resolve explicit @file, otherwise current review.code with findings or blocked. Read it completely, then references/code_review_fixes_template.md and references/code_review_fixes_answer.md.

When the latest evidence inspection failed, reserve the repair: use the attempt id your assignment names and do not reserve again; with no id, call node <skills-dir>/deliver/contract.mjs repair-begin "$TASK" <attempt-id> before editing and repair-complete after.

For a delivery task, save the output of node <skills-dir>/deliver/contract.mjs revision <task-dir> as revision, never a git hash, record the policy and baseline paths, and report the evidence still missing. A source change makes earlier verification, review, recording and inspection historical. node <skills-dir>/deliver/contract.mjs status <task-dir> reports currency; optional for manual work.

Validate

Resolve the merge target as the review did: the base of the existing pull request (gh pr view --json baseRefName), else base: from task.md when present, else the repository default branch. Compare artifact base/head SHAs with current state (git status --short --branch, git diff --name-status <base>...HEAD). Preserve unrelated changes. If base moved or edits invalidate scope, record drift; re-check findings.

Per critical/major-severity finding: reproduce/prove failure, trace callers, mark fixed, disputed: <evidence>, or blocked. A disputed finding is left for the human, not re-litigated.

Advisories (minor, trivial, info) are optional. Mark one accepted and fix it only when the fix is inside the reviewed diff and does not add a file, helper or dependency; mark it left_advisory otherwise; mark it declined with a reason when the suggestion is wrong. Ask before deleting code you are unsure about.

Fix

Fix validated findings in shared location owning behavior. Reuse existing code/platform before adding helpers/dependencies. Do not broaden beyond review/requirements. Each non-trivial fix needs smallest regression check, and the receipt names its test file path. Keep security, validation, accessibility, data-loss protections intact.

For a /deliver task with delegated execution, assign each bounded independent repair to a child worker. The stage owner verifies the diff and tests and integrates the work. Model roles follow deliver's Model roles; record the observed worker model or that selection was unavailable. Do not send two workers into the same files at once.

Verify

Run the test that covers each fix, then the repository checks CI runs for the changed files (package.json scripts, Makefile targets, CI file); /verify-implementation re-runs the full set next. Record commands and outcomes. Missing gate remains blocked; do not relabel it as clean. A blocker that needs a human goes to the orchestrator; run by hand, post it to the task's Slack thread per feature-thread mode.

Save receipt

Allocate the next immutable iteration through the conventions. Write <task-root>/<slug>/artifacts/review/fixes/<NNNN>.md using the template. Map Critical/Required ids to fixed or disputed: <evidence> with evidence and record advisories separately. Save the receipt locally. Commit code fixes separately using explicit paths, excluding the resolved task root; never stage, commit, or push task artifacts.

Record source identity, baseline/policy paths, and remaining current verification/review/evidence. Source changes invalidate the older verification and recording as well as the review.

Hand off

Use references/code_review_fixes_answer.md exactly. Fill {artifact_link} with the saved canonical task-root-relative path. Final command: /review-code, even when all findings are fixed. Only a fresh clean review proceeds to PR. A legacy task without index.json follows the conventions' legacy rules.

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.