본문으로 건너뛰기
cccskills
무료GitHub에 공개

diagram-creator

Create process and architecture diagrams using Mermaid.js syntax

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Gmail
설치 방법 보기

포함된 파일(2)

  • SKILL.md6.7 KB
  • skill.meta.json410 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Diagram Creator

Generates professional diagrams using Mermaid.js syntax for flowcharts, sequence diagrams, org charts, user journeys, system architecture, entity relationships, and Gantt charts. Outputs renderable Mermaid code that can be embedded in docs, READMEs, Notion, or exported as images. Supports GTM-specific diagrams: sales funnels, outreach cadences, lead routing, tech stack architecture.

Prerequisites

  • agency.config.json in the project root
  • Diagram request with context (what to visualize, audience, purpose)
  • Optional: existing process documentation to diagram

Phase 0: Intake

  1. Read agency.config.json from the project root.
  2. Extract agency.name for branding context.
  3. Extract services[], outreach.cadence, crm.tabs for GTM-specific diagrams.
  4. Extract tools.* for tech stack diagrams.
  5. Collect inputs from the user:
    • Subject: what to diagram (process, system, flow, organization)
    • Type: flowchart, sequence, journey, architecture, ERD, Gantt, org chart
    • Detail level: high-level overview, detailed implementation, or technical spec
    • Audience: technical team, client, stakeholders, internal docs
    • Nodes/steps: key elements to include (or ask to extract from description)

Phase 1: Diagram Type Selection

Match the request to the optimal Mermaid diagram type:

Use CaseDiagram TypeMermaid Syntax
Decision flow, process stepsFlowchartflowchart TD
API calls, system interactionsSequence diagramsequenceDiagram
Customer experienceUser journeyjourney
System componentsArchitecture (C4-style flowchart)flowchart TD with subgraphs
Database schemaEntity relationshiperDiagram
Project timelineGantt chartgantt
Team structureOrg chartflowchart TD
State machine, lead stagesState diagramstateDiagram-v2
Git workflowGitgraphgitGraph
Funnel visualizationFlowchart with styled widthsflowchart TD

If the user's request maps to multiple types, recommend the best fit and offer alternatives.

Phase 2: Structure Planning

Before generating code, outline the diagram structure:

DIAGRAM PLAN:
---
Type: [selected type]
Direction: [TD (top-down) / LR (left-right) / RL / BT]
Nodes: [list of nodes/entities]
Relationships: [list of connections]
Subgraphs: [groupings if needed]
Styling: [color coding, shapes, line types]

Node naming conventions:

  • Use clear, short labels (3-5 words max per node)
  • Use consistent casing (Title Case for entities, lowercase for actions)
  • Prefix IDs for clarity: lead_new, stage_demo, sys_apollo

Layout decisions:

  • Processes with clear start/end: top-down (TD)
  • Timelines and sequences: left-right (LR)
  • Hierarchies: top-down (TD)
  • Interactions between systems: left-right (LR)

Phase 3: Mermaid Code Generation

Generate clean, well-commented Mermaid code.

Flowchart example (lead routing):

flowchart TD
    A[New Lead Enters] --> B{Lead Score}
    B -->|Score >= 60| C[HOT Lead]
    B -->|Score 35-59| D[WARM Lead]
    B -->|Score < 35| E[COOL Lead]

    C --> F[Immediate Outreach]
    D --> G[Nurture Sequence]
    E --> H[Archive]

    F --> I{Response?}
    I -->|Reply| J[Demo Booked]
    I -->|No Reply| K[Follow-Up Cadence]

Sequence diagram example (outreach flow):

sequenceDiagram
    participant Agent as Sales Agent
    participant CRM as Google Sheets CRM
    participant Apollo as Apollo.io
    participant Gmail as Gmail MCP

    Agent->>CRM: Read pipeline leads
    CRM-->>Agent: Lead list
    Agent->>Apollo: Enrich lead data
    Apollo-->>Agent: Contact details
    Agent->>Gmail: Create email draft
    Gmail-->>Agent: Draft created
    Agent->>CRM: Update lead status

Styling rules:

  • Use subgraphs to group related nodes
  • Apply color classes for visual distinction:
    • Green: success states, completed steps
    • Red: error states, lost deals
    • Blue: active processes, current state
    • Gray: inactive, archived
  • Keep edge labels short (2-4 words)
  • Limit to 15-20 nodes per diagram (split into multiple if larger)

Phase 4: Validation

Check the generated Mermaid code for:

Syntax validation:

  • All node IDs are unique
  • All referenced nodes are defined
  • Brackets and quotes are balanced
  • Direction declaration is valid
  • Subgraph declarations are properly closed

Readability validation:

  • No overlapping labels
  • Logical flow direction (no unnecessary back-arrows)
  • Consistent node shapes (rectangles for processes, diamonds for decisions, circles for start/end)
  • Labels are readable at standard rendering size

Completeness validation:

  • All requested elements are represented
  • No orphan nodes (disconnected from the flow)
  • Start and end points are clear
  • Edge cases are represented where relevant

Fix any issues before outputting.

Phase 5: Output

Return the diagram in multiple formats:

{
  "diagram": {
    "title": "[Diagram title]",
    "type": "[flowchart/sequence/journey/erDiagram/gantt/stateDiagram/gitGraph]",
    "description": "[What this diagram shows]",
    "mermaid_code": "[Complete Mermaid.js code block]",
    "node_count": 12,
    "relationship_count": 15,
    "subgraphs": ["[list of subgraph names]"],
    "rendering_notes": "[Any notes about optimal rendering: width, theme, etc.]",
    "embed_instructions": {
      "markdown": "Wrap in ```mermaid code fence",
      "notion": "Use /mermaid block and paste code",
      "github": "Mermaid renders natively in .md files",
      "export_image": "Use mermaid.live or mmdc CLI to export PNG/SVG"
    }
  }
}

Also output the raw Mermaid code block for immediate copy-paste:

DIAGRAM: [Title]
---
[Mermaid code here, ready to render]

If the diagram is complex (>15 nodes), offer to split into:

  • High-level overview diagram
  • Detailed sub-process diagrams

Example Usage

Trigger phrases:

  • "Create a flowchart of our sales process"
  • "Diagram the outreach cadence"
  • "Make a sequence diagram for the lead enrichment flow"
  • "Visualize our tech stack architecture"
  • "Create an org chart for the sales team"
  • "Draw the lead scoring decision tree"
User: Diagram our outreach cadence from agency.config.json
Assistant: [reads cadence config, generates a flowchart showing Day 1-11 touchpoints across channels with decision branches for replies]
User: Create a system architecture diagram for the GTM stack
Assistant: [reads tools config, generates architecture diagram with Apollo, Gmail, Chrome, CRM, and their data flows]

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Analyze A/B test results for statistical significance with ship, extend, or kill recommendations

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ekatasingh1107/b2b-gtm-skills22026년 4월 12일 업데이트

Reallocate ad budget across campaigns and channels using ROAS and marginal return analysis

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ekatasingh1107/b2b-gtm-skills22026년 4월 12일 업데이트

Generate structured creative briefs for ad designers with brand-consistent direction

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ekatasingh1107/b2b-gtm-skills22026년 4월 12일 업데이트

Mine winning ad angles, hooks, and creative patterns from top-performing ads

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ekatasingh1107/b2b-gtm-skills22026년 4월 12일 업데이트

ad-spy

무료

Monitor competitor ads across Meta, Google, and LinkedIn with strategic analysis

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ekatasingh1107/b2b-gtm-skills22026년 4월 12일 업데이트

Interactive onboarding wizard that generates agency.config.json for any B2B agency. Asks structured questions about the agency, services, ICP, tools, outreach preferences, and CRM setup. Outputs a complete config file.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ekatasingh1107/b2b-gtm-skills22026년 4월 12일 업데이트

ekatasingh1107의 스킬 모두 보기

이 스킬의 문제 신고