build-interactive-diagram
Skill0 starsChanged 32 days agoMITView on GitHub
Create polished, self-contained HTML diagrams for architecture, workflows, state transitions, comparisons, timelines, and other explanations that materially benefit from interaction. Use when a browser visual would communicate relationships better than terminal prose, especially in remote Codex or Claude conversations; optionally publish the result through the serve-artifacts skill.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-contextSkill
- change-impactSkill
- eval-candidate-auditSkill
- eval-harness-experimentSkill
- eval-suite-auditSkill
- grill-meSkill
- project-evalSkill
- project-reviewSkill
- review-and-fixSkill
- review-guidance-auditSkill
- serve-artifactsSkill
- todo-captureSkill
- tool-auditSkill
- verification-harness-auditSkill
- verify-projectSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create a temporary browser artifact when interaction materially improves the explanation.
- Very specific: line 16
Create a new bounded output directory outside the installed skill.
- Distinctive: line 20
Keep everything local: HTML, CSS, JavaScript, SVG, and data files.
- Distinctive: line 25
Read diagram-quality.md while building or reviewing the visual.
- Distinctive: line 33
Check the browser console and ensure all assets resolve without network access.
- Very specific: line 34
If serve-artifacts is available, publish the directory with a short relevant TTL and return its browser URL.
- Distinctive: line 36
If the host is unavailable, return the absolute entry-file path and concise local serving instructions.
- Distinctive: line 41
Do not embed private context, credentials, raw transcripts, or unrelated repository files.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build Interactive Diagram
Create a temporary browser artifact when interaction materially improves the explanation. Use prose or a small Markdown table for simple facts and one-step flows. Keep long-term product documentation in its owning repository.
Build the visual
- Choose the smallest useful form: flow for sequence, graph for dependencies, timeline for change, or grouped cards for comparison and ownership.
- Create a new bounded output directory outside the installed skill. Copy
assets/starter/into it when the starter matches; never edit the installed copy. - Replace the sample model and labels with the user's actual content. Remove controls that do not help the explanation.
- Keep everything local: HTML, CSS, JavaScript, SVG, and data files. Do not add a CDN, analytics, external fonts, or a framework merely for presentation.
- Make the first viewport understandable without interaction, then use selection, filtering, focus, or progressive detail to reveal more.
Read diagram-quality.md while building or reviewing the visual. It contains the layout, interaction, accessibility, and QA contract.
Validate and deliver
- Open or request the entry page through a local HTTP server; do not claim visual quality from source inspection alone.
- Exercise every control, keyboard focus, narrow layout, empty state, and long label.
- Check the browser console and ensure all assets resolve without network access.
- If
serve-artifactsis available, publish the directory with a short relevant TTL and return its browser URL. Follow that skill for remote/Tailscale setup. - If the host is unavailable, return the absolute entry-file path and concise local serving instructions. The diagram skill must remain useful on its own.
- Summarize what the visual shows in the conversation so the result is still useful to someone who cannot open it.
Do not embed private context, credentials, raw transcripts, or unrelated repository files. When revising an existing artifact, create a new published copy and revoke the old one after the user confirms it is no longer needed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

