ワンクリックで
compound-docs
Capture solved problems as categorized documentation with YAML frontmatter for fast lookup
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Capture solved problems as categorized documentation with YAML frontmatter for fast lookup
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Amend a published CLI from one of two input sources: (1) dogfood mode mines the active Claude Code session transcript for friction (missing flags, hand- rolled API payloads, silent-null returns); (2) direct-input mode accepts user-supplied asks (rename a command, add commands or feeds, fix a named bug, optionally sniff the source site for new endpoints). Confirms scope with the user, plans + executes the fix autonomously, scrubs PII, and opens a PR against mvanhorn/printing-press-library. Two user-in-loop checkpoints: scope after capture, PR draft before open. Trigger phrases: "amend the CLI", "submit a patch", "fix what I just dogfooded", "open a PR for this CLI", "patch this CLI", "add features to my CLI", "rename this command", "add these feeds to <cli>", "sniff for new APIs in <cli>", "amend with these ideas", "use printing-press-amend", "run printing-press-amend".
Bring a published CLI from the public library into the internal library so it's identical to a freshly-generated copy — module path reverted, manuscripts placed alongside, ready for /printing-press-polish or /printing-press-emboss. Use when the public library has a CLI you don't have locally, or to recover from a broken/lost internal copy. Trigger phrases: "import the CLI", "bring it into my library", "fetch from public library", "I don't have it locally yet".
Internal sub-skill: agentic review of a printed CLI's sampled command output for plausibility issues that rule-based checks can't encode (substring-match relevance, format bugs, silent source drops, ranking failures). Invoked via the Skill tool by main printing-press SKILL.md (Phase 4.85) and printing-press-polish SKILL.md during the diagnostic loop. Not for direct user invocation — its actionable wrappers are /printing-press and /printing-press-polish.
Polish a generated CLI to pass verification and become publish-ready. Runs diagnostics (dogfood, verify, scorecard, go vet, gosec), automatically fixes all issues (verify failures, static-analysis findings, dead code, descriptions, README, MCP tool quality), reports the before/after delta, and offers to publish. Use after any /printing-press run, or on any CLI in $PRESS_LIBRARY/. Trigger phrases: "polish", "improve the CLI", "fix verify", "make it publish-ready", "clean up the CLI", "get this ready to ship".
Regenerate an existing printed CLI from scratch under the current Printing Press, with prior research, prior novel features, and prior patches (post-publish hand-fixes) carried into the writing pipeline as reconciliation context rather than dropped on the floor. Pulls the CLI from the public library if it isn't local, recommends reuse-vs-redo of prior research based on age, then hands off to /printing-press with the right context. Use when a machine upgrade would benefit a published CLI more than manual polish. Trigger phrases: "reprint <api>", "regenerate <api>", "redo the <api> CLI", "rebuild <api> from scratch", "this CLI would benefit from a reprint".
Score a generated CLI against the Steinberger bar, compare two CLIs side-by-side
| name | compound-docs |
| user-invocable | true |
| description | Capture solved problems as categorized documentation with YAML frontmatter for fast lookup |
| allowed-tools | ["Read","Write","Bash","Grep"] |
| model | inherit |
| preconditions | ["Problem has been solved (not in-progress)","Solution has been verified working"] |
Purpose: Automatically document solved problems to build searchable institutional knowledge with category-based organization (enum-validated problem types).
Organization: Single-file architecture -- each problem documented as one markdown file in its symptom category directory (e.g., docs/solutions/performance-issues/n-plus-one-briefs.md). Files use YAML frontmatter for metadata and searchability.
Execute the 7-step capture process. Read capture-process.md for full step details.
| Step | What | Blocking? |
|---|---|---|
| 1 | Detect confirmation ("that worked", "it's fixed", /doc-fix) | Yes |
| 2 | Gather context (module, symptom, root cause, solution) | Yes -- ask user if missing |
| 3 | Check existing docs for similar issues | No |
| 4 | Generate filename ([symptom]-[module]-[YYYYMMDD].md) | Yes |
| 5 | Validate YAML schema against yaml-schema.md enums | BLOCKING GATE |
| 6 | Create documentation file in category directory | Yes |
| 7 | Cross-reference and critical pattern detection | No |
After capture: Present decision menu from decision-menu.md and WAIT for user response.
Read the relevant reference file for each phase. All files are in ~/.claude/skills/compound-docs/references/.
| File | Content |
|---|---|
capture-process.md | Full 7-step process with examples, blocking requirements, and bash commands |
yaml-schema.md | YAML frontmatter schema -- required fields, enum values, validation rules, category mapping |
decision-menu.md | Post-capture decision menu (7 options), integration points, skill handoff rules |
quality-guidelines.md | Success criteria, error handling, execution guidelines, quality checklist, example scenario |
MUST do:
mkdir -p)MUST NOT do:
/compound-docs or /doc-fix command