Code Review Checklist
shareAI-lab/learn-claude-code
Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.
“Interacts with live Hunk diff review sessions via CLI. Inspects review focus, navigates files, hunks, and exact lines, reloads session contents, adds inline review comments, and…”
$ npx skills add modem-dev/hunk --skill hunk-review -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install modem-dev/hunk hunk-review --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/modem-dev/hunk.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/hunk/skills/hunk-review .claude/skills/hunk-review && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "hunk-review" agent skill from https://github.com/modem-dev/hunk/tree/main/packages/hunk/skills/hunk-review into .claude/skills/hunk-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hunk-review", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/modem-dev/hunk/tree/main/packages/hunk/skills/hunk-reviewType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add modem-dev/hunk --skill hunk-review -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install modem-dev/hunk hunk-review --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modem-dev/hunk.git skills-src && mkdir -p .agents/skills && cp -r skills-src/packages/hunk/skills/hunk-review .agents/skills/hunk-review && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "hunk-review" agent skill from https://github.com/modem-dev/hunk/tree/main/packages/hunk/skills/hunk-review into .agents/skills/hunk-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hunk-review", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add modem-dev/hunk --skill hunk-review -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install modem-dev/hunk hunk-review --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modem-dev/hunk.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/packages/hunk/skills/hunk-review .cursor/skills/hunk-review && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "hunk-review" agent skill from https://github.com/modem-dev/hunk/tree/main/packages/hunk/skills/hunk-review into .cursor/skills/hunk-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hunk-review", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/modem-dev/hunk.git --path packages/hunk/skills/hunk-review--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add modem-dev/hunk --skill hunk-review -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install modem-dev/hunk hunk-review --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modem-dev/hunk.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/packages/hunk/skills/hunk-review .gemini/skills/hunk-review && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "hunk-review" agent skill from https://github.com/modem-dev/hunk/tree/main/packages/hunk/skills/hunk-review into .gemini/skills/hunk-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hunk-review", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install modem-dev/hunk hunk-reviewInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add modem-dev/hunk --skill hunk-review -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/modem-dev/hunk.git skills-src && mkdir -p .github/skills && cp -r skills-src/packages/hunk/skills/hunk-review .github/skills/hunk-review && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "hunk-review" agent skill from https://github.com/modem-dev/hunk/tree/main/packages/hunk/skills/hunk-review into .github/skills/hunk-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hunk-review", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add modem-dev/hunk --skill hunk-review -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install modem-dev/hunk hunk-review --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/modem-dev/hunk.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/packages/hunk/skills/hunk-review .opencode/skills/hunk-review && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "hunk-review" agent skill from https://github.com/modem-dev/hunk/tree/main/packages/hunk/skills/hunk-review into .opencode/skills/hunk-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hunk-review", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
hunk-review“Interacts with live Hunk diff review sessions via CLI. Inspects review focus, navigates files, hunks, and exact lines, reloads session contents, adds inline review comments, and paints attention marks on character ranges. Use when the user has a Hunk session running or wants to review diffs interactively.”
Hunk Diff Session Control is a skill in modem-dev/hunk (9.5k stars). Its SKILL.md is about 3.4k tokens. Licence: MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 252f59d. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Hunk Diff Session Control loads about 3.4k tokens when it runs. Until then it costs about 80 tokens; SKILL.md has 1,352 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from modem-dev/hunk at commit 252f59d, republished under its MIT licence (© modem-dev). 1,352 words, ~3,426 tokens.
.claude/skills/hunk-review/SKILL.md (or your agent's skills folder).Hunk is an interactive terminal diff viewer. The TUI is for the user -- do NOT run hunk diff, hunk show, or other interactive commands directly. Use hunk session * CLI commands to inspect and control live sessions through the local daemon.
If no session exists, ask the user to launch Hunk in their terminal first.
1. hunk session list # find live sessions
2. hunk session get --repo . # inspect path / repo / source
3. hunk session review --repo . --json # inspect file/hunk structure first
4. hunk session review --repo . --include-patch --json # opt into raw diff text only when needed
5. hunk session context --repo . # check current focus when needed
6. hunk session navigate ... # move to the right place
7. hunk session reload -- <command> # swap contents if needed
8. hunk session comment add ... # leave one review note
9. hunk session comment apply ... # apply many agent notes in one stdin batch
10. hunk session highlight add ... # light up the exact range you are explainingMost session commands accept:
--repo <path> -- match the live session by its current loaded repo root (most common)<session-id> -- match by exact ID (use when multiple sessions share a repo)reload also supports:
--session-path <path> -- match the live Hunk window by its current working directory--source <path> -- load the replacement diff / show command from a different directoryUse --source only for advanced reloads where the live session you want to control is not already associated with the checkout you want to load next. For a normal worktree session, prefer selecting it directly with --repo /path/to/worktree.
hunk session list [--json]
hunk session get (<session-id> | --repo <path>) [--json]
hunk session context (<session-id> | --repo <path>) [--json]
hunk session review (<session-id> | --repo <path>) [--include-patch] [--include-notes] [--json]get shows the session Path, Repo, and Source, which helps when choosing between --repo and --session-pathRepo is what --repo matches; Path is what --session-path matchesreview --json returns file and hunk structure by default; add --include-patch only when a caller truly needs raw unified diff textreview --include-notes also returns the live review notes alongside the file and hunk structurehunk session navigate (<session-id> | --repo <path>) --file <path> (--hunk <n> | --old-line <n> | --new-line <n>) [--json]
hunk session navigate (<session-id> | --repo <path>) --comment <id> [--json]
hunk session navigate (<session-id> | --repo <path>) (--next-comment | --prev-comment) [--json]Absolute navigation requires --file and exactly one of --hunk, --new-line, or --old-line:
hunk session navigate --repo . --file src/App.tsx --hunk 2
hunk session navigate --repo . --file src/App.tsx --new-line 372
hunk session navigate --repo . --file src/App.tsx --old-line 355Exact comment navigation uses the commentId returned by hunk session comment list --json and does not require --file:
hunk session navigate --repo . --comment comment-1Relative comment navigation jumps between annotated hunks and does not require --file:
hunk session navigate --repo . --next-comment
hunk session navigate --repo . --prev-comment--hunk <n> is 1-based--new-line / --old-line are 1-based line numbers on that diff side--hunk lands on the hunk--next-comment or --prev-comment, not bothSwaps the live session's contents. Pass a Hunk review command after --:
hunk session reload (<session-id> | --repo <path> | --session-path <path>) [--source <path>] [--json] -- diff [ref] [-- <pathspec...>]
hunk session reload (<session-id> | --repo <path> | --session-path <path>) [--source <path>] [--json] -- show [ref] [-- <pathspec...>]Examples:
hunk session reload --repo . -- diff
hunk session reload --repo . -- diff main...feature -- src/ui
hunk session reload --repo . -- show HEAD~1
hunk session reload --repo . -- show HEAD~1 -- README.md
hunk session reload --repo /path/to/worktree -- diff
hunk session reload --session-path /path/to/live-window --source /path/to/other-checkout -- diff-- before the nested Hunk command--repo or <session-id> usually selects the session you want--source is advanced: it does not select the session; it only changes where the replacement review command runshunk session reload --repo /path/to/worktree -- diff--session-path targets the live window when you need to keep session selection separate from reload sourcehunk session comment add (<session-id> | --repo <path>) (--reply-to <note-id> | --file <path> (--old-line <n> | --new-line <n>)) --summary <text> [--rationale <text>] [--author <name>] [--markup <stml>] [--focus] [--json]
hunk session comment apply (<session-id> | --repo <path>) --stdin [--focus] [--json]
hunk session comment list (<session-id> | --repo <path>) [--file <path>] [--type <live|all|ai|agent|user>] [--json]
hunk session comment rm (<session-id> | --repo <path>) <comment-id> [--json]
hunk session comment clear (<session-id> | --repo <path>) [--file <path>] [--include-user|--all] --yes [--json]Examples:
hunk session comment add --repo . --file README.md --new-line 103 --summary "Tighten this wording"
hunk session comment add --repo . --reply-to user:123 --summary "Addressed in the latest revision"
printf '%s\n' '{"comments":[{"filePath":"README.md","newLine":103,"summary":"Tighten this wording"}]}' | hunk session comment apply --repo . --stdincomment list --type user shows human-authored inline notes; without --type, comment list preserves the legacy live-agent-comment viewcomment add is best for one note; comment apply is best when an agent already has several notes readycomment add notes require --file, --summary, and exactly one of --old-line or --new-line; replies use --reply-to <note-id> with --summary and inherit the parent's anchorcomment apply items require summary plus either replyTo by itself or filePath with exactly one target such as hunk, hunkNumber, oldLine, or newLinecomment apply reads a JSON batch from stdin and validates the full batch before mutating the live session--focus when you want to jump to the new note or the first note in a batchcomment list and comment clear accept optional --file--summary and --rationale defensively in the shellHighlights paint character ranges inside the diff lines the user is looking at — use them to light up the exact expression you are explaining while you narrate.
hunk session highlight add (<session-id> | --repo <path>) --file <path> (--old-line <n> | --new-line <n>) --start <n> --end <n> [--tone <tone>] [--focus] [--json]
hunk session highlight clear (<session-id> | --repo <path>) [--file <path>] [--json]Examples:
hunk session highlight add --repo . --file src/App.tsx --new-line 42 --start 6 --end 19
hunk session highlight add --repo . --file src/App.tsx --new-line 42 --start 6 --end 19 --tone warning --focus
hunk session highlight clear --repo .highlight add requires --file, exactly one of --old-line or --new-line, and the --start / --end offsets--start is a 0-based inclusive offset into the line's text and --end is exclusive, counted in UTF-16 code units — the same [start, end) range extensions usematch (default), info, warning, error, dim; current renders as reverse video and is best reserved for the one range under discussion--focus to also land the viewport on the marked linehighlight clear removes them explicitly (optionally per --file)comment add when the explanation should persist as a noteOnly use STML when hunk session context --json lists stml in experimentalFeatures. The user opts into that experience by launching the review with --experimental; do not ask a normal session to render markup.
For an opted-in session, --markup (or a markup field on apply items) renders the note body as STML — a small HTML-like markup for terminal UI (boxes, rows, gauges, badges, lists, code). Keep --summary a real sentence: it is the fallback and the comment list text.
Before writing markup, run hunk markup guide once — it has copy-paste patterns and the width rules. The session context also reports noteMarkupWidth (the live render width); preview with hunk markup render - --width <that>. Comment responses echo markupWidth and return markupNotes when markup degraded — fix what they flag.
hunk diff includes untracked files by default. If the user wants tracked changes only, reload with --exclude-untracked:
hunk session reload --repo . -- diff --exclude-untrackedThe user may ask you to walk them through a changeset or review code using Hunk. Start with hunk session review --json to understand the file/hunk structure without inflating agent context, then use --include-patch only for the files you truly need to read in raw diff form. Use context and navigate to line up the user's current view before adding comments.
Your role is to narrate: steer the user's view to what matters and leave comments that explain what they're looking at.
Typical flow:
reload if needed)comment apply batch over many separate shell invocationsGuidelines:
highlight add --focus to steer the user's eyes to the exact expression while you explain it, and highlight clear before moving to the next topiccomment apply for agent-generated batches and comment add for one-off notes--focus sparingly when the note itself should actively steer the reviewcontext, then reload if needed.<session-id> explicitly.Path via hunk session get or list, then use --session-path.--" -- include -- before the nested diff / show command.comment apply only reads its batch payload from stdin.--hunk, --old-line, or --new-line.comment add one of --old-line or --new-line.highlight add one of --old-line or --new-line.[start, end) UTF-16 code units into the line text; end is exclusive.daemon-build-mismatch (the --json error carries daemon, cli, attachedSessions, and recommendedAction). Tell the user which build is newer and how many windows are attached, then ask before running hunk daemon restart --yes; never restart unprompted. After the restart, windows that failed to register attach on their own, so re-run hunk session list instead of relaunching anything. When recommendedAction is use-newer-hunk, the daemon is the newer build: use that Hunk instead.--include-patch was reading it. Re-run review; drop --include-patch if you only need file and hunk structure.© modem-dev, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in packages/hunk/skills/hunk-review of modem-dev/hunk.
Open the folder on GitHubat commit 252f59d
Hunk Diff Session Control next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Hunk Diff Session Control this skillmodem-dev/hunk | 9.5k | — | ~3.4k | Automated safety check: Pass | MIT | |
| Code Review ChecklistshareAI-lab/learn-claude-code | 78k | 5 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Understand Diff AnalysisEgonex-AI/Understand-Anything | 85k | 1 repos | ~1.4k | Automated safety check: Pass | MIT | |
| Open Code Review CLIalibaba/open-code-review | 44k | — | ~3.1k | Automated safety check: Pass | Apache-2.0 | |
| Open Code Review Delegatealibaba/open-code-review | 44k | — | ~2k | Automated safety check: Pass | Apache-2.0 | |
| PR Review State Fetchprisma/orm | 48k | — | ~767 | Automated safety check: Pass | Apache-2.0 |
shareAI-lab/learn-claude-code
Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.
Egonex-AI/Understand-Anything
Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.
alibaba/open-code-review
Runs the ocr command-line tool to review Git changes, a commit or a branch comparison with an AI model, returning line-level comments and optionally applying fixes.
alibaba/open-code-review
Has the host agent do the code review itself while the ocr CLI handles file selection and rule lookup, covering workspace changes, branch ranges or single commits.
prisma/orm
Fetches a pull request's canonical review state as JSON, validates it, and renders markdown, a text summary and triage target files from it using bundled scripts.
tirth8205/code-review-graph
Reviews a pull request or branch diff with a code knowledge graph and produces a structured review that includes blast-radius analysis.
modem-dev/hunk
Maintainer workflow for preparing, publishing, verifying and curating Hunk releases, with confirmation gates before tags, publishes and public edits.
modem-dev/hunk
Maps the hunkdiff/extension API for building Hunk terminal diff viewer extensions: panes, file views, commands, dialogs, themes, VCS backends and lifecycle events.
modem-dev/hunk
Produces captioned 1080p product videos of the Hunk terminal diff viewer by driving the real TUI headlessly and compositing frames in Chromium.
Works with
Categories
Run `npx skills add modem-dev/hunk --skill hunk-review -a claude-code`. Or copy the skill folder (packages/hunk/skills/hunk-review in modem-dev/hunk) into .claude/skills/hunk-review in your project. Claude Code loads it when a task matches its description.
Run `npx skills add modem-dev/hunk --skill hunk-review -a codex`. Or copy the skill folder (packages/hunk/skills/hunk-review in modem-dev/hunk) into .agents/skills/hunk-review in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add modem-dev/hunk --skill hunk-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/hunk-review, .gemini/skills/hunk-review, .github/skills/hunk-review and .opencode/skills/hunk-review in your project.
SKILL.md names no scripts, command-line tools or credentials: Hunk Diff Session Control is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Hunk Diff Session Control is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.4k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Hunk Diff Session Control: Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), Understand Diff Analysis (Egonex-AI/Understand-Anything, 85k stars), Open Code Review CLI (alibaba/open-code-review, 44k stars) and Open Code Review Delegate (alibaba/open-code-review, 44k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
modem-dev (a GitHub organization) maintains it in modem-dev/hunk, which has 9,521 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 6, 2026.
Source: modem-dev/hunk on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.