interactive-diagram
Installation
SKILL.md
Interactive Diagram
Turn a system into an explorable explanation, not a node-management interface. Default to a bright, ByteByteGo-inspired architecture infographic with React Flow underneath.
Workflow
- Read the user's supplied sources and relevant project guidance. Identify products, actors, services, stores, integration boundaries and evidence dates. Separate observed implementation from proposed architecture and illustrative flows.
- Model each connection as source → target, with its meaning, direction and type: request/response, data pipeline or logical relationship. A cache, operational database and analytics store are parallel responsibilities, not automatically one chain.
- Start with an overview. Add focused views only when they clarify distinct flows, such as partner integration or analytics. Keep human setup and runtime API calls separate.
- For an unchosen visual direction, use Painter to sketch 2–3 directions for approval. If a mockup is already approved, implement it directly and use it as the visual acceptance target; do not substitute a generic dashboard.
Visual contract
- Use a white canvas, restrained pastel node shapes, crisp directional arrows and ample space. Group product areas and asynchronous pipelines into lightly outlined lanes. Avoid a permanent large sidebar, dense toolbars, dark node editors and decorative grids by default.
- Use recognizable shapes: phone for mobile, browser/product card for a portal, service card for an API, storage shape for a database. Use verified official vendor logos/architecture icons, not emoji approximations. Record provenance and usage terms; embed assets for offline delivery. Use a functional icon when no official product logo is verified.
- Arrange the main request horizontally, put stores on independent branches, and place analytics and partner/control-plane flows in separate lanes. Route arrows around cards, not through them. Give reverse-direction arrows a distinct path or show only the direction relevant to the focused view.
- Keep unrelated nodes visible but dimmed in focused views. Retain pan, zoom and fit-all; avoid extra controls.
- Put labels on edges. Selecting a node opens its explanation below the graph rather than permanently consuming canvas width.
- Match the user's language. Explain unfamiliar names beside the label: “ALB (bộ chia request)”, “Fargate (dịch vụ chạy container)”. Explain what a component does, why it is needed, its operating principle, strengths, weaknesses and why it fits this use case. Distinguish general technical rationale from the team's confirmed decision.