について
plannotatorスキルは、Plannotator CLI(ローカルブラウザベースの計画・コード・ファイル・URL注釈レビューツール)の汎用リファレンスを提供します。特定の`plannotator-*`スキルで対応しないタスク(レビューの起動、過去の決定事項の参照、フィードバックのエクスポートなど)を扱います。Plannotatorを一般的な注釈・レビューワークフローで呼び出す際のガイダンスが必要な場合は、このスキルをご利用ください。
クイックインストール
Claude Code
推奨npx skills add backnotprop/plannotator -a claude-code/plugin add https://github.com/backnotprop/plannotatorgit clone https://github.com/backnotprop/plannotator.git ~/.claude/skills/plannotatorこのコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします
ドキュメント
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 from the CLI. 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.
Choose the command
| The user wants | Run |
|---|---|
| Review a plan you produced | Nothing. Plan review opens automatically on plan exit via hooks. Never run bare plannotator yourself. |
| Review current code changes | plannotator review |
| Review a GitHub PR or GitLab MR | 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 |
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. Launch it with a long (or no) command timeout, or in the background, then read stdout when the process exits. Do not kill the process to "finish" a review; a session that ends without a decision reads as no feedback.
The stdout contract is the whole interface:
- Plaintext (default): empty output on close,
The user approved.on approve, otherwise the feedback text. Address returned feedback in the same conversation. --json: one JSON record,{"decision":"approved"|"dismissed"|"annotated","feedback":"..."}. An approval may still carry notes infeedback; treat those as guidance, not a change request.--hook: hook-native output for real PostToolUse/Stop hook contexts only. Approve/close emits nothing (hook passes); annotations emit{"decision":"block","reason":"..."}.--hookimplies the gate UI. Never use it for a normal interactive invocation.
plannotator <command> --help prints usage without launching anything. Bare plannotator is the hook entry point and expects hook JSON on stdin.
plannotator review
plannotator review [--git | --gitbutler] [--local | --no-local] [--tailscale] [PR_URL]
Reviews local VCS changes, or a pull request when a URL is given. Feedback and annotations come back on stdout when the reviewer submits; an approval comes back as an LGTM-style message.
- VCS is auto-detected (JJ, GitButler, Git, and P4 where supported).
--gitforces plain Git;--gitbutlerforces GitButler (requires thebutCLI 0.21.0+). Running from a non-VCS parent folder that contains nested repos produces a combined workspace diff. - The default diff is "everything a PR would show now": merge-base of the trunk vs the working tree plus untracked files. The reviewer can switch diff types in the UI; you do not control that from the CLI.
- PR review (
plannotator review https://github.com/owner/repo/pull/123, GitLab MR URLs too) needs an authenticatedghorglabCLI.--local(the default) builds a local checkout of the PR head in the background for full file access;--no-localskips it and reviews the platform diff only. --tailscalepublishes the loopback session over the user's tailnet viatailscale serve(HTTPS, never public) and prints the URL with a QR code. A publish failure exits nonzero instead of leaving the server hanging.
plannotator annotate
plannotator annotate <target> [--markdown] [--no-jina] [--app | --static] [--render-html] [--tailscale] [--gate] [--json] [--hook]
Opens one document, page, or app in the annotation UI and returns the human's annotations on stdout.
Targets:
- Markdown and text files:
.md,.mdx,.txt. - Plain-text config and data files, rendered as text:
.yaml,.yml,.json,.jsonc,.json5,.toml,.ini,.cfg,.conf,.properties,.csv,.tsv,.log,.xml,.env.example..envitself is deliberately refused (it commonly holds secrets, and annotate history copies file contents). Source-code files belong toplannotator review, not annotate. - HTML files (
.html,.htm): rendered as the raw page by default;--markdownconverts to markdown instead.--render-htmlis accepted for compatibility; raw rendering is already the default. - URLs (
https://...): fetched and converted via Jina Reader by default;--no-jinauses plain fetch plus Turndown instead. - Running local apps: a loopback
http://localhost:PORT/URL whose probe returns HTML opens in live-app mode (annotate the real running page).--appforces live mode and fails loudly when it cannot apply;--staticforces the classic conversion pipeline. Non-loopback URLs always use the conversion pipeline. - Folders:
plannotator annotate docs/opens a file browser over the folder's supported files.
Single files are capped at 2MB. Files are read from disk at stable project paths; keep the reviewed source where it lives.
Argument tolerance: extra words are fine (plannotator annotate look at notes.md please opens notes.md), but two resolvable targets is an error naming both, and an unrecognized dashed token disables the tolerance so flag typos fail loudly. When nothing resolves in a plain multi-word invocation, the CLI prints an agent-addressed handoff on stdout and exits 0: read it, work out the concrete target, and re-run with that exact path or URL.
Strict gates and exit codes
For a machine-checkable approval gate, add --gate --json plus one or both strict flags:
plannotator annotate report.md --gate --json --require-approval --result-file /tmp/decision.json
--require-approval: exit code reports the human outcome.--result-file <path>: the stdout decision JSON is also published atomically to<path>. The parent directory must exist and the file must not; results resolve from the invocation cwd.
Exit codes under a strict flag (grep convention):
| Exit | Meaning |
|---|---|
| 0 | Approved. The only success. |
| 1 | The reviewer did not approve (annotated or dismissed); the decision record was still published. |
| 2 | The gate itself failed: bad flag combination, startup failure (missing file, unreachable URL, oversized file), or the result file could not be published. Never treat as a reviewer outcome. |
| 128+n | Killed by signal n. |
Without strict flags, startup failures exit 1 and the exit code carries no decision; parse the output instead. Both strict flags require --gate --json and reject --hook.
plannotator annotate-last
plannotator annotate-last [--stdin] [--tailscale] [--gate] [--json] [--hook]
plannotator last
Opens the latest rendered assistant message from the current agent session in the annotation UI (last is an alias). The session log is discovered per host automatically; --stdin reads the content from stdin instead.
Do not print a commentary or status message immediately before running it: the command targets the latest rendered assistant message, so a preamble becomes the thing being annotated.
plannotator copilot-last
plannotator copilot-last [--gate] [--json] [--hook]
The annotate-last variant for live GitHub Copilot CLI sessions (reads Copilot's session-state events). Normally invoked by the Copilot plugin's /plannotator-last command; use it only inside a Copilot CLI session.
plannotator archive
plannotator archive
Opens a read-only browser over saved plan decisions (approved/denied badges) from the Plannotator data directory. No feedback comes back; the session ends when the user clicks Done.
plannotator guide
plannotator guide list
plannotator guide export --id <savedGuideId> [--out <file.html>]
plannotator guide export --guide <guide.json> --patch <diff.patch> [--out <file.html>]
plannotator guide export --snapshot <snapshot.json> [--out <file.html>]
plannotator guide share --id <savedGuideId> [--public] [--ttl <7d|24h|30m|3600>] [--json]
plannotator guide unshare <id> --token <deleteToken>
Guided Reviews are AI-generated walkthroughs of a diff, produced inside the code review UI. The CLI works with saved ones:
listshows guides Plannotator has persisted for the current repo.exportwrites one portable, self-contained HTML file (the viewer loads from guides.show).--guide+--patchexports a guide you authored yourself against a unified diff (--patch -reads stdin; validation is strict and names any file the guide references that the patch lacks).--out -writes to stdout.--viewer-urloverrides the pinned viewer base.shareuploads the guide and prints a link. Encrypted by default: the key lives only in the URL fragment and the host stores ciphertext.--publicstores it unencrypted so chat apps can unfurl a preview.--ttlsets an expiry; otherwise the link stays untilunshare. A saved guide records its link, and a secondshare --idrefuses rather than orphaning the first link's delete token.unshare <id> --token <t>removes a link using the delete token printed at share time.
plannotator sessions
plannotator sessions [--open [N]] [--clean]
Lists active Plannotator server sessions. --open reopens session N (default 1) in the browser, useful when a tab was closed mid-review. --clean drops stale entries.
Other subcommands
plannotator setup-goal <interview|facts> <bundle.json | -> [--json]
plannotator uninstall [--purge] [--yes] [--dry-run]
plannotator improve-context
setup-goalopens the interview or facts-acceptance UI for /goal workflows; it is driven by theplannotator-setup-goalskill and takes a bundle JSON (-reads stdin). Do not hand-build bundles.uninstallremoves Plannotator-installed components (--purgealso deletes local data;--yesis required without a TTY;--dry-runpreviews).improve-contextandinstall-runtimeare internal integration commands (hook plumbing and managed runtime install). Never runimprove-contextdirectly;plannotator install-runtime agent-terminalexists for reinstalling the optional annotate-terminal runtime and is normally run by the installer.- Additional host-internal subcommands (the
opencode-*andcopilot-planfamily) are invoked by their plugins, not by you.
Environment variables that change behavior
| Variable | Use |
|---|---|
PLANNOTATOR_REMOTE=1 | Force remote mode (fixed port 19432, wide bind) for SSH/devcontainer sessions; 0 forces local. Unset means SSH auto-detection. |
PLANNOTATOR_PORT | Fix the port instead of a random one. |
PLANNOTATOR_ORIGIN | Override agent-origin detection (claude-code, codex, opencode, pi, oh-my-pi, amp, droid, copilot-cli, gemini-cli, kiro-cli). Set it when launching Plannotator from a wrapper the detection cannot see through. |
PLANNOTATOR_AI=disabled | Disable Ask AI and agent-launched review surfaces in the UI. |
PLANNOTATOR_SHARE=disabled | Disable URL sharing, including guide share links. |
PLANNOTATOR_DATA_DIR | Move the data directory (default ~/.plannotator): plans, history, drafts, config. |
PLANNOTATOR_BROWSER | Open sessions in a specific browser. |
Posting annotations into a live session
A running plan-review session exposes a small HTTP API on its base URL for external annotations: POST /api/external-annotations adds inline annotations the reviewer sees immediately, with PATCH/DELETE for updates and an SSE stream at /api/external-annotations/stream. The UI's "copy agent instructions" action puts the full API contract for the current session, with the correct base URL, on the clipboard for handing to an agent or script. If the user pastes such instructions, follow them; do not invent endpoints beyond that contract.
Do not
- Do not parse or scrape the browser UI's HTML; the CLI's stdout (and the documented HTTP API above) is the whole contract.
- Do not use
--hookoutside a real hook context; use--jsonwhen you need structured output. - Do not run bare
plannotatorinteractively; it is the hook entry point. - Do not guess flags. Run
plannotator <command> --helpwhen unsure; unknown dashed tokens make annotate fail on purpose. - Do not point
plannotator annotateat source-code files or.envfiles; code goes throughplannotator review, and.envis refused. - Do not start a strict gate (
--require-approval) unless a human is actually there to review; the session blocks until they act.
GitHub リポジトリ
よくある質問
plannotator Skillとは何ですか?
plannotator はbacknotprop が作成した Claude Skillです。Skillは、Claudeが必要に応じて読み込む指示とリソースをまとめ、追加の指示なしで plannotator に関連するタスクを実行できるようにします。
plannotator をインストールするには?
このページのインストールコマンドを使用してください。plannotator をプラグインとして Claude Code に追加するか、リポジトリを skills ディレクトリにクローンし、Claudeを再起動してSkillを読み込みます。
plannotator はどのカテゴリに属しますか?
plannotator は メタ カテゴリに属します。
plannotator は無料で利用できますか?
はい。plannotator は AIMCP に掲載されており、無料でインストールできます。
関連スキル
このスキルは、Content Collections(Markdown/MDXファイルを型安全なデータコレクションに変換するTypeScriptファーストのツール)の本番環境でテストされた設定を提供します。Zodバリデーションによる型安全性を実現し、ブログ、ドキュメントサイト、コンテンツ重視のVite + Reactアプリケーション構築時にご利用ください。Viteプラグインの設定、MDXコンパイルから、デプロイ最適化、スキーマバリデーションまで、すべてを網羅しています。
このスキルは、開発者がPolymarket予測市場プラットフォームを活用したアプリケーション構築を可能にします。API統合による取引や市場データの取得に加え、WebSocketを介したリアルタイムデータストリーミングにより、ライブ取引や市場活動を監視できます。取引戦略の実装や、ライブ市場更新を処理するツールの作成にご利用ください。
このスキルは、開発者がコマンド、ファイル、LSP操作など25種類以上のイベントタイプにフックするOpenCodeプラグインを作成することを支援します。JavaScript/TypeScriptモジュール向けに、プラグイン構造、イベントAPI仕様、および実装パターンを提供します。カスタムイベント駆動ロジックでOpenCode AIアシスタントのライフサイクルをインターセプト、監視、または拡張する必要がある場合にご利用ください。
SGLangは、高性能なLLMサービングフレームワークであり、RadixAttentionプレフィックスキャッシュを活用したJSON、正規表現、エージェントワークフロー向けの高速で構造化された生成を特長とします。特にプレフィックスが繰り返されるタスクにおいて、大幅に高速な推論を実現し、複雑な構造化出力やマルチターン対話に最適です。制約付きデコードが必要な場合や、広範なプレフィックス共有を伴うアプリケーションを構築する場合は、vLLMなどの代替案ではなくSGLangを選択してください。
