Agent skill

Docs Ssot

by hiromaily in hiromaily/go-crypto-wallet

Set up docs-ssot SSOT documentation structure — migrate existing docs, build, and validate

MITAuto-check passed

Install Docs Ssot

skills CLI
$ npx skills add hiromaily/go-crypto-wallet --skill docs-ssot -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hiromaily/go-crypto-wallet docs-ssot --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hiromaily/go-crypto-wallet.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/docs-ssot .claude/skills/docs-ssot && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
docs-ssot
GitHub stars
128
Token cost
~2.7k tokens
SKILL.md length
859 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

Set up docs-ssot SSOT documentation structure — migrate existing docs, build, and validate

  • Works in 8 steps: Check prerequisites → Check if already migrated → Identify existing documentation files → …
  • SKILL.md covers When to use this skill, Quick Command Reference, Workflow and Include directive syntax, plus 2 more sections
  • Calls git, jq and yq; reaches github.com

What it does

Docs Ssot is an agent skill from hiromaily/go-crypto-wallet. Set up docs-ssot SSOT documentation structure — migrate existing docs, build, and validate

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Cryptocurrency wallet for trading for Bitcoin, Bitcoin cash, Ethereum, ERC20, XRP Leger (Ripple). The licence is MIT.

Example prompts

  • “/docs-ssot”

Requirements

  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash(docs-ssot *), Bash(make docs*), Bash(git diff *)

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Check prerequisites
  2. Check if already migrated
  3. Identify existing documentation files
  4. Preview and run the migration
  5. Review generated structure
  6. Audit for duplicate content
  7. Heading level convention
  8. Validate and build

What it can do on your machine

Read from SKILL.md and the folder at commit 798ab10. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash(docs-ssot *)
    • Bash(make docs*)
    • Bash(git diff *)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • jq
    • yq
    • brew
    • go
    • make

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Docs Ssot loads about 2.7k tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 859 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~25
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hiromaily/go-crypto-wallet at commit 798ab10, republished under its MIT licence (© hiromaily). 859 words, ~2,746 tokens.

Download SKILL.mdSave it as .claude/skills/docs-ssot/SKILL.md (or your agent's skills folder).
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 *)

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-ssot in 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

CommandPurpose
docs-ssot migrate <files>Decompose existing docs into SSOT section structure
docs-ssot migrate --dry-run <files>Preview migration without writing files
docs-ssot validateDry-run: check all includes resolve (no files written)
docs-ssot buildGenerate all output files from templates
docs-ssot checkDetect near-duplicate sections (SSOT violations)
docs-ssot indexShow 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:

sh
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:

sh
# 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:

sh
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:

sh
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:

sh
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:

sh
docs-ssot migrate README.md CLAUDE.md AGENTS.md

This will:

  1. Split each file by H2 headings into section files under template/sections/<category>/
  2. Create template files under template/pages/ with @include directives
  3. Create or update docsgen.yaml with build targets
  4. Verify round-trip: build and compare output against originals

docsgen.yaml reference (the file created/updated by migration):

yaml
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
sh
docs-ssot index

Inspect:

  • template/sections/ — modular section files (edit these, not the generated outputs)
  • template/pages/*.tpl.md — template files defining document structure
  • docsgen.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:

sh
docs-ssot check

Also inspect existing sections:

sh
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:

markdown
<!-- 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 (##).

markdown
## My Section Title       ← ✅ correct

# My Section Title        ← ❌ wrong

Why: Section files are embedded into larger documents where # is reserved for the document title. Starting at ## means most includes need no level parameter.

Exception — when a section file is used as a standalone output (e.g., .claude/rules/*.md), use level=-1 in the template to shift ## → #:

markdown
<!-- @include: ../sections/ai/rules/docs.md level=-1 -->

Show full SKILL.md (331 more words)Show less
Step 8 — Validate and build

First validate (dry-run — checks includes without writing files):

sh
docs-ssot validate

If validation passes, build:

sh
docs-ssot build
# or, if a Makefile target exists:
make docs

Verify output is correct:

sh
git diff README.md CLAUDE.md

Never edit generated outputs (README.md, CLAUDE.md, or any docsgen.yaml output) directly — they are overwritten on every build.


Include directive syntax

Templates use include directives to compose sections:

markdown
<!-- @include: ../sections/project/overview.md -->
<!-- @include: ../sections/development/ -->
<!-- @include: ../sections/**/*.md level=+1 -->
ParameterEffect
level=+1## → ### (deepen by one)
level=-1### → ## (shallow by one)
level=0no change (same as omitting)

Paths are resolved relative to the file containing the directive. Includes are expanded recursively.


Adding a new output file

To add a new generated file (e.g., SETUP.md) to an existing SSOT structure:

  1. Audit existing sections (see Step 6) — do not duplicate content that already exists.
  2. Create the template page at template/pages/SETUP.tpl.md, including existing sections where applicable.
  3. Register in docsgen.yaml:
    yaml
    - input: template/pages/SETUP.tpl.md
      output: SETUP.md
  4. Validate and build (see Step 8):
    sh
    docs-ssot validate && docs-ssot build
    git diff SETUP.md

Optional enhancements

VitePress integration

If the repository has a VitePress site, detect it by checking for docs/.vitepress/:

sh
ls docs/.vitepress/ 2>/dev/null

If present, convert each docs/ page from standalone content into a thin @include wrapper so template/sections/ becomes the single source of truth for both the generated root-level files and the VitePress site.

Before (docs/guide/installation.md with standalone content):

markdown
# Installation
## Prerequisites
...full content here...

After (docs/guide/installation.md as a thin wrapper):

markdown
<!-- @include: ../../template/sections/development/installation-guide.md -->

The canonical content lives in template/sections/ and is referenced by any template that needs it.


Generated-file protection hook (Claude Code)

Prevent AI agents from directly editing generated files. The hook reads docsgen.yaml at runtime so the block list stays in sync automatically.

Create .claude/hooks/prevent-generated-edit.sh:

sh
#!/bin/sh
# Blocks Edit and Write tool use on auto-generated files.
# Generated files are defined as outputs in docsgen.yaml.
# Edit the source files in template/ instead, then run `make docs`.

# Requires: jq, yq
command -v jq >/dev/null 2>&1 || { echo "jq required but not found — hook inactive" >&2; exit 0; }
command -v yq >/dev/null 2>&1 || { echo "yq required but not found — hook inactive" >&2; exit 0; }

FILE=$(echo "$TOOL_INPUT" | jq -r '.file_path // empty')
if [ -z "$FILE" ]; then
  exit 0
fi

REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
REL_PATH="${FILE#"${REPO_ROOT}/"}"

CONFIG="docsgen.yaml"
if [ ! -f "$CONFIG" ]; then
  exit 0
fi

GENERATED=$(yq -r '.targets[].output' "$CONFIG" 2>/dev/null)
if [ -z "$GENERATED" ]; then
  exit 0
fi

if echo "$GENERATED" | grep -Fqx "$REL_PATH"; then
  echo "BLOCKED: '$REL_PATH' is auto-generated by docs-ssot. Edit the source in template/ instead, then run 'make docs'." >&2
  exit 2
fi

exit 0

Make it executable:

sh
chmod +x .claude/hooks/prevent-generated-edit.sh

Register in .claude/settings.json. If the file already exists, merge into the existing hooks.PreToolUse array rather than overwriting:

json
{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Edit",
        "hooks": [
          { "type": "command", "command": ".claude/hooks/prevent-generated-edit.sh" }
        ]
      },
      {
        "matcher": "Write",
        "hooks": [
          { "type": "command", "command": ".claude/hooks/prevent-generated-edit.sh" }
        ]
      }
    ]
  }
}

Pre-push docs-check (lefthook)

Add to lefthook.yml to fail a push when generated files are stale. Derive the file list from docsgen.yaml so it stays in sync automatically:

yaml
pre-push:
  commands:
    docs-check:
      glob: "{template/**/*,docsgen.yaml}"
      run: |
        docs-ssot build
        docs-ssot index
        if ! yq -r '(.targets[].output, .index.output) | select(. != null)' docsgen.yaml | xargs -I {} git diff --quiet {}; then
          echo "ERROR: Generated files are out of date. Run 'make docs' and commit the changes." >&2
          exit 1
        fi

Document the tooling in the README

Add a note so contributors know the documentation is managed by docs-ssot.

Find the section file for the README intro:

sh
head -5 template/pages/README.tpl.md  # the first @include is the intro section

Open that section file and append:

markdown
> **Documentation** is managed as a Single Source of Truth using [docs-ssot](https://github.com/hiromaily/docs-ssot).
> Files such as `README.md`, `CLAUDE.md`, and `ARCHITECTURE.md` are auto-generated —
> edit the source files under `template/` and run `make docs` to regenerate.

Then rebuild:

sh
docs-ssot build

© hiromaily, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/docs-ssot of hiromaily/go-crypto-wallet.

Open the folder on GitHubat commit 798ab10

Compare with similar skills

Docs Ssot next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Docs Ssot compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Docs Ssot this skillhiromaily/go-crypto-wallet128—~2.7kAutomated safety check: PassMIT
Reversible MigrationJuliusBrussee/caveman111k1 repos~196Automated safety check: PassApache-2.0
Database Migrationsaffaan-m/ECC276k4 repos~3kAutomated safety check: PassMIT
Database Migrationsaffaan-m/ECC276k1 repos~2.4kAutomated safety check: PassMIT
Safe Database Migration Patternsaffaan-m/ECC276k—~3.3kAutomated safety check: PassMIT
Migrate Createruvnet/ruflo74k—~583Automated safety check: NotesMIT

Similar skills

  • Reversible Migration

    JuliusBrussee/caveman

    Implement reversible compatibility-safe transitions. Use for schema, data, API, protocol, configuration, or dependency migrations requiring rollback and…

    111k GitHub starsUsed in 1 repo~196 tokens
    DevelopmentAuto-check passed
  • Safe, reversible database migration patterns: forward-only production changes, expand-contract zero-downtime renames, concurrent indexes, batched backfills, and per-tool workflows for PostgreSQL…

    276k GitHub starsUsed in 4 repos~3k tokens
    DatabasesAuto-check passed
  • Şema değişiklikleri, veri migration'ları, rollback'ler ve PostgreSQL, MySQL ve yaygın ORM'ler (Prisma, Drizzle, Django, TypeORM, golang-migrate) arasında sıfır kesinti deployment'ları için…

    276k GitHub starsUsed in 1 repo~2.4k tokens
    DatabasesAuto-check passed
  • Rules and examples for safe, reversible schema changes in production: zero-downtime column and index changes, large data backfills and ORM migration workflows.

    276k GitHub stars~3.3k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Migrate Create

    ruvnet/ruflo

    Create a new sequentially numbered database migration with up/down SQL files

    74k GitHub stars~583 tokensUpdated yesterday
    DatabasesAuto-check: notes
  • Migration

    kortix-ai/suna

    How to change the database schema in this repo. An agent skill from kortix-ai/suna.

    20k GitHub stars~1.2k tokensUpdated yesterday
    DatabasesAuto-check passed

More from hiromaily/go-crypto-wallet

All 17 skills in this repo
  • Bch Development

    hiromaily/go-crypto-wallet

    Bitcoin Cash (BCH) API implementation rules. An agent skill from hiromaily/go-crypto-wallet.

    128 GitHub stars~1.6k tokensUpdated 5 mo ago
    Auto-check passed
  • Btc Terminology

    hiromaily/go-crypto-wallet

    Critical Bitcoin terminology rules to prevent confusion between bech32m (encoding) and taproot (address type).

    128 GitHub stars~1.3k tokensUpdated 5 mo ago
    Auto-check passed
  • DB Migration

    hiromaily/go-crypto-wallet

    Database schema and migration workflow. An agent skill from hiromaily/go-crypto-wallet.

    128 GitHub stars~652 tokensUpdated 5 mo ago
    Auto-check passed
  • Devops

    hiromaily/go-crypto-wallet

    CI/CD and DevOps workflow. An agent skill from hiromaily/go-crypto-wallet.

    128 GitHub stars~435 tokensUpdated 5 mo ago
    Auto-check passed
  • Docs Update

    hiromaily/go-crypto-wallet

    Documentation update workflow. An agent skill from hiromaily/go-crypto-wallet.

    128 GitHub stars~1.3k tokensUpdated 5 mo ago
    Auto-check passed
  • Fix PR Review

    hiromaily/go-crypto-wallet

    Address PR review comments by selecting appropriate skills based on modified files.

    128 GitHub stars~919 tokensUpdated 5 mo ago
    Auto-check passed

Questions about Docs Ssot

What does Docs Ssot do?

Set up docs-ssot SSOT documentation structure — migrate existing docs, build, and validate. Docs Ssot is an agent skill from hiromaily/go-crypto-wallet.

How do I install Docs Ssot in Claude Code?

Run `npx skills add hiromaily/go-crypto-wallet --skill docs-ssot -a claude-code`. Or copy the skill folder (.claude/skills/docs-ssot in hiromaily/go-crypto-wallet) into .claude/skills/docs-ssot in your project. Claude Code loads it when a task matches its description.

How do I install Docs Ssot in Codex?

Run `npx skills add hiromaily/go-crypto-wallet --skill docs-ssot -a codex`. Or copy the skill folder (.claude/skills/docs-ssot in hiromaily/go-crypto-wallet) into .agents/skills/docs-ssot in your project. Codex loads it when a task matches its description.

Can I use Docs Ssot in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hiromaily/go-crypto-wallet --skill docs-ssot -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/docs-ssot, .gemini/skills/docs-ssot, .github/skills/docs-ssot and .opencode/skills/docs-ssot in your project.

What does Docs Ssot need to run?

Going by SKILL.md and its folder, Docs Ssot needs the command-line tools its instructions call (git, jq, yq, brew, go and make). Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(docs-ssot *), Bash(make docs*), Bash(git diff *).

Does Docs Ssot access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Docs Ssot safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Docs Ssot use?

Docs Ssot is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Docs Ssot use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Docs Ssot?

Skills that share tags, products or a category with Docs Ssot: Reversible Migration (JuliusBrussee/caveman, 111k stars), Database Migrations (affaan-m/ECC, 276k stars), Database Migrations (affaan-m/ECC, 276k stars) and Safe Database Migration Patterns (affaan-m/ECC, 276k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Docs Ssot?

hiromaily (a GitHub user) maintains it in hiromaily/go-crypto-wallet, which has 128 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on April 22, 2026.

Source: hiromaily/go-crypto-wallet on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.