/ratchet:diagram-loopfrom ratchet
Create or revise premium, animated, publication-quality architecture, flow, feedback, sequence, and concurrency diagrams. Use only when the user explicitly asks for that level of visual output. Do not use for ordinary ADR, architecture-document, or PR diagrams; those stay on the swe-loop Mermaid path.
Ships in ratchet. 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.
Produce one opinionated visual explanation from approved intent to reviewed PNG and, when animated, WebM and MP4. A diagram run creates no commit, branch, PR, or deployment. Embedding a finished artifact in a repository is a separate software-delivery change.
~/.claude/diagram-loops/<run-key>/<slug>/ as the run root.state.md before any other run artifact. If it exists, load only the
owner artifact and references named by the active phase, then continue from
the first incomplete boundary. Never re-ask an approved gate.Run the renderer through node scripts/run-renderer.mjs <command>. The wrapper
installs the locked runtime into a content-addressed user cache, so an installed
read-only plugin is supported. Before using Remotion, confirm the intended use
is eligible under its current license or that the required company license exists.
Product-demo capture is not part of this release. If the requested result depends on recorded product interaction, report that boundary before creating a run or asking for Gate A.
state.md is the fixed-shape cursor and exact gate authority. It is not an
activity log. CI, files, renders, checkboxes, and prior runs never imply
human approval.Read only the reference named for the active phase.
Read visual-language.md and asset-policy.md. Resolve one item at a time, answering from existing product or repository evidence when possible:
Create intent.md, storyboard.md, assets.yaml, render-plan.md, and one inexpensive
renders/style-frame.png. The frame must show the real typography, palette,
node, icon, and connection treatment. It is not a mood board.
Gate A presents the takeaway, exclusions, storyboard, selected assets, render plan, and style frame. Record the user's exact wording and a digest of those validated inputs.
Read diagram-archetypes.md. Compile the
approved design into the small semantic scene.yaml contract. Do not add
coordinates, SVG paths, CSS, or executable animation code. Split the story
instead of exceeding eight primary concepts, four secondary concepts, or two
grouping levels.
Read asset-policy.md. Verify the approved selected assets are materialized locally with their approved provenance and byte hashes, then compile. Any manifest or render-plan change returns to Phase 0 and requires a new Gate A. Text is measured with the bundled font before layout. A one-pixel safe-area, route-clearance, endpoint-ownership, label, overlap, or viewport violation is a compile error.
Read visual-language.md. Use the shared node, edge, asset-frame, group, callout, and badge components plus the supported narrative actions. Fix scene or asset data before changing layout; change renderer code only for a reusable defect.
Consume the approved render-plan.md, then use the renderer to produce
compiled-scene.json, render-manifest.json, renders/final.png, and, for an
animated scene, renders/final.webm and renders/final.mp4. Generate a
boundary-driven renders/contact-sheet.png. The animation must end on the
complete diagram and hold it for the planned final duration.
Read review-rubric.md. A fresh-context reviewer
receives only the approved intent, final still, contact sheet, animation when
needed, and asset manifest. Run mechanical checks before editorial review.
Record findings in review.md. Any change invalidates the previous pass.
Read the approved intent.md, storyboard.md, and current review.md.
Confirm every required concept, exclusion, and beat. Confirm the current input
digest and output checksums equal the reviewed values. Complete result.md
with the abstraction, omissions, provenance summary, artifact paths, and
checksums. For website use, include the poster, one-shot inline playback, and
reduced-motion fallback from the result template.
Present the final still, animation, and short result summary.
Gate B approves the exact reviewed render. Record the exact wording and render digest, then close the run. A visual change returns to its owning phase, invalidates review, rerenders, and repeats independent review.
The renderer accepts run artifacts and emits deterministic compiled and review
artifacts. It never infers or originates approval. The record-gate command
only persists the exact approval wording supplied from the active conversation.
Run supported commands through node scripts/run-renderer.mjs <command> and
use --help for the current arguments.
The core supports architecture, flow, feedback, sequence, and concurrency.
references/asset-policy.md (opens in a new tab)references/diagram-archetypes.md (opens in a new tab)references/review-rubric.md (opens in a new tab)references/visual-language.md (opens in a new tab)renderer/THIRD_PARTY_NOTICES.md (opens in a new tab)renderer/package-lock.json (opens in a new tab)renderer/package.json (opens in a new tab)renderer/src/assets.ts (opens in a new tab)renderer/src/canonical.ts (opens in a new tab)renderer/src/cli.ts (opens in a new tab)renderer/src/compile-geometry.ts (opens in a new tab)renderer/src/compile.ts (opens in a new tab)renderer/src/compiled-schema.ts (opens in a new tab)renderer/src/composition.tsx (opens in a new tab)renderer/src/contact-sheet.ts (opens in a new tab)renderer/src/design-digest.ts (opens in a new tab)renderer/src/design-tokens.ts (opens in a new tab)renderer/src/digest.ts (opens in a new tab)renderer/src/font.ts (opens in a new tab)renderer/src/frame-state.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
8 skills in this plugin
/consolidateRun a behavior-preserving consolidation pass over a branch or working-tree diff to strip agent-generated semantic sediment (prompt echoing, transition narration, redundant comments, transitional wrappers, and prompt-shaped test names) so the codebase reads as if the final architecture had been known from the beginning. Use when invoked as /consolidate or $consolidate, before opening an ad-hoc PR, or at the end of swe-loop Phase 4 before Phase 5 review.
/frontend-qualityBuild and review usable, visually consistent frontends with executable browser and data-loading checks. Use for visible UI changes, frontend data loading, interaction work, responsive fixes, and frontend review, including frontend portions of a larger feature. Preserves the application's brand and framework.
/grillingGrill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases./grill-meA relentless interview to sharpen a plan or design./swe-loopExplicit autonomous-delivery mode for cohesive features or modules taken end-to-end through design, implementation, verification, and handoff. Use when invoked as /swe-loop or $swe-loop, when resuming a loop, or when the user clearly asks for autonomous delivery. Keep inactive for coworking, co-audits, exploration, simpler variants, focused changes, and requests signaled only by task size, unattended work, or a commit/PR. If autonomy is ambiguous, ask before creating loop artifacts. Once active, enforce exactly two human checkpoints, test intent before tests, independent review, and verification against design.
/work-packagesManage the always-on .ratchet/work-packages.yaml DAG and .ratchet/human-dependencies.md ledger for multi-session, multi-PR, and part-time work. Use when initializing .ratchet/ in a repository, splitting a large feature or open PR into small dark-launchable slices, recording external human/runbook blockers with Unblock-with defaults, or checking/updating work package status during ad-hoc or swe-loop sessions.
npx claudepluginhub dej-h/ratchet --plugin ratchet