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

review

Skill2 starsChanged 35 days agoApache-2.0View on GitHub

Fix-loop on an existing PR's CI failures. USE WHEN a PR has failing CI and needs `mise run ci` fixes pushed, when CI checks are red, or when the babysit-tick worker observes ci_fail. Runs mise run ci loop until passing, pushes fix commits to the PR branch. NOT FOR opening a new PR (use /ship), reviewing OTHER people's PRs (use /pr-review), or triaging human/Greptile review comments (use /review-fix or /greptile).

  • Commits and pushes

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use close-spec, design-with-images 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.
  • dzhngSkill

    close-spec

    When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).

    Also in 5 projects that use this

  • dzhngSkill

    design-with-images

    Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.

    Also in 5 projects that use this

  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • +3 more from dzhng
  • +5 more from Lambenthan

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 6 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 153 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Run a fix loop on the current branch's committed code until mise run ci passes (or 5 iterations), then update an existing PR or open a new …

    line 8
  2. Very specific:

    If a PR number is given as $ARGUMENTS, target that PR.

    line 10
  3. Distinctive:

    If all pass: skip to step 4.

    line 34
  4. Very specific:

    Run make fix first to auto-fix formatting/import issues.

    line 40
  5. Very specific:

    Commit fixes as you go with fix: <description> commits.

    line 42
  6. Distinctive:

    If checks pass: proceed to step 4.

    line 44
  7. Distinctive:

    If iteration 5 is reached without convergence: report remaining failures and stop.

    line 45
  8. Very specific:

    Never use --no-verify or add // nolint suppression unless genuinely correct.

    line 48
  9. Distinctive:

    Do not modify tests to make them pass if the production code is actually wrong , fix the code.

    line 50
  10. Very specific:

    If $ARGUMENTS was a PR number, use:

    line 59
  11. Distinctive:

    If a PR exists, push the fix commits:

    line 66
  12. Distinctive:

    If no PR exists, open one:

    line 88

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

Run a fix loop on the current branch's committed code until mise run ci passes (or 5 iterations), then update an existing PR or open a new one.

If a PR number is given as $ARGUMENTS, target that PR.

Steps

1. Inspect branch state

git log --oneline origin/main..HEAD
git diff --stat origin/main

Understand what this branch changes before starting.

2. Run checks

mise run ci 2>&1

For branches touching web code also run:

# (no frontend currently) 2>&1

If all pass: skip to step 4.

3. Fix loop (max 5 iterations)

For each iteration:

  • Analyse all failure output. Group by type (lint, type errors, test failures).
  • Run make fix first to auto-fix formatting/import issues.
  • Fix as many remaining errors as possible per iteration , do not be incremental.
  • Commit fixes as you go with fix: <description> commits.
  • Re-run checks.
  • If checks pass: proceed to step 4.
  • If iteration 5 is reached without convergence: report remaining failures and stop. Do not update the PR with broken code.

Rules:

  • Never use --no-verify or add // nolint suppression unless genuinely correct.
  • Proto changes need `` first.
  • Do not modify tests to make them pass if the production code is actually wrong , fix the code.
  • Each fix commit must be atomic and descriptive.

4. Check for existing PR

gh pr view --json url,number,state 2>/dev/null

If $ARGUMENTS was a PR number, use:

gh pr view "$ARGUMENTS" --json url,number,state

5a. Update existing PR

If a PR exists, push the fix commits:

git push

Then add a comment summarising what was fixed:

gh pr comment <number> --body "$(cat <<'EOF'
**Review fix loop complete**

Iterations needed: <N>

Fixed:
- <list of fixes>

All checks now pass.
EOF
)"

5b. Open new PR

If no PR exists, open one:

gh pr create \
  --title "<conventional-commit-title>" \
  --body "$(cat <<'EOF'
## Summary
<bullet points>

## Changes from review fix loop
<what was fixed during the review loop>

## Test plan
- [ ] `mise run ci` passes
- [ ] <manual steps to verify>
EOF
)"

6. Report

Print:

  • Iterations taken
  • What was fixed
  • PR URL

Never force-push. Never bypass checks. Stop at iteration 5 if not converged.

Gotchas

Concrete pitfalls encountered when using this skill. Add new ones as you hit them , this is the compounding-engineering log (see agent-docs/lessons.md for the broader pattern).

  • (empty , add the first real entry the next time you hit a non-obvious pitfall)

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.