This directory contains a complete example docs-cms system demonstrating best practices for documentation management and agent collaboration.
- docs-project.yaml: Project configuration file
- adr-001-adopt-docs-cms.md: Decision to adopt docs-cms framework
- adr-002-agent-collaboration-workflow.md: Agent collaboration guidelines
- rfc-001-automated-doc-generation.md: Proposal for auto-generating API docs
- memo-001-docs-cms-launch.md: Launch status and metrics
- adr-template.md: Template for Architecture Decision Records
- rfc-template.md: Template for Request for Comments
- memo-template.md: Template for project memos
# Copy entire structure
cp -r examples/docs-cms your-project/docs-cms
# Update project configuration
sed -i 's/example-project/your-project/' your-project/docs-cms/docs-project.yaml
# Update frontmatter in all documents
find your-project/docs-cms -name "*.md" -exec sed -i 's/example-project/your-project/' {} +All example documents use placeholder UUIDs. Generate new ones:
# macOS/Linux
for file in your-project/docs-cms/{adr,rfcs,memos}/*.md; do
new_uuid=$(uuidgen | tr '[:upper:]' '[:lower:]')
sed -i "s/doc_uuid: .*/doc_uuid: $new_uuid/" "$file"
done- Update document content to match your project
- Keep the structure and frontmatter format
- Maintain required fields (id, title, status, etc.)
cd your-project
docuchango validatePurpose: Shows how to document the decision to adopt docs-cms
Key Elements:
- Clear context explaining the problem
- Specific decision with rationale
- Positive and negative consequences
- Alternatives considered with reasons
- Implementation checklist
Learn From:
- How to structure decision documents
- How to present alternatives objectively
- How to link related documents
Purpose: Demonstrates agent-specific documentation
Key Elements:
- Workflow steps for agent interactions
- Code examples and commands
- Clear do's and don'ts
- Status transition rules
- Response formatting guidelines
Learn From:
- How to write documentation for AI agents
- How to provide concrete examples
- How to establish clear policies
Purpose: Example of a substantial proposal
Key Elements:
- Problem motivation
- Detailed solution with phases
- Implementation plan with timelines
- Risks and mitigations
- Open questions for discussion
- Success metrics
Learn From:
- How to structure large proposals
- How to break work into phases
- How to identify and address risks
- How to define success criteria
Purpose: Shows information sharing format
Key Elements:
- Executive summary
- Baseline metrics
- Lessons learned
- Next steps with timelines
- Success criteria
- Related documents
Learn From:
- How to document project milestones
- How to capture lessons learned
- How to set measurable goals
✅ Use for:
- Technology choices (databases, frameworks, languages)
- Architecture patterns (microservices, event-driven, etc.)
- Infrastructure decisions (cloud provider, CI/CD, etc.)
- Coding standards and conventions
❌ Don't use for:
- Proposals (use RFC)
- Status updates (use Memo)
- Temporary information
✅ Use for:
- New features or major changes
- Cross-cutting concerns
- Process improvements
- Design proposals needing feedback
❌ Don't use for:
- Final decisions (use ADR)
- Information sharing (use Memo)
- Small changes
✅ Use for:
- Meeting notes
- Investigation results
- Status updates
- Technical explanations
- Postmortems
❌ Don't use for:
- Decisions (use ADR)
- Proposals (use RFC)
- Create template in
templates/ - Define schema in docuchango (if needed)
- Add directory (e.g.,
postmortems/) - Update
docs-project.yaml - Document usage guidelines
Smaller Teams:
- Merge ADRs and RFCs (simpler workflow)
- Use lightweight templates
- Focus on key decisions
Larger Organizations:
- Add approval workflows
- Include additional metadata (teams, stakeholders)
- Create specialized templates by domain
Different Industries:
- Healthcare: Add compliance fields
- Finance: Add regulatory references
- Open Source: Add community discussion links
# New ADR
---
id: adr-042
title: Updated Database Strategy
status: Accepted
supersedes: adr-015
---
# Old ADR
---
id: adr-015
title: Original Database Strategy
status: Superseded
superseded_by: adr-042
---- Create RFC with
status: Draft - Gather feedback, update RFC
- Change status to
In Review - After approval:
status: Approved - Create ADR documenting final decision
- Update RFC:
status: Implemented, link to ADR
---
id: adr-043
title: Redis Caching Strategy
status: Proposed # Agent uses Proposed
---
[AI-Generated Draft - Requires Human Review]
# ADR-043: Redis Caching Strategy
...All example documents pass docuchango validation:
$ cd examples
$ docuchango validate
Scanning docs-cms/...
✓ Found 4 documents
✓ All frontmatter valid
✓ All internal links resolve
✓ All code blocks properly formatted
✓ No validation errors
Summary: 4/4 documents passed validation (100%)- Bootstrap Guide:
../docs/BOOTSTRAP_GUIDE.md- Setup instructions - Agent Guide:
../docs/AGENT_GUIDE.md- Agent collaboration guidelines - Schema Reference:
../docuchango/schemas.py- Field requirements - Main README:
../README.md- docuchango documentation
Have a great example document or pattern? Contributions welcome!
- Ensure it passes
docuchango validate - Follow existing structure and conventions
- Include clear explanation of what it demonstrates
- Update this README with your example
- Setup Issues: See
BOOTSTRAP_GUIDE.md - Agent Usage: See
AGENT_GUIDE.md - Validation Errors: Run
docuchango validate --verbose - Schema Questions: Check
docuchango/schemas.py