agentleFS
mo-cmykmo-cmyk/mazarbul/.claude/skills/review-fix/SKILL.md

review-fix

Skill2 starsChanged 35 days agoApache-2.0View on GitHub

Fixes the comments on the current PR , Greptile, human reviewers, failing CI. USE WHEN user says 'fix the review comments', 'address the feedback', 'fix the PR', 'resolve the review threads', or there is an open PR with unresolved review comments or red CI. Reads review threads via gh CLI, classifies actionable vs nit, applies fixes, pushes commits, resolves resolved threads in GitHub UI. NOT FOR opening a new PR (use /ship) or reviewing someone else's PR (use /pr-review).

  • Commits and pushes

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use declarative-infra, screenshots-in-prs and 8 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.
  • davidvornholtSkill

    declarative-infra

    Use when changing hosted infrastructure, such as server NixOS configurations, OpenTofu, cloud resources, infrastructure secrets, deployments, or provider credentials, even when another repository owns them.

    Also in 3 projects that use this

  • davidvornholtSkill

    screenshots-in-prs

    Use when opening or editing a pull request for a change to rendered UI.

    Also in 3 projects that use this

  • cordanaLLMSkill

    standards-sync

    Synchronize and reconcile local repository configurations, DevContainers, and universal agent harnesses with the governed repositories governance lattice.

    Also in 3 projects that use this

  • poorvith-mpSkill

    ci-pipelines

    Build CI/CD with build, test, security scan and deploy stages across common providers. Use when setting up GitHub Actions, GitLab CI, or build pipelines.

    Also in 3 projects that use this

  • jnotsknabSkill

    ux-ui

    Design usable, accessible, humane interfaces — interaction patterns, component states, forms, feedback, and WCAG compliance. Use when making decisions about how UI behaves, not just how it looks.

    Also in 3 projects that use this

  • GoogleSkill

    prs

    Expertise in managing the Git and GitHub Pull Request lifecycle, including staging changes, generating PR descriptions, and branch management.

    Also in 3 projects that use this

  • +1 more from davidvornholt

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 2

    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:

    If $ARGUMENTS is a PR number, use it.

    line 14
  2. Distinctive:

    General: prefer patterns already established in this codebase

    line 57
  3. Distinctive:

    If multiple true positives are independent and touch different files, spawn parallel Agent calls (one per file group) to fix them …

    line 59

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

Triage and resolve all review findings on the current PR. Pre-production (0.x) project , breaking changes are acceptable; prioritize correctness over backwards compatibility.

Steps

Phase 1 , Triage

If $ARGUMENTS is a PR number, use it; otherwise gh pr view --json number.

Fetch all open review comments AND CI failure logs:

PR=$(gh pr view --json number -q .number)
# Review thread comments (line-level)
gh api repos/{owner}/{repo}/pulls/$PR/comments --paginate \
  --jq '.[] | {id, author: .user.login, path, line, body, in_reply_to_id}'
# Review summary comments
gh pr view $PR --json reviews --jq '.reviews[] | {author: .author.login, state, body, submittedAt}'
# CI failures
gh pr checks $PR --json name,state,link,bucket --jq '.[] | select(.bucket=="fail")'

Classify every finding as one of:

  1. True positive , A real problem that should be fixed.
  2. False positive , Not actually an issue (write one-sentence justification).
  3. Ambiguous , Unclear whether real; needs deeper investigation.
  4. Intentional / out of scope , Valid concern but not applicable here (explain why).

Present the triage as a markdown summary table before making any changes. Columns: # | Author | Location | Class | Rationale | Action.

Phase 2 , Resolve Ambiguous Findings

For any finding classified Ambiguous, spawn a team of agents IN PARALLEL via the Agent tool:

Agent({ subagent_type: "Explore",
        description: "Investigate Greptile/reviewer finding #N",
        prompt: "..." })

Each agent researches the codebase, related code paths, and the relevant best-practice source. Agents reach a consensus. Report the conclusion + reasoning, then reclassify the finding as true or false positive. Update the triage table.

Phase 3 , Fix True Positives

For each confirmed true positive, apply the fix following the authoritative standard for that layer:

  • Proto/API: Google AIPs, Protobuf Style Guide, project CLAUDE.md
  • Go: Google Go Style Guide, idiomatic Go, project conventions
  • Frontend: Next.js docs, React 19, Geist/shadcn/TanStack/Connect-ES
  • General: prefer patterns already established in this codebase

If multiple true positives are independent and touch different files, spawn parallel Agent calls (one per file group) to fix them concurrently. Group related findings that touch the same files.

Phase 4 , Verify

After all fixes:

  • mise run lint (Go)
  • # (no frontend currently) && pnpm tsc --noEmit (if web/ touched)
  • mise run test (Go)
  • # (no frontend currently) (if web/ touched)

Confirm no new issues were introduced.

Phase 5 , Push & Comment

git add <specific paths>
git commit -m "fix: address review feedback"
git push

Reply to each thread you addressed with a one-line explanation of the change. If this is a Greptile-only review fix, prefer /greptile over this skill , it also resolves threads in the UI which /review-fix does not do automatically.

For non-Greptile threads (human reviewers), don't mark threads resolved automatically , that's the reviewer's call.


Never force-push. Never bypass --no-verify. Pre-production rules: prioritize correctness over backward compatibility.

Gotchas

  • (empty)

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.