network-flow
Skill4 starsChanged yesterdayMITView on GitHub
Create working interactive network and architecture diagrams with moving packets, orthogonal connections, scenario playback, and selectable nodes. Use when the user invokes /network-flow or asks for live flowing diagrams, animated system architecture, request flows, RAG pipelines, or agent workflow visualizations. Accept descriptions, reference images, source material, or graph JSON. Deliver a self-contained HTML file with a working preview when supported; complete rendering, browser verification, and file delivery rather than stopping at a diagram description.
In this repository58 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- anywidget-generatorSkill
- brandkitSkill
- design-taste-frontendSkill
- diagram-designSkill
- docxSkill
- frontend-designSkill
- full-output-enforcementSkill
- gpt-tasteSkill
- grill-meSkill
- high-end-visual-designSkill
- imagegen-frontend-mobileSkill
- imagegen-frontend-webSkill
- image-to-codeSkill
- impeccableSkill
- implement-paper-autoSkill
- implement-paperSkill
- industrial-brutalist-uiSkill
- jupyter-to-marimoSkill
- marimo-notebookSkill
- minimalist-uiSkill
- pdfSkill
- postrboardSkill
- pptxSkill
- redesign-existing-projectsSkill
- skill-creatorSkill
- stitch-design-tasteSkill
- streamlit-to-marimoSkill
- xlsxSkill
- brandkitSkill
- design-taste-frontendSkill
- full-output-enforcementSkill
- gpt-tasteSkill
- high-end-visual-designSkill
- imagegen-frontend-mobileSkill
- imagegen-frontend-webSkill
- image-to-codeSkill
- impeccableSkill
- industrial-brutalist-uiSkill
- minimalist-uiSkill
- redesign-existing-projectsSkill
- stitch-design-tasteSkill
- create-lib-docsSkill
- artwallbgSkill
- commentdropSkill
- newsletter-aiSkill
- prodigySkill
- scrolls-explainerSkill
- scrolls-helpSkill
- scrolls-hideSkill
- scrolls-removeSkill
- scrolls-restoreSkill
- scrolls-setupSkill
- scrolls-unhideSkill
- scrolls-updateSkill
- stata-recipesSkill
- dynamic-promo-videoSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Keep this file as the invocation entry point.
- Very specific: line 48
Write graph JSON: Read references/graph-schema.md.
- Very specific: line 52
Lay out and validate: Prefer curated wide/medium/narrow positions for complex graphs.
- Very specific: line 55
Run python3 <skill-dir>/scripts/validate_graph.py <graph.json>.
- Distinctive: line 57
Render the file: Run:
- Distinctive: line 68
Verify actual behavior: Check desktop and mobile browser renders, card text, attached orthogonal paths, moving packets, scenario captions, …
- Distinctive: line 84
Keep layout stable while changing scenarios.
- Distinctive: line 107
No Vercel source code, logos, or branded assets are bundled.
≈ “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
Network flow
Produce an interactive diagram using the bundled graph-driven renderer. Treat the reference's visual language as inspiration; create original code and content. Keep this file as the invocation entry point. Read the references below on demand; leave README, CHANGELOG, and meta/MAINTAINERS for maintainers.
Options and defaults
Interpret /network-flow [[ system description ]] followed by these options:
| Option | Default | Contract |
--theme | dark-grid | Dark dotted grid, service cards, semantic flow colors. |
--routing | orthogonal | Route horizontal/vertical segments around cards. |
--scenarios | Infer from the system | Ordered comma-separated scenario IDs; include all. |
--mode | simulated | Scripted explanatory animation; never imply measured traffic. |
--output | html | Return one working downloadable HTML file, not code alone. |
The slash-command --output html selects a format. The bundled CLI's --output
requires an actual path, such as output/system-flow.html. The bundled renderer
supports only the defaults above. Reject unsupported values clearly rather than
silently substituting. For measured traffic, read
references/telemetry.md and implement an explicitly
requested adapter separately; never label this simulated renderer as telemetry.
Workflow
- Model the system. Extract components, directed connections, source/destination roles, meaningful scenarios, and failure/recovery branches. Infer routine presentation choices. Ask only if missing information changes system meaning. Identify assumptions and label fictional examples. Keep alternative failure outcomes explicit; do not depict both outcomes as one successful execution.
- Write graph JSON. Read references/graph-schema.md.
Reuse the shape in
assets/examples/rag/generated/rag.json; replace its content for another system. Attach source provenance to evidence where relevant. Express simulated steps in order. Limit a diagram to 24 nodes; split larger systems into scoped diagrams. - Lay out and validate. Prefer curated wide/medium/narrow positions for complex
graphs; use automatic row placement for small graphs. Read
references/layout.md for geometry and limitations.
Run
python3 <skill-dir>/scripts/validate_graph.py <graph.json>. Correct invalid identifiers, endpoints, scenario scopes, and overlapping layout cells first. Render the file. Run:
python3 <skill-dir>/scripts/render.py <graph.json> \ --theme dark-grid --routing orthogonal --mode simulated \ --output <output-dir>/system-flow.htmlPass
--scenarios ingest,answer,retry,allonly when those scenario IDs exist. Work in the requested project/output directory; never edit the installed template to create a particular diagram. Do not overwrite unrelated files.- Verify actual behavior. Check desktop and mobile browser renders, card text, attached orthogonal paths, moving packets, scenario captions, pause/resume, replay, node focus, keyboard clear, and reduced-motion behavior. Read references/verification.md and use the bundled browser check when available. Fix failures and rerun relevant checks. If browser verification is unavailable, disclose that limit; do not claim it passed.
- Deliver completely. Provide the actual
.htmlfile through the host's file mechanism and a concise description of controls. Show an interactive preview when supported. If the host needs an HTML fragment, extract the body after generating the standalone file, preserve its scoped CSS and scripts, and keep the downloadable document as the deliverable. Do not stop at a static image, Mermaid diagram, unexecuted source snippet, or promised attachment. Never claim a file is hosted or published unless that separate action succeeded.
Runtime behavior
- Keep layout stable while changing scenarios; emphasize active edges and nodes.
- Render HTML buttons above an SVG wire layer. Animate packets along actual paths at a consistent speed; keep a thin stationary track visible.
- Select a node to trace immediate incoming/outgoing edges within the active scenario. Select it again or press Escape to clear focus.
- Provide pause/resume and replay. Honor reduced motion without hiding topology.
- Resize and reroute without shrinking labels into unreadable miniature cards.
- Preserve graph text as text, not executable HTML. Keep generated files offline and free of external dependencies by default.
Bundled example
assets/examples/rag/generated/rag.json and its generated rag.html cover ingestion,
retrieval, reranking, context assembly, generation, citation resolution, bounded
retry, and abstention. The handbook quotation is illustrative, not sourced policy.
The retry playback explicitly labels the exhausted path as an alternative outcome.
For the original delivered visual and its exact invocation, use
assets/examples/rag/original/rag_demo.html and rag_prompt.md. These are a preserved
example pair; assets/examples/rag/generated/rag.json remains the editable renderer fixture.
The design reference is the interactive architecture graphic in Vercel's Python announcement. No Vercel source code, logos, or branded assets are bundled.
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.

