coco-diagram

coco-diagram is a skill for Claude Code, Codex from coco-research/coco. It costs 59 tokens per session (9,459 once invoked), scanned A, original, Apache-2.0.

A skill for creating branded diagrams and charts, including architecture diagrams, flowcharts, timelines, data models, and process views. It supports many common ways of showing systems, steps, relationships, and data.

In plain words
What is it for?
Use it to document software architecture, map data flows, show processes, plan timelines, or present structured data.
Why use it?
It turns technical or business information into a visual format that is easier to inspect and share.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to document software architecture, map data flows, show processes, plan timelines, or present structured data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/coco-research/coco/coco-diagram
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 coco-research/coco --skill coco-diagram
Clone the repo
git clone --depth 1 https://github.com/coco-research/coco

Made for: Claude Code, Codex.

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 coco-diagram

README.md
[![agentmods](https://agentmods.dev/badge/skills/coco-research/coco/coco-diagram/github.svg)](https://agentmods.dev/skills/coco-research/coco/coco-diagram)
Your own site
<a href="https://agentmods.dev/skills/coco-research/coco/coco-diagram"><img src="https://agentmods.dev/badge/skills/coco-research/coco/coco-diagram/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 coco-diagram

Your own site · 80×15
<a href="https://agentmods.dev/skills/coco-research/coco/coco-diagram"><img src="https://agentmods.dev/badge/skills/coco-research/coco/coco-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,459 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.00059 $0.09459
Opus 5.5 $0.00024 $0.03784
Sonnet 5.5 $0.00012 $0.01892
Haiku 4.5 $0.00006 $0.00946

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

Security

Grade A, and why

coco-diagram 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

skills/coco-diagram/SKILL.md · 570 lines

How it starts

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

CoCo Diagram

Create visual diagrams as self-contained HTML files with inline SVG and CSS, following an opinionated editorial design system.

Twenty-seven visual types. Semantic patterns describe behavior independently; type references describe layout. Details load from references/ only when selected.


0. First-time setup — style guide gate

Before generating your first diagram in a new project, verify the style guide has been customized.

Don't silently ship default-skinned diagrams into a branded project.

Open references/style-guide.md and check the default tokens. If they're still the shipped defaults (paper #f5f5f5, ink #2d3142, accent #BE185D coco-magenta), pause and ask the user:

"This is your first Schematic in this project. The style guide is still at the default (neutral white-smoke + coco-magenta). Do you want to customize it to match your brand first? Options: (a) pull from your website URL, (b) extract from an installed skill, (c) extract from a local folder / design-system directory, (d) paste tokens manually, (e) proceed with the default for now."

Then branch:

  • (a) → follow references/onboarding.md § URL to fetch the site, extract palette + fonts, propose a diff, and write style-guide.md.
  • (b) → follow references/onboarding.md § Skill — ask which skill, read its SKILL.md / CSS / token files, map to semantic roles, propose diff.
  • (c) → follow references/onboarding.md § Folder — ask for the path, glob for CSS/JSON/MD token files, map to semantic roles, propose diff.
  • (d) → accept the user's tokens and write them into style-guide.md under a new "Custom tokens" section.
  • (e) → proceed; optionally remind the user they can run onboarding later.

Once the style guide has been customized (or the user explicitly opted for default), skip this gate on subsequent runs. A simple way to detect customization: if the accent value in style-guide.md differs from #BE185D, assume custom.

Read the full file on GitHub · 570 lines

Files

What ships with it

60 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 Changed · -88 tokens per session 44c12442e838
  2. 2mo ago First seen · 570 lines · 147 tokens per session scan A 80fcf1ab2bc0

Subscribe to this mod's changes

coco-diagram is a skill published in the GitHub repository coco-research/coco (785 stars, last pushed yesterday), licensed Apache-2.0. It adds 59 tokens to every session and 9,459 once invoked, about $0.0002 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-30.

Related

coco-diagram compared with skills from other repositories

coco-diagram next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
coco-diagramcoco-research/cocoSkill785yesterdayApache-2.0A59Claude Code, Codex
nothing-designmarcusquinn/aidevopsSkill439todayMITA50Claude Code
custom-brand-designKbWen/agentic-osSkill2274d agoMITA23Claude Code, Codex
architectural-civil-drafterwonsukchoi/domain-expertsSkill243d agoMITA82Claude Code, Codex
architecture-teacher-postsecondarywonsukchoi/domain-expertsSkill243d agoMITA78Claude Code, Codex
art-directorwonsukchoi/domain-expertsSkill243d agoMITA68Claude Code, Codex
commercial-industrial-designerwonsukchoi/domain-expertsSkill243d agoMITA67Claude Code, Codex