documentation-standards
SKILL.md
Documentation Standards Skill
Overview
Standards and requirements for project documentation. Defines required files, format standards, content guidelines, and automated documentation triggers.
Type
standards
When to Invoke
Trigger keywords: documentation, docs, readme, API reference, changelog, roadmap, schemas, data flow
Invoke when:
- Starting a new project
- Reviewing documentation completeness
- Before commits (doc check)
- After significant code changes
- Creating API documentation
Required ./docs/ Files
Every project should have:
| File | Purpose |
|---|---|
ROADMAP.md |
Overview, features, architecture, future plans |
API_REFERENCE.md |
Endpoints, schemas, examples |
DATA_FLOW.md |
Architecture, patterns, data interactions |
SCHEMAS.md |
Database schemas, models, validation rules |
BUG_REFERENCE.md |
Known issues, causes, solutions, prevention |
VERSION_LOG.md |
Release history, changes by version |
memory-archive/ |
Historical CLAUDE.md versions (via /prune) |
Format & Style Standards
Headers
- Use ##/### hierarchically
- Don't skip levels (## then ####)
Metadata
- Include "Last Updated" date
- Include version number where relevant
Line Length
- Maximum 100 characters per line
- Break long lines for readability
Code Blocks
- Always specify language
- Include runnable examples where possible
Examples
- Provide practical, copy-paste examples
- Show both input and expected output
Content Guidelines
- Write for future developers - Assume no context
- Explain "why" not just "what" - Rationale matters
- Cross-link related docs - Connect concepts
- Stay focused on topic - One doc, one purpose
- Version significant changes - Track evolution
Automated Documentation Triggers
| Event | Action |
|---|---|
| Bug fix | Update BUG_REFERENCE.md (description, cause, solution, prevention) |
| New feature | Update ROADMAP.md (description, architecture, APIs) |
| API change | Update API_REFERENCE.md (endpoints, breaking changes, migration) |
| Architecture change | Update DATA_FLOW.md |
| Database change | Update SCHEMAS.md |
| Before commit | Check all docs for accuracy |
/changes command |
Update VERSION_LOG.md |
/prune command |
Archive to memory-archive/ |
/changes Checklist
Before running /changes:
- APIs documented in API_REFERENCE
- Bugs documented in BUG_REFERENCE
- Features documented in ROADMAP
- VERSION_LOG entry prepared
- Cross-references valid
- Examples still work
Documentation Review Questions
When reviewing docs, ask:
- Could a new developer understand this?
- Are there undocumented APIs or features?
- Are examples current and working?
- Are there broken cross-references?
- Is the version history accurate?
Template: New Documentation File
# [Title]
*Last Updated: YYYY-MM-DD | Version: X.Y.Z*
## Overview
Brief description of what this document covers.
## [Main Sections]
Content organized hierarchically.
## Examples
Practical examples with code blocks.
## Related Documentation
- [[Link to related doc]]
- [[Another related doc]]
---
*Maintained by: [owner]*
Integration
Works with:
/changescommand - Updates VERSION_LOG/prunecommand - Archives to memory-archive/systematic-debuggingskill - BUG_REFERENCE updates
Weekly Installs
1
Repository
seqis/openclaw-…ude-codeGitHub Stars
28
First Seen
11 days ago
Security Audits
Installed on
amp1
cline1
openclaw1
opencode1
cursor1
kimi-cli1