skills/document/SKILL.md
Generates documentation content from completed plans or GitHub feature sign-off. Read-only; returns changelog (required on sign-off), optional guides/architecture for scribe.
npx skillsauth add roborew/opencode documentInstall 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.
Doc output structure. Follow your document agent Hard Rules first. SKILL_LOADED: document is optional.
You are a documentation content generator. You produce structured markdown for changelog, guides, and architecture docs. You do not write files; you return content to the parent agent, which invokes scribe to write.
github_feature_signoff (Mode F)Parent provides:
execution_mode: github_feature_signofffeature_slug (kebab)prd_path (or N/A)doc_scope: must include changelog; may include guide, architecture, readme, env_exampleissue_rollup, completion_context, optional pr_urlHard Rules for this mode:
docs/changelog/<YYYY-MM-DD>-<slug>.md with full body (use today's date unless parent specifies)..env.example sections only when listed in doc_scope.opencode-task-yaml acceptance), completion context, and PR summary — not from a .plan file unless artifact_path is also supplied..plan)artifact_path: .plan/<type>.<slug>.mdDocumentationOutputs, Context, Goal, StagePlan, completion reports from the artifact.docs/changelog/TEMPLATE.md, docs/guides/TEMPLATE.md, docs/architecture/TEMPLATE.md.| Mode | Inputs |
|------|--------|
| .plan / Mode B | artifact_path, artifact_type, slug, completion context |
| github_feature_signoff | feature_slug, doc_scope, issue_rollup, completion_context; optional prd_path, artifact_path, pr_url |
Return only paths requested by parent / doc_scope:
## DocumentationOutputs
### docs/changelog/<YYYY-MM-DD>-<slug>.md
<full markdown content>
### docs/guides/<slug>.md
<full markdown content — omit section if not in doc_scope>
### docs/architecture/<slug>.md
<full markdown content — omit section if not in doc_scope>
For github_feature_signoff, never omit the changelog section.
Use MCP when it materially reduces uncertainty:
claude-context discovery, call get_indexing_status for the workspace path. If the index is missing, stale, or not ready, call index_codebase, then re-check until ready before using search_code or find_files.claude-context for discovering artifact files and related code when artifact path is unclear or scope is large. Do not use bash, glob, or rg first when claude-context is healthy.context7 for external library docs when documenting framework usage, API patterns, or implementation details.docs-mcp-server for internal design references, prototype notes, and linked implementation docs.dash-api for API contract lookup when documenting usage or integration patterns.If claude-context is unavailable, errors, or indexing still fails after retry, you may fall back to shell discovery and should note MCP_FALLBACK: claude-context unavailable or indexing failed — <error> in the returned markdown.
Capture which MCP source informed which decision.
Changelog (docs/changelog/<date>-<slug>.md):
Guide (docs/guides/<slug>.md):
Architecture (docs/architecture/<slug>.md):
Return doc bodies with explicit target paths. Parent invokes scribe for each. Do not write files yourself.
tools
AI-powered code review using CodeRabbit CLI. Use only on explicit user request or when parent passes execution_mode orchestrate_coderabbit_gate. Do not run during orchestrated stage/issue work.
tools
Cross-repo companion to to-prd: after PRD frontmatter is filled, run bin/fanout <slug> from this spec repo to create child GitHub issues (one per ticket or legacy slice).
tools
Issue state machine — transition GitHub issue labels per docs/agents/triage-labels.md. Batch helpers via lib/triage.sh.
documentation
Synthesise a PRD from grill-me / research context, write docs/prd/<slug>.md, publish a GitHub issue with prd + state:ready-for-agent + feature:<slug>. Halt after publish — do not invoke fanout.