This skill helps you review files and process review comments by launching the GUI, parsing feedback, and guiding installation.
npx playbooks add skill desplega-ai/ai-toolbox --skill file-review
Unified skill for the file-review plugin. Routes to the correct workflow based on user intent.
> Note: The /file-review and /process-comments commands are simple shortcuts for backward compatibility. They trigger the Review and Process workflows below. This skill is the canonical entry point.
Match the user's request to one of three workflows:
| Intent signals | Workflow |
|----------------|----------|
| "install file-review", "set up file-review", "file-review not found" | Install |
| "review this file", "file-review <path>", "open for review", "let's review" | Review a File |
| "I left comments", "process comments", "done reviewing", "address feedback" | Process Comments |
If the intent is ambiguous, use AskUserQuestion:
| Question | Options |
|----------|---------|
| "What would you like to do with file-review?" | 1. Review a file (open GUI), 2. Process existing review comments, 3. Install file-review |
---
brew tap desplega-ai/tap
brew install file-review
Verify: which file-review
> The Homebrew build is native-only. It does not include web mode. For --web/--tunnel you must build from source with bun run install:web (see Advanced: Web / tunnel mode).
Prerequisites: bun, Rust
git clone https://github.com/desplega-ai/ai-toolbox.git
cd ai-toolbox/file-review
bun install
bun run install:app # native binary
# or, for web/tunnel mode:
bun run install:web # web-feature binary
Both symlink to ~/.local/bin/file-review (ensure that's in PATH).
bun run install:app builds the native (Tauri) binary. It does not include web mode. Passing --web to it exits with an error.bun run install:web builds the web-feature binary required for --web/--tunnel.package.json, src-tauri/tauri.conf.json and src-tauri/Cargo.toml, then run bun run release. It tags file-review-v<version> and pushes the tag to trigger the GitHub Actions build. A bare install:* only installs locally.~/.local/bin in PATH, restart terminalxcode-select --installcd ai-toolbox/file-review && bun run uninstall:app
---
Check for recently created or modified files in the current session:
thoughts/<username|shared>/plans/thoughts/<username|shared>/research/Pending review batches: also surface files that still contain active review-(start|line-start) markers (leftover review sessions whose comments were never processed):
grep -rlE '<!-- *review-(start|line-start)\(' thoughts/taras/ thoughts/shared/ --include="*.md" 2>/dev/null | head -20
Re-verify each hit against the Extraction Patterns regexes (Process Comments below) before proposing. A bare grep also matches files that merely quote the marker syntax (like this skill), so only offer files with a full parseable match.
Propose all candidates (recent files + pending batches) via a single multi-select AskUserQuestion. On selection, launch file-review "<p1>" "<p2>" … (0–N absolute paths, one tab each) and flow into Process Comments.
which file-review
If not found, jump to the Install section above.
file-review "<p1>" "<p2>" …
main in main.rs, run in lib.rs): one path → a single tab; multiple files → one tab per path.Cmd+T / Cmd+O (the file picker is multi-select) or drag-and-drop onto the window.run_in_background: true and timeout: 600000 (max allowed: 10 minutes)& to the command. The process must block until the user closes the GUI--bg. Let the Bash tool handle backgroundingSee Binary / CLI Reference below for all flags (--silent, --json, web mode, …) and the exact output formats.
I've opened file-review for <file(s)>.
Shortcuts: Cmd+K (add comment), Cmd+T (new tab), Cmd+S (save), Cmd+Q (quit), Cmd+/ (help)
No need to ask the user to notify you when done. You are notified automatically when the GUI closes.
=== Review Comments (N) ===
[abc123] Line 15 (inline):
"highlighted code"
→ Comment text here
When multiple tabs were open, the output is grouped per file under ## <path> headers (see Binary / CLI Reference).
Present the output, then proceed to Process Comments below.
The in-app Cmd+/ modal lists every shortcut in groups. Source of truth: src/shortcuts.ts (shortcutGroups). Cmd and Ctrl are interchangeable.
| Group | Shortcut | Action |
|-------|----------|--------|
| Comments | Cmd+K | Comment on the preview selection, else the active block (preview) or the current line/selection (source) |
| Comments | Cmd+click | Comment on a preview block (also on a link, instead of following it) |
| Comments | Cmd+Enter | Submit the comment composer, or save a comment edit |
| Comments | Esc | Cancel the composer or edit, clear the selected comment, hide the selection pill |
| Navigation | Ctrl+- or Cmd+[ | Back (after following a link or an outline entry) |
| Navigation | Ctrl+Shift+- or Cmd+] | Forward |
| Navigation | Cmd+F | Search the preview |
| Navigation | Enter / Shift+Enter | Next / previous match (in the search box) |
| Navigation | Esc | Close search |
| View | Cmd+M | Toggle preview / source |
| View | Cmd+B | Toggle the outline rail (left) |
| View | Cmd+Option+B | Toggle the comments rail (right) |
| View | Left / Right arrow | Resize the focused rail divider (16px steps) |
| View | Cmd+Shift+E | Toggle reading width (narrow / full) |
| View | Cmd+Shift+T | Toggle theme (light / dark) |
| View | Cmd++ / Cmd+- | Zoom in / out |
| View | Cmd+/ | Toggle the shortcuts help |
| Tabs | Cmd+T | New tab (open file) |
| Tabs | Cmd+W | Close active tab |
| Tabs | Cmd+1…9 | Switch to Nth tab |
| Tabs | Cmd+N / Cmd+P | Next / previous tab |
| File | Cmd+O | Open file (multi-select picker) |
| File | Cmd+S | Save file |
| File | Cmd+Z / Cmd+Shift+Z | Undo / redo |
| File | Cmd+Q | Quit application |
| File | S / Q / C / Esc | Unsaved-changes dialog: save, quit anyway, close tab anyway, cancel |
| Lightbox | + / - | Zoom in / out |
| Lightbox | 0 | Fit to screen |
| Lightbox | Left / Right arrow | Previous / next image |
| Lightbox | Double-click | Toggle fit and 100% |
| Lightbox | Esc | Close the viewer |
| Vim | Cmd+Shift+V | Toggle vim mode |
| Vim | j / k | Preview: next / previous block |
| Vim | gg / G | Preview: first / last block |
| Vim | Ctrl+D / Ctrl+U | Page down / up (preview and editor) |
| Vim | / | Preview: search |
| Vim | n / N | Preview: next / previous match |
| Vim | Esc | Preview: clear the active block |
| Vim | Ctrl+Q | Editor: visual block mode (Ctrl+V is paste) |
Cmd+S, Cmd+W, Cmd+T, Cmd+1…9, Cmd+N/P, Cmd+B, Cmd+Option+B and Cmd+Shift+E also work while the source editor has focus. The vim preview keys work only when vim mode is on and the preview is visible.
+, or Cmd+click it. Select text to get a floating Comment pill (or press Cmd+K). A selection inside one block becomes an inline comment on the exact source text. A selection across blocks becomes a line comment. If the selection cannot be mapped to source, the comment covers the whole block.#heading links scroll to the heading. Links to .md, .markdown, .mdx and .txt files open as tabs (then scroll to the #fragment). Other local documents and media (PDF, images, text, audio, video) open in their default app. Any other file type (apps, scripts, installers, folders) is only revealed in Finder, so a link can never launch code. Native only; web mode shows an info toast. http, https and mailto links open in the system browser. Broken local links are marked. External links get an icon. Back / forward: following a link or an outline entry records where you were. The toolbar arrows, Ctrl+- / Ctrl+Shift+-, Cmd+[ / Cmd+] and the mouse back / forward buttons return to it (switching or reopening the tab and restoring the scroll).[a, b] and block - item lists both show as chips.> [!NOTE], [!TIP], [!IMPORTANT], [!WARNING] and [!CAUTION] render as colored callouts.[^id] references become numbered superscript links to their [^id]: definitions, with back-links.# to copy <file name>#<slug>..git (else the file's folder), skipping hidden folders, node_modules, target and dist. Rows route like preview links. Image rows open the lightbox.file-review [OPTIONS] [FILE]... mirrors file-review --help (print_help in src-tauri/src/main.rs).
| Flag | Meaning |
|------|---------|
| -h, --help | Show help (includes the config path and current contents) |
| -v, --version | Show version |
| -s, --silent | Suppress comment output on close |
| -j, --json | Emit JSON on close |
| -w, --web | Start in web-server mode (requires the web-feature build) |
| -o, --open | Auto-open the browser (requires --web) |
| -t, --tunnel | Enable localtunnel for remote access (requires --web) |
| --subdomain NAME | Request a specific tunnel subdomain (requires --tunnel) |
| --port PORT | HTTP server port (default: 3456) |
| [FILE]... | 0 to N file paths. One tab per path |
| - / piped stdin | file-review - or cat content.md \| file-review reads stdin into a temp file |
Output formats (printed to stdout on close, unless --silent):
format_comments_readable in comments.rs): === Review Comments (N) ===
[abc123] Line 15 (inline):
"highlighted code"
→ Comment text here
Multi-line spans print Lines 12-14. An empty span prints (empty selection).
## <path> header. Blocks are joined by blank lines. Tabs with no comments are omitted (run in lib.rs): ## /tmp/a.md
=== Review Comments (1) ===
…
## /tmp/b.md
=== Review Comments (1) ===
…
--json). Each comment is { "id", "comment", "type", "start_line", "end_line", "content" }. Single tab: a bare array of comments. Multiple tabs: an array of { "path", "comments": [...] } groups. Tabs with no comments are omitted.format_stdin_output_readable / format_stdin_output_json in comments.rs): a combined block with === File ===, === Content === and === Review Comments === sections. The comments header becomes === Review Comments (content modified) === when the piped content was edited. JSON is { "file", "content", "comments", "modified" }.Web mode serves the reviewer over HTTP instead of the native window. Use it for remote review. It is single-file: run_web_mode takes only the first path, so multi-file tabs are native-only.
file-review --web "<path>" # serve on http://127.0.0.1:3456
file-review --web --open "<path>" # also auto-open the browser
file-review --web --tunnel "<path>" # expose via localtunnel for remote access
file-review --web --tunnel --subdomain myname "<path>"
file-review --web --port 8080 "<path>" # custom port (default 3456)
--open and --tunnel require --web. --subdomain requires --tunnel.quit in web_server.rs). Feed that into Process Comments below.GET /api/asset (image extensions only). Backlinks work through POST /api/find-backlinks. Opening non-document local files, reveal in Finder and "Edit Config" are native-only.Install caveat: web mode needs the web-feature build. A plain bun run install:app binary, and the Homebrew build, are native-only and reject --web with Error: Web mode requires the 'web' feature. Build the web binary from source:
cd ai-toolbox/file-review && bun run install:web
Persistent settings live in ~/.file-reviewer.json (AppConfig in src-tauri/src/config.rs, AppConfig in src/config.ts):
| Key | Type | Meaning |
|-----|------|---------|
| theme | string | "dark" / "light" |
| vim_mode | bool | Vim keybindings in the editor and the preview |
| font_size | number | Editor font size (default 14) |
| markdown_raw | bool | Default to source view instead of the rendered preview |
| save_on_quit | bool | When true, edits and markers persist on quit without an explicit Cmd+S |
| window | object | { "width", "height" } |
| layout | object | Rails and reading width (optional, see below) |
layout fields (each invalid field falls back to its own default):
| Field | Type | Default | Meaning |
|-------|------|---------|---------|
| left_open | bool | true | Outline rail open |
| left_width | number | 240 | Outline rail width, clamped to 180..440 |
| right_open | bool | true | Comments rail open |
| right_width | number | 340 | Comments rail width, clamped to 260..560 |
| reading_width | string | "narrow" | "narrow" (80ch column) or "full" |
| properties_open | bool | false | Frontmatter "Properties" card expanded in the preview |
The app saves layout when you resize or toggle a rail, the reading width, or the Properties card. file-review --help prints the config path and current contents. The in-app Cmd+/ modal shows the current settings with Edit Config and Reload buttons.
---
The file-review tool embeds comments as HTML markers:
Inline comments:
<!-- review-start(ID) -->highlighted text<!-- review-end(ID): reviewer feedback -->
Line comments:
<!-- review-line-start(ID) -->
content spanning
multiple lines
<!-- review-line-end(ID): reviewer feedback -->
ID is an 8-character alphanumeric identifier.
// Inline - captures: [full, id, highlighted, feedback]
/<!--\s*review-start\(([a-zA-Z0-9-]+)\)\s*-->([\s\S]*?)<!--\s*review-end\(\1\):\s*([\s\S]*?)\s*-->/g
// Line - captures: [full, id, highlighted, feedback]
/<!--\s*review-line-start\(([a-zA-Z0-9-]+)\)\s*-->\n?([\s\S]*?)\n?<!--\s*review-line-end\(\1\):\s*([\s\S]*?)\s*-->/g
Step 1: Determine source and parse
The close-output (stdout returned when the GUI closes) is the source of truth for which files were reviewed and what the comments are. Consume that output directly; re-read a file from disk only if needed: when the run used --silent, when stdout was truncated, or when you need the exact on-disk spans to strip markers (apply the Extraction Patterns to the file content in that case).
=== Review Comments (N) === block → process that one file (the default path).## <path> headers → parse each section into { path, comments }.Present a per-file summary:
Found 5 review comments across 2 files:
thoughts/taras/plans/…plan.md (3):
1. [inline] "implement caching" → "Consider using Redis"
2. [line] "function fetchData()…" → "Add error handling"
3. …
thoughts/taras/research/…md (2):
…
For a single file, collapse to the flat Found N review comments in <file>: form.
Step 2: Process each comment, grouped by file
Work one file at a time. For each comment, show context and use AskUserQuestion:
| Question | Options |
|----------|---------|
| "Comment N of M in <file>: <feedback summary>" | 1. Apply edit, 2. Acknowledge (remove markers only), 3. Skip |
Step 3: Strip markers (on the on-disk file)
Edit each touched file directly, matching the captured full marker:
<!-- review-start(ID) -->text<!-- review-end(ID): feedback --> with text.Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.