AI Workflow
Master the four AI spaces and automation features that make BackMark the perfect tool for AI collaboration.
The Four AI Spaces
BackMark provides four dedicated spaces where your AI assistant can work autonomously while maintaining complete transparency and documentation.
1. ai_plan
Purpose: Implementation strategy and architecture
When: Before starting work
Content: Steps, files, dependencies, technical approach
2. ai_notes
Purpose: Real-time development log
When: During implementation
Content: Progress, decisions, issues, solutions (timestamped)
3. ai_documentation
Purpose: End-user and developer docs
When: As features are built
Content: API docs, usage examples, configuration
4. ai_review
Purpose: Self-review and quality checks
When: Before marking complete
Content: Completeness checklist, metrics, questions
📋 ai_plan - Implementation Planning
What Goes in ai_plan?
- ✅ Implementation steps - Ordered list of what to build
- ✅ Files to create/modify - Complete file list with purpose
- ✅ Dependencies - Libraries, tools, services needed
- ✅ Technical approach - Architecture decisions and patterns
- ✅ Potential challenges - Known risks and mitigation strategies
Command:
backmark task ai-plan <task-id> "Plan content in Markdown"
Example:
📝 ai_notes - Development Log
What Goes in ai_notes?
- ✅ Timestamped entries - When each step was completed
- ✅ Progress updates - What was accomplished
- ✅ Decisions made - Choices and reasoning
- ✅ Problems encountered - Issues that arose
- ✅ Solutions applied - How problems were resolved
- ✅ Deviations from plan - Changes to original approach
Command:
backmark task ai-note <task-id> "Note content with timestamp"
Example:
Pro Tip: Always include timestamps for better context recovery.
📚 ai_documentation - User Documentation
What Goes in ai_documentation?
- ✅ API documentation - Function signatures, parameters, returns
- ✅ Usage examples - Real code examples
- ✅ Configuration options - Available settings
- ✅ Integration guides - How to use with existing code
- ✅ Troubleshooting - Common issues and solutions
Command:
backmark task ai-doc <task-id> "Documentation in Markdown"
Example:
✅ ai_review - Self-Review
What Goes in ai_review?
- ✅ Completeness checklist - All requirements met
- ✅ Tests performed - What was tested and results
- ✅ Quality metrics - Coverage, performance, etc.
- ✅ Code quality - Standards followed, refactorings done
- ✅ Documentation status - What docs were created
- ✅ Known limitations - Current constraints
- ✅ Questions for human - Items needing validation
Command:
backmark task ai-review <task-id> "Review content"
Example:
✅ Acceptance Criteria - Definition of Done
What Are Acceptance Criteria?
Acceptance criteria define the specific conditions that must be met for a task to be considered complete. They serve as a contract between human and AI, ensuring clear expectations and measurable outcomes.
Why Use Acceptance Criteria?
- ✅ Clear expectations - Both human and AI know what "done" means
- ✅ Quality assurance - Prevent incomplete implementations
- ✅ Trackable progress - Check off items as you go
- ✅ Validation gate -
ai-review-readyverifies all criteria
Best Practices
- ✅ Be specific - "API returns 200 OK" not "API works"
- ✅ Make them testable - Each criterion should be verifiable
- ✅ Keep them atomic - One condition per criterion
- ✅ Add early - Define criteria before starting work
Managing Acceptance Criteria
Add Criteria:
Check Off Completed Criteria:
Note: Criteria are 0-indexed. Use backmark task view 42 to see all criteria with their indices.
Integration with AI Workflow
Acceptance criteria integrate seamlessly with the AI workflow:
1. In AI Plan
Reference criteria when planning implementation:
## Plan
Based on acceptance criteria:
- [0] Search under 100ms → Use caching
- [1] Fuzzy matching → Implement Fuse.js
- [2] Tests pass → Write unit tests first
2. In AI Review
Verify each criterion in your self-review:
## Acceptance Criteria Status
✅ [0] Search under 100ms - Avg 20ms
✅ [1] Fuzzy matching - Works with 2 typos
✅ [2] Tests pass - 8/8 passing
3. Validation Before Closing:
Important: If acceptance criteria are not all checked, ai-review-ready will warn you and the task cannot be closed (unless forced).
🤖 AI Automation Features
BackMark includes intelligent automation to streamline your workflow:
ai-breakdown
Automatically decompose complex tasks into logical subtasks with dependencies.
backmark task ai-breakdown 42
Analyzes task description and creates subtasks based on implementation patterns, technical keywords, and common workflows.
ai-estimate
Estimate task complexity, duration, and risks using heuristic analysis.
backmark task ai-estimate 42
Provides complexity rating (low/medium/high/critical), estimated duration, risk factors, and confidence level.
ai-review-ready
Validate task is ready to be marked complete with 8-point checklist.
backmark task ai-review-ready 42
Checks subtasks, dependencies, blockers, acceptance criteria, AI review, and more before allowing completion.
👀 Viewing AI Content
View All AI Sections at Once
backmark task view <task-id> --ai-all
This displays:
- Task metadata (title, status, priority, etc.)
- Task description
- AI Plan section
- AI Notes section
- AI Documentation section
- AI Review section
- Acceptance criteria
- Changelog
View Specific Sections
# Just the plan
backmark task view 42 --ai-plan
# Just the notes
backmark task view 42 --ai-notes
# Just the docs
backmark task view 42 --ai-doc
# Just the review
backmark task view 42 --ai-review
Edit Task Files Directly
Since tasks are Markdown files, you can edit them directly:
# Open in your editor
vim backlog/tasks/42.md
code backlog/tasks/42.md
nano backlog/tasks/42.md
Changes are reflected immediately!
🎯 Best Practices
For AI Planning:
- ✅ Be specific about implementation steps
- ✅ List all files that will be touched
- ✅ Identify dependencies early
- ✅ Consider edge cases and risks
- ✅ Update plan if approach changes
For AI Notes:
- ✅ Always include timestamps
- ✅ Document decisions with reasoning
- ✅ Log problems AND solutions
- ✅ Note deviations from plan
- ✅ Keep entries concise but complete
For AI Documentation:
- ✅ Write for future readers
- ✅ Include real code examples
- ✅ Document configuration options
- ✅ Add troubleshooting tips
- ✅ Keep it up-to-date
For AI Review:
- ✅ Be honest about limitations
- ✅ Report actual test results
- ✅ Ask questions when uncertain
- ✅ Suggest improvements
- ✅ Provide clear recommendation