Arch Design lets you map modules, services, functions, and infrastructure dependencies directly in VS Code. Saved as clean JSON that developers love and AI coding agents can implement faithfully.
ext install AnujAnthwal.arch-for-LLD-design
{
"version": 2,
"name": "auth-system",
"nodes": [
{
"id": "m1",
"type": "module",
"label": "Authentication",
"description": "User auth & session tokens"
},
{
"id": "s1",
"type": "service",
"label": "AuthService"
},
{
"id": "f1",
"type": "function",
"label": "verifyToken",
"parameters": [{ "name": "token", "type": "string" }]
},
{
"id": "e1",
"type": "external",
"label": "PostgreSQL",
"tech": "postgres"
}
],
"edges": [
{ "from": "m1", "to": "s1", "type": "contains" },
{ "from": "s1", "to": "f1", "type": "contains" },
{ "from": "s1", "to": "e1", "type": "uses" }
]
}
AI coding agents (Antigravity, Claude Code, Cursor, Windsurf) use these standalone CLI tools to validate syntax and auto-assign Dagre layout coordinates:
node .agents/skills/arch-design/scripts/validate.js architecture.arch
node .agents/skills/arch-design/scripts/layout.js architecture.arch
Press Ctrl+Shift+P / Cmd+Shift+P → Select "Arch: Install Agent Skill"
💡 Click any card above to simulate Focus Mode (isolates upstream & downstream dependencies).
Everything you need to turn high-level thoughts into concrete, verifiable low-level architectures.
Organize systems cleanly with domain Modules, Services, typed Functions, and External infrastructure nodes.
Click any card to highlight its full upstream and downstream path with animated flows while dimming unrelated cards.
Built-in connection rules prevent invalid architecture shortcuts (e.g. functions directly importing modules or external databases driving business logic).
Direct `.arch` JSON specification ready for LLMs (Claude, GPT, Gemini) to parse and generate accurate code scaffolding.
Instant node alignment and hierarchy organization with one click on the toolbar layout engine.
Pre-packaged logos and recognition for PostgreSQL, Redis, MongoDB, MySQL, Kafka, RabbitMQ, S3, and more.
Arch keeps system designs clean by enforcing explicit relationship boundaries.
| Source Node | Target Node | Relationship | Status |
|---|---|---|---|
| Module | Service | Module encapsulates service | ✓ Allowed |
| Service | Function | Service contains and executes function | ✓ Allowed |
| Service | External | Service connects to database, queue, or cache | ✓ Allowed |
| Module | External | Module depends on external dependency | ✓ Allowed |
| Function | Module | Function referencing parent module | ✕ Blocked (Violates LLD) |
Arch Design includes an open Agent Skill specification. Your AI assistants can inspect system boundaries before writing code, and automatically generate schema-valid .arch diagrams on demand.
Agents inspect .arch files to identify service boundaries, method signatures, parameter types, and database dependencies before touching a single line of code.
Simply prompt your agent: "Create an architecture diagram for our new order processing workflow with Kafka and Redis." The agent outputs a valid .arch file instantly.
Run Arch: Install Agent Skill from the VS Code Command Palette to equip your current project or global agent environment in 1 click.
Complete guides, CLI scripts, prompts, and schema references for developers and AI coding agents.
Equip any AI coding agent with the knowledge to read, understand, validate, and draw .arch diagrams.
1. Press Ctrl+Shift+P (or Cmd+Shift+P on macOS) 2. Type and select: Arch: Install Agent Skill 3. Choose scope: • "Current Workspace (.agents/skills/arch-design/)" → Best for repositories and teams • "Global User Profile (~/.gemini/config/skills/)" → Best across all personal projects
# Copy skill package into your project git clone https://github.com/Anujanthwal-dotcom/Arch-Design.git /tmp/arch mkdir -p .agents/skills cp -r /tmp/arch/.agents/skills/arch-design .agents/skills/ cp /tmp/arch/AGENTS.md ./
| Coding Agent | How It Discovers the Skill | Setup Needed |
|---|---|---|
| Google Antigravity / Gemini CLI | Scans .agents/skills/ and global config natively |
Zero setup (Automatic discovery) |
| Claude Code (Anthropic) | Reads root AGENTS.md & CLAUDE.md |
Pointer in AGENTS.md (Included) |
| Cursor (Composer / Agent) | Reads .cursor/rules/ & .cursorrules |
Pointer in AGENTS.md / rules |
| Windsurf (Cascade) | Reads .windsurfrules & workspace docs |
Pointer in AGENTS.md (Included) |
Standalone Node.js scripts bundled with the skill so agents never make syntax errors or have to guess pixel math.
Verifies JSON schema integrity, required attributes, edge definitions, and architectural separation of concerns. Exits with code 0 on success, or code 1 with actionable error descriptions.
node .agents/skills/arch-design/scripts/validate.js architecture.arch # Sample output: # ✓ Validation Passed: 'architecture.arch' is schema-compliant. Nodes: 6, Edges: 5
Automatically assigns non-overlapping (x, y) visual coordinates using Dagre topological graph ranking. AI agents can generate nodes with pos: { x: 0, y: 0 } and run this command to lay them out cleanly.
# In-place auto-layout: node .agents/skills/arch-design/scripts/layout.js architecture.arch # Or output to a new file: node .agents/skills/arch-design/scripts/layout.js architecture.arch ./output.arch
Tested, high-performing prompts to use with Antigravity, Claude Code, Cursor, or Windsurf.
Detailed schema structure for .arch visual canvas files.
| Node Type | Key Fields | Description |
|---|---|---|
module |
id, label, description, properties[] |
Top-level domain boundary or package. |
service |
id, label, typeRef, properties[] |
Business logic service class or controller. |
function |
id, label, parameters[], returns[] |
Routines with typed inputs, outputs, and descriptions. |
external |
id, label, tech |
Infrastructure: postgres, mysql, redis, mongodb, kafka, s3, rabbitmq. |
No separate browser tabs or external SaaS logins required.
Search for "Arch Design" in the VS Code Extensions marketplace or run ext install AnujAnthwal.arch-for-LLD-design.
Press Ctrl+Shift+P / Cmd+Shift+P and run Arch: New Architecture File, or create any file ending with .arch.
Drag nodes, define parameters and return types, auto-arrange with Dagre layout, and feed directly to AI coding agents.
Arch Design is 100% free and open-source under the MIT license. If this tool saves you design time, clarifies system boundaries, or powers your AI coding agents, leaving a star on GitHub means the world and helps other engineers discover it!
Star on GitHub