CommunityImagengithub.com

draw-mechanism

Draw how a system is put together or what happens over time — network and service topologies, layered stacks, reader-stepped mechanisms with packets and refusals, sequence (ladder) diagrams, swimlane timelines with measured spans such as RPO/RTO, and first-match rule walkthroughs — in the PlanetScale-style visual language. Use when the user asks for an architecture diagram, request path, sequence diagram, incident or recovery timeline, firewall or policy evaluation, or any boxes-and-flows figure.

¿Qué es draw-mechanism?

draw-mechanism is a Claude Code agent skill that draw how a system is put together or what happens over time — network and service topologies, layered stacks, reader-stepped mechanisms with packets and refusals, sequence (ladder) diagrams, swimlane timelines with measured spans such as RPO/RTO, and first-match rule walkthroughs — in the PlanetScale-style visual language. Use when the user asks for an architecture diagram, request path, sequence diagram, incident or recovery timeline, firewall or policy evaluation, or any boxes-and-flows figure.

Compatible con✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Adekabang/engineering-writing-skills/tree/HEAD/skills/draw-mechanism

Installed? Explore more Imagen skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Draw a mechanism

Requires planetscale-style-figures, installed next to this skill (links use ../). If it is missing, read https://github.com/Adekabang/engineering-writing-skills/tree/main/skills/planetscale-style-figures.

Visual language (mandatory): ../planetscale-style-figures/references/visual-language.md. Type catalogue, sections A, B and H: ../planetscale-style-figures/references/figure-types.md.

Pick the shape from the claim

ClaimShape
"These parts connect like this"Static topology with groups (segments, hosts) and a description list
"Here is what happens to one request"Stepped mechanism: 2–4 steps, a packet dot on the active path, outcome box per step
"This path is refused"Stepped mechanism with a denied line and a × mark at the deciding control
"These parties exchange messages in this order"Ladder: actors as columns, numbered messages top to bottom
"This happens over hours and the gap matters"Timeline: lanes, bars, events, a measured span
"The first matching rule wins"Rule walkthrough: packet fields, ordered rules, default rule last

A ladder wider than about four actors stops fitting at 480 px; use a topology instead.

Steps

  1. Write the claim and the beats (what changes in each step, one outcome sentence each).
  2. Name every box and line with short uppercase labels; keep full names for the description.
  3. Route lines orthogonally; one colour per kind of flow, labelled in that colour.
  4. Hatch the node that matters; cylinders for stores; groups as dashed rectangles.
  5. Write the lead-in sentence for the page and the text alternative.
  6. Run review-figures before handing back.

Project conventions

If the project documents its own rules (for example in AGENTS.md, CLAUDE.md or a contributing guide), they win over this skill. Put the figure where the project keeps figure data and use its builders for ladders, timelines and rule walkthroughs when they exist. Every label needs text in each language the page ships that fits the box; run the project's figure tests.

Individual skills in this repo

This repo contains 3 individual skills — each has its own dedicated page.

plain-indonesian

Edit or write Indonesian technical documentation in plain language (bahasa Indonesia yang lugas) — short active sentences, one instruction per sentence, sentence-case headings, EYD, consistent "Anda", natural word order instead of translationese — while keeping established technical terms, requirement words (harus, wajib, dapat), values, code and anchors, and verifying afterwards that nothing was lost. Use when the user asks to improve Indonesian docs, fix translationese or untranslated English, apply EYD, or run a language pass over Indonesian pages.

planetscale-style-figures

Design and build explanatory diagrams, animations and interactive figures in the visual language of the PlanetScale engineering blog — monospace uppercase labels, square boxes with an inset dashed outline, orthogonal connectors, one colour per flow, reader-stepped "STEP n OF m" mechanisms, charts from real data, simulations and explorers. Use on its own whenever the user wants a figure, diagram, chart, animation or interactive visual for a post, doc page or book chapter (including redrawing an existing diagram), or when the planetscale-style-blog skill hands over its figure plan. Umbrella skill: prefer draw-mechanism, chart-evidence, build-interactive or redraw-diagram when one clearly fits; use this one for mixed sets of figures or when unsure.

review-figures

Read-only audit of the figures on a page — screenshot every step in light mode, dark mode, at 375 px and after client-side navigation, then check them against the PlanetScale-style visual language, label fit, overlaps, outcome boxes and text alternatives. Use when the user says a diagram looks off, asks to check or screenshot figures, or after building or redrawing a figure.

Skills relacionados