agentsclimarketplace

Cli forge schema

Skill Destynova2/cli-code-skills/cli-forge-schema

Production-ready Claude Code skills — audit code quality, forge design docs, generate documentation, automate infrastructure. CLI = Command Line Interface + Clement Liard Initials.

Install
npx -y skills add Destynova2/cli-code-skills --skill cli-forge-schema

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use this skill to generate, convert, or refine diagrams and visual representations in GitHub-compatible Mermaid. Triggers include: 'diagram', 'schema', 'flowchart', 'sequence diagram', 'architecture diagram', 'ER diagram', 'state machine', 'gantt', 'mindmap', 'timeline', 'mermaid', 'visualize', 'draw', 'convert table to diagram', 'kanban', 'PERT', 'roadmap', 'changelog', 'sankey', 'quadrant', 'git graph', or any request to create, fix, or improve a visual representation of data, processes, or architecture. Also triggers when the user pastes broken Mermaid, asks to simplify a complex diagram, wants to convert markdown tables/bullet lists/SQL schemas/JSON structures/API lists/RACI matrices into visual formats, or says 'make this visual'. Do NOT use for actual image generation (PNG, SVG rendering) — output is always Mermaid markdown.

SKILL.md

10.7 KB, as published. Nobody here has run it

Optimization: This skill uses on-demand loading. Heavy content lives in references/ and is loaded only when needed.

Language rule: Skill instructions are written in English. When generating user-facing output, detect the project's primary language (from README, comments, docs, commit messages) and produce labels, titles, and annotations in that language. If the project is bilingual, ask the user which language to use before proceeding.

Schema Forge — Clear Diagrams, Zero Syntax Errors

Generate professional, GitHub-compatible Mermaid diagrams that are readable first, pretty second.

Core Philosophy

  1. Clarity over completeness — a diagram that shows too much shows nothing. If it's complex, split it
  2. Right tool for the job — pick the diagram type that makes the data obvious, not the one that looks fancy
  3. GitHub-first — every diagram must render on GitHub without errors. No FontAwesome, no click events, no exotic features
  4. UX ergonomics — treat diagrams like UI: if a user needs more than 5 seconds to understand the flow, redesign it
  5. Truth over aspiration — a diagram must reflect what EXISTS in the code, not what someone hopes to build. Stale diagrams are worse than no diagrams
  6. Gotchas — read ../gotchas.md before producing output to avoid known mistakes

Operating Modes

This skill operates in three modes, detected from the user's input:

Mode A — Single Diagram

The user describes something specific to visualize. Generate one diagram.

Trigger: text description, broken Mermaid, table to convert, specific request.

Mode B — Doc Scan & Convert

The user points at a directory or says "scan", "audit docs", "make visual". The skill crawls documentation files and converts everything that would be genuinely more readable as Mermaid.

Trigger: path to a directory, "scan docs", "convert everything", "make docs visual".

Mode C — Project Schema

The user wants a diagram of the current project (architecture, module structure, data flow). The skill reads the actual codebase to generate accurate diagrams.

Trigger: "project schema", "architecture of this project", "visualize this codebase", "show me the structure".


Mode B — Doc Scan & Convert

Read references/modes.md for the full workflow: candidate detection table, conversion rules, and output format.

Key rule: Only convert if the diagram is genuinely more readable than the original.


Mode C — Project Schema

Read references/modes.md for the full workflow: codebase analysis, diagram generation table, IMPLEMENTED vs PLANNED distinction, and accuracy checklist.


Mode A — Single Diagram

Step 1 — Understand the intent

What does the user want to visualize?

InputAction
Text description ("show me how X works")Design the right diagram type from scratch
Existing Mermaid block (broken or ugly)Fix syntax errors, improve readability
Markdown tableConvert to the most appropriate visual format
Code/architectureExtract structure and visualize it
Kanban board (todo/doing/done)Convert to flowchart with subgraphs per column
PERT / dependency graph (tasks + durations)Convert to flowchart with durations on edges (not gantt — PERT is a DAG, not a timeline)
Roadmap / scheduled timelineConvert to gantt or timeline
"Simplify this diagram"Reduce complexity, split if needed

Step 2 — Choose the right diagram type

Think like a UX designer. Match the data shape to the diagram type:

Data shapeBest diagramWhen to switch
Process with stepsflowchart> 15 nodes → split into sub-flows
Interactions between actorssequenceDiagram> 8 participants → group into sub-diagrams
Object/class structureclassDiagram> 10 classes → split by domain/module
State transitionsstateDiagram-v2> 12 states → use composite states or split
Data relationshipserDiagram> 8 entities → split by bounded context
Project timelinegantt> 20 tasks → split by phase/milestone
Proportions/distributionpie> 7 slices → group small ones into "Other"
Hierarchy/brainstormmindmap> 4 levels deep → flatten or split branches
Chronological eventstimeline> 15 events → split by era/phase
Flow volumessankeyKeep under 15 flows
Priority/comparisonquadrantChartAlways exactly 4 quadrants
Git workflowgitGraphKeep under 10 commits per branch shown
RequirementsrequirementDiagram> 10 requirements → split by category

Decision heuristic: If you hesitate between two types, pick the one with fewer visual elements for the same information.

Step 3 — Complexity check (the 5-second rule)

Before writing, estimate complexity:

nodes + edges = complexity score
ScoreAction
< 20Single diagram, go ahead
20-40Consider grouping with subgraphs
40-80Split into 2-3 diagrams with a navigation overview
> 80Mandatory split. Create an overview diagram + detail diagrams

Splitting strategy:

  1. Create a Level 0 overview (max 7 boxes, one per sub-diagram)
  2. Each sub-diagram is self-contained with clear entry/exit points
  3. Name sub-diagrams consistently: "Detail: [Topic]"
  4. Reference between diagrams using consistent node names

Step 4 — Write the diagram

Follow these rules strictly:

GitHub Compatibility (non-negotiable)

  • Use ```mermaid fenced code blocks
  • NO FontAwesome icons (fa:fa-*) — use emoji or text instead
  • NO click events or callbacks
  • NO tooltips or interactive features
  • NO %%{init: {"theme": "..."}}%% with custom fonts (GitHub ignores them)
  • Node IDs: start with a letter, use camelCase or snake_case
  • Keep under 50 nodes and 100 edges per diagram (GitHub hard limits: 280 edges)
  • Keep total Mermaid block under 2000 characters for reliable rendering
  • Test-worthy: the diagram must parse without errors

Readability Rules

  1. Direction matters:
    • TB (top-bottom) for hierarchies and flows
    • LR (left-right) for timelines and sequences
    • RL for right-to-left language projects
  2. Labels are mandatory — no unlabeled arrows. Every edge tells a story
  3. Node shapes convey meaning:
    • [text] rectangle = process/action
    • (text) rounded = start/end
    • {text} diamond = decision
    • [(text)] cylinder = database/storage
    • [[text]] subroutine = external system
    • >text] flag = event/signal
  4. Subgraphs for grouping — use them to reduce visual noise, not add it
  5. Max 3 levels of nesting in subgraphs

Color & Styling (functional, not decorative)

Use classDef for semantic coloring. Never more than 5 classes per diagram.

classDef primary fill:#4A90D9,stroke:#2C6CB0,color:#fff
classDef success fill:#27AE60,stroke:#1E8449,color:#fff
classDef warning fill:#F39C12,stroke:#D68910,color:#fff
classDef danger fill:#E74C3C,stroke:#C0392B,color:#fff
classDef neutral fill:#ECF0F1,stroke:#BDC3C7,color:#2C3E50

When to use color:

  • Highlight the happy path (green) vs error path (red)
  • Distinguish system boundaries (colored subgraphs)
  • Mark status: done/active/pending
  • Never use color as the only differentiator — labels must stand alone

Step 5 — Convert existing content

Read references/conversions.md for 15+ conversion patterns: table→diagram, kanban→flowchart, PERT→flowchart (DAG with durations), roadmap→gantt, SQL→ER, JSON→class, API→sequence, RACI→flowchart, and more.

Step 6 — Review checklist

Before delivering, verify:

  • Renders on GitHub (no syntax errors)
  • Passes the 5-second rule (intent is immediately clear)
  • All edges are labeled (except trivial parent-child)
  • Node count under 50 per diagram
  • Colors are functional, not decorative (max 5 classDef)
  • No GitHub-incompatible features (FA icons, click events, tooltips)
  • Direction matches the data flow (TB for hierarchy, LR for timeline)
  • Complex diagrams are split with an overview
  • Labels match the project's language

Diagram Type Quick Reference

Read references/diagram-types.md for detailed syntax and GitHub-tested examples of each diagram type.

Anti-patterns

Don'tDo instead
50+ nodes in one diagramSplit into overview + details
Rainbow colorsMax 5 semantic colors
Unlabeled edgesEvery arrow tells what happens
fa:fa-icon in nodesUse emoji or text labels
Deeply nested subgraphs (4+)Flatten to 2-3 levels max
Diagram as decorationDiagram as communication
Same diagram type for everythingMatch type to data shape
Wall of text in nodesShort labels, details in docs

Dynamic Handoffs

Condition detectedRecommendWhy
Architecture diagram reveals coupled modules/cli-audit-tangleQuantify the coupling
Sequence diagram shows complex init flow/cli-audit-wizardAudit the setup UX
ER diagram reveals missing docs/cli-audit-docDocumentation audit

Rule: Recommend, don't auto-execute.

Integration with other cli-* skills

SkillRelation
/cli-forge-hldGenerate the C4 L1-L2 diagrams of an HLD
/cli-forge-lldGenerate the C4 L3-L4, sequence, and class diagrams of an LLD
/cli-forge-readmeGenerate the diagrams embedded in a README
/cli-audit-tangleVisualize the call graph and detected cycles
/cli-forge-pipelineVisualize the CI/CD pipeline DAG
/cli-forge-treeRender the project structure as a diagram

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.