{"id":"f0949ee9-c7db-48c5-8c52-4c803b4e1141","shortId":"3yzwE6","kind":"skill","title":"utility-mermaid-diagrams","tagline":"Teaches PMs to create syntactically valid mermaid diagrams by selecting the right diagram type for their communication need, following syntax validity rules, and validating before shipping. Covers all 15 mermaid diagram types with PM-relevant examples and a dual-lens navigation s","description":"<!-- PM-Skills | https://github.com/product-on-purpose/pm-skills | Apache 2.0 -->\n\n# Mermaid Diagrams\n\nCreate effective, syntactically valid mermaid diagrams for product documents.\n\n## When to Use\n\n- Creating mermaid diagrams for PRDs, specs, roadmaps, or stakeholder presentations\n- Choosing which of 15 diagram types fits a specific communication need\n- Debugging mermaid code that won't render or renders incorrectly\n- Reviewing diagrams for clarity, accuracy, and accessibility\n\n## When NOT to Use\n\n- Exporting diagrams to image files (PNG/SVG) . that's a rendering tool concern\n- Using non-mermaid diagramming tools (Figma, Lucidchart, draw.io)\n- Creating purely decorative visuals with no informational purpose\n\n## The Cardinal Rule\n\n> Don't diagram what a list can say.\n\nDiagrams earn their place when they reveal **relationships**, **branching**, or **flow** that prose flattens. Before creating any diagram, ask:\n\n*Does this show branching, relationships, or flow that a list or table would flatten?*\n\n- **Yes** → proceed with a diagram\n- **No** → use a numbered list, bullet list, or table instead\n\nA 5-step linear process is a list. A 5-step process with two decision points and a retry loop is a diagram.\n\n## Diagram Selection Guide\n\n| I need to show... | Use | Also consider |\n|-------------------|-----|---------------|\n| A decision or approval process | Flowchart | State |\n| Multi-service or multi-party interactions | Sequence | Flowchart |\n| Feature lifecycle or status transitions | State | Flowchart |\n| Work stages or pipeline status | Kanban | State |\n| Release or sprint timeline with dependencies | Gantt | Timeline |\n| Version history or chronological milestones | Timeline | Gantt |\n| 2D prioritization (effort/impact, risk/value) | Quadrant | . |\n| Allocation breakdown or composition | Pie | Treemap |\n| Problem decomposition or brainstorming | Mindmap | . |\n| Domain models or data relationships | ER | Class |\n| API or object contracts | Class | ER |\n| System topology or infrastructure | Architecture | Flowchart |\n| Flow quantities or budget allocation | Sankey | Pie |\n| Hierarchical proportional data | Treemap | Pie |\n| Trends or time-series metrics | XY-Chart | . |\n\nFor worked examples organized by PM task, see `references/pm-use-cases.md`.\nFor full syntax and options per type, see `references/diagram-catalog.md`.\n\n## Syntax Validity Principles\n\nSix rules that prevent most rendering failures:\n\n1. **Quote labels** . Any label containing spaces, parentheses, brackets, colons, commas, or reserved words must be quoted with double quotes\n2. **Escape special characters** . Characters with mermaid or markdown meaning (`>`, `<`, `-` at line start, `#`) need escaping or quoting\n3. **Declare before referencing** . Define a node before using it in an edge; referencing an undeclared node causes silent failures in some types\n4. **Respect limits** . Each diagram type has a maximum node/participant count beyond which readability collapses (see `references/diagram-catalog.md` for per-type limits)\n5. **Comment your intent** . Use `%%` comments to document non-obvious choices (why this layout direction, why this grouping)\n6. **Test before shipping** . Paste into a mermaid renderer (mermaid.live, VS Code preview, or your target environment) and verify it renders correctly\n\nFor the complete syntax reference, see `references/syntax-guide.md`.\n\n## Instructions\n\n1. **Identify what you're communicating** . What relationship, flow, hierarchy, or proportion needs to be visible? Who is the audience?\n2. **Apply the cardinal rule** . Confirm a diagram adds value over a list or table\n3. **Select a diagram type** . Use the selection guide above, browse `references/pm-use-cases.md` by task, or browse `references/diagram-catalog.md` by type\n4. **Plan the diagram** . Fill out the planning worksheet in `references/TEMPLATE.md`: purpose, audience, node inventory, type rationale\n5. **Write the mermaid code** . Follow `references/syntax-guide.md` rules; start with the minimal syntax example from `references/diagram-catalog.md` and expand\n6. **Validate** . Run through the quality checklist below\n7. **Embed** . Place the validated mermaid code block in your document\n\n## Output Contract\n\n- **Planning artifact**: A completed diagram planning worksheet (`references/TEMPLATE.md`)\n- **Final output**: A syntactically valid mermaid code block embedded in the target document\n- **Quality gate**: All items in the quality checklist pass\n\n## Quality Checklist\n\n- [ ] Diagram renders without error in target environment\n- [ ] Cardinal rule satisfied . a list or table would not communicate this more clearly\n- [ ] No linear sequences without branching, relationships, or hierarchy\n- [ ] All labels with spaces or special characters are properly quoted\n- [ ] Special characters escaped where needed\n- [ ] Node/participant count within type-specific limits\n- [ ] Colors are accessible (WCAG AA 3:1 contrast minimum, black text on light backgrounds)\n- [ ] Color is never the sole differentiator . shapes and labels also distinguish elements\n- [ ] Diagram has a descriptive title or surrounding prose context\n- [ ] `%%` comments document any non-obvious layout or grouping choices\n\n## References\n\n| File | Purpose |\n|------|---------|\n| `references/TEMPLATE.md` | Diagram planning worksheet . fill out before writing mermaid code |\n| `references/EXAMPLE.md` | Worked example: PM creating 4 diagrams for a product launch |\n| `references/diagram-catalog.md` | All 15 diagram types: syntax, PM examples, limits, pitfalls |\n| `references/pm-use-cases.md` | PM task → diagram type mapping with mini worked examples |\n| `references/syntax-guide.md` | Complete syntax validity rules, escaping, styling, and validation checklist |","tags":["utility","mermaid","diagrams","skills","product-on-purpose","agent-skills","ai-skills","claude-code","claude-desktop","openskills","product-management","skill-families"],"capabilities":["skill","source-product-on-purpose","skill-utility-mermaid-diagrams","topic-agent-skills","topic-ai-skills","topic-claude-code","topic-claude-desktop","topic-openskills","topic-product-management","topic-skill-families","topic-triple-diamond"],"categories":["pm-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/product-on-purpose/pm-skills/utility-mermaid-diagrams","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add product-on-purpose/pm-skills","source_repo":"https://github.com/product-on-purpose/pm-skills","install_from":"skills.sh"}},"qualityScore":"0.538","qualityRationale":"deterministic score 0.54 from registry signals: · indexed on github topic:agent-skills · 176 github stars · SKILL.md body (5,747 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-02T12:54:13.304Z","embedding":null,"createdAt":"2026-04-18T22:09:30.175Z","updatedAt":"2026-05-02T12:54:13.304Z","lastSeenAt":"2026-05-02T12:54:13.304Z","tsv":"'1':356,487,685 '15':33,76,750 '2':376,507 '2d':272 '3':393,522,684 '4':416,541,742 '5':194,202,438,558 '6':457,576 '7':584 'aa':683 'access':100,681 'accuraci':98 'add':515 'alloc':277,311 'also':224,702 'api':295 'appli':508 'approv':229 'architectur':305 'artifact':598 'ask':163 'audienc':506,553 'background':692 'beyond':427 'black':688 'block':591,612 'bracket':364 'brainstorm':286 'branch':153,167,653 'breakdown':278 'brows':532,537 'budget':310 'bullet':188 'cardin':135,510,636 'caus':410 'charact':379,380,663,668 'chart':327 'checklist':582,625,628,777 'choic':449,723 'choos':73 'chronolog':268 'clariti':97 'class':294,299 'clear':648 'code':86,468,562,590,611,736 'collaps':430 'colon':365 'color':679,693 'comma':366 'comment':439,443,714 'communic':21,82,492,645 'complet':481,600,769 'composit':280 'concern':116 'confirm':512 'consid':225 'contain':361 'context':713 'contract':298,596 'contrast':686 'correct':478 'count':426,673 'cover':31 'creat':8,51,63,126,160,741 'data':291,316 'debug':84 'decis':207,227 'declar':394 'decomposit':284 'decor':128 'defin':397 'depend':262 'descript':708 'diagram':4,12,17,35,50,56,65,77,95,106,121,139,145,162,182,215,216,420,514,525,544,601,629,705,728,743,751,761 'differenti':698 'direct':453 'distinguish':703 'document':59,445,594,617,715 'domain':288 'doubl':374 'draw.io':125 'dual':45 'dual-len':44 'earn':146 'edg':405 'effect':52 'effort/impact':274 'element':704 'emb':585 'embed':613 'environ':473,635 'er':293,300 'error':632 'escap':377,390,669,773 'exampl':41,330,571,739,755,767 'expand':575 'export':105 'failur':355,412 'featur':243 'figma':123 'file':109,725 'fill':545,731 'final':605 'fit':79 'flatten':158,177 'flow':155,170,307,495 'flowchart':231,242,249,306 'follow':23,563 'full':338 'gantt':263,271 'gate':619 'group':456,722 'guid':218,530 'hierarch':314 'hierarchi':496,656 'histori':266 'identifi':488 'imag':108 'incorrect':93 'inform':132 'infrastructur':304 'instead':192 'instruct':486 'intent':441 'interact':240 'inventori':555 'item':621 'kanban':255 'label':358,360,658,701 'launch':747 'layout':452,720 'len':46 'lifecycl':244 'light':691 'limit':418,437,678,756 'line':387 'linear':196,650 'list':142,173,187,189,200,519,640 'loop':212 'lucidchart':124 'map':763 'markdown':384 'maximum':424 'mean':385 'mermaid':3,11,34,49,55,64,85,120,382,464,561,589,610,735 'mermaid.live':466 'metric':324 'mileston':269 'mindmap':287 'mini':765 'minim':569 'minimum':687 'model':289 'multi':234,238 'multi-parti':237 'multi-servic':233 'must':370 'navig':47 'need':22,83,220,389,499,671 'never':695 'node':399,409,554 'node/participant':425,672 'non':119,447,718 'non-mermaid':118 'non-obvi':446,717 'number':186 'object':297 'obvious':448,719 'option':341 'organ':331 'output':595,606 'parenthes':363 'parti':239 'pass':626 'past':461 'per':342,435 'per-typ':434 'pie':281,313,318 'pipelin':253 'pitfal':757 'place':148,586 'plan':542,548,597,602,729 'pm':39,333,740,754,759 'pm-relev':38 'pms':6 'png/svg':110 'point':208 'prds':67 'present':72 'prevent':352 'preview':469 'principl':348 'priorit':273 'problem':283 'proceed':179 'process':197,204,230 'product':58,746 'proper':665 'proport':315,498 'prose':157,712 'pure':127 'purpos':133,552,726 'quadrant':276 'qualiti':581,618,624,627 'quantiti':308 'quot':357,372,375,392,666 'rational':557 're':491 'readabl':429 'refer':483,724 'referenc':396,406 'references/diagram-catalog.md':345,432,538,573,748 'references/example.md':737 'references/pm-use-cases.md':336,533,758 'references/syntax-guide.md':485,564,768 'references/template.md':551,604,727 'relationship':152,168,292,494,654 'releas':257 'relev':40 'render':90,92,114,354,465,477,630 'reserv':368 'respect':417 'retri':211 'reveal':151 'review':94 'right':16 'risk/value':275 'roadmap':69 'rule':26,136,350,511,565,637,772 'run':578 'sankey':312 'satisfi':638 'say':144 'see':335,344,431,484 'select':14,217,523,529 'sequenc':241,651 'seri':323 'servic':235 'shape':699 'ship':30,460 'show':166,222 'silent':411 'six':349 'skill' 'skill-utility-mermaid-diagrams' 'sole':697 'source-product-on-purpose' 'space':362,660 'spec':68 'special':378,662,667 'specif':81,677 'sprint':259 'stage':251 'stakehold':71 'start':388,566 'state':232,248,256 'status':246,254 'step':195,203 'style':774 'surround':711 'syntact':9,53,608 'syntax':24,339,346,482,570,753,770 'system':301 'tabl':175,191,521,642 'target':472,616,634 'task':334,535,760 'teach':5 'test':458 'text':689 'time':322 'time-seri':321 'timelin':260,264,270 'titl':709 'tool':115,122 'topic-agent-skills' 'topic-ai-skills' 'topic-claude-code' 'topic-claude-desktop' 'topic-openskills' 'topic-product-management' 'topic-skill-families' 'topic-triple-diamond' 'topolog':302 'transit':247 'treemap':282,317 'trend':319 'two':206 'type':18,36,78,343,415,421,436,526,540,556,676,752,762 'type-specif':675 'undeclar':408 'use':62,104,117,184,223,401,442,527 'util':2 'utility-mermaid-diagram':1 'valid':10,25,28,54,347,577,588,609,771,776 'valu':516 'verifi':475 'version':265 'visibl':502 'visual':129 'vs':467 'wcag':682 'within':674 'without':631,652 'won':88 'word':369 'work':250,329,738,766 'worksheet':549,603,730 'would':176,643 'write':559,734 'xy':326 'xy-chart':325 'yes':178","prices":[{"id":"08fbb4bc-5260-4046-823a-65830c03b1bd","listingId":"f0949ee9-c7db-48c5-8c52-4c803b4e1141","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"product-on-purpose","category":"pm-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T22:09:30.175Z"}],"sources":[{"listingId":"f0949ee9-c7db-48c5-8c52-4c803b4e1141","source":"github","sourceId":"product-on-purpose/pm-skills/utility-mermaid-diagrams","sourceUrl":"https://github.com/product-on-purpose/pm-skills/tree/main/skills/utility-mermaid-diagrams","isPrimary":false,"firstSeenAt":"2026-04-18T22:09:30.175Z","lastSeenAt":"2026-05-02T12:54:13.304Z"}],"details":{"listingId":"f0949ee9-c7db-48c5-8c52-4c803b4e1141","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"product-on-purpose","slug":"utility-mermaid-diagrams","github":{"repo":"product-on-purpose/pm-skills","stars":176,"topics":["agent-skills","ai-skills","claude-code","claude-desktop","openskills","product-management","skill-families","triple-diamond"],"license":"apache-2.0","html_url":"https://github.com/product-on-purpose/pm-skills","pushed_at":"2026-04-24T22:54:13Z","description":"Curated, plug-and-play product management skills for AI agents. 38 skills across Triple Diamond phases plus foundation (lean canvas, persona, meeting lifecycle family) and utility (create, validate, iterate). Templates, workflows, thread-aligned samples, CI-enforced skill-family contracts. Apache 2.0.","skill_md_sha":"dc03e303620585cb58f2408ca4d11b0cc4440a03","skill_md_path":"skills/utility-mermaid-diagrams/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/product-on-purpose/pm-skills/tree/main/skills/utility-mermaid-diagrams"},"layout":"multi","source":"github","category":"pm-skills","frontmatter":{"name":"utility-mermaid-diagrams","license":"Apache-2.0","description":"Teaches PMs to create syntactically valid mermaid diagrams by selecting the right diagram type for their communication need, following syntax validity rules, and validating before shipping. Covers all 15 mermaid diagram types with PM-relevant examples and a dual-lens navigation system."},"skills_sh_url":"https://skills.sh/product-on-purpose/pm-skills/utility-mermaid-diagrams"},"updatedAt":"2026-05-02T12:54:13.304Z"}}