agentleFS
yuhua99yuhua99/skills/human-review/SKILL.md

human-review

Skill2 starsChanged 30 days agoMITView on GitHub

Explain a code change to a human reviewer.

8 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

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

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write comments in zh-tw.

    line 9
  2. Very specific:

    Ask once if SCOPE is missing.

    line 18
  3. Distinctive:

    Read the scoped diff (git diff A..B for a range, so line numbers match tuicr's combined diff) and surrounding code.

    line 27
  4. Distinctive:

    Add a likely objection or toy before/after only when it clarifies a trade-off or a confusing change.

    line 37
  5. Very specific:

    Commit-level (revision/range scopes only): one per commit identified in step 1, explaining what it does and why, then the reading order of …

    line 42
  6. Very specific:

    Use issue only for problems.

    line 45

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

Human Review

Write comments in zh-tw.

Tool

{baseDir}/scripts/tuicr-review.sh:

  • start [--repo PATH] [SCOPE] --comments FILE — open a review, post FILE, then show it; prints the slug and each posted {id, location}.
  • comments [--repo PATH] [--mine] — print new comments as JSON; --mine prints your own comments with their ids.
  • add [--repo PATH] --input FILE — post more comments to the open review.
  • delete [--repo PATH] <comment-id> — remove one of your comments.

Ask once if SCOPE is missing. Use working, a revision/range, or pr <n>.

Comments file: one JSON object per line, posted in order. Keys: file, line, end_line, side (old|new, default new), comment_type (issue|suggestion|note|praise), content, commit. Omit line for a file-level comment; omit file too for a review-level one. Other keys are rejected.

commit (SHA, 7+ chars) without file makes a commit-level comment: it sits on that commit's Commit Message entry and shows only while the human has that one commit selected ((/) cycle commits). Only for revision/range scopes.

start exits non-zero after printing the slug → the review is open but stderr lists comments that failed; put those in a new file and add --input it instead of start again. They land after the others.

Workflow

  1. Read the scoped diff (git diff A..B for a range, so line numbers match tuicr's combined diff) and surrounding code. For revision/range scopes, also list the scoped commits (git log --reverse A..B for a range) and read each commit's message and diff (git show SHA), including changes later overwritten or reverted. Act as the change's author walking a human through the implementation, rather than conducting a separate defect review. Done when you can explain the old and new behavior of each meaningful changed block and, for revision/range scopes, each commit's role.
  2. Group hunks by concern and draft all comments into a temp comments file. Split each hunk into logical blocks of one or a few adjacent lines. Explain each block's old behavior -> change -> new behavior, and why; explain intent and effects rather than paraphrasing syntax. Give distinct changes within a function separate comments, anchored to the relevant lines. Summarize tests, codegen, and pure moves in one line per logical group; still name any behavior or test-expectation changes. For copied blocks, name the source in one line; explain any differences from the source and their behavioral effects separately. Ground reasons in the implementation context; label inferred reasons as assumptions. Add a likely objection or toy before/after only when it clarifies a trade-off or a confusing change. Redact secrets. Done when every changed hunk is covered by block-level explanations or explicitly included in a brief-summary exception above.
  3. Order the file, then run start SCOPE --comments FILE:
    • Review-level first: the change's purpose, which concern to read first, and why. For a multi-commit range, also the commit reading order and that (/) step through commits.
    • Commit-level (revision/range scopes only): one per commit identified in step 1, explaining what it does and why, then the reading order of its files/concerns. For working or pr <n>, use review-level context instead.
    • Inline: the block-level explanations and brief summaries from step 2. Anchor each to the relevant code.
    • File-level: only context not already covered by the review-level or inline comments.
    • Use issue only for problems.
  4. Follow-up:
    • approved → stop.
    • Human quit with X/Y files reviewed → ask whether to start the same scope again.
    • New comments → address each, fix as needed, delete your comments the fix made obsolete, then start the same scope with a comments file holding only the reply and any new delta.
    • Fetch failure → run comments manually.

Gotchas

  • Existing open review → ask the human to press q, then retry.
  • Abnormal exit sends no trigger.
  • Amend/rebase creates a new scope identity; start a new session.

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.