Maintain and synchronize Unified Impact Diagrams following Diagram Driven Development (DDD) methodology. Create, update, and manage diagrams that connect user value to technical implementation.
A comprehensive skill for maintaining Unified Impact Diagrams that connect user value to technical implementation following Diagram Driven Development (DDD) methodology.
This skill helps you maintain the ai/diagrams directory as the single source of truth for system understanding. Unlike traditional technical diagrams, DDD diagrams always show:
Traditional diagrams answer "What does the code do?" DDD diagrams answer "Why does it matter to users?"
Every technical decision should trace back to user value, and diagrams make that connection explicit.
diagrams/
├── SKILL.md # Main skill definition
├── README.md # This file
└── references/
├── DDD_PRINCIPLES.md # Core methodology (READ FIRST)
├── CREATE.md # Creating new diagrams
├── UPDATE.md # Updating existing diagrams
├── AUDIT.md # Auditing quality and coverage
├── ORGANIZE.md # Directory structure and naming
└── MERMAID_GUIDE.md # Mermaid syntax patterns
Generate new diagrams for features, architectures, user journeys, test coverage, and refactoring plans.
Supported Types:
Keep diagrams synchronized with code changes, ensuring they remain accurate and useful.
Maintain clean directory structure with consistent naming conventions.
Keep README.md updated as the entry point for understanding the system.
ai/diagrams/
├── README.md # Index (always up-to-date)
├── features/ # Feature-specific flows
│ └── feature-*.md
├── architecture/ # System-level diagrams
│ └── arch-*.md
├── journeys/ # User journey sequences
│ └── sequence-*.md
├── tests/ # Test coverage
│ └── test-*.md
└── refactoring/ # Before/After improvements
└── feature-*.md
Understand the user need
Choose diagram type
features/feature-{name}.mdjourneys/sequence-{name}.mdarchitecture/arch-{name}.mdRead DDD_PRINCIPLES.md (REQUIRED)
references/DDD_PRINCIPLES.md
Read CREATE.md for patterns
references/CREATE.md
Create using template
Update README.md index
User Request: "Create a diagram for the new payment processing feature"
Agent Workflow:
references/DDD_PRINCIPLES.md and references/CREATE.mdfeatures/feature-checkout-payment-flow.md:
ai/diagrams/README.md indexUser Request: "We added caching to the search feature, update the diagram"
Agent Workflow:
references/UPDATE.mdfeatures/feature-search-functionality.mdUser Request: "Audit our diagrams for quality and coverage"
Agent Workflow:
references/AUDIT.md and references/DDD_PRINCIPLES.mdai/diagrams/User Request: "We're adding a caching layer to improve performance. Document the change."
Agent Workflow:
references/CREATE.md (refactoring section)refactoring/feature-add-caching-layer.mdEvery diagram MUST include:
✅ Both Stages
✅ Impact Annotations
✅ User-Centric
✅ Error Handling
❌ Prohibited
For complete principles, read references/DDD_PRINCIPLES.md.
Purpose: Core methodology and philosophy Read when: Before creating any diagram Contains: Front-Stage/Back-Stage, impact annotations, error paths, quality checklist
Purpose: Creating new diagrams Read when: Making a new diagram Contains: Templates, patterns, examples, validation checklist
Purpose: Updating existing diagrams Read when: Code changes affect diagrams Contains: Update patterns, synchronization strategies, metadata updates
Purpose: Auditing diagram quality Read when: Need to assess diagram health Contains: Quality checks, coverage analysis, synchronization audits, reports
Purpose: Directory structure and naming Read when: Organizing or reorganizing diagrams Contains: Naming conventions, directory rules, index structure, migration
Purpose: Mermaid syntax reference Read when: Need help with Mermaid syntax Contains: Flowchart patterns, sequence diagrams, styling, common mistakes
1. Planning Phase
├─ Review existing diagrams
└─ Create proposal diagrams for new features
2. Implementation Phase
├─ Reference diagrams during coding
└─ Ensure code matches diagram intent
3. Completion Phase
├─ Update diagrams to reflect implementation
└─ Add change history entries
4. Review Phase
├─ Use diagrams to explain changes
└─ Verify diagrams match code
1. Onboarding
└─ New developers read diagrams to understand system
2. Architecture Reviews
└─ Use diagrams to discuss system design
3. Code Reviews
└─ Reference diagrams to explain impact
4. Documentation
└─ Diagrams serve as living documentation
Every diagram must have:
# 1. Create directory structure
mkdir -p ai/diagrams/{features,architecture,journeys,tests,refactoring}
# 2. Create README.md index
# (Use ORGANIZE.md template)
# 3. Create system architecture diagram
# (Use CREATE.md patterns)
# 4. Document key user journeys
# (Use sequence diagram patterns)
1. Create feature diagram before coding
2. Use diagram to guide implementation
3. Update diagram if implementation differs
4. Add to README.md index
5. Reference in pull request
1. Create Before diagram (current state)
2. Create After diagram (proposed state)
3. Highlight changes in #90EE90
4. Document user impact of changes
5. Use in architecture review
6. Update after implementation
1. Run quality audit (check DDD compliance)
2. Run coverage audit (find missing diagrams)
3. Run sync audit (find outdated diagrams)
4. Create prioritized fix list
5. Schedule updates for high-priority items
Use diagrams to plan testing flows:
Link diagrams in issues and PRs:
Reference diagrams during code reviews:
Solution: Ask these questions:
If you can't answer these, reconsider if the feature is necessary.
Solutions:
Solution:
# Find diagrams referencing changed files
grep -r "path/to/changed/file" ai/diagrams/
# Check diagram dates vs git history
git log --since="diagram-date" path/to/file
Solutions:
Monitor diagram health over time:
/sync-diagrams - Original command this skill is based onSkill created based on /sync-diagrams command (January 2025)
This skill helps maintain high-quality, user-centric diagrams that bridge the gap between technical implementation and user value. By following DDD principles, your diagrams become powerful tools for:
Remember: Outdated diagrams are worse than no diagrams. Keep them synchronized, keep them user-focused, and keep them valuable.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer