用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill documentation-workflow命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | documentation-workflow |
| description | > Use when this capability is needed. |
This skill's body is injected into the user's T0 session and executed there.
The retired documentation-master-agent is NOT dispatched (deprecated
Phase 3.5, 2026-04-25); its orchestration lives here.
Why skill-at-T0: Platform constraint documented in Phases 3.1–3.4 —
dispatched subagents don't receive the Agent tool
(Anthropic docs).
Input: $ARGUMENTS — optional scope. Default is all.
/documentation-workflow [scope] [--dry-run] [--skip-staleness]
| Argument / Flag | Default | Meaning |
|---|---|---|
scope | all | all | adr | api | structure | staleness |
--dry-run | off | Produce proposed changes without writing them |
--skip-staleness | off | Skip the staleness audit (STEP 5) |
scope to one of the 5 values..claude/config/workflow-contracts.yaml (hub repo: config/workflow-contracts.yaml; if absent, use the inline steps below — this skill is self-contained) → workflows.documentation.
master_agent should be null; sub_orchestrators empty.run_id. {ISO-8601}_{7-char git sha} with : → -..workflows/documentation/state.json (schema
2.0.0) with step_status for all steps, dispatches_used: 0,
scope: "<arg>", dry_run: <bool>.openapi.yaml/openapi.json signals API lane.Before any dispatch, verify the runtime closure this workflow needs is present AND dispatchable. Pattern provisioning copies by tier and may not resolve a skill's full closure, so a project can have this skill without its workers — a silent inline run or a mid-dispatch crash is the failure this gate prevents.
Skill()): adr, api-docs-generator, doc-structure-enforcer, doc-staleness. Check each exists at
.claude/skills/<name>/SKILL.md (only those on the path you will actually run).Agent()): docs-manager-agent (when bulk drafting runs). File presence
(.claude/agents/<name>.md) is necessary but NOT sufficient — the agent registry
is pinned at session start (pattern-structure.md → "registry session-pinning"),
so probe runtime dispatchability for any agent on the path about to run.WORKER_REGISTRY_NOT_LOADED, list what is missing, and emit: "run
/update-practices to provision the closure, then RESTART the session (agent
registry is pinned at session start), then re-run." Write the BLOCKED verdict to
this workflow's report artifact and STOP.Only when the required closure is present and dispatchable, continue.
Skill("/adr", args="create-from-recent-commits")
Scans recent commits for ADR-worthy changes (new dependencies, schema
migrations, API contract changes, architectural patterns). Writes to
docs/adr/. Honors --dry-run. If no candidates: mark SKIPPED.
Capture paths into state.artifacts.adrs.
Skill("/api-docs-generator", args="<project root>")
Extracts API annotations, regenerates OpenAPI spec + Redoc/Swagger UI
under docs/api/. Validates against API tests.
Skill("/doc-structure-enforcer", args="audit")
Verifies docs follow Diataxis or project layout (docs/.structure.yml).
audit reports without moves; enforce mode does git mv. If
--dry-run, always audit. Otherwise, prompt user before transitioning
to enforce. Never auto-mv without confirmation.
If audit reveals substantial missing content:
Agent(subagent_type="docs-manager-agent", prompt="""
## Workflow: documentation
## Run ID: <run_id>
## Audit report: <structure audit path>
## Scope: <list of missing doc targets>
## Dry-run: <bool>
Generate draft content for each missing target following the project's
doc structure. Return a contract listing produced drafts for user review.
""")
Increment dispatches_used by 1. Drafts go to docs-drafts/; nothing
is promoted to docs/ without user review.
Skill("/doc-staleness", args="audit --since-last-sync")
Diffs code vs docs, flags references to removed/renamed symbols, broken
links, stale examples. Severity-ranked report to
test-results/doc-staleness.json.
Gate: if critical_stale_count > 0, transition to step_status.STALENESS = warned (NOT blocked — docs lag is common; surface but don't halt).
test-results/documentation-verdict.json:
{
"schema_version": "2.0.0",
"run_id": "<run_id>",
"result": "COMPLETED | WARNED",
"scope": "<...>",
"steps_executed": [...],
"steps_skipped": [...],
"artifacts": { "adrs": [...], "api_docs": [...],
"structure_moves": [...], "staleness_report": "<path>" },
"staleness": { "critical": <n> <n> <n>
<n>
WORKER_REGISTRY_NOT_LOADED if a required sub-skill or worker agent (on the path being run) is missing/undispatchable. Provisioning does not always resolve dependency closures, so this skill can be present without its workers.Agent at runtime
and the optional STEP 4 docs-manager-agent dispatch silently inlines.documentation-master-agent (deprecated 2026-04-25,
2-cycle window).doc-structure-enforcer in enforce mode without
user confirmation — file moves are disruptive.--dry-run across all steps — no file writes..workflows/documentation/state.json + events.jsonl
after every step transition.Source: abhayla/claude-best-practices — distributed by TomeVault.
============================================================
Documentation Workflow: <COMPLETED | WARNED>
Run ID: <run_id>
Scope: <scope>
ADRs created: <N>
API docs regenerated: <YES | SKIPPED>
Structure moves: <N>
Staleness: <critical>/<moderate>/<minor>
============================================================
/fix-github-issue for each;
structure moves → suggest /code-review-workflow to surface the
rename diff in a PR.