cli-forge-schema

cli-forge-schema is a skill for Claude Code from Destynova2/cli-code-skills. It costs 199 tokens per session (2,664 once invoked), scanned A, original, MIT.

A guide for creating Mermaid diagrams, which are text-based diagrams that can render in GitHub and other supported tools.

In plain words
What is it for?
Making flowcharts, sequence diagrams, architecture diagrams, data models, state machines, timelines, and other project diagrams.
Why use it?
It helps represent code or system relationships clearly while avoiding diagram syntax that GitHub cannot display.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter.

Part of the cli-code-skills plugin — 36 skills shipped together

Good fit Making flowcharts, sequence diagrams, architecture diagrams, data models, state machines, timelines, and other project diagrams.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/destynova2/cli-code-skills/cli-forge-schema
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Destynova2/cli-code-skills --skill cli-forge-schema
Clone the repo
git clone --depth 1 https://github.com/Destynova2/cli-code-skills

Made for: Claude Code.

Or install cli-code-skills, the plugin that ships this one along with the rest of its 36 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cli-forge-schema

README.md
[![agentmods](https://agentmods.dev/badge/skills/destynova2/cli-code-skills/cli-forge-schema/github.svg)](https://agentmods.dev/skills/destynova2/cli-code-skills/cli-forge-schema)
Your own site
<a href="https://agentmods.dev/skills/destynova2/cli-code-skills/cli-forge-schema"><img src="https://agentmods.dev/badge/skills/destynova2/cli-code-skills/cli-forge-schema/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cli-forge-schema

Your own site · 80×15
<a href="https://agentmods.dev/skills/destynova2/cli-code-skills/cli-forge-schema"><img src="https://agentmods.dev/badge/skills/destynova2/cli-code-skills/cli-forge-schema.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 199 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,664 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00199 $0.02664
Opus 5.5 $0.00080 $0.01066
Sonnet 5.5 $0.00040 $0.00533
Haiku 4.5 $0.00020 $0.00266

Measured 1mo ago against content hash 799a270406be, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cli-forge-schema scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

cli-forge-schema/SKILL.md · 242 lines

How it starts

The opening of the file, as written. The whole thing — 242 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 242 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 242 lines · 199 tokens per session scan A 799a270406be

Subscribe to this mod's changes

cli-forge-schema is a skill published in the GitHub repository Destynova2/cli-code-skills (5 stars, last pushed 2mo ago), licensed MIT. It adds 199 tokens to every session and 2,664 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

workflow

Professional AI programming assistant with structured workflow (Research -> Ideate -> Plan -> Execute -> Optimize -> Review) for developers.

UfoMiao/zcf · 25 tokens

app-screenshot-debug

Drive the running termio app via AppleScript / System Events to reach a UI state (focus the window, click a sidebar project, a terminal pane, a control), capture a pixel-accurate screenshot of just that window, and read it back for visual analysis — for diagnosing layout / spacing / alignment / 'this looks ugly'…

termio-sh/termio · 161 tokens

user-research-cookiy

End-to-end user research assistant — qualitative and quantitative. Use this skill whenever the user mentions user research, user interviews, discussion guides, interview guides, research plans, qualitative research, quantitative research, user surveys, survey design, usability studies, participant recruitment…

cookiy-ai/user-research-skill · 154 tokens

excalidraw-cli

Create editable Excalidraw flowcharts and diagrams, or export .excalidraw files to PNG or SVG.

swiftlysingh/excalidraw-cli · 30 tokens

feat

Skill "feat" from UfoMiao/zcf, covering core workflow, 1. input analysis and type determination, 2. classification processing mechanism, 3. key execution principles and quality assurance points.

UfoMiao/zcf · 5 tokens

preview-design

Render a real artifact through this branch's local MERIDIAN design code (not the published npm package) so the team can test the new Design Convention on the document / handoff / platform surfaces before it ships. Use for /preview-design, "preview the design convention", "render this with the new design", or Design…

egregore-labs/egregore · 71 tokens