agentsclimarketplace

Docs scaffold

Skill KeiSeiLab/KeiSeiKit/skills/docs-scaffold

5-phase documentation scaffolder — auto-detect project type, audit existing docs, generate CLAUDE.md / DECISIONS.md / runbook / README / diagrams / CHANGELOG from KeiSeiKit templates. Each phase is a click-driven file in this skill directory.From its SKILL.md

Install
npx -y skills add KeiSeiLab/KeiSeiKit --skill docs-scaffold

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.7 KB, as published. Nobody here has run it

Docs-Scaffold — Project Documentation Pipeline (index)

When to use

  • Bootstrapping documentation for a new or existing repo (CLAUDE.md, DECISIONS.md, README, runbook, CHANGELOG).
  • Auditing gaps in existing docs and generating missing files from KeiSeiKit templates.
  • Auto-detecting project type and stack to produce the right starter documentation set.

See _blocks/pipeline-5phase-template.md for the 5-phase wizard contract and _blocks/rule-pure-click-contract.md for the AskUserQuestion rule. Skill-specific phase tables are inline below.

You are bootstrapping or auditing the documentation layer of a repository. The pipeline runs 5 phases in order; each phase owns one concern and has its own verify-criterion. Never skip a phase. Never re-order.

This SKILL.md is the INDEX. Each phase lives in its own file.


Pipeline overview (5 phases)

PhaseFilePurposeAskUserQuestion
1phase-1-intake.mdAuto-detect stack + audit existing docs + pick gaps1×
2phase-2-scaffold.mdRun kei-docs-scaffold.sh with selected type1×
3phase-3-decisions.mdWalk through first ADR (optional)1×
4phase-4-diagrams.mdSeed Mermaid architecture starter1×
5phase-5-changelog.mdInit CHANGELOG via kei-changelog1×

Minimum AskUserQuestion count: 5 (one per phase). Phases 3-5 each have an early "Skip this phase" option to keep a lightweight run short.


Variables the pipeline produces

NameSet inMeaning
DIRPhase 1aTarget repo directory (defaults to $PWD)
STACKPhase 1aDetected stack label (Rust / Flutter / Node / …)
EXISTINGPhase 1bSet of docs already present (CLAUDE.md, DECISIONS.md, …)
GAPSPhase 1cUser-selected subset to scaffold
SCAFFOLDEDPhase 2Files actually written (could be < GAPS if --force declined)
ADR_NPhase 3Number of ADR entries appended (0 if skipped)
DIAGRAMSPhase 4Mermaid files seeded (0 if skipped)
CHANGELOG_STATUSPhase 5initialized / updated / skipped

Final report (emit after Phase 5)

=== DOCS-SCAFFOLD REPORT ===
Target:      <DIR>
Stack:       <STACK>
Existing:    <list>
Scaffolded:  <list of new files>
ADRs added:  <ADR_N>
Diagrams:    <DIAGRAMS>
Changelog:   <CHANGELOG_STATUS>
Next action: <what user should run / review / commit>

Rules (apply throughout)

  • Pure-click contract. Every phase has exactly one AskUserQuestion call. Only Phase 1a takes free-text (the target directory path).
  • NO DOWNGRADE (RULE -1). If scaffolding fails, return 2-3 concrete alternative paths; never "can't be done".
  • NO HALLUCINATION (RULE 0.4). Every primitive / block / template referenced MUST exist on disk. Phase 1 greps before citing. Phase 2 verifies kei-docs-scaffold.sh is executable before invoking.
  • Plan Mode First (RULE 0.5). This skill IS the plan. No Edit/Write before the corresponding phase's confirm click.
  • Constructor Pattern (RULE ZERO). This SKILL.md stays < 200 LOC. Each phase file < 80 LOC.
  • Surgical Changes. Scaffold only creates files; never modifies code. Only touches: CLAUDE.md, DECISIONS.md, docs/runbook.md, README.md, docs/diagrams/*.mmd, CHANGELOG.md. Never edits source.
  • Idempotent. Re-runs skip existing files unless --force is passed in Phase 2. No duplicate ADR numbering in Phase 3.
  • Public-publish gate. README scaffold refuses to write if the repo is on the banned-public list (see ~/.claude/rules/security.md). User must type "yes, deploy" + "confirm publication" to override.

References

  • Phases: phase-1-intake.md · phase-2-scaffold.md · phase-3-decisions.md · phase-4-diagrams.md · phase-5-changelog.md
  • Primitive: _primitives/kei-docs-scaffold.sh — detector + generator (POSIX sh)
  • Primitive: _primitives/_rust/kei-changelog/ — Conventional Commit → CHANGELOG.md
  • Blocks: _blocks/docs-claude-md.md, _blocks/docs-decisions-adr.md, _blocks/docs-runbook.md, _blocks/docs-readme-template.md, _blocks/docs-architecture-diagrams.md
  • Rules: ~/.claude/rules/doc-conventions.md, ~/.claude/rules/security.md

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.