brainstorming
Structured design dialogue that validates ideas before implementation begins.
charts-flow
Create and manage Mermaid architecture diagrams with automatic SVG generation
Full skill instructions
The charts-flow skill automates creation and management of Mermaid diagrams for technical documentation. It separates diagram source files from main documents to improve rendering performance, provides automatic SVG conversion for human viewing, and maintains traceability between parent documents and diagram files.
Key Benefits:
Use charts-flow when:
Do NOT use charts-flow when:
| Input | Description | Example |
|---|---|---|
| Parent File Path | Absolute path to main document | {project_root}/docs/PRD/PRD-01_multi_agent_system_architecture.md |
| Diagram Description | Short name for diagram | 3_tier_agent_hierarchy |
| Diagram Type | Architecture diagram type | flowchart, sequence, class, state, component, deployment |
| Input | Description | Default |
|---|---|---|
| Migration Mode | Extract existing diagrams from document | false (create new) |
| Diagram Title | Human-readable title | Derived from description |
| Styling Preferences | Color scheme, layout direction | Project defaults |
Step 1: Parse Parent Document
PRD-01 from PRD-01_multi_agent_system_architecture.md)diagrams/ subfolder locationStep 2: Generate Diagram File Path
{parent_folder}/diagrams/{PARENT-ID}-diag_{description}.mddiagrams/ subfolder is created in the same directory as the parent documentdocs/BRD/diagrams/BRD-01-diag_workflow.mddocs/PRD/diagrams/PRD-01-diag_3_tier_agent_hierarchy.mddocs/ADR/diagrams/ADR-005-diag_cloud_deployment.mddocs/SYS/diagrams/SYS-002-diag_data_flow.mddocs/IMPL/diagrams/IMPL-010-diag_implementation_phases.mddiagrams/ folder if it doesn't existStep 3: Create Diagram File
Step 4: Generate SVG
mmdc CLI conversion: mmdc -i diagram.md -o diagram.svgStep 5: Encode SVG as Base64
data:image/svg+xml;base64,{BASE64_STRING}Step 6: Update Parent Document
<details> blockStep 7: Validate
Step 1: Scan Parent Document
Step 2: Create Diagram Files
_diagram_1, _diagram_2, etc.Step 3: Replace in Parent Document
Step 4: Validate Migration
# {PARENT-ID}-diag: {Diagram Title}
## Document Control
| Item | Details |
|------|---------|
| **Diagram ID** | {PARENT-ID}-diag |
| **Parent Document** | [{PARENT-ID}: {Parent Title}](../{PARENT-FILE}.md) |
| **Diagram Type** | {flowchart|sequence|class|state|component|deployment} |
| **Status** | Active |
| **Version** | 1.0.0 |
| **Created** | {YYYY-MM-DD} |
| **Last Updated** | {YYYY-MM-DD} |
| **Maintained By** | {Role} |
## Overview
{Brief description of what this diagram represents}
## {Diagram Title}
```mermaid
{Mermaid diagram code}
{Detailed explanation of diagram elements, flows, and purpose}
{List or table of important nodes, components, actors, states, or flows}
Diagram Version: 1.0.0 Created: {YYYY-MM-DD} Maintained By: {Role}
### Parent Document Reference Template
```markdown
**Visual Diagram**: [{PARENT-ID}-diag: {Diagram Title}](diagrams/{PARENT-ID}-diag_{description}.md)
<details>
<summary>View Diagram (SVG Preview)</summary>

</details>
graph TB
A[Start] --> B{Decision}
B -->|Yes| C[Action 1]
B -->|No| D[Action 2]
Use for: Process flows, decision trees, workflows
sequenceDiagram
Actor->>System: Request
System->>Database: Query
Database-->>System: Result
System-->>Actor: Response
Use for: Agent interactions, API calls, message flows
classDiagram
class Agent {
+state: State
+execute()
+validate()
}
Agent <|-- StrategyAgent
Use for: Object relationships, system components
stateDiagram-v2
[*] --> SCANNING
SCANNING --> ACTIVE
ACTIVE --> DEFENSE
DEFENSE --> [*]
Use for: State machines, lifecycle flows
graph LR
subgraph "Level 1"
SO[System Orchestrator]
end
subgraph "Level 2"
IS[Item Selection]
end
SO --> IS
Use for: System architecture, component relationships
graph TB
subgraph "Cloud Run"
A[Agent Container]
end
subgraph "Cloud SQL"
B[(Database)]
end
A --> B
Use for: Infrastructure architecture, deployment topology
which mmdc
If not installed:
npm install -g @mermaid-js/mermaid-cli
Alternative: Use Puppeteer
npm install -g puppeteer
mmdc -i input.md -o output.svg -b transparent
Parameters:
-i: Input file (Mermaid markdown)-o: Output file (SVG)-b: Background color (transparent recommended)base64 -w 0 diagram.svg
macOS:
base64 -i diagram.svg
diagrams/ subfolder{PARENT-ID}-diag_{description}.md pattern<details> block used for SVG previewdiagram1.md (use descriptive names)diagrams/ subfolder in same directory as parent documentmmdc command not foundCause: Mermaid CLI not installed
Resolution:
npm install -g @mermaid-js/mermaid-cli
# OR
# Provide manual instructions to use Mermaid Live (https://mermaid.live)
Cause: Syntax error in diagram code
Resolution:
Cause: Diagram too complex
Resolution:
Cause: Filename doesn't follow standard naming (e.g., no ID prefix)
Resolution:
diagrams/ folder creation failedCause: Permission issues or invalid path
Resolution:
User Request:
"Create a flowchart diagram showing the user workflow for BRD-01"
Skill Actions:
{project_root}/docs/BRD/BRD-01_project_requirements.mdBRD-01docs/BRD/diagrams/BRD-01-diag_user_workflow.md (in BRD subfolder)mmdcResult:
docs/BRD/diagrams/ (document type-specific subfolder)User Request:
"Migrate the state machine diagram from strategy_state_machine.md to a separate file"
Skill Actions:
{project_root}/strategy/strategy_state_machine.md{project_root}/strategy/diagrams/SSM-001-diag_state_transitions.mdResult:
User Request:
"Create a sequence diagram showing the agent communication flow for ADR-003"
Skill Actions:
docs/ADR/ADR-003_agent_communication.mddocs/ADR/diagrams/ADR-003-diag_agent_communication_sequence.md (in ADR subfolder)Result:
docs/ADR/diagrams/ (document type-specific subfolder)Diagram File ({PARENT-ID}-diag_{description}.md)
{parent_folder}/diagrams/SVG File (optional, if using file-based approach)
.svg extensionUpdated Parent Document
<details> blockEach document type has its own diagrams subfolder:
docs/
├── BRD/
│ ├── BRD-01_project_requirements.md ← Updated with SVG + link
│ └── diagrams/
│ ├── BRD-01-diag_user_workflow.md ← BRD diagrams
│ └── BRD-01-diag_business_rules.md
├── PRD/
│ ├── PRD-01_multi_agent_system.md ← Updated with SVG + link
│ └── diagrams/
│ ├── PRD-01-diag_3_tier_hierarchy.md ← PRD diagrams
│ └── PRD-01-diag_cloud_architecture.md
├── ADR/
│ ├── ADR-005_deployment_strategy.md ← Updated with SVG + link
│ └── diagrams/
│ └── ADR-005-diag_deployment_flow.md ← ADR diagrams
├── SYS/
│ ├── SYS-002_data_pipeline.md ← Updated with SVG + link
│ └── diagrams/
│ └── SYS-002-diag_data_flow.md ← SYS diagrams
└── IMPL/
├── IMPL-010_phase_1_plan.md ← Updated with SVG + link
└── diagrams/
└── IMPL-010-diag_implementation.md ← IMPL diagrams
Product Strategy ({project_root}/strategy/*.md)
↓
Requirements (docs/reqs/*.md)
↓
Architecture Decisions (docs/adrs/*.md) ← diagrams support ADRs
↓
System Specifications (docs/sys/*.md) ← diagrams show architecture
↓
BDD Scenarios (docs/BDD/*.feature)
↓
Code Implementation
Diagrams enhance: ADRs, SYS, PRD, BRD documents with visual architecture representations
Skill Version: 1.0.0 Created: 2025-01-04 Last Updated: 2025-01-04 Maintained By: Development Team
Structured design dialogue that validates ideas before implementation begins.
Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.
Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.
Introduction to the obra skills system with mandatory skill invocation rules and best practices.
Execute a written implementation plan with critical review and task checkpoints.
Delegate independent tasks to specialized agents working concurrently with isolated context.
Isolated git worktrees with smart directory selection and safety verification.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Plan searchable and shareable content that drives traffic, builds authority, and generates leads.
README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.
Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.
Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.
The world's fastest calendar for remote work
Capture, organize, and utilize your knowledge effortlessly.
Instant Summaries of Audio & Video Interviews with AnySummary
Transform PDFs into engaging mind maps.
Chat with any PDF instantly
Create an optimal daily plan using your voice
A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.
AskYourPDF Pricing Plans: Tailored to Your Needs