annotate — команда для Claude Code: разметка PDF
Команда annotate для Claude Code помогает размечать PDF вместе с агентом. Агент предлагает аннотации по разделам, показывает результат и ждёт правок.
Apache-2.0 ★ 36 654 обновлён 2026-10-24
/plugin marketplace add anthropics/knowledge-work-plugins
/plugin install pdf-viewer@knowledge-work-pluginsЧто делает annotate
Команда помогает добавлять аннотации в PDF по разделам. Агент читает текст страниц, предлагает разметку и после подтверждения применяет её; при явных инструкциях он сразу выполняет задачу. Можно выделять, подчёркивать и зачёркивать текст, добавлять заметки и видимые комментарии, рисовать фигуры и ставить метки.
После каждой группы изменений агент показывает скриншот страницы и принимает правки, прежде чем перейти дальше. Для работы нужны инструменты display_pdf и interact; команды разметки включают add_annotations, а результат проверяется через get_screenshot. Готовый PDF можно скачать из панели просмотрщика.
Какие задачи решает
- выделить нужный фрагмент в PDF
- добавить комментарий рядом с пунктом договора
- поставить метку DRAFT на страницу
- проверить разметку по скриншоту и внести правки
Примеры запросов агенту
- Разметь PDF
contract.pdf: выдели пункт о расторжении и добавь рядом заметку о сроке в 30 дней. - Поставь штамп
CONFIDENTIALна каждой страницеreport.pdf. - Подчеркни третий абзац в
brief.pdfи покажи скриншот результата.
Как установить annotate
1Через маркетплейс плагинов
/plugin marketplace add anthropics/knowledge-work-plugins/plugin install pdf-viewer@knowledge-work-plugins2Вручную: положить файлы
.claude/commands/annotate.mdВызов — /annotate. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/annotate.mdВызов — /prompts:annotate. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/annotate.prompt.mdВручную: положить файлы
.gemini/commands/annotate.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы об annotate
Как установить annotate в Claude Code?
Команда находится в .claude/commands/annotate.md.
Что делает annotate?
Команда размечает PDF по инструкциям: выделяет текст, добавляет заметки, фигуры и штампы. После каждого набора изменений агент показывает скриншот для проверки.
Что нужно для работы annotate?
Нужны инструменты display_pdf и interact, чтобы открыть документ, прочитать страницы и применить аннотации.
Исходный текст
annotate.md · Apache-2.0
---
description: Collaboratively annotate a PDF — propose markup, review together, iterate
argument-hint: "[path-or-url]"
---
> If you need to check which tools are connected, see [CONNECTORS.md](../CONNECTORS.md).
# Annotate PDF
Walk through a document with the user, proposing and applying
annotations section by section. The user reviews each batch in the
live viewer before you continue.
## Workflow (AI-driven default)
1. **Open** — `display_pdf` (or use existing `viewUUID` if already open)
2. **Understand** — `interact` → `get_text` on the first page range
(≤20 pages) to read content
3. **Propose** — describe to the user what you plan to annotate:
> "I'll highlight the termination clause on page 2, add a note
> 'Review 30-day window' next to it, and stamp page 1 as DRAFT.
> Sound good?"
4. **Apply** — on approval, `interact` with batched commands:
`add_annotations` + `get_screenshot` of the affected page
5. **Review** — show the screenshot, ask for edits
6. **Iterate** — move to the next section, repeat
7. **Finish** — remind the user they can download the annotated PDF
from the viewer toolbar
## Manual mode
If the user gives explicit instructions ("highlight paragraph 3",
"stamp CONFIDENTIAL on every page"), skip the proposal step and
execute directly. Still confirm with a screenshot.
## Annotation types available
- **Text markup:** `highlight_text` (auto-finds text — preferred),
highlight, underline, strikethrough
- **Comments:** note (sticky), freetext (visible on page)
- **Shapes:** rectangle, circle, line
- **Stamps:** any label — APPROVED, DRAFT, CONFIDENTIAL, REVIEWED
- **Images:** signatures, initials, logos (see `/pdf-viewer:sign`)
## Tips
- Prefer `highlight_text` over manual `rects` for text — it finds
coordinates automatically
- Batch related annotations in one `interact` call
- End each batch with `get_screenshot` so the user sees the result
- Keep proposals small (3–5 annotations per batch) so review is easy
© Anthropic · Apache-2.0 · anthropics/knowledge-work-plugins