Token导航 LogoToken导航TokenDH.com
研究检索可写文件github未标认证来源可访问许可证需确认审计提醒

file-review文件审查

Agent Skill

file-review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

564

周安装

24

GitHub Stars

20

下载量

198
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:file-review(文件审查)
来源仓库:https://github.com/desplega-ai/ai-toolbox
仓库路径:skills/file-review
安装命令:
npx skills add https://github.com/desplega-ai/ai-toolbox --skill file-review
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/desplega-ai/ai-toolbox --skill file-review

简介

file-review 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 建议确认权限范围和维护状态,注意是否触发联网或文件读写操作。
  • 可结合原始 README 进一步核验具体用法和功能边界。

SKILL.md

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.

Intent Router

Match the user's request to one of three workflows:

Intent signalsWorkflow
"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:

QuestionOptions
"What would you like to do with file-review?"1. Review a file (open GUI), 2. Process existing review comments, 3. Install file-review

Install

Quick Install (Homebrew)

brew tap desplega-ai/tap
brew install file-review

Verify: which file-review

Manual Install (from source)

Prerequisites: bun, Rust

git clone https://github.com/desplega-ai/ai-toolbox.git
cd ai-toolbox/file-review
bun install
bun run install:app

This symlinks to ~/.local/bin/file-review. Ensure that's in PATH.

Troubleshooting

  • Command not found: Ensure ~/.local/bin in PATH, restart terminal
  • Rust not found: Restart terminal after installing Rust
  • Build fails on macOS: xcode-select --install

Uninstall

cd ai-toolbox/file-review && bun run uninstall:app

Review a File

If no path provided

Check for recently created or modified files in the current session:

  • Plan files in thoughts/<username|shared>/plans/
  • Research documents in thoughts/<username|shared>/research/
  • Any markdown files created or updated during the conversation

Propose candidates to the user via AskUserQuestion.

If path provided

  1. Verify the file exists and is readable.
  2. Check if file-review is installed: which file-review If not found, jump to the Install section above.
  3. Launch the GUI: file-review "<absolute_path>" Other CLI flags: --silent (no comment output), --json (JSON output).

- Use the Bash tool with run_in_background: true and timeout: 600000 (max allowed — 10 minutes) - Do NOT append & to the command — the process must block until the user closes the GUI - Do NOT use --bg — let the Bash tool handle backgrounding - When the background task completes, Claude is automatically notified and receives stdout (review comments)

  1. Inform the user: I've opened file-review for <filename>. Shortcuts: Cmd+K (add comment), Cmd+S (save), Cmd+Q (quit), Cmd+/ (help) No need to ask the user to notify you when done — you will be automatically notified when the GUI closes.
  2. After the background task completes, the notification includes stdout with review comments: === Review Comments (N) === [abc123] Line 15 (inline): "highlighted code" -> Comment text here Present the output, then proceed to Process Comments below.

Keyboard Shortcuts

ShortcutAction
Cmd+KAdd comment to selection
Cmd+SSave file
Cmd+QQuit application
Cmd+/Show all shortcuts
Cmd+TToggle theme
Cmd+Shift+VToggle vim mode
Cmd+OOpen file

Process Comments

Comment Format

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.

Extraction Patterns

// 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

Workflow

Step 1: Read and Parse

Read the file, extract all comments, present a summary:

Found 3 review comments in <filename>:

1. [inline] "implement caching" -> "Consider using Redis"
2. [line] "function fetchData()..." -> "Add error handling"
3. [inline] "TODO" -> "Please complete this"

Step 2: Process Each Comment

For each comment, show context and use AskUserQuestion:

QuestionOptions
"Comment N of M: "1. Apply edit, 2. Acknowledge (remove markers only), 3. Skip
  • Apply edit: Propose changes, apply after confirmation, remove markers.
  • Acknowledge: Remove markers, preserve content. Recommend this for praise/FYI.
  • Skip: Leave as-is, move on.

Step 3: Remove Markers

  • Inline: replace <!-- review-start(ID) -->text<!-- review-end(ID): feedback --> with text
  • Line: replace the full block with just the content lines

Step 4: Final Summary

Processing complete!

- Applied edits: 2
- Acknowledged: 1
- Skipped: 0

File saved.

Special Cases

  • FYI/Praise ("LGTM", "Nice work"): Recommend Acknowledge as default
  • Empty feedback: Ask if user wants to remove markers
  • Unclear feedback: Use AskUserQuestion to clarify reviewer intent

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.66%
按下载量换算71

Claude

29.91%
按下载量换算59

Cursor

16.6%
按下载量换算33

Gemini CLI

9.42%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills