jrjsmrtn/project-orchestration-skills/setup-architecture-as-code
Claude Code and agent skill by jrjsmrtn/project-orchestration-skills
- community
Checking that the SKILL.md file is still in the repository.
Establish architecture-as-code practice using C4 modeling and Structurizr DSL. Use after bootstrap-project, when establishing architecture documentation, or when migrating from diagram-based to code-based architecture.
Install
npx vskill@latest install jrjsmrtn/project-orchestration-skills/setup-architecture-as-codeSKILL.md
The same SKILL.md was published earlier as jrjsmrtn/project-orchestration-skills/setup-architecture-as-code.
Setup Architecture-as-Code
Establish architecture-as-code practice using C4 modeling and Structurizr DSL.
When to Use
- After running
bootstrap-projectskill - When establishing architecture documentation for a project
- When migrating from diagram-based to code-based architecture documentation
- When you need version-controlled, validated architecture models
What is Architecture-as-Code?
Architecture-as-Code treats architecture documentation like source code:
| Traditional Diagrams | Architecture-as-Code | |
|---|---|---|
| Draw in GUI tools | Define in text/DSL | |
| Manual updates | Automated validation | |
| Binary files (PNG, VSDX) | Text files (version control friendly) | |
| Diagrams diverge from reality | Single source of truth | |
| Hard to review changes | PR-reviewable changes | |
| No validation | Syntax + semantic validation |
Implementation Stack:
- Modeling Approach: C4 Model (Context, Container, Component, Code)
- Definition Language: Structurizr DSL
- Validation & Inspection: structurizr/structurizr (consolidated image, replaces deprecated
structurizr/cliandstructurizr/lite), pinned to a dated tag (currently2026.09.19;latestmoves) - Runtime: the most native OCI runtime available: Apple
containeron Apple Silicon macOS,wslcon Windows where available, else podman (Docker works too) - Visualization: structurizr/structurizr
localsubcommand or Structurizr Cloud
Required Inputs
- Project/System name
- System description (1-2 sentences)
- Key users/personas (who interacts with the system)
- External systems (what the system integrates with)
- Main containers (applications, databases, services)
- Technology stack (languages, frameworks, databases)
C4 Model Overview
The C4 model provides four levels of abstraction (zoom levels):
| Level | Name | Purpose | Audience | |
|---|---|---|---|---|
| 1 | System Context | System in its environment | Everyone | |
| 2 | Container | Deployable units | Technical staff | |
| 3 | Component | Internal structure | Developers | |
| 4 | Code | Class/module level | Developers (often generated) |
Key Principle: Start with Level 1-2, add Level 3 only when needed. Level 4 is usually generated from code.
Workflow
Step 1: Create Directory Structure
The symlink is required because Structurizr restricts !adrs and !docs paths to the same directory or subdirectories of the DSL file — it cannot traverse parent directories.
Why `docs/architecture/` and not `docs/explanation/`? Structurizr silently strips h1 headings (it auto-generates h1 from the element name). Diátaxis docs use h1 as their title, so pointing !docs at a Diátaxis directory would lose those titles. Keep Structurizr docs in a dedicated directory with h2-first files.
Step 2: Create Workspace File
Create architecture/workspace.dsl:
Step 3: Create Technology-Specific Templates
Elixir/Phoenix Template
Python/FastAPI Template
Step 4: Create Model Overview
Create architecture/README.md:
architecture/ ├── workspace.dsl # C4 model definition (THE source of truth) ├── shared/ # Shared DSL fragments (!include targets) │ └── _styles.dsl # Unified element/relationship styles ├── docs -> ../docs # Symlink (enables !adrs and !docs directives) ├── README.md # This file ├── diagrams/ # Generated exports (optional, gitignored) ├── .structurizr/ # Viewer state written by just view-architecture (gitignored) └── workspace.json # Viewer state written by just view-architecture (gitignored)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/setup-architecture-as-code/SKILL.md
Popularity
- Repository stars
- 17
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jrjsmrtn/project-orchestration-skills/setup-architecture-as-code)