pma-draw
Generate ReactFlow diagrams as .rfd.json files using a predefined library of custom node types, edge presets, and layout templates. Use when the user wants to visualize architectures, workflows, data flows, or concepts, or wants to convert analysis of a codebase into a diagram viewable in a ReactFlow-based SPA.
What this skill does
# ReactFlow Diagram Creator Generate `.rfd.json` files that encode meaning in shape, position, and connection — consumed by a ReactFlow-based viewer (pma-viewer) with a predefined catalog of custom node types. Keep this entry file small. Load only the references needed for the current diagram. ## Always-On Rules 1. **Isomorphism first**: node layout and edge topology must mirror the concept's structure. If removing all labels still communicates the idea, the design is right. 2. **Use predefined node types only**. Pull every node `type` from `references/node-types.md`. Never invent new types unless the user asks and the viewer supports them. 3. **Use predefined edge types only**. Pull every edge `type` from `references/edges.md`. Avoid raw `default` unless no preset fits. 4. **Colors come from `references/colors.md`**. Node styling is driven by the preset; override only when semantics require it. 5. **Grouping via parent-child**, not by drawing a container rectangle. Use `parentNode` + `extent: "parent"` on child nodes and a `group` type parent. 6. **Every relationship needs an edge**. Proximity alone is not a connection. 7. **No local render**: the skill emits `.rfd.json` only. Rendering and export happen in pma-viewer (SPA). Quality must be enforced at JSON level — see `references/validation.md`. 8. **Build large diagrams section-by-section**. Append nodes/edges per edit, namespace IDs by section prefix (`ingest__`, `process__`, `deliver__`) to keep cross-section references readable. ## Core Workflow ### Step 1: Depth Assessment - **Simple / Conceptual** — abstract node types (`process`, `start`, `end`), generic edges. For mental models and philosophies. - **Comprehensive / Technical** — semantic node types (`backend`, `database`, `queue`, `ai`), `evidence` nodes with real code/JSON, typed edges (`stream`, `callback`). For real systems, protocols, tutorials. Technical diagrams require research: look up actual specs, endpoints, event names, and data formats before writing JSON. ### Step 2: Concept-to-Pattern Mapping For each major concept pick the visual pattern that mirrors its behavior — fan-out, convergence, tree, timeline, cycle, assembly line, side-by-side, gap, cloud. No two major concepts should share the same pattern. Details in `references/design.md`. ### Step 3: Layout Planning Pick a layout template from `references/layouts.md` (vertical-flow, horizontal-pipeline, hub-and-spoke, swimlanes, timeline, matrix). Compute a grid of `position` values before emitting nodes. ReactFlow uses absolute pixel positions — consistency comes from a shared grid, not from an auto-layout pass. ### Step 4: Pick Node & Edge Types - Each discovered component → pick a node `type` from the catalog. - Each relationship → pick an edge `type` that matches its semantics (flow, stream, callback, dependency, comparison). - For technical diagrams, add `evidence` nodes for real code snippets or data payloads. ### Step 5: Emit JSON Write the wrapper + `nodes[]` + `edges[]` + `viewport`. Use predefined templates from `references/templates.md` as starting points. Keep IDs descriptive (`api-server`, `edge__api-to-db`). ### Step 6: Validate & Hand Off Run the pre-flight checklist in `references/validation.md` (IDs unique, edges reference existing nodes, `parentNode` refs valid, `sourceHandle`/`targetHandle` match node contracts, no position collisions). Then tell the user to open the file in pma-viewer (see `references/render.md`). The agent cannot see the rendered result, so JSON-level discipline is mandatory. ## Section-by-Section for Large Diagrams 1. Write the wrapper (`schema`, `type`, `viewport`, `metadata`) and Section 1's `nodes` + `edges`. 2. Append one section per edit. Prefix IDs by section (`ingest__source`, `ingest__queue`) to keep later cross-section edges readable. 3. When a new section's edge targets an earlier node, cite the exact existing node ID from the previous section. 4. Namespace positions by section: reserve columns (`x`) or rows (`y`) per section so later edits don't collide with earlier ones. 5. After all sections exist, re-read the full file once to check edge references and position overlaps before handing off. Do **not** generate an entire comprehensive diagram in one response, hand-write a generator script, or delegate JSON emission to a coding sub-agent — each path produces worse output than section-by-section edits. ## Output - **File**: `docs/architecture/<name>.rfd.json` by default, or a path the user specifies. Extension `.rfd.json` marks the ReactFlow Diagram schema and keeps plain JSON tooling compatibility. - **Viewing**: open in pma-viewer (ReactFlow-based SPA). PNG / SVG export and editing are handled there — `references/render.md` covers the handoff. - **Embedding**: four paths in `references/integration.md`: - React / MDX sites → `<PmaViewer src="..." />` component - Plain HTML → `pma-viewer` UMD `<script>` + `PmaViewer.mount(...)` - Interactive link → hosted viewer with `?src=<url>` query param - Static image (GitHub README, email, PDF) → `GET /render.svg?src=<url>` server-rendered SVG endpoint ## Reference Packs - `references/design.md` Visual pattern library, evidence artifacts, multi-zoom architecture, concept-to-pattern mapping. - `references/json-schema.md` File wrapper, `nodes` / `edges` / `viewport` structure, `parentNode` grouping rules, handles. - `references/node-types.md` Preset custom node catalog with data-schema per type. Semantic, structural, and utility categories. - `references/edges.md` Preset edge catalog: flow, stream, callback, dependency, comparison, annotated. Handle positions, animation, labels. - `references/colors.md` Semantic color palette (default / AWS / Azure / GCP / K8s) and text hierarchy. Styled presets in node-types reference this file. - `references/layouts.md` Layout templates (vertical flow, horizontal pipeline, hub-and-spoke, swimlanes, timeline, matrix) with grid math. - `references/templates.md` Copy-paste node / edge JSON and full starter diagrams (3-tier, microservices, event-driven, data pipeline, CI/CD). - `references/validation.md` Pre-flight algorithm, checklists, common bug recipes. - `references/render.md` pma-viewer SPA contract, handoff format, in-viewer export, troubleshooting. - `references/integration.md` How downstream consumers embed the diagram: MDX / React component, browser `<script>` SDK, URL-loaded JSON with the hosted viewer, and server-rendered SVG endpoint (for GitHub READMEs, email, PDFs). ## Quick Routing - Designing from scratch: load `references/design.md`, then `references/layouts.md`. - Picking node / edge types: load `references/node-types.md` + `references/edges.md`. - Writing JSON: load `references/json-schema.md` + `references/templates.md`. - Codebase-to-architecture extraction: load `references/node-types.md` + `references/layouts.md`. - Validating before delivery: load `references/validation.md`. - Telling the user how to open or export in pma-viewer: load `references/render.md`. - Embedding the diagram in docs (MDX / HTML / README / SVG): load `references/integration.md`. If the project also uses `/pma` for workflow control, load `/pma` first, then `/pma-draw` only when a diagram is required.
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.