docs-ssot
БесплатноБез исполняемых скриптовНе проверенSet up docs-ssot SSOT documentation structure — migrate existing docs, build, and validate
от hiromaily★ 129 звёзд на GitHubОб этом скилле
docs-ssot: Documentation SSOT Setup
This skill migrates existing Markdown documentation into a modular Single Source of Truth (SSOT) structure managed by docs-ssot, then builds and validates the output.
When to use this skill
- Setting up
docs-ssotin a new or existing repository (follow the main Workflow) - Adding a new generated output file (e.g.,
SETUP.md) to an existing SSOT structure (follow Adding a new output file) - Regenerating documentation after editing source templates (run
docs-ssot build)
Quick Command Reference
| Command | Purpose |
|---|---|
docs-ssot migrate <files> |
Decompose existing docs into SSOT section structure |
docs-ssot migrate --dry-run <files> |
Preview migration without writing files |
docs-ssot validate |
Dry-run: check all includes resolve (no files written) |
docs-ssot build |
Generate all output files from templates |
docs-ssot check |
Detect near-duplicate sections (SSOT violations) |
docs-ssot index |
Show include relationships and orphan detection |
docs-ssot include <template> |
Expand and print a template to stdout (debugging) |
Workflow
Step 1 — Check prerequisites
Verify required tools are installed:
docs-ssot version # docs-ssot itself
jq --version # required by the generated-file protection hook
yq --version # required by the generated-file protection hook and lefthook check
Install docs-ssot if missing:
# Homebrew (macOS/Linux)
brew tap hiromaily/tap && brew install docs-ssot
# or Go install
go install github.com/hiromaily/docs-ssot/cmd/docs-ssot@latest
Step 2 — Check if already migrated
Before running migration, check whether this repository already has a docs-ssot structure:
ls docsgen.yaml 2>/dev/null
ls template/sections/ 2>/dev/null
If both exist, the repository is already (partially or fully) migrated. Do not run docs-ssot migrate on generated output files. Instead, skip to Step 5 to review the structure, or Step 8 to validate the current state.
If docsgen.yaml does not exist, or template/sections/ is empty or missing, proceed with Steps 3–6.
Step 3 — Identify existing documentation files
List Markdown files in the repository root:
ls *.md
Common candidates: README.md, CLAUDE.md, AGENTS.md, SETUP.md, ARCHITECTURE.md
Do not migrate files that are already outputs in docsgen.yaml — migrating a build artifact instead of a source file will produce incorrect results.
Step 4 — Preview and run the migration
First, preview without writing files:
docs-ssot migrate --dry-run README.md CLAUDE.md
Review the output to understand how sections will be categorised and which are detected as duplicates. Then run the actual migration:
docs-ssot migrate README.md CLAUDE.md AGENTS.md
This will:
- Split each file by H2 headings into section files under
template/sections/<category>/ - Create template files under
template/pages/with@includedirectives - Create or update
docsgen.yamlwith build targets - Verify round-trip: build and compare output against originals
docsgen.yaml reference (the file created/updated by migration):
index:
output: template/INDEX.md # optional: generates include-relationship index
targets:
- input: template/pages/README.tpl.md
output: README.md
- input: template/pages/CLAUDE.tpl.md
output: CLAUDE.md
Add or remove targets to control which files are generated.
Step 5 — Review generated structure
docs-ssot index
Inspect:
template/sections/— modular section files (edit these, not the generated outputs)template/pages/*.tpl.md— template files defining document structuredocsgen.yaml— build targets mapping templates to output files
Step 6 — Audit for duplicate content
Run this before creating any new section file. The docs-ssot migrate command deduplicates across the files it processes, but any additional content you create manually must be checked:
docs-ssot check
Also inspect existing sections:
ls template/sections/
Rule: If content for a new section already exists in a section used by another template (e.g., installation-guide.md already covers prerequisites and setup), do not create a duplicate. Instead, have the new template include the existing section:
<!-- template/pages/SETUP.tpl.md -->
<!-- @include: ../sections/development/installation-guide.md -->
<!-- @include: ../sections/development/setup-release.md -->
Only create a new section file when the content is genuinely new and not covered anywhere else.
Step 7 — Heading level convention
All section files under template/sections/ must start at heading level 2 (##).
## My Section Title ← ✅ correct
# My Section Title ← ❌ wrong
Why: Section files are embedde
Установить docs-ssot в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBash(docs-ssot *)Bash(make docs*)Bash(git diff *)FAQ
Что делает скилл docs-ssot?
Set up docs-ssot SSOT documentation structure — migrate existing docs, build, and validate
Как установить скилл docs-ssot?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл docs-ssot запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic