ワンクリックで
assistant-docs
Create or update README, API, architecture, changelog, or migration docs. Use for explicit documentation work.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create or update README, API, architecture, changelog, or migration docs. Use for explicit documentation work.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Clarify ambiguous or multi-intent requests. Use when the user asks to untangle, structure, or restate what they mean.
Manage durable memory safely. Use for explicit remember, recall, forget, or memory-health requests and stable corrections or preferences.
Review code and re-review fixes until clean. Use for explicit code review or the workflow Review phase; QA runs only when required.
Create or update V1 skills and contracts. Use for skill scaffolding, contract design, or contract-compliance validation.
Run proportional development phases. Use to plan, build, implement, fix, migrate, or refactor project artifacts.
Generate and rank options. Use light mode for quick improvement scans and deep mode for explicit brainstorming or broad exploration.
| name | assistant-docs |
| description | Create or update README, API, architecture, changelog, or migration docs. Use for explicit documentation work. |
| effort | medium |
| triggers | [{"pattern":"document|write docs|update readme|changelog|api docs|architecture doc|migration guide|generate docs|doc this|explain this code","priority":70,"min_words":3,"reminder":"This request matches assistant-docs. You MUST invoke the Skill tool with skill='assistant-docs' BEFORE writing documentation manually."}] |
| File | Purpose |
|---|---|
contracts/input.yaml | doc_type, scope, source_files[], format |
contracts/output.yaml | files_updated[], evidence_sources[], doc_coverage, review_items[], safety_notes[] |
doc_type and scope are required; source_files and format are inferred when absentfiles_updated entries include path, change_type (created/modified), and descriptionreview_items is non-empty when docs contain inferred, stale, conflicting, or audience-sensitive claims needing confirmationCovers the developer's documentation weakness by generating accurate, maintainable docs from code.
Core principle: docs should be generated from truth (code), not written from memory.
Produce documentation that is accurate, maintainable, and traceable to source evidence.
| Mode | File | When to use |
|---|---|---|
| API Docs | api-docs.md | Endpoints, services, public interfaces |
| Architecture | architecture.md | System overview, component relationships, data flow |
| README | readme-gen.md | Project README from codebase analysis |
| Changelog | changelog.md | Release notes from git history |
| Migration Guide | migration.md | Breaking changes, upgrade steps |
| Code Explainer | explainer.md | Deep explanation of specific code for learning |
Input arrives
│
├─ "document the API" / "API docs" → api-docs.md
├─ "architecture doc" / "system design" → architecture.md
├─ "update readme" / "write readme" → readme-gen.md
├─ "changelog" / "release notes" → changelog.md
├─ "migration guide" / "upgrade guide" → migration.md
├─ "explain this" / "doc this code" → explainer.md
└─ ambiguous → ask user
When the request is clear enough to choose a mode and scope from local context, proceed without ritual questions and record any assumptions in Review needs.
For all modes:
<!-- generated by assistant-docs --> comments only where the project accepts generated markersReturn:
When entering a project, check for stale docs:
>> Scanning documentation freshness...
README.md: last updated 45 days ago, 3 new features since
API.md: references endpoints that no longer exist
CHANGELOG.md: missing entries for last 2 releases
Report staleness to user. Offer to update.
/// Gets the user on GetUser() adds nothing