skills/auto-docs/SKILL.md
Analyze scope and delegate to docs-writer and/or agentic-doc-writer. Triggers on "auto docs", "document everything", "generate docs".
npx skillsauth add mjmorales/claude-prove auto-docsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Orchestrate documentation generation by resolving scope, classifying subjects, and delegating to docs-writer and/or agentic-doc-writer. Follow references/interaction-patterns.md for all AskUserQuestion usage.
| Input | Resolution | |-------|------------| | No argument | Session context: files read, written, edited, or discussed | | Topic name (e.g., "auth", "cafi") | Grep/Glob for matching files/packages/modules | | Directory path | All exported/public code in that directory | | File path(s) | Those specific files |
If ambiguous, AskUserQuestion header "Scope": "This session" / "Directory" / "Specific files".
Skip: test files, lock files, build artifacts, self-documenting configs.
| Subject Type | Indicators | Human Docs | Agent Docs |
|-------------|------------|------------|------------|
| Agent (agents/.md) | tools:/model: frontmatter | No | Yes |
| Skill (skills//SKILL.md) | name: frontmatter, workflow | Yes | Yes |
| Command (commands/.md) | description: frontmatter | Yes | No |
| Script (scripts/.sh) | Executable, CLI flags | Yes | Only if agents invoke it |
| Package/Module (src/, lib/) | Exports, public API | Yes | Yes |
| Config (.json, .yaml) | Schema, options | Yes | Only if agents read it |
AskUserQuestion header "Doc Types":
If "Let me pick per subject": follow up with per-subject AskUserQuestion.
Audience (human docs): If not obvious, AskUserQuestion header "Audience": "Contributor" / "Consumer" / "Operator".
Output location: AskUserQuestion header "Output":
Order: agent docs first (define contracts), then human docs (can reference contracts). Within each type, core modules before consumers.
Document [SUBJECT_TYPE]: [SUBJECT_NAME]
Audience: [AUDIENCE]
Source: [FILE_PATH]
Output: [OUTPUT_PATH]
Context:
[MINIMAL RELEVANT CODE/CONFIG]
Document [SUBJECT_TYPE]: [SUBJECT_NAME]
Source: [FILE_PATH]
Output: [OUTPUT_PATH]
Context:
[MINIMAL RELEVANT CODE/CONFIG]
Present summary table of generated docs (subject, human/agent, path, file count).
AskUserQuestion header "Review": "Approve all" / "Revise" / "Discard".
Delegate to commit skill. Example: docs(auto-docs): generate human and agent docs for cafi
tools
Clean and compact prove's durable memory layers — team Lore, the Codex (scrum decisions), annotations, and contributor artifacts — keeping the tribal knowledge that grows team accuracy and folding away the rot. Triggers on "janitor", "clean the lore", "compact the lore", "compact the codex", "memory cleanup", "clean up team memory", "prune stale decisions", "tidy tribal knowledge", "lore cleanup". You are the driver: the CLI emits inventories and executes writes; the `memory-janitor` agent judges each entry; a per-team batch gate approves; nothing is ever deleted — consolidation, promotion, and supersession only.
testing
Anchor session context into prove primitives before compaction and rehydrate from them after. Built-in compaction summarizes by recency and drops the claude-prove state an agent needs to reorient; this skill externalizes volatile context into durable anchors (scrum tasks, decisions, run-state, a compact-anchors pointer file) pre-compact, then runs a deterministic reorientation sequence post-compact. Use before a manual /compact, when context is about to auto-compact, or immediately after a compaction. Triggers on "smart compact", "prepare for compaction", "anchor before compact", "context is getting long", "rehydrate", "reorient after compact".
tools
Apply model-driven CONTENT reshaping to stored run artifacts that sit behind the current schema, on explicit operator invocation only. Triggers on "migrate runs", "migrate run artifacts", "run content migration", "reshape run artifacts", "bring runs to current schema". You are the driver: the `run-state migrate-runs` CLI mechanically detects which artifacts are behind and emits a plan naming each one plus its migration-instruction file; you read the instructions and reshape the prose/findings, gated by the operator. The deterministic `schema migrate` handles structural column moves; this skill covers only the content reshaping beyond them. Never run as a background or resident loop — only when the operator asks.
tools
Synthesize the 7-section risk-forward Review Brief from a run's reasoning log. Triggers on "reasoning brief", "review brief", "synthesize the brief", "generate the brief", "brief the run", "brief for review", "story brief". You are the driver: the `acb brief` CLI renders a mechanical preservation-safe backbone and proves preservation; you synthesize the narrative prose (summary + changes), single-pass or multipass over episode chunks, then gate it through Stage-1 (mechanical, blocking) and Stage-2 (prose judge, advisory).