markdy-diagram-author
Skill96 starsChanged 3 months agoMITView on GitHub
Author, design, and optimize kinetic architecture diagrams, scenario recipes, and high-impact share cards using MarkdyScript DSL. Use when creating system designs, cloud topologies, sequence diagrams, microservices flows, or converting static diagrams to animated 60fps scenes.
In this repository5 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- markdy-mcp-debugSkill
- markdy-visual-captureSkill
- markdy-mcp-debugSkill
- markdy-visual-captureSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
When user prompts match a common architectural domain, start from a proven blueprint:
- Very specific: line 35
Every MarkdyScript file (.markdy or .mdy) follows a clean 4-part structure:
- Distinctive: line 78
Before handing off any diagram, verify it with the CLI quality gate:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Markdy Diagram Authoring Skill
This skill guides AI agents in authoring production-grade, 60fps kinetic architecture diagrams and verified blueprints using the MarkdyScript DSL.
🧭 Scenario Recipe Router
When user prompts match a common architectural domain, start from a proven blueprint:
| Scenario / Domain | Recipe ID | Primary Pattern |
| Cache-Aside / Fast Lookups | cache-aside | Gateway → Service → Redis (Hit) / Postgres (Miss & Warm) |
| Event-Driven / CDC | event-driven-eda | Service → DB WAL → Debezium CDC → Kafka → Consumers |
| CQRS & Event Sourcing | cqrs-event-sourcing | Command API → EventStore → Projection Engine → Read DB |
| Microservices Mesh | api-gateway-mesh | Envoy Ingress → mTLS Sidecars → Distributed Tracing |
| Zero-Trust & Enclave | zero-trust-security | WAF → OIDC Auth → OPA Policy → AWS Nitro Enclave → Vault |
| Medallion Lakehouse | medallion-lakehouse | Kafka → Bronze Lake → Spark Cleansing → Silver → Gold Tier |
| Agentic AI & ReAct | agentic-react-tools | Workspace → Agent Core → Vector RAG → LLM → MCP Tools |
| Active-Active Resilient | active-active-failover | GeoDNS → Multi-Region Clusters → Bidirectional DB Sync |
| Raft Distributed Consensus | distributed-consensus-raft | Client → Leader → Follower Quorum → Committed State |
| SRE Incident Runbook | incident-runbook | Prometheus Alert → PagerDuty → K8s Auto-Healer → Slack Bot |
CLI Helper: Run
markdy guide "<query>"ormarkdy recipe <recipe-id>to output instant canonical MarkdyScript.
🏗️ 4-Step Diagram Structure
Every MarkdyScript file (.markdy or .mdy) follows a clean 4-part structure:
# 1. Directives: Canvas size, theme, and layout flow
scene "Distributed Payment Processing" theme=midnight width=1440 height=800
layout LR
# 2. Node Declarations: <kind> <Id> ["Human Label"] [icon=<glyph>] [@src="path/file.ts#L10"]
browser Client "Web / Mobile Client" icon=chrome
gateway Gateway "Kong API Gateway" icon=nginx @src="src/gateway/router.ts#L15"
service OrderSvc "Order Service" icon=nodejs @src="src/orders/service.ts#L30"
service PaySvc "Payment Service" icon=golang @src="src/payment/handler.go#L40"
queue Kafka "Kafka Event Stream" icon=kafka
database OrdersDB "PostgreSQL 16" icon=postgresql @src="src/db/schema.sql#L1"
cache Redis "Redis Cluster" icon=redis
# 3. Logical Groups (Perimeters & Tiers)
group edgeTier "Edge Tier": Client Gateway
group coreServices "Core Services": OrderSvc PaySvc
group dataLayer "Data & Streaming": Kafka OrdersDB Redis
# 4. Storyboard Beats: Interactive narrative animation steps
beat checkout "1. Client Checkout Request":
show $nodes stagger=40ms
frame Client Gateway OrderSvc zoom=1.12
Client -> Gateway "POST /api/checkout" -> OrderSvc "validate"
OrderSvc -> Redis "check idempotency"
OrderSvc <- Redis "key: new"
glow OrderSvc color=#38bdf8
beat payment "2. Payment Execution & Event Fan-out":
frame OrderSvc PaySvc Kafka OrdersDB zoom=1.15
OrderSvc -> PaySvc "POST /charge"
PaySvc -> OrdersDB "record transaction"
OrderSvc ~> Kafka "topic: order.completed"
Client <- Gateway "201 Created"
glow PaySvc color=#22c55e & glow Kafka color=#f59e0b🔍 9-Point Showcase Quality Gate
Before handing off any diagram, verify it with the CLI quality gate:
markdy verify system.markdy --quality showcase --jsonA passing showcase verification validates:
- Syntax Validity: Complete AST without fatal syntax or token errors.
- Viewport Containment: Bounds fit responsive desktop ladder (1440×900, 1600×1000, 1920×1080, 2048×1320).
- Node Collision Free: Distinct IDs and balanced spatial distribution.
- Label Legibility Floor: High-density typography without text crowding.
- Cycle Governance: Sync request flows (
->) do not create circular deadlocks. - Dynamic Port Multiplexing: Auto-balanced connection lanes with smooth fillet transitions.
- Code Provenance Anchors:
@src="path/file.ext#L10-L50"anchors verified. - Native Vector Symbols: Zero-CDN SVG icons resolved from registry (
icon=redis,icon=kafka,icon=aws, etc.). - Theme Contrast: Meets WCAG AA contrast against canvas and node surfaces.
🔀 Flow Operators
A -> B "label": Synchronous request / commandA <- B "label": Synchronous response / return payload (crucial to avoid cycle rank crushing!)A ~> B "label": Asynchronous event emission / message queue publishA <-> B "label": Full-duplex WebSocket / bidirectional streamA ..> B "label": Dashed architectural dependency link
🎬 Narrative Beat Cues
show $nodes [stagger=50ms]: Reveals nodes sequentiallyframe Node1 Node2 [zoom=1.2] [dur=600ms]: Smooth camera pan and zoomglow NodeId [color=#hex]: Kinetic light pulse on target nodepulse NodeId: Ripple wave animationfocus NodeId: Highlights target node while dimming others
🎴 Contextual Share Cards (1200×630)
Generate OpenGraph and README-ready presentation cards:
- Standard Share Card: Clean framing with title and badge.
- Route Share Card: Focuses on active message pathway (
from→to) with hop count and protocol telemetry. - Reach Share Card: Highlights blast radius / upstream callers or downstream dependents with impact metrics.
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.

