/cdx:sketch-diagramfrom cdx
Draw an animated, hand-drawn-style technical diagram: ink doodles on beige paper, wobbly strokes, faint watercolour regions, doodle icons, number stamps, and dots flowing along the edges. Produces one self-contained HTML file (inline SVG + CSS animation + embedded fonts) and exports it to a seamlessly looping GIF. Use when the user wants an architecture diagram, flow chart, pipeline or workflow picture, infographic, comparison, or explainer visual, or asks for something "hand-drawn", "sketch style", "doodle style", an "animated diagram" or a "GIF diagram".
Ships in cdx. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Deliver a seamlessly looping GIF plus the self-contained HTML it was rendered from.
Needs bun, ffmpeg and a headless Chrome; if render.ts cannot find one it prints
the fix. Relay it to the user rather than installing anything.
$SKILL in the commands below stands for the absolute path of this skill's directory (the folder that contains this SKILL.md). Shell variables don't persist between tool calls, so substitute the real path in each command (or prefix it with SKILL=<path>).
| Content | Layout |
|---|---|
| parallel categories or stages, each with an inner flow | horizontal bands |
| layered architecture (frontend → services → storage) | vertical stack of full-width layers |
| a core with satellites | radial: centre node, satellites, spokes |
| two or three things compared | side-by-side columns or a matrix |
| stages that repeat forever (reconcile, lifecycle) | ring of regions (a 2×2 read clockwise), closing arc back to stage 1 |
| one main process | a single snaking axis filling the canvas |
| change over time | timeline, cards alternating above and below |
Layouts can nest. Content comes from the user's topic, never from the template's placeholders.
The animation tells what flows. In one sentence: what moves (data, requests, tasks), where it starts, where it branches, merges or loops, where it ends. Draw exactly that: branches branch, loops loop back with a dot running round. The shape of the motion should retell the topic. A row of same-direction arrows means this step was skipped.
$SKILL/references/style.md in fullTokens, layout and motion rules, SVG recipes, pitfalls. Use its values only.
Copy $SKILL/assets/template.html to <name>.src.html (in the user's chosen directory,
default the current one), replace every PLACEHOLDER block, and draw every icon
yourself. Then:
bun "$SKILL/scripts/build.ts" <name>.src.html -o <name>.html
Always edit the .src.html and rebuild. Animate with CSS only (no SMIL, no JS motion):
the renderer freezes frames through document.getAnimations().
bun "$SKILL/scripts/render.ts" <name>.html <name>.gif --preview 3
Read the three PNGs it writes. Any warn: line (a duration that breaks the loop) is a
bug. note: lines flag overlapping text (fix) and dot speeds (judge). Check:
style.md holdFix the .src.html, rebuild, re-preview until clean. Delete the preview PNGs.
bun "$SKILL/scripts/render.ts" <name>.html <name>.gif
Takes 1–2 minutes; give the command a timeout of at least 5 minutes. Keep the default --scale 2, and pass
--loop only if you changed the page's --loop. Report the GIF and HTML paths with
the size, frame count and file size it prints. Keep the .src.html for later edits.
assets/fonts/Kalam-700.woff2 (opens in a new tab)assets/fonts/OFL.txt (opens in a new tab)assets/fonts/PatrickHand-400.woff2 (opens in a new tab)assets/template.html (opens in a new tab)assets/vendor/rough.js (opens in a new tab)assets/vendor/sketchify.js (opens in a new tab)references/style.md (opens in a new tab)scripts/build.ts (opens in a new tab)scripts/render.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub deviantony/claude-plugins --plugin cdx9 skills in this plugin
/coderevPre-PR code review of the current branch, run by an independent reviewer subagent in a fresh context; the main agent then triages its findings on its own, fixes what is worth fixing in a separate commit, and reports what it fixed, skipped and needs the user for. Use proactively, without being asked, right before opening a pull request on the user's own branch: before running `gh pr create`, or when the user says "open a PR", "ready for review", "ship it", "push this up for review". Also invoked manually as `/cdx:coderev`./dev-docsGenerate and maintain a `docs/` directory of markdown developer documentation for a project. Scans source code, writes structured docs with YAML frontmatter for git-based drift tracking, and produces clean markdown that renders on GitHub (including mermaid diagrams). Use this skill when the user asks to generate, create, update, or refresh developer documentation, scan their codebase for documentation purposes, or check whether existing docs have drifted from the code. Also trigger on phrases like "dev docs", "documentation builder", "doc generator", "refresh the docs", "check docs for drift", or "document this codebase". Do NOT trigger for implementation plans, architecture decisions, migration plans, general project planning, code reviews, API reference generation from annotations, or any task that isn't specifically about producing or maintaining a hand-written developer documentation set.