/dev-skills:visualize-archfrom dev-skills
Use this skill to create or update verified architecture figures from a software repository. Use it for system overviews, components, actors, database schemas, user stories, and data or control flows. Use it to plan figure sets, improve diagram quality, or refresh figures after code changes. Use it for publication figures with editable TikZ and vector outputs. Do NOT use it for charts, dashboards, interface mockups, class diagrams, isolated call sequences, or decorative illustrations.
Ships in dev-skills. 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.
Create figures that explain verified structure and behavior at their final display size. Keep the source editable. Generate Scalable Vector Graphics (SVG) and Portable Document Format (PDF) outputs. Use Simplified Technical English in figures, captions, plans, and reports.
This workflow adapts the reference selection in FigureForge and the planning, style, generation, and review stages in PaperBanana. The stages describe separate decisions. One agent can perform every stage.
Inspect architecture documents, entry points, storage, configuration, external clients, and relevant tests. Trace each important flow from its real actor or trigger to its outcome. Resolve conflicting evidence before you draw. Mark unresolved assumptions explicitly.
Identify the audience, system boundary, and current or proposed state. For each figure, record its question, main message, type, included elements, and excluded details. Separate figures when their questions, actors, or outcomes differ. Keep a static overview separate from detailed ordered behavior when their combination obscures either view.
Give the user a concise numbered plan with the figure count and each figure's purpose. Continue within the requested scope unless the user requests approval before generation. Ask a question only when missing information changes the meaning or scope.
Create a temporary evidence model before generation:
For large repositories, use read-only subagents when available. Give each subagent a separate evidence area. Require claims, source paths, source symbols, and unresolved questions. Keep generation under one agent's control.
Read references/examples.md. Select two to four examples that match the figure's question and structure. Prefer the user's examples and current repository figures when they fit. Use janosh/diagrams and PetarV-/TikZ as the references for the modern visual style.
Inspect the actual images. Do not select references from captions alone. Compare their panel arrangement, hierarchy, density, text size, grouping, and routes. Record which design choices apply and which choices do not apply. Choose one primary example for composition. Use other examples for specific supporting choices.
Identify the diagram type. Use the Kriterion figure of that type to choose the notation and required elements. Use the bundled worked example of the same type when Kriterion access is unavailable. Read references/worked-examples.md for complete architecture, schema, and workflow examples. The bundled worked examples include evidence, design choices, review corrections, and editable outputs. Report an incomplete visual comparison when no suitable reference is available. Do not claim that an inaccessible image influenced the design.
Read references/design-principles.md. Create a temporary design specification for each figure:
Use the venue's dimensions when available. Otherwise use 85 mm for a paper column, 178 mm for a paper-wide figure, or 180 mm for repository documentation. Use at least 8 pt text at the final width unless the venue specifies another minimum. Choose a larger figure or split panels when labels cannot fit at that size.
Use the modern theme from the design principles for every figure. Choose notation by figure type. Number ordered behavior only. Use labels, line styles, or shapes in addition to color. Compare two rough layouts for dense figures before you refine either layout.
For TikZ, read references/tikz.md. Use the bundled styles as a starting point. Replace their sample structure with the verified model. Use the selected composition rather than a fixed actor-left arrangement.
Use nouns for components. Use short action labels for ordered arrows. Draw every in-scope schema relationship as a visible connection. Show its keys and cardinalities. Use notes only for constraints. Draw each required guard as a decision with visible success and rejection paths. Use notes for shared invariants. Never replace a required branch with prose. Keep each box's responsibility clear. Use explicit junctions for shared actions. Give different actions separate line segments.
Keep the evidence model and design specification separate from generated presentation files. Recheck evidence whenever a content change occurs.
Build the figure with the current repository command or the bundled renderer:
python3 path/to/visualize-arch/scripts/render_tikz.py docs/assets/system-architecture.tex
python3 path/to/visualize-arch/scripts/check_figure.py docs/assets/system-architecture.pdf --width-mm 180
The checker requires Poppler's pdftohtml and pdftoppm commands.
It reports effective text size, page bounds, and text collisions.
It creates color and grayscale previews at the requested width.
Its checks cannot establish semantic correctness or detect every visual defect.
Read references/review.md. Inspect both previews at their final display size. Inspect an enlarged preview for route defects. Use a separate Codex reviewer for the correctness review against the evidence model. Use read-only subagents when the host supports them. Give the reviewer the rendered figure, editable source, relevant repository evidence, and design specification. Use another Codex reviewer for the visual review against the design specification and selected reference images. Compare the figures at equivalent display widths. Record any material deficit against the selected references. Record each defect with its location, effect, and proposed correction.
Correct the highest-impact defect first. Rebuild after each correction. Repeat both reviews after any change that moves a node, label, or route. Use three correction rounds as the default limit. If defects remain, simplify the layout within scope or report the limitation. Never label an unfinished figure as publication-ready.
Keep the editable source, SVG output, and PDF output together. Provide one documented build command for a new maintained figure. Ignore temporary renderer files. Preserve requested generated outputs. Change repository instructions or PR templates only when the user requests those changes.
List the exact path of every editable source and generated vector file. Use one row or bullet for each figure. Give the caption path when the caption has a separate file. State the final width, effective minimum text size, reference choices, and completed checks. Report unresolved assumptions and unavailable checks. Keep temporary evidence and review files uncommitted unless the user requests them.
agents/openai.yaml (opens in a new tab)assets/Makefile (opens in a new tab)assets/architecture-template.tex (opens in a new tab)assets/worked-examples/evidence/deployment.toml (opens in a new tab)assets/worked-examples/evidence/dispatch.py (opens in a new tab)assets/worked-examples/evidence/releases.py (opens in a new tab)assets/worked-examples/evidence/schema.sql (opens in a new tab)assets/worked-examples/schema-color.png (opens in a new tab)assets/worked-examples/schema-gray.png (opens in a new tab)assets/worked-examples/schema.pdf (opens in a new tab)assets/worked-examples/schema.svg (opens in a new tab)assets/worked-examples/schema.tex (opens in a new tab)assets/worked-examples/system-color.png (opens in a new tab)assets/worked-examples/system-gray.png (opens in a new tab)assets/worked-examples/system.pdf (opens in a new tab)assets/worked-examples/system.svg (opens in a new tab)assets/worked-examples/system.tex (opens in a new tab)assets/worked-examples/workflow-color.png (opens in a new tab)assets/worked-examples/workflow-gray.png (opens in a new tab)assets/worked-examples/workflow.pdf (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub sebastianelvis/dev-skills --plugin dev-skills4 skills in this plugin
/pr-genUse this skill when the user requests a GitHub PR title or description for the current branch. Triggers include "write the PR description", "update the PR", "summarize this branch for review", and "match our PR template". Other triggers include "draft a PR", "retitle the PR", and "regenerate the body". The skill verifies the final diff and produces concise Simplified Technical English. Do NOT use this skill for changelogs, release notes, issue summaries, or code review./pr-reviewUse this skill when the user requests a review of another person's GitHub PR. Triggers include "review PR 123", "is this safe to merge", and "check this PR's design". Other triggers include "does this break the protocol" and "does this solve the issue". The review checks the problem, specification, architecture, necessity, root cause, correctness, security, and project rules. The human confirms the specification, problem, and approach before the detailed review. Do NOT use this skill for an uncommitted local diff, a PR description, or a lint check./sweep-gh-unreadUse this skill when the user asks to sweep, clear, triage, or clean up GitHub notifications. Triggers include "sweep my GitHub notifications", "clear my GitHub inbox", "mark the finished notifications as done", and "what needs my action on GitHub". Other triggers include "which PRs wait for me" and "sweep notifications in acme/api". The skill classifies each notification thread and asks the user to confirm. It then marks the threads without an open action as done. It lists action items for the user's PRs and for reviews of other PRs. The user can limit the sweep to an owner or an owner/repo. Do NOT use this skill to review one PR (use pr-review), to write a PR description (use pr-gen), or for Slack or email notifications.