reactflow-architecture-diagrams
Skill17 starsChanged 56 days agoMITView on GitHub
Delivers narrative interactive architecture diagrams using React, TypeScript, Tailwind, and @xyflow/react (React Flow): node and edge patterns, optional Cloudflare orange shell grouping, routing, and verification. Use when adding or editing React Flow diagram components (Diagram.tsx suffix convention), files under components/diagrams, xyflow edges, animated canvas traffic, or when the user asks for a React Flow architecture diagram alongside documentation.
In this repository53 other files it gives its agents.
- agents-sdkSkill
- agent-workflowSkill
- api-designSkill
- aws-iamSkill
- bash-shell-scriptingSkill
- cicd-github-actionsSkill
- cloudflare-email-serviceSkill
- cloudflareSkill
- cloudflare-waf-authorSkill
- cloudflare-workers-authorSkill
- cloud-platformsSkill
- codebase-security-auditSkill
- containers-orchestrationSkill
- core-engineeringSkill
- database-postgresqlSkill
- databricksSkill
- data-engineeringSkill
- distributed-transactionsSkill
- documentation-standardsSkill
- domain-driven-designSkill
- durable-objectsSkill
- frontend-engineeringSkill
- git-workflowSkill
- go-rust-systemsSkill
- iam-security-advisorSkill
- independent-verificationSkill
- infrastructure-iacSkill
- kubernetes-containersSkill
- kubernetes-operator-developmentSkill
- mcp-developmentSkill
- memory-architectureSkill
- multi-perspective-reviewSkill
- networking-transportSkill
- observabilitySkill
- oktaSkill
- pdf-exportSkill
- python-developmentSkill
- sandbox-sdkSkill
- scripting-automationSkill
- security-testingSkill
- service-resilienceSkill
- single-file-dashboardSkill
- skills-compositionSkill
- skills-continuous-improvementSkill
- snowflakeSkill
- system-designSkill
- typescript-javascriptSkill
- web-perfSkill
- web-research-kb-refreshSkill
- workers-best-practicesSkill
- workload-identitySkill
- wranglerSkill
- zero-trustSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Follow rules/815-reactflow-diagrams.mdc for do/don't lists, file globs, and edge semantics.
- Very specific: line 34
Add a parent shell node (cfShell or your name) with fixed width/height and overflow: 'visible'.
- Very specific: line 36
Use opaque inner cards for text-heavy nodes sitting on the orange frame (see 815).
- Very specific: line 44
Do not skip lint and build (or tsc -b) after graph or handle changes.
≈ “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
React Flow architecture diagrams
Canonical rule
Follow rules/815-reactflow-diagrams.mdc for do/don't lists, file globs, and edge semantics. This skill is the playbook; the rule is the contract.
When to use Mermaid vs React Flow
- Mermaid (see
rules/800-markdown.mdcandskills/documentation-standards): static diagrams in Markdown, ADRs, GitHub-rendered docs. - React Flow: interactive or animated canvases, custom nodes (logos, multi-line cards), and legend + diagram product pages.
Playbook: add a new diagram to an existing SPA
- Pick a reference diagram in the same app (or copy patterns from
815) and reduce scope; keep one story per canvas. - Implement
buildNodesAndEdges()(or equivalent) returning{ nodes, edges }. KeepnodeTypesandedgeTypesat module scope withmemo()-wrapped components. - Add a route page: title, scope (what one request or one flow shows), optional static reference image, How to read bullets that map colors and line styles to meaning, then
<YourDiagram />. - Wire the router and home or index links; update README routes and assets tables when paths or figures change.
- Run lint and production build from the app directory.
Playbook: Cloudflare-scoped traffic
- Add a parent shell node (
cfShellor your name) with fixed width/height andoverflow: 'visible'. - Nest child nodes with
parentId+extent: 'parent'; convert world coordinates to parent-relative positions. - Use opaque inner cards for text-heavy nodes sitting on the orange frame (see
815).
Playbook: identity and edge cases
- JWKS / metadata fetch is not the same as OIDC login. If both appear, use dashed edges and distinct colors for issuance vs verification, and say so in page copy.
Verification
Do not skip lint and build (or tsc -b) after graph or handle changes; broken Handle ids fail at runtime.
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.

