Docs.Add Content
БесплатноБез исполняемых скриптовНе проверенAdd content to the docs without redundancy and report skipped parts
от gpsaggese★ 158 звёзд на GitHubОб этом скилле
Goal
- The user passes, in this order:
- The content
<CONTENT>to add: text, or a path to a file holding the text - Optionally, the target
<TARGET>: a file in<DOCS_DIR>(existing or new) or a header inside it
- The content
- Add the new information in
<CONTENT>to the right files in<DOCS_DIR> - Never duplicate what the docs already say
- Report every chunk that was redundant, did not fit, or conflicts with the docs
Plan Only (--only_plan)
- With
--only_plan, follow.claude/skills/skill.rules.mdsection "Create Only a Plan with--only_plan" - Write the plan to
docs.add_content.<INPUT_REF>.md, then stop without executing the skill
Conventions
- Follow the rules in
.claude/skills/markdown.rules.md.claude/skills/text.rules.md<DOCS_DIR>/documentation_meta/all.writing_docs.how_to_guide.md, in particular### Convention for file names,### Format of each doc, and### Do not add redundancy<DOCS_DIR>/documentation_meta/all.diataxis.explanation.mdto pick the doc type (.tutorial.md,.how_to_guide.md,.reference.md,.explanation.md)
- Match the style, tone, and header structure of the file being edited
Workflow
Resolve the docs dir
- Go to the root of the Git work tree
> cd $(git rev-parse --show-toplevel) - Set
<DOCS_DIR>- If
helpers_rootis a submodule of this repo, usehelpers_root/docs- Check with
> git config --file .gitmodules --get-regexp 'submodule\..*\.path' | grep -w helpers_root
- Check with
- Otherwise use
docs(when the repo ishelpersitself)
- If
- Check that
<DOCS_DIR>exists, otherwise STOP and tell the user
Read the content
- If
<CONTENT>is a path, read the file. Never modify or delete it - Split
<CONTENT>into chunks, each stating one idea, fact, rule, or procedure- Keep each example with the chunk it illustrates
- Drop filler and meta comments (e.g., "add this to the docs")
Survey the docs
- Read
<DOCS_DIR>/README.mdfor the directory structure and file naming - List the doc files
> find <DOCS_DIR> -name "*.md" | sort - For each chunk, search its key terms, synonyms, tool names, and commands
> rg -i "<TERM>" <DOCS_DIR> --glob "*.md" - Read in full every matching file, and every file whose name or headers match the
topic
- Do not decide on redundancy from the file name or a grep hit alone
Classify each chunk
- Assign exactly one class to each chunk
- Redundant: a doc already says the same thing, even if the words differ
- Report the file, the header, and the line of the existing statement
- Add nothing
- Partially redundant: a doc covers part of the chunk
- Add only the missing part, in the file that holds the covered part
- Report which part was already there
- Conflicts: the chunk contradicts an existing statement
- Do not edit and do not pick a winner
- Report both statements with file and header, and ask the user which is right
- Does not fit: no file in
<DOCS_DIR>is the right home- Typical reasons:
- Code-level detail, which belongs in a docstring or comment
- A rule for AI agents, which belongs in
.claude/skills/*.rules.md(see.claude/skills/rules.add/SKILL.md) - A blog idea, a research idea, or a TODO
- A different doc type than every candidate (e.g., a step-by-step procedure
with only
.explanation.mdfiles on the topic) - A summary of an external page (the docs link to it, not summarize it)
- Too vague or ephemeral (dates, versions, status)
- Report the reason and the better home, if known
- For a coherent new topic with no home, propose a file name
<DOCS_DIR>/<COMPONENT>/<AUDIENCE>.<TOPIC>.<DIATAXIS_TAG>.md. Create it only if<TARGET>names it
- Typical reasons:
- New and fits: no doc covers it and a file is the right home. Add it below
- Redundant: a doc already says the same thing, even if the words differ
Choose the placement
- If
<TARGET>was passed, use it, but still apply the classes above. If it is a poor home, report the chunk as Does not fit - Otherwise rank the candidate files by:
- Topic match with the file name and headers
- Diataxis type of the chunk matching the file tag
- Directory (see
<DOCS_DIR>/README.md)
- If one file is a clear winner, use it
- If two or more files are equally good, or the right header is unclear, STOP and ask the user instead of guessing
- Pick the header
- Put the chunk under the existing header it extends
- Add a new header only when none covers it, at the sibling level and in the file's order logic (e.g., alphabetical or by workflow stage)
Write the content
- Rewrite each chunk in the style of the target file
- Use bullets, imperative mood, active voice, one idea per bullet
- Reuse the file's terms for the same concept
- Capitalize the headings
- Wrap lines at the file's width
- Add a Good / Bad example only if the file does that for similar rule
Установить Docs.Add Content в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Docs.Add Content?
Add content to the docs without redundancy and report skipped parts
Как установить скилл Docs.Add Content?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Docs.Add Content запускает скрипты?
Нет, скилл состоит только из инструкций (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