Skip to content
Skills Library
Programming · Review & audit

interactive-review

/interactive-review

Use when a skill needs the user to interactively review code changes in Hunk mid-workflow — working changes, staged changes, or a specific commit — then act on their decision and comments. Takes a review mode.

Licence
MIT
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
4
Scripts
3
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 3 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/interactive-review.sh, scripts/listen.sh, scripts/record-approval.sh

What it does and when to use it

Use when a skill needs the user to interactively review code changes in Hunk mid-workflow — working changes, staged changes, or a specific commit — then act on their decision and comments. Takes a review mode.

Original author description

Use when a skill needs the user to interactively review code changes in Hunk mid-workflow — working changes, staged changes, or a specific commit — then act on their decision and comments. Takes a review mode.

How it works

  1. Opening the Review
  2. Listening for the Decision
  3. Reviewing Files Outside A Repository
  4. Choosing Working vs. Staged Mode
  5. Closing the Review
Original SKILL.md headings · 52 lines, 707 words
SKILL.md preview
---
name: interactive-review
description: Use when a skill needs the user to interactively review code changes in Hunk mid-workflow — working changes, staged changes, or a specific commit — then act on their decision and comments. Takes a review mode.
user-invocable: false
---

# Interactive Review

## Opening the Review

Run `scripts/interactive-review.sh <mode> [<arguments>] [--directory <path>]`. It opens Hunk in a background herdr tab named `review`, prints the repository to listen to, and returns right away. Running it again while that review is open reloads it in place, keeping the user's comments.

The script supports several modes:

- `working`: Unstaged changes only, including untracked files.
- `staged`: Staged changes only.
- `commit <sha>`: A single commit, compared with its parent.
- `diff <before> <after>`: One path against another, neither of which needs to be in a repository. See [Reviewing Files Outside A Repository](#reviewing-files-outside-a-repository).

Run `scripts/interactive-review.sh --help` for details. If it prints `Review is disabled for this workspace.` instead of a repository, skip the review.

`--directory` is the repository holding the changes, which is not always the one the session started in. Pass it explicitly every time rather than relying on where the command happens to run. When it isn't the session's own repository, commit with `git -C <same directory>`: the commit hook resolves the repository from that flag and can't see a `cd`, so it blocks an approved commit without one.

## Listening for the Decision

**REQUIRED:** Use the `hunk-verdict` skill to listen for the user's decision and to act on it and the user's comments, but listen with `scripts/listen.sh --directory <printed repository>` in place of `hunk verdict listen`. It prints the same lines, and on an approval, a comment or a denial it switches the user back to your tab. In `staged` mode, the review shows only what's staged, so stage your fixes to make them show, and stage any edits the user makes during the review. Stage only the changes that belong to the commit, since a file can be partly staged on purpose.

Reply to every comment you handle. When you made the change exactly as asked, reply with ✅ and nothing else; otherwise _briefly_ explain what you did or why you didn't make the change. The user reads those replies in Hunk, so don't repeat them in your chat message: say you replied in the review, and at most name what you changed. Never remove the user's comments: they're the record of what happened in the review.

When the user approves, and before committing:

1. Read the user's comments. Closing the tab ends the Hunk session, and its comments go with it.
2. Run `scripts/record-approval.sh --directory <printed repository>`, so the commit hook allows the commit.
3. Close the `review` tab. Closing Hunk also ends the listener.

In `commit` mode the commit already exists, so skip `record-approval.sh`. The decision and comments still count.

## Reviewing Files Outside A Repository

`diff <before> <after>` reviews one path against another — two files, or two directories — neither of which needs to be in a repository. It takes no `--directory`.

Nothing records the before-state for you, so copy the file or directory somewhere first, before the first edit. Without that copy there is nothing to diff against, and no way to make one after the fact.

The review shows a copy of `<after>`, so it doesn't follow later edits. After revising, run the script again with the same paths to refresh the open review.

## Choosing Working vs. Staged Mode

`working` mode reviews every unstaged change in the worktree, including untracked files, but nothing that is already staged.

Before invoking the script, run `git status`, and pick the mode from what it reports. Anything already staged is invisible to `working` mode, so a fully staged worktree has nothing for it to show and the script refuses to open it. If the worktree has uncommitted changes unrelated to the commit being built, `working` mode would mix them into the review; stage only the files belonging to this commit (`git add <files>`) and invoke `staged` mode instead. Either way, don't leave the commit's changes split across the index and the worktree, since neither mode shows both halves.

## Closing the Review

Once the user has approved and you've read their comments, close the `review` tab by its tab ID, the way the `ls-interactivity:interactive-command` skill closes a leftover tab. The tab has no script of its own to stop.

NEVER ask the user to close the tab for you. Always close it yourself.
Files in this package (4)
  • SKILL.md 5 KB
  • scripts/interactive-review.sh 9 KB
  • scripts/listen.sh 2 KB
  • scripts/record-approval.sh 1 KB

Versions

The database has no other skills named interactive-review.

Database snapshot: 13.11.2026 · package version 9758e8a51971 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100commit
    Analyze staged changes and write a conventional commit message. Use when staged changes are ready to commit or a message needs wording.
  • 100commit-staged
    This skill should be used when user asks to "commit these changes", "write commit message", "stage and commit", "create a commit", "commit staged files", or explicitly invokes "commit-staged".
  • 100pre-commit-review
    Review staged and unstaged changes before committing. Use when asked for a pre-commit review, a code-quality review of the current diff, or when a solve workflow requests an independent review.
  • 85interactive-edit
    Use when a skill needs the user to interactively edit a file in Neovim mid-workflow, then read their changes back. Takes a window name and the file to edit.
  • 100hunk-review
    This skill should be used when the user asks to "review code with hunk", "start a hunk review session", "add comments to a hunk diff", "annotate a diff with hunk", "use hunk for code review", or when the user mentions the `hunkdiff` CLI tool. Provides structured guidance for…
  • 100code-review
    Review the user's pending/uncommitted work — staged + unstaged changes only, never committed history or branch-wide diffs. Trigger on "review my changes", "code review", "review this diff", "review what I'm working on", "review my WIP", or when the user points at a specific…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.