document
БесплатноБез исполняемых скриптовНе проверенRun /document `pr` | `changelog` | `release-note` | `postmortem` (or let it ask) to write the human facing prose about a change. Drafts from the real commits…
от jsmastery-pro★ 1 676 звёзд на GitHubОб этом скилле
Output style (plain words, no dashes, no hyphens)
Write everything this skill produces, files and messages alike, in plain simple language. Talk to the reader as you, warm and direct like a colleague, and present every step as a recommendation they may run or skip, never an order. Keep technical terms that carry real meaning; explain each in plain words. Never use a dash or a hyphen as punctuation: no em dash, no en dash, and no hyphenated compounds. Write read only, not read-only. Say it in simple words, or reword the sentence. Code, file paths, command flags, and values other skills match on keep their hyphens. Use short sentences, commas, or parentheses. Clear beats clever.
What this skill does
Your role: the technical writer who writes from the record, not from imagination, and for the reader, not the author. Every sentence traces to something that actually happened (a commit, a diff, an incident fact you were given), and every document is pitched at whoever has to act on it (audience column below). You never invent a timeline entry, a cause, or a change that isn't in the source.
Generates one of four document types from the real change history. The main thread writes the document itself; the only thing it may offload is reading, and only for a very large diff, to a read only scout subagent on the cheapest model (Claude Code: haiku):
| Type | Source | Audience | Output |
|---|---|---|---|
pr |
branch commits + diff vs base | reviewers | PR title + body (chat; optionally gh pr create/edit) |
changelog |
merged change | developers | entry appended to CHANGELOG.md (Keep a Changelog) |
release-note |
a tag/version range | end users | docs/releases/<version>.md (or chat) |
postmortem |
an incident (described by the engineer, plus any /debug record) | team | docs/postmortems/<date>-<slug>.md |
Acts. Asks at most one question (which type) when it can't be inferred, and (for postmortems) asks for the incident facts it can't read from git.
Artifact ownership
PR text, CHANGELOG.md, docs/releases/, docs/postmortems/ (owned by this skill). It writes nothing else.
Portability (any OS, any agent)
Written for any Agent Skills client on macOS, Linux, or Windows:
- Commands:
git(and optionallygh) are the only CLIs, and behave the same on every OS, run thegitlines as shown. Other shell snippets are POSIX reference, not literal scripts: don't assumefind,grep,sed,cat,test/[ ],command -v, ornode -eexist. Use your agent's own cross platform file tools (read, search/glob, write) for those, and apply branching logic yourself rather than via shellif/variables/redirects. - Bundled files: referenced by paths relative to this skill's folder. The main thread resolves this skill's folder to an absolute path (it already resolves these relative paths, so it knows the folder) and reads them itself at write time (Step 3):
agent-prompt.mdand the one template for the chosen type. - No interactive question support? The doc type pick uses an interactive picker where the agent has one; without it, ask the doc type question as plain text with the same options.
Execution
1. Determine the document type
- If passed as an argument (
pr,changelog,release-note,postmortem): use it. - Otherwise infer from context where obvious (on a feature branch ahead of base →
pr; just tagged a version →release-note), then confirm or ask with one question. Mark the inferred type(recommended); the picker adds a free text custom slot last automatically. Present these as your agent's interactive option picker (AskUserQuestionon Claude Code), or as plain text options with the same choices (custom option last) if it has none:
"What should I write?"
header: "Doc type"
options:
- label: "PR description" → pr # mark (recommended) if inferred
- label: "Changelog entry" → changelog
- label: "Release notes" → release-note
- label: "Postmortem" → postmortem
2. Gather the source material
Collect the lightweight history below, then read the diff and files yourself at write time (a scout subagent may do the reading for a very large diff).
Run these git/gh commands as shown; do the steps that are not commands with your agent's own file tools and your own branching logic.
# base branch: use `main` if it exists, otherwise `master`
git rev-parse --verify main
# current branch
git rev-parse --abbrev-ref HEAD
# pr / changelog: the branch change set (BASE = the base branch above)
git log --oneline "BASE..HEAD"
git diff --name-only "BASE...HEAD"
# release-note: needs tags. List them; if there are none, fall back gracefully (treat as NO_TAGS).
git tag --sort=-creatordate
- context for the "why": list the spec files under
docs/specs/(names starting with a digit) and take
Установить document в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadGrepGlobWriteEditAgentAskUserQuestionВложенные файлы
FAQ
Что делает скилл document?
Run /document `pr` | `changelog` | `release-note` | `postmortem` (or let it ask) to write the human facing prose about a change. Drafts from the real commits and diff, writing to the right place. Does not write code, tests, or specs.
Как установить скилл document?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл document запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic