setup-architecture-as-code

setup-architecture-as-code is a skill for Claude Code from jrjsmrtn/project-orchestration-skills. It costs 43 tokens per session (4,578 once invoked), scanned A, original, MIT.

A way to document software architecture as text files instead of manually drawn diagrams. It uses the C4 model, which describes a system from broad context down to individual code parts, with Structurizr DSL as the notation.

In plain words
What is it for?
Use it to set up architecture documentation, create version-controlled C4 models, or move existing diagrams into code-based documentation.
Why use it?
Text-based architecture can be stored with the code, reviewed in pull requests, and checked for syntax and structural errors. This reduces the risk that diagrams become outdated.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is ln -s ../docs architecture/docs.

Part of the project-orchestration-skills plugin — 13 skills shipped together

Good fit Use it to set up architecture documentation, create version-controlled C4 models, or move existing diagrams into code-based documentation.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/jrjsmrtn/project-orchestration-skills
agentmods
npx agentmods add skills/jrjsmrtn/project-orchestration-skills/setup-architecture-as-code

Made for: Claude Code.

Or install project-orchestration-skills, the plugin that ships this one along with the rest of its 13 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup-architecture-as-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/jrjsmrtn/project-orchestration-skills/setup-architecture-as-code/github.svg)](https://agentmods.dev/skills/jrjsmrtn/project-orchestration-skills/setup-architecture-as-code)
Your own site
<a href="https://agentmods.dev/skills/jrjsmrtn/project-orchestration-skills/setup-architecture-as-code"><img src="https://agentmods.dev/badge/skills/jrjsmrtn/project-orchestration-skills/setup-architecture-as-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup-architecture-as-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/jrjsmrtn/project-orchestration-skills/setup-architecture-as-code"><img src="https://agentmods.dev/badge/skills/jrjsmrtn/project-orchestration-skills/setup-architecture-as-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,578 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
SkillSpector: 1 finding, up to low

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • low Tool Misuse · line 486
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.04578
Opus 5 $0.00022 $0.02289
Sonnet 5 $0.00009 $0.00916
Haiku 4.5 $0.00004 $0.00458

Measured 10d ago against content hash 4f64b1171e9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

setup-architecture-as-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/setup-architecture-as-code/SKILL.md · 613 lines

How it starts

The opening of the file, as written. The whole thing — 613 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 613 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 613 lines · 43 tokens per session scan A 4f64b1171e9b

Subscribe to this mod's changes

setup-architecture-as-code is a skill published in the GitHub repository jrjsmrtn/project-orchestration-skills (15 stars, last pushed 6d ago), licensed MIT. It adds 43 tokens to every session and 4,578 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

taiyi-ui-design

A design-planning guide for describing how an application's user interface should look and behave. It produces a UI-DESIGN.md document covering layouts, components, interactions, accessibility, and error states.

Dong90/oh-my-taiyiforge · 35 tokens

taiyi-diagram-arch

A workflow for turning written system or product architecture into readable, version-controlled diagrams using Mermaid or exported SVG and PNG files. Architecture diagrams show components, boundaries, data flows, and deployment relationships.

Dong90/oh-my-taiyiforge · 48 tokens

taiyi-restyle

A planning guide for breaking a large user-interface redesign into smaller, independently reviewable tasks. A user interface is the part of an application that people see and use.

Dong90/oh-my-taiyiforge · 39 tokens

taiyi-diagram-pipeline

A pipeline that creates and updates architecture diagrams in three stages: a C4 model from the code, an engineering architecture diagram, and an exported PNG image. C4 is a way to describe software architecture at several levels of detail.

Dong90/oh-my-taiyiforge · 52 tokens

taiyi-diagram-render

A tool for rendering existing C4 or architecture Mermaid diagrams as SVG or PNG images. C4 is a way to show software systems at different levels, while Mermaid is a text format for diagrams.

Dong90/oh-my-taiyiforge · 50 tokens

preview

Divergent-discard instantiation. Fires when direction candidates cannot be recognized from descriptions. Type: (DirectionUnrecognizable, Hybrid, PREVIEW, DirectionProspect) → DirectionalContrast.

jongwony/epistemic-protocols · 41 tokens