Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Docs.Add Content

БесплатноБез исполняемых скриптовНе проверен

Add content to the docs without redundancy and report skipped parts

gpsaggeseот gpsaggese★ 158 звёзд на GitHub

Об этом скилле

Goal

  • The user passes, in this order:
    1. The content <CONTENT> to add: text, or a path to a file holding the text
    2. Optionally, the target <TARGET>: a file in <DOCS_DIR> (existing or new) or a header inside it
  • 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.md section "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.md to 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_root is a submodule of this repo, use helpers_root/docs
      • Check with
        > git config --file .gitmodules --get-regexp 'submodule\..*\.path' | grep -w helpers_root
        
    • Otherwise use docs (when the repo is helpers itself)
  • 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.md for 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.md files 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
    • New and fits: no doc covers it and a file is the right home. Add it below

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
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить Docs.Add Content с