بنقرة واحدة
docs-ssot
Set up docs-ssot SSOT documentation structure — migrate existing docs, build, and validate
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Set up docs-ssot SSOT documentation structure — migrate existing docs, build, and validate
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Orchestrate a full development pipeline using MCP-driven subagents. Accepts plain text or issue tracker URLs (GitHub, Jira, Linear, etc.) as input.
Configure per-repository default flags for /forge pipelines. Interactive setup that saves preferences to .specs/preferences.json.
| name | docs-ssot |
| description | Set up docs-ssot SSOT documentation structure — migrate existing docs, build, and validate |
| allowed-tools | ["Read","Write","Edit","Bash(docs-ssot *)","Bash(make docs*)","Bash(git diff *)"] |
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.
docs-ssot in a new or existing repositoryVerify docs-ssot is installed:
docs-ssot version
If not installed:
# 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
List Markdown files in the repository root:
ls *.md
Common candidates: README.md, CLAUDE.md, AGENTS.md, CONTRIBUTING.md
Run a dry-run to see what sections will be created without writing any files:
docs-ssot migrate --dry-run README.md CLAUDE.md
Review the output to understand:
template/sections/ and template/pages/Migrate the identified files:
docs-ssot migrate README.md CLAUDE.md AGENTS.md
This will:
template/sections/<category>/template/pages/ with @include directivesdocsgen.yaml with build targetsdocs-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 filesRegenerate all output files from the templates:
docs-ssot build
# or, if a Makefile target exists:
make docs
Check that all include directives resolve correctly:
docs-ssot validate
Scan for near-duplicate sections that should be merged into a single source:
docs-ssot check
If duplicates are found, consolidate the content into one section file under template/sections/ and update the templates to reference it with @include.
| 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 build | Generate all output files from templates |
docs-ssot validate | Check all include directives resolve |
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) |
After migration, the ongoing workflow is:
template/sections/docs-ssot build to regenerate outputsgit diff README.mdNever edit README.md, CLAUDE.md, or AGENTS.md directly — they are overwritten on every build.
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 output files are generated.
Templates use include directives to compose sections:
<!-- @include: sections/project/overview.md -->
<!-- @include: sections/development/ -->
<!-- @include: sections/**/*.md level=+1 -->
The optional level=+N parameter adjusts heading depth of the included content.