plannotator
它能做什么
这是 Plannotator 的参考文档。Plannotator 是一个本地浏览器工具,用于审查计划、差异和文档。适合 AI 智能体,以及与 Plannotator 一起使用它们的人。
适用场景
- ✓当你的智能体需要为某次审查选择正确的 Plannotator 命令时。
- ✓当你想了解计划审查、代码审查或文件标注是如何工作的时。
- ✓当你询问引导式审查的分享方式,或 Plannotator 收件箱的相关问题时。
技能链接
https://github.com/backnotprop/plannotator/blob/main/apps/skills/core/plannotator/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在智能体开始编码之前,我应该用哪条 Plannotator 命令来审查计划?”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能会说明可用的审查选项和参数。如果有 Plannotator 工具可用,它会让 AI 使用该工具;否则使用命令行。每个会话都会在浏览器中等待,直到你提交反馈、批准或关闭标签页。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Plannotator CLI Reference
Plannotator is a local, browser-based review layer for agent workflows: it opens plans, diffs, and documents in an annotation UI, the human marks them up, and the structured feedback comes back to you on stdout. It installs as a single plannotator binary plus per-host hooks, so plan review fires automatically when you exit plan mode; every other surface is launched explicitly, with the plannotator tool when you have one and with the CLI otherwise. A session runs on a random localhost port (fixed port 19432 in remote mode) and blocks until the reviewer submits feedback, approves, or closes the tab.
This skill is the knowledge layer. The plannotator-review, plannotator-annotate, and plannotator-last skills are thin launchers for the three most common actions; use this reference when you need to pick the right command or flags yourself.
If you have a plannotator tool, always use it
Check your tools before you run any command below. If you have a tool named plannotator (it can be listed with a prefix, for example mcp__plannotator__plannotator in Claude Code, and can need to be loaded through tool search before you call it), always call it instead of running plannotator annotate, plannotator review, or plannotator last. This includes approvals: call it with { "action": "annotate", "target": "<file>", "gate": true }, not --gate --json.
The tool returns at once. End your turn after you call it and wait: the reviewer's decision arrives later as a message. Do not also run the CLI, poll, or reopen the session.
Use the CLI only when you have no such tool, or for what the tool does not do: archive, guide, sessions, review flags other than --base and --gate, annotate flags other than --gate and --markdown, and strict gates that a script checks by exit code (--require-approval, --result-file). If your tool offers tailscale, pass tailscale: true instead of --tailscale.
Choose the command
| The user wants | Run (CLI, when you have no plannotator tool) |
|---|---|
| Review a plan you produced | Nothing. Plan review opens automatically on plan exit via hooks. Never run bare plannotator yourself. |
| Review and explicitly approve a plan/spec saved as a file | plannotator annotate <file> --gate --json |
| Review current code changes | plannotator review |
| Review a GitHub PR, GitLab MR or Bitbucket Cloud PR | plannotator review <PR_URL> |
| Annotate a markdown, text, config, or HTML file | plannotator annotate <file> |
| Annotate a web page | plannotator annotate <https-url> |
| Annotate a running local app (dev server) | plannotator annotate <http://localhost:PORT/> |
| Pick a file to annotate from a folder | plannotator annotate <folder/> |
| Annotate your latest assistant message | plannotator last |
| Browse past plan decisions | plannotator archive |
| Export or share a Guided Review | plannotator guide export / plannotator guide share |
| Reopen or list live sessions | plannotator sessions |
| Ask the person something they can answer later, without blocking | The plannotator_inbox tool when you have it, else the Inbox's MCP server (plannotator inbox mcp) |
Session model
Every review or annotate command starts a local web server, opens the browser, and blocks until the human decides. That can take minutes, or more than an hour for a large pull request. Launch it with a long (or no) command timeout, or in the background, then read stdout when the process exits. In Claude Code, a background command is stopped after 30 minutes unless you pass run_in_background with a longer timeout (up to 7200000 ms). Do not kill the process to "finish" a review; a session that ends without a decision reads as no feedback. If a session was stopped by a time limit, run the same command again: annotation drafts are restored.
Stdout is the interface, but its contract is command-specific. For annotate and its last-message variants:
- Plaintext (default): empty output on close,
The user approved.on approve (an approval with a note prints an "Approved with Notes" message instead; treat the notes as guidance, not a change request), otherwise the feedback text. Address returned feedback in the same conversation. --json: one JSON record withdecision(approved,dismissed, orannotated) and optional rawfeedback. An approval may still carry notes infeedback; treat those as guidance, not a change requ
常见问题
Plannotator 在我自己的电脑上运行吗?
是的。它是一个本地的浏览器审查工具,在你的电脑上运行。
退出计划模式时会发生什么?
计划审查会通过 Plannotator 附带的钩子自动打开。
有没有更快的方式开始审查?
有。审查、标注和上一条回复这几个技能,是针对最常见操作的简短启动器。
详情
作者的原始描述
Reference for using Plannotator (its `plannotator` tool when you have one, otherwise the CLI): plan review, code review, annotating files, URLs, folders, and running local apps, annotating the last assistant message, browsing archived plan decisions, exporting or sharing Guided Reviews, and the Plannotator Inbox (messages and questions the person answers later, without blocking you). Invoke when asked to use Plannotator for anything not covered by a more specific plannotator-* skill, and before you leave the person a decision, a question or finished work in the Plannotator Inbox (if another ag
repo: backnotprop/plannotator
热度
- GitHub 星标
- 9.8k
- 排名
- #12201
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
update-deps
9.8k帮你的智能体在更新前检查 npm 或 Bun 软件包的供应链风险。检查维护者、发布时间和来源证明,并暂缓有风险的更新。
plannotator-annotate
9.8k帮你的智能体在 Plannotator 的批注界面中打开文件、文件夹或网页,然后根据你标注的笔记采取行动。
plannotator-review
9.8k帮你的智能体打开你的修改内容、文件夹或拉取请求的浏览器代码审查界面,然后修复你留下的反馈。
plannotator-annotate
9.8k帮你的智能体把文档发送到 Plannotator 进行标注,计划和规格可以选择批准。之后智能体会根据反馈采取行动。