CANARY User Documentation¶
Last Updated: 2025-10-17
Overview¶
This directory contains comprehensive user guides for the CANARY requirement tracking system. These guides cover installation, core concepts, command usage, and best practices for both AI agents and human developers.
Documentation Index¶
Getting Started¶
Getting Started Guide - Start here! - Installation and initialization - Core concepts (tokens, status progression, aspects) - Complete workflow walkthrough - Best practices and common pitfalls - Quick reference for all commands
Recommended for: New users, onboarding, tutorial walkthroughs
Core Workflow Commands¶
Query Commands Guide
- canary show - Display all tokens for a requirement
- canary files - List implementation files
- canary status - Check progress summary
- canary grep - Search tokens by pattern
Recommended for: Daily development, progress inspection, token discovery
Next Priority Guide
- canary next - Automated workflow assistant
- Priority determination algorithm
- Dependency-aware selection
- Prompt generation for AI agents
Recommended for: AI agents, automated workflows, sprint planning
Implement Command Guide
- canary implement - Get implementation guidance
- Fuzzy matching for requirement selection
- Constitution-aware prompts
- Test-first workflow integration
Recommended for: Feature implementation, AI agent guidance
Specification Modification Guide
- canary specify - Create new requirements
- canary specify update - Modify existing specs
- Interactive specification wizard
- Fuzzy matching for finding requirements
Recommended for: Requirement creation, specification updates
Maintenance and Tracking¶
Documentation Tracking Guide
- canary doc status - Check documentation currency
- canary doc update - Update documentation hashes
- canary doc report - Generate coverage reports
- DOC= and DOC_HASH= field usage
Recommended for: Documentation maintenance, ensuring docs stay current
Quick Command Reference¶
Essential Commands¶
# Initialize new project
canary init my-project
# Build token database
canary index
# Get next priority work
canary next --prompt
# Inspect requirement
canary show CBIN-105
canary files CBIN-105
canary status CBIN-105
# Search for features
canary grep Authentication
canary list --status STUB --aspect API
# Get implementation guidance
canary implement CBIN-105
canary implement fuzzy # Fuzzy match
# Create/modify specifications
canary specify
canary specify update CBIN-105
# Verify implementation
canary scan --verify GAP_ANALYSIS.md
# Check documentation
canary doc report --show-undocumented
canary doc status CBIN-105 FeatureName
Documentation by User Type¶
For AI Agents¶
Primary Guides: 1. Getting Started Guide - Core concepts 2. Next Priority Guide - Automated workflow 3. Implement Command Guide - Implementation guidance
Key Slash Commands:
- /canary.next - Get next priority requirement
- /canary.show - Display requirement tokens
- /canary.status - Check implementation progress
Workflow:
/canary.next → Implement with test-first → Update tokens → /canary.next
For Human Developers¶
Primary Guides: 1. Getting Started Guide - Installation and basics 2. Query Commands Guide - Daily inspection commands 3. Specification Modification Guide - Creating requirements
Daily Commands:
canary next # Morning routine: see what's next
canary show CBIN-XXX # Inspect requirement details
canary files CBIN-XXX # Find implementation files
canary status CBIN-XXX # Check progress
canary scan --verify # Verify claims before commit
For Project Maintainers¶
Primary Guides: 1. Documentation Tracking Guide - Maintaining docs 2. Next Priority Guide - Priority management 3. Getting Started Guide - Onboarding reference
Maintenance Commands:
canary doc report --show-undocumented # Find undocumented features
canary doc update --all # Update all doc hashes
canary scan --update-stale # Update stale UPDATED fields
canary list --status TESTED # Find completed work
Documentation Coverage¶
As of 2025-10-17:
- Total Requirements: 91
- Documented Requirements: 8
- Coverage: 8.8%
Documented Features: 1. CBIN-136 - Documentation Tracking (DOC_CURRENT) 2. CBIN-133 - Implement Command (DOC_CURRENT) 3. CBIN-132 - Next Priority Command (DOC_CURRENT) 4. CBIN-CLI-001 - Query Commands (DOC_CURRENT) 5. CBIN-134 - Specification Modification (DOC_CURRENT) 6. CBIN-131 - Fuzzy List Filtering (DOC_CURRENT) 7. CBIN-125 - List Command (DOC_CURRENT) 8. CBIN-124 - Index Command (DOC_CURRENT)
Documentation Types: - User Guides: 7 (including this index) - Architecture Docs: 1
Best Practices¶
Writing Documentation¶
- Start with overview - Explain purpose and benefits
- Provide quick start - Show simplest usage first
- Include examples - Real-world scenarios with output
- Cover edge cases - Troubleshooting section
- Reference related docs - Link to other guides
- Add CANARY tokens - Track documentation with DOC= field
Maintaining Documentation¶
- Update with code changes - Change docs when behavior changes
- Use documentation tracking - Add DOC= and DOC_HASH= fields
- Check currency regularly - Run
canary doc report - Update hashes after edits - Run
canary doc update - Review quarterly - Ensure examples still work
For AI Agents¶
- Reference constitution - Check
.canary/memory/constitution.mdfirst - Follow test-first - Write tests before implementation
- Update tokens immediately - Change STATUS as you progress
- Add documentation - Document all TESTED features
- Verify regularly - Run
/canary.scanto check token placement
Contributing¶
When adding new user guides:
- Follow the structure of existing guides (Overview → Usage → Examples → Troubleshooting)
- Add the guide to this README index
- Update the "Documentation Coverage" section
- Add DOC= field to relevant CANARY tokens
- Run
canary doc updateto calculate hash - Verify with
canary doc status
Related Documentation¶
- Project README - Project overview
- CLAUDE.md - AI agent context
- AGENT_CONTEXT.md - Complete agent reference
- Constitution - Project principles
- GAP_ANALYSIS.md - Requirement tracking
Questions or Issues?
- Check command help:
canary <command> --help - Review troubleshooting sections in individual guides
- Check GitHub Issues
Last verified: 2025-10-17 with canary v0.1.0