本文へ移動
cccskills
無料GitHub で公開

diagram-design

Diagram design reference library (14 types — architecture, flowchart, sequence, state, ER, timeline, swimlane, quadrant, nested, tree, org chart, layers, venn, pyramid). In ppt-master this is consumed by the Executor when hand-authoring diagram-type SVG pages — it is NOT a standalone HTML generator here. Read for deep per-type layout conventions.

インストール方法を見る

含まれるファイル(68)

  • SKILL.md8.6 KB
  • assets/example-architecture-dark.html10.2 KB
  • assets/example-architecture-full.html13.1 KB
  • assets/example-architecture.html10.2 KB
  • assets/example-er-dark.html13.6 KB
  • assets/example-er-full.html16.4 KB
  • assets/example-er.html13.5 KB
  • assets/example-flowchart-dark.html8.7 KB
  • assets/example-flowchart-full.html11.6 KB
  • assets/example-flowchart.html8.7 KB
  • assets/example-layers-dark.html6.4 KB
  • assets/example-layers-full.html9.5 KB
  • assets/example-layers.html6.4 KB
  • assets/example-nested-dark.html6.3 KB
  • assets/example-nested-full.html9.3 KB
  • assets/example-nested.html6.4 KB
  • assets/example-org-chart-dark.html11.3 KB
  • assets/example-org-chart-full.html11.7 KB
  • assets/example-org-chart.html11.2 KB
  • assets/example-pyramid-dark.html6.2 KB
  • assets/example-pyramid-full.html9.2 KB
  • assets/example-pyramid.html6.1 KB
  • assets/example-quadrant-consultant.html11.3 KB
  • assets/example-quadrant-dark.html6.1 KB
  • assets/example-quadrant-full.html9.1 KB
  • assets/example-quadrant.html6.1 KB
  • assets/example-sequence-dark.html13.1 KB
  • assets/example-sequence-full.html17.5 KB
  • assets/example-sequence.html13.1 KB
  • assets/example-state-dark.html8.2 KB
  • assets/example-state-full.html11.1 KB
  • assets/example-state.html8.2 KB
  • assets/example-swimlane-dark.html10.0 KB
  • assets/example-swimlane-full.html12.8 KB
  • assets/example-swimlane.html9.9 KB
  • assets/example-timeline-dark.html6.9 KB
  • assets/example-timeline-full.html9.8 KB
  • assets/example-timeline.html6.9 KB
  • assets/example-tree-dark.html10.5 KB
  • assets/example-tree-full.html13.4 KB
  • assets/example-tree.html10.4 KB
  • assets/example-venn-dark.html6.3 KB
  • assets/example-venn-full.html9.4 KB
  • assets/example-venn.html4.7 KB
  • assets/index.html6.6 KB
  • assets/template-dark.html2.8 KB
  • assets/template-full.html21.7 KB
  • assets/template.html2.9 KB
  • LICENSE1.0 KB
  • references/diagram-onboarding-legacy.md11.5 KB
  • references/onboarding.md4.7 KB
  • references/primitive-annotation.md1.7 KB
  • references/primitive-sketchy.md1.7 KB
  • references/style-guide.md6.1 KB
  • references/type-architecture.md998 B
  • references/type-er.md1.1 KB
  • references/type-flowchart.md1.1 KB
  • references/type-layers.md1.5 KB
  • references/type-nested.md1.4 KB
  • references/type-org-chart.md3.0 KB
  • references/type-pyramid.md1.7 KB
  • references/type-quadrant.md6.1 KB
  • references/type-sequence.md1.5 KB
  • references/type-state.md1.1 KB
  • references/type-swimlane.md991 B
  • references/type-timeline.md1.0 KB
  • references/type-tree.md1.2 KB
  • references/type-venn.md1.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Diagram Design

ppt-master integration note: This skill is vendored as a reference library. In this repo, diagram slides are hand-authored by ppt-master's Executor as SVG pages in svg_output/ — not emitted as standalone HTML. Do NOT run the URL onboarding flow (references/onboarding.md) or the upstream style-guide gate; colors, fonts, and icons always come from the project's spec_lock.md, and the SVG must obey ppt-master's technical constraints (.claude/skills/ppt-master/references/shared-standards.md). The guidance below is upstream context — read it for per-type layout conventions, node/edge discipline, and complexity budgets, then author the page per ppt-master SKILL.md Step 6.

The upstream onboarding / one-time-setup / standalone-HTML-export sections (§0 style-guide gate, §5 Design System skinning, §6 HTML-skin SVG primitives, §7 page layout, §8 summary cards, §10 templates & variants, §11 HTML output) are preserved verbatim in references/diagram-onboarding-legacy.md — upstream provenance record only, never executed in ppt-master.

Fourteen diagram types. One shared design system, complexity budget, and taste gate. Type-specific conventions live in references/ and are loaded only when you pick a type.


1. Philosophy

The highest-quality move is usually deletion.

From .impeccable.md: "Confident restraint. Earn every element. One color accent, two families, a small spacing vocabulary. If removing it wouldn't hurt the page, remove it."

Applied to schematics:

  • Every node represents a distinct idea. Two nodes that always travel together are one node.
  • Every connection carries information. If the relationship is obvious from layout, remove the line.
  • The accent color (spec_lock.colors) is editorial, not a flag. 1–2 focal nodes per diagram. Using it on 5 nodes erases the signal.
  • The schematic isn't done when everything is added. It's done when nothing can be removed.

Target density: 4/10. Enough to be technically complete. Not so dense it needs a guide. Above 9 nodes, it's probably two diagrams.


2. When to Use

Use for any of the 14 diagram types (§3) when a reader will learn more from a visual than from prose, a table, or a bulleted list.

Don't use for:

  • Lists of things → table or bullets.
  • Simple before/after → table.
  • One-shape "diagrams" → just write the sentence.

Before drawing, ask: Would the reader learn more from this than from a well-written paragraph? If no, don't draw.


3. Diagram Types

Selection guide

If you're showing…UseReference
Components + connections in a systemArchitecturetype-architecture.md
Decision logic with branchesFlowcharttype-flowchart.md
Time-ordered messages between actorsSequencetype-sequence.md
States + transitions + guardsState machinetype-state.md
Entities + fields + relationshipsER / data modeltype-er.md
Events positioned in timeTimelinetype-timeline.md
Cross-functional process with handoffsSwimlanetype-swimlane.md
Two-axis positioning / prioritizationQuadranttype-quadrant.md
Hierarchy through containment / scopeNestedtype-nested.md
Parent → children relationshipsTreetype-tree.md
Human/agent/team ownership, reporting, routing, escalationOrg charttype-org-chart.md
Stacked abstraction levelsLayer stacktype-layers.md
Overlap between setsVenntype-venn.md
Ranked hierarchy or conversion drop-offPyramid / funneltype-pyramid.md

Rules of thumb:

  • If a 3-column table communicates the same thing, pick the table.
  • If you're combining two types, pick the dominant axis — don't hybridize grammars.
  • If you're past the complexity budget (§7), split into an overview + detail.

Always load the relevant references/type-*.md before drawing — it contains layout conventions, anti-patterns, and example files for that type.


4. Universal Anti-patterns

These mark "AI slop" schematics of any type:

Anti-patternWhy it fails
Dark mode + cyan/purple glowLooks "technical" without design decisions
Mono as blanket "dev" fontMono is for technical content — ports, commands, URLs. Names go in the spec_lock.typography body role (Pretendard on this install).
Identical boxes for every nodeErases hierarchy
Legend floating inside the diagram areaCollides with nodes
Arrow labels with no masking rectBleeds through the line
Vertical writing-mode text on arrowsUnreadable
3 equal-width summary cards as defaultGeneric grid — vary widths
Shadow on any elementShadows are out. Borders are in.
rounded-2xl on boxesMax radius 6–10px or none
Accent color on every "important" nodeThe deck's accent token from spec_lock.colors is 1–2 editorial accents, not a signaling system

Type-specific anti-patterns live in each references/type-*.md.


7. Layout & Spacing

4px grid

All values — font sizes, padding, node dimensions, gaps, x/y coords — divisible by 4. Non-negotiable.

CategoryAllowed values
Font sizes8, 12, 16, 20, 24, 28, 32, 40
Node width / height80, 96, 112, 120, 128, 140, 144, 160, 180, 200, 240, 320
x / y coordinatesmultiples of 4
Gap between nodes20, 24, 32, 40, 48
Padding inside boxes8, 12, 16
Border radius4, 6, 8

Exempt: stroke widths (0.8, 1, 1.2), opacity values, and the 22×22 dot-pattern.

Quick check: if a coordinate ends in 1, 2, 3, 5, 6, 7, 9 — fix it.

Complexity budget (per diagram)

LimitRule
Max nodes9
Max arrows / transitions12
Max accent-color elements2
Max lifelines (sequence)5
Max lanes (swimlane)5
Max items (quadrant)12
Max entities (ER)8
Max nesting levels (nested)6
Max tree depth4
Max org chart depth4
Max org chart nodes12
Max layers (layer stack)6
Max circles (venn)3
Max layers (pyramid)6
Max annotation callouts2

If you exceed, split into two diagrams (overview + detail).


9. Pre-Output Checklist (Taste Gate)

Run before producing any diagram.

Type fit:

  • Right type for what I'm showing? (§3 selection guide)
  • Would a table / paragraph do the same job? (If yes — don't draw.)
  • Loaded the matching references/type-*.md?

Remove test:

  • Can I remove any node? (Would a reader still understand?)
  • Can I merge any two nodes? (Do they always travel together?)
  • Can I remove any arrow? (Is the relationship obvious from layout?)
  • Can I remove any label? (Does color or shape already signal it?)

Signal:

  • Accent token (spec_lock.colors) used on ≤2 elements? If more, which actually deserve focal status?
  • Legend covers every type used — and nothing extra?
  • Within the type's complexity budget (§7)?

Technical:

  • Arrows drawn before boxes?
  • Every arrow label has an opaque rect behind it, filled with the deck's background token from spec_lock.colors?
  • Legend is a horizontal bottom strip, not floating?
  • No vertical writing-mode text?
  • viewBox expanded for the legend strip (~60px)?
  • Every font size, coord, width, height, gap divisible by 4?

Typography:

  • Names / labels / title use the spec_lock.typography roles (Pretendard on this install), not a mono face?
  • Technical sublabels (ports, commands, URLs) in the spec_lock.typography code role, when the deck declares one?
  • Annotation callouts (if any) use the locked annotation role? (see primitive-annotation.md)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Generate images via Codex CLI's built-in image_gen tool (gpt-image-2). OAuth auth — no API key needed. Codex CLI의 내장 image_gen 도구로 이미지 생성. OAuth 인증으로 API 키 불필요. Usage: /codex-image cherry blossom hanok, /codex-image --size 1024x1536 space cat, /codex-image --quality high seoul night

日本語の概要は準備中です。原文の説明を表示しています。

byungjunjang/slide-master2822026年9月30日 更新

Enhance a finished PPTX while keeping visible content and layout stable. Use for adding or replacing speaker notes, narration audio, auto-advance timing, or slide transitions through direct OOXML. Do not use for redesign, raw template filling, SVG-generated project narration, or changing slide content.

日本語の概要は準備中です。原文の説明を表示しています。

byungjunjang/slide-master2822026年9月30日 更新

Post-router owner for authoring or regenerating presentation visuals through the PPT Master SVG pipeline: new decks from source material or a topic, PPTX re-architecture, generation from an already-created reusable SVG-template workspace, and shared SVG steps only after a strict 1:1 beautify workflow explicitly hands off. Read workflows/routing.md first. Do not use for ambiguous existing-PPTX optimization, reusable-template creation, raw-PPTX native filling, or finished-PPTX native enhancement; those are pre-route or standalone workflow requests.

日本語の概要は準備中です。原文の説明を表示しています。

byungjunjang/slide-master2822026年9月30日 更新

Fill a raw PowerPoint (.pptx) template with new content by cloning and patching native slides — no SVG conversion, original design preserved, verified through a mandatory OfficeCLI overflow/render loop. Use whenever the user supplies an existing .pptx template or deck plus new material or a topic and wants a generated PPTX, even if they don't say "template" — "use this PPT template to generate a PPTX", "fill this deck with the new content", "replace the copy in this PowerPoint", "keep the original design and swap in this material", "이 템플릿에 내용 채워줘", "이 PPT 양식으로 만들어줘", "기존 PPT 디자인 그대로 내용만 교체해줘". Do NOT use for reusable template package creation (ppt-master create-template), 1:1 beautify, SVG-pipeline deck generation, or finished-PPTX enhancement (native-enhance-pptx).

日本語の概要は準備中です。原文の説明を表示しています。

byungjunjang/slide-master2822026年9月30日 更新

byungjunjang のスキルをすべて見る

このスキルの問題を報告する