| name | difit |
| description | Ask the user for a code review through difit after code changes. |
Difit
Overview
This skill requests a code review from the user using difit.
Before running commands, choose <difit-command> using the following rule:
- If
command -v difit succeeds, use difit.
- Otherwise, use
npx difit.
- If falling back to
npx difit would require network access in a sandboxed environment without network permission, request escalated permissions and user approval before running it.
If the user leaves review comments, they are printed to stdout when the chosen difit command exits.
When review comments are returned, continue work and address them.
If the server is shut down without comments, treat it as "no review comments were provided." Restarting it is unnecessary.
Manual verification of whether the page launched correctly is also unnecessary.
Commands
- Review uncommitted changes before commit:
<difit-command> .
- Review the HEAD commit:
<difit-command>
- Review staging area changes:
<difit-command> staged
- Review unstaged changes only:
<difit-command> working
Basic Usage:
<difit-command> <target>
<difit-command> <target> [compare-with]
Optional Startup Comments
If there is something you want to tell the user when difit opens, attach it as startup comments with --comment.
This is useful for review findings, explanations, and any context the user should see directly on the diff.