setup-architecture-as-code
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.
Supply asset profile
Coding and developer agents
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
Claude Code + Browser agents + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add jrjsmrtn/project-orchestration-skills --skill setup-architecture-as-code
Maintenance
fresh
1d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
14
58/100 Quality · 65/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
Trust, audit, and install readiness at a glance
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Do not auto-installTrust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Human review before install
Choose a stronger alternative or inspect the source manually before any install attempt.
Stars
14 GitHub stars
Repo activity
14 stars, 0 forks
Maintenance
1d since push
License
MIT
Install
npx skills add jrjsmrtn/project-orchestration-skills --skill setup-architecture-as-code
Install safety
standard package or runtime install path
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Review before production
- The skill uses a symlink command that is Unix-specific; Windows users may need an alternative approach.
- Low GitHub adoption signal
- Quality score needs review
- Permission surface needs review: shell or command execution, filesystem or document access
Install readiness
Install path available
- Install path is available
- Repository evidence is available
- License is declared
- No Agent Proven outcome evidence yet
Agent-readable metadata
Machine-readable decision data for this skill.
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
- Coding agents workflows
- Claude Code teams
- builders willing to evaluate younger projects
- Inspect source files
Suited agents
Install decision
- Command
- npx skills add jrjsmrtn/project-orchestration-skills --skill setup-architecture-as-code
- Policy
- block
- Human review
- yes
Trust and risk
- Trust
- 57/100
- Audit
- 72/100
- Risk level
- Needs review
Outcome loop
- Endpoint
- /api/agent/outcome
- Event ID
- resolve
- Outcomes
- 5
Install command
npx skills add jrjsmrtn/project-orchestration-skills --skill setup-architecture-as-codeDo not use when
- teams that need a vendor-supported SLA
- production agents without a repository review
- Low GitHub adoption signal
- The skill uses a symlink command that is Unix-specific; Windows users may need an alternative approach.
- High-risk permission hints: Shell or command execution, Secrets or environment access
Alternative
Code Review
168.6K Stars
npx skills add mattpocock/skills --skill code-review
Alternative
Grill With Docs
164.7K Stars
npx skills add mattpocock/skills --skill grill-with-docs
Alternative
To Spec
164.7K Stars
npx skills add mattpocock/skills --skill to-spec
Alternative
To Tickets
176.7K Stars
npx skills add mattpocock/skills --skill to-tickets
Agent safety v2
28/100 · Avoid automatic install
This skill should not be selected by an agent without explicit human security review.
Do not auto-install. Inspect the source, dependencies, and permission surface first.
high
Shell or command execution
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Network access
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Filesystem access
Skill may read or write project files, documents, generated artifacts, or local workspace state.
high
Secrets or environment access
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
- High-risk permission hints: Shell or command execution, Secrets or environment access
- Dependency or permission surface needs review
Install targets
Install this skill in your agent workflow
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
OpenAgentSkill CLI
Resolve policy, run the source installer safely, and report a verified install receipt.
$ npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.2.1/openagentskill-0.2.1.tgz install jrjsmrtn-setup-architecture-as-codeAgent resolve plan
Let an agent verify fit before installing.
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20setup-architecture-as-code%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20setup-architecture-as-code%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/jrjsmrtn-setup-architecture-as-code/install
Agent should check
- Task fit and alternatives from Resolve API.
- Audit score, trust score, and safety policy warnings.
- Install target compatibility for Codex, Claude Code, Cursor, or CLI.
Copy prompt
Task: Use setup-architecture-as-code in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20setup-architecture-as-code%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/jrjsmrtn-setup-architecture-as-code/install
Install command: npx skills add jrjsmrtn/project-orchestration-skills --skill setup-architecture-as-code
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Give an agent the install path, not another directory page.
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/jrjsmrtn-setup-architecture-as-code/install
LLM text format
/api/skills/jrjsmrtn-setup-architecture-as-code/install?format=text
Find alternatives
/api/skills/search?q=setup-architecture-as-code&limit=3
Agent prompt
Use setup-architecture-as-code for this task. Review https://www.openagentskill.com/api/skills/jrjsmrtn-setup-architecture-as-code/install, then install with: npx skills add jrjsmrtn/project-orchestration-skills --skill setup-architecture-as-codeRegistry metadata
Agent-readable profile for automatic skill selection.
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/jrjsmrtn-setup-architecture-as-code
LLM text
/api/registry/manifest/jrjsmrtn-setup-architecture-as-code?format=text
Install alias
/api/registry/install/jrjsmrtn-setup-architecture-as-code
Recommend
/api/registry/recommend?task=Use%20setup-architecture-as-code%20in%20an%20agent%20workflow&limit=3
Agent fit
Coding agents
Use-case tags
Platforms
Claude Code, Browser agents
Audit report
Needs review · 72/100
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Fallback candidate for Coding agents
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
Coding agents
Trust label
Prototype first
Install path
Command ready
Use when
- Coding agents workflows
- Claude Code teams
- builders willing to evaluate younger projects
Evidence
- recent repository activity
- install command or GitHub repo available
- 58/100 quality profile
- 11 OpenAgentSkill engagement events
review first
- Low GitHub adoption signal
- The skill uses a symlink command that is Unix-specific; Windows users may need an alternative approach.
Implementation path
- 1Install it in a sandbox agent and run one Coding agents task end to end.
- 2Compare output quality, latency, and failure behavior against at least one alternative.
- 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.
Trust profile
Do not auto-install
Trust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
GitHub adoption
FIX14 GitHub stars
Stars/forks activity
FIX14 stars, 0 forks; issue activity unavailable in current metadata
Recent maintenance
PASS1d since push
License clarity
PASSMIT
Good signals
- AI review approved
- Install path is available
- Repository evidence is available
- Recently maintained repository
- Install command has no obvious high-risk pattern
- Outcome loop is ready but needs first real agent run
Review before install
- The skill uses a symlink command that is Unix-specific; Windows users may need an alternative approach.
- Low GitHub adoption signal
- Quality score needs review
- Permission surface needs review: shell or command execution, filesystem or document access
- GitHub adoption: 14 GitHub stars
- Stars/forks activity: 14 stars, 0 forks; issue activity unavailable in current metadata
- Dependency/runtime risk: command execution surface, external package install surface
- Permission surface: shell or command execution, filesystem or document access
- No real agent outcome reports yet
- Human review required before unattended installation
Recommended action
Choose a stronger alternative or inspect the source manually before any install attempt.
Quality profile
Promising candidate for agent workflows
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Use this skill in these scenarios
Build and ship code
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Manage repositories
GitHub automation
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Operate local tools
Local desktop
I need my agent to operate local files and desktop apps in a repeatable workflow.
Workflow fit
Add it to a complete workflow
Inspect, patch, and verify code
Coding review agent
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Operate and verify web apps
Browser QA agent
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Scrape, clean, and reuse web data
Web data pipeline
A practical workflow for agents that crawl public pages, extract clean content, normalize data, and hand it to downstream research or RAG workflows.
Alternative shortlist
Compare before you install
Similar skills that may fit this task.
Code Review
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
Grill With Docs
A relentless interview that pressure-tests a plan against the codebase, sharpens domain language, and updates CONTEXT.md and ADRs when decisions become durable.
To Spec
Turn the current conversation and codebase context into a structured implementation spec, then publish it to the configured project issue tracker.
To Tickets
Break a plan, spec, or conversation into independently actionable tracer-bullet tickets with explicit blocking relationships.
Overview
--- name: setup-architecture-as-code description: 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. metadata: author: "Georges Martin <jrjsmrtn@gmail.com>" version: "0.1.34" license: MIT ---
# Setup Architecture-as-Code
Establish architecture-as-code practice using C4 modeling and Structurizr DSL.
## When to Use
- After running `bootstrap-project` skill - 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/cli` and `structurizr/lite`) - **Visualization**: structurizr/structurizr `local` subcommand or Structurizr Cloud
## Required Inputs
1. **Project/System name** 2. **System description** (1-2 sentences) 3. **Key users/personas** (who interacts with the system) 4. **External systems** (what the system integrates with) 5. **Main containers** (applications, databases, services) 6. **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
```bash mkdir -p architecture/shared mkdir -p docs/architecture # Structurizr-specific docs (h2-first, numbered files) # Symlink so !adrs and !docs directives can reach docs/ from architecture/ ln -s ../docs architecture/docs ```
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`:
```dsl workspace "[Project Name]" "[Brief description]" {
!identifiers hierarchical !adrs docs/adr !docs docs/architecture
model { # ===== USERS/ACTORS ===== user = person "User" "Primary user of the system" "User"
# Add other personas as needed: # admin = person "Administrator" "System administrator" "Admin" # developer = person "Developer" "API consumer" "Developer"
# ===== EXTERNAL SYSTEMS ===== # externalSystem = softwareSystem "External System" "Description" "External"
# ===== THE SYSTEM ===== system = softwareSystem "[System Name]" "[System description]" {
# ----- CONTAINERS -----
# Web Application (if applicable) webApp = container "Web Application" "Provides user interface" "[Framework]" "Web"
# API Service (if applicable) api = container "API Service" "Provides REST/GraphQL API" "[Framework]" "API"
# Database database = container "Database" "Stores application data" "[Database Technology]" "Database"
# Background Workers (if applicable) # worker = container "Background Worker" "Processes async tasks" "[Technology]" "Worker"
# ----- COMPONENTS (for main container) ----- # Uncomment and customize for your architecture:
# api { # authComponent = component "Authentication" "Handles user auth" "[Module]" # businessComponent = component "Business Logic" "Core domain logic" "[Module]" # dataComponent = component "Data Access" "Database operations" "[Module]" # } }
# ===== RELATIONSHIPS =====
# User interactions user -> system "Uses" user -> system.webApp "Interacts with" "HTTPS"
# Internal relationships system.webApp -> system.api "Makes API calls to" "HTTP/JSON" system.api -> system.database "Reads from and writes to" "SQL"
# External system relationships (if any) # system.api -> externalSystem "Integrates with" "HTTPS" }
views { # ===== SYSTEM CONTEXT VIEW ===== systemContext system "SystemContext" { include * autoLayout description "System Context diagram showing [System Name] and its environment" }
# ===== CONTAINER VIEW ===== container system "Containers" { include * autoLayout description "Container diagram showing the main deployable units" }
# ===== COMPONENT VIEW (optional) ===== # Uncomment when you have components defined: # component system.api "Components" { # include * # autoLayout # description "Component diagram for the API service" # }
# ===== STYLES ===== styles { element "Person" { shape Person background #08427B color #ffffff } element "Software System" { background #1168BD color #ffffff } element "External" { background #999999 color #ffffff } element "Container" { background #438DD5 color #ffffff } element "Component" { background #85BBF0 color #000000 } element "Database" { shape Cylinder } element "Web" { shape WebBrowser } element "API" { shape Hexagon } element "Worker" { shape Robot } } } } ```
### Step 3: Create Technology-Specific Templates
#### Elixir/Phoenix Template
```dsl workspace "[Project Name]" "Elixir/Phoenix application" {
!identifiers hierarchical !adrs docs/adr !docs docs/architecture
model { user = person "User" "Application user" "User"
system = softwareSystem "[System Name]" "Phoenix web application" {
phoenix = container "Phoenix Application" "Web application and API" "Elixir/Phoenix" "Web"
liveview = container "LiveView UI" "Real-time user interface" "Phoenix LiveView" "Web"
# If using Ash Framework: # ash = container "Ash Resources" "Domain logic and resources" "Ash Framework" "Component"
postgres = container "PostgreSQL" "Primary data store" "PostgreSQL 16" "Database"
# Optional: Background jobs # oban = container "Oban Workers" "Background job processing" "Oban" "Worker" }
user -> system.liveview "Uses" "HTTPS" system.liveview -> system.phoenix "LiveView connections" "WebSocket" system.phoenix -> system.postgres "Queries" "Ecto" }
views { systemContext system "SystemContext" { include * autoLayout }
container system "Containers" { include * autoLayout }
styles { element "Person" { shape Person background #08427B color #ffffff } element "Software System" { background #6B4C9A color #ffffff } element "Container" { background #9B59B6 color #ffffff } element "Database" { shape Cylinder background #336791 } element "Web" { shape WebBrowser } } } } ```
#### Python/FastAPI Template
```dsl workspace "[Project Name]" "Python FastAPI application" {
!identifiers hierarchical !adrs docs/adr !docs docs/architecture
model { user = person "User" "API consumer" "User"
system = softwareSystem "[System Name]" "FastAPI service" {
api = container "FastAPI Service" "REST API" "Python/FastAPI" "API"
postgres = container "PostgreSQL" "Primary data store" "PostgreSQL 16" "Database"
# Optional: Redis for caching/sessions # redis = container "Redis" "Cache and session store" "Redis" "Database"
# Optional: Celery workers # celery = container "Celery Workers" "Async task processing" "Celery" "Worker" }
user -> system.api "Calls" "HTTPS/JSON" system.api -> system.postgres "Queries" "SQLAlchemy" }
views { systemContext system "SystemContext" { include * autoLayout }
container system "Containers" { include * autoLayout }
styles { element "Person" { shape Person background #08427B color #ffffff } element "Software System" { background #306998 color #ffffff } element "Container" { background #FFD43B color #000000 } element "Database" { shape Cylinder background #336791 } element "API" { shape Hexagon } } } } ```
### Step 4: Create Model Overview
Create `architecture/README.md`:
```markdown # [Project Name] Architecture-as-Code
## What is Architecture-as-Code?
This project uses **Architecture-as-Code**: architecture models defined in text files (Structurizr DSL), version-controlled alongside source code, and validated automatically.
**Benefits**: - **Version Control**: Architecture changes tracked in git history - **Code Review**: Architecture changes reviewable in PRs - **Validation**: Syntax and semantic errors caught automatically - **Single Source of Truth**: Model generates diagrams, not vice versa - **AI-Friendly**: Text-based format readable by AI assistants
## Model Structure
``` 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) ```
The `docs` symlink allows workspace files to use `!adrs docs/adr` and `!docs docs/architecture` — Structurizr requires these
Technical details
- Version
- 1.0.0
- License
- MIT
- Last updated
- Aug 21, 2026
- Published
- Aug 21, 2026
Decision snapshot
Fallback candidate
recent repository activity
Audit
Install review
Install and adoption review
- Security
- 70/100
- Maintenance
- 100/100
- Install
- 92/100
Agent-proven evidence
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
- Success rate
- —
- Recent failure
- —
- Outcomes
- 0
- Output quality
- —
- Failed
- 0
- Not relevant
- 0
- Installs
- 0
- Risk blocked
- 0
- Setup needed
- 0
- Production
- 0
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Add to agent workflow
Free and open source. Review the report before installing into production agents.
Growth loop
Share kit
Scenario-led draft for setup-architecture-as-code, ready for a manual X post.
setup-architecture-as-code: Establish architecture-as-code practice using C4 modeling and Structurizr DSL. Use after boot... 14 stars https://www.openagentskill.com/skills/jrjsmrtn-setup-architecture-as-code?ref=x
Optional reply with install command
Listing + install path for setup-architecture-as-code: https://www.openagentskill.com/skills/jrjsmrtn-setup-architecture-as-code?ref=x Install: npx skills add jrjsmrtn/project-orchestration-skills --skill setup-architecture-a...
Listing source
Registry indexed
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
- Creator
- jrjsmrtn
- Indexed by
- OpenAgentSkill community index
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
Claim this skill listing
This Registry indexed listing is attributed to jrjsmrtn but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Add the evidence badges to your README
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/jrjsmrtn-setup-architecture-as-code)
[](https://www.openagentskill.com/skills/jrjsmrtn-setup-architecture-as-code)
[](https://www.openagentskill.com/skills/jrjsmrtn-setup-architecture-as-code/audit)
[](https://www.openagentskill.com/skills/jrjsmrtn-setup-architecture-as-code)Author
jrjsmrtn
@jrjsmrtn
Tags
Platform fit
Health signals
- GitHub stars
- 14
- Quality score
- 32/100
- Last GitHub push
- Aug 21, 2026
- Framework hints
- Unknown
- OpenAgentSkill views
- 11
- Install copies
- 0
- Outbound clicks
- 0
Community signal
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Trust & safety
Do not auto-install
- GitHub adoption14 GitHub starsFIX
- Stars/forks activity14 stars, 0 forks; issue activity unavailable in current metadataFIX
- Recent maintenance1d since pushPASS
- License clarityMITPASS
- README/SKILL.md completenessMetadata includes enough usage and workflow contextPASS
- Dependency/runtime riskcommand execution surface, external package install surfaceCHECK
Related skills
Code Review
Review a branch or diff against repository standards and the originating spec in two independent analysis passes.
168.6K StarsGrill With Docs
A relentless interview that pressure-tests a plan against the codebase, sharpens domain language, and updates CONTEXT.md and ADRs when decisions become durable.
164.7K StarsTo Spec
Turn the current conversation and codebase context into a structured implementation spec, then publish it to the configured project issue tracker.
164.7K StarsTo Tickets
Break a plan, spec, or conversation into independently actionable tracer-bullet tickets with explicit blocking relationships.
176.7K Stars