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.
供给资产档案
编程与开发 Agent
代码审查、仓库分析、测试、CI、GitHub、DevOps 与开发工作流 Skill。
场景
编程 Agent
我需要一个能理解仓库、修改代码并审查 Pull Request 的编程 Agent。
适配 Agent
Claude Code + Browser agents + CLI
适用于 Codex、Claude Code、Cursor、CLI 或自定义 Agent。
安装
就绪
npx skills add jrjsmrtn/project-orchestration-skills --skill setup-architecture-as-code
维护状态
新鲜
距上次推送 1 天
风险
需审查
Dependency or permission surface needs review
GitHub 质量
14
58/100 质量 · 65/100 信任
覆盖标签
审查说明
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent 采用评分卡
一眼查看信任、审计与安装准备度
这些分数综合公开仓库元数据、OpenAgentSkill 审查信号、维护新鲜度与安装准备度。它用于候选筛选,不替代人工审查。
质量
有潜力有用的候选项,但采用前应与替代方案比较。
信任
Do not auto-installTrust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
审计
需审查对安装准备度、安全元数据、维护情况与采用风险的机器可读审查。
OpenAgentSkill 信任评分 v5
安装前需人工审查
Choose a stronger alternative or inspect the source manually before any install attempt.
Stars
14 个 GitHub Stars
仓库活跃度
14 个 Star,0 个 Fork
维护状态
距上次推送 1 天
许可证
MIT
安装
npx skills add jrjsmrtn/project-orchestration-skills --skill setup-architecture-as-code
安装安全性
标准软件包或运行时安装路径
权限范围
shell or command execution, filesystem or document access
Agent 结果
暂未有 Agent 结果数据
文档
README/SKILL.md 上下文充分
风险摘要
生产前审查
- 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
安装准备度
安装路径可用
- 安装路径可用
- 仓库证据可用
- 已声明许可证
- 暂无 Agent 验证结果证据
Agent 可读元数据
这个 Skill 的机器可读决策数据。
使用此区块或内嵌 JSON 判断 Agent 是否应安装该 Skill、选择替代方案,或先请求人工审查。
适用任务
- 编程 Agent 工作流
- Claude Code 团队
- builders willing to evaluate younger projects
- Inspect source files
适用 Agent
安装决策
- 命令
- npx skills add jrjsmrtn/project-orchestration-skills --skill setup-architecture-as-code
- 策略
- 阻止
- 人工审查
- 是
信任与风险
- 信任
- 57/100
- 审计
- 72/100
- 风险级别
- 需审查
结果闭环
- 端点
- /api/agent/outcome
- 事件 ID
- resolve
- 结果
- 5
安装命令
npx skills add jrjsmrtn/project-orchestration-skills --skill setup-architecture-as-code不适用场景
- 需要厂商支持 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.
- 高风险权限提示:Shell or command execution, Secrets or environment access
替代 Skill
Code Review
168.6K Stars
npx skills add mattpocock/skills --skill code-review
替代 Skill
Grill With Docs
164.7K Stars
npx skills add mattpocock/skills --skill grill-with-docs
替代 Skill
To Spec
164.7K Stars
npx skills add mattpocock/skills --skill to-spec
替代 Skill
To Tickets
176.7K Stars
npx skills add mattpocock/skills --skill to-tickets
Agent 安全 v2
28/100 · 避免自动安装
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.
高
Shell 或命令执行
Skill 元数据引用了终端、CLI、Shell、子进程或命令执行工作流。
中
网络访问
Skill 可能访问远程页面、API、仓库或外部服务。
中
文件系统访问
Skill 可能读取或写入项目文件、文档、生成产物或本地工作区状态。
高
Secrets or environment access
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
- 高风险权限提示:Shell or command execution, Secrets or environment access
- Dependency or permission surface needs review
安装目标
在你的 Agent 工作流中安装此 Skill
通过公开安装端点获取命令、安全清单、目标提示词和该 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 解析计划
让 Agent 在安装前验证匹配度。
Resolve API 返回首选 Skill、替代方案、安全策略、审计说明、安装目标和可直接执行的提示词,无需抓取此页面。
打开 JSON
/api/agent/resolve?task=Use%20setup-architecture-as-code%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve 文本
/api/agent/resolve?task=Use%20setup-architecture-as-code%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
安装交接
/api/skills/jrjsmrtn-setup-architecture-as-code/install
Agent 应检查
- 从 Resolve API 检查任务匹配与替代方案。
- 检查审计评分、信任评分和安全策略警告。
- 检查 Codex、Claude Code、Cursor 或 CLI 的安装目标兼容性。
复制提示词
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 交接
把安装路径交给 Agent,而不是再给一个目录页。
通过公开安装端点获取命令、安全清单、目标提示词和该 Skill 的规范链接。
安装交接
/api/skills/jrjsmrtn-setup-architecture-as-code/install
LLM 文本格式
/api/skills/jrjsmrtn-setup-architecture-as-code/install?format=text
寻找替代方案
/api/skills/search?q=setup-architecture-as-code&limit=3
Agent 提示词
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 元数据
用于自动选择 Skill 的 Agent 可读档案。
本页通过 Registry API 提供相同的决策、信任、审计、场景和安装信号,让 Agent 无需抓取界面即可排序。
Manifest
/api/registry/manifest/jrjsmrtn-setup-architecture-as-code
LLM 文本
/api/registry/manifest/jrjsmrtn-setup-architecture-as-code?format=text
安装别名
/api/registry/install/jrjsmrtn-setup-architecture-as-code
推荐
/api/registry/recommend?task=Use%20setup-architecture-as-code%20in%20an%20agent%20workflow&limit=3
Agent 决策面板
Fallback candidate for Coding agents
先用此 Skill 做原型验证,并保留备选方案。
栈中角色
备选候选
主要匹配
编程 Agent
信任标签
先做原型验证
安装路径
命令已就绪
适用场景
- 编程 Agent 工作流
- Claude Code 团队
- builders willing to evaluate younger projects
证据
- 仓库近期活跃
- 已提供安装命令或 GitHub 仓库
- 58/100 质量档案
- 11 个 OpenAgentSkill 交互事件
先审查
- Low GitHub adoption signal
- The skill uses a symlink command that is Unix-specific; Windows users may need an alternative approach.
实施路径
- 1在沙盒 Agent 中安装它,并端到端完成一次编程 Agent任务。
- 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.
信任档案
Do not auto-install
Trust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
GitHub 采用度
修复14 个 GitHub Stars
Star/Fork 活跃度
修复14 个 Star,0 个 Fork; 当前元数据中没有议题活跃度信息
近期维护
通过距上次推送 1 天
许可证清晰度
通过MIT
积极信号
- AI 审查已通过
- 安装路径可用
- 仓库证据可用
- 近期维护的仓库
- 安装命令未发现明显高风险模式
- 结果闭环已就绪,但需要首次真实 Agent 运行
安装前审查
- 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
- 暂未有真实 Agent 结果报告
- 无人值守安装前需要人工审查
建议操作
Choose a stronger alternative or inspect the source manually before any install attempt.
质量档案
有潜力 适用于 Agent 工作流的候选
有用的候选项,但采用前应与替代方案比较。
工作流匹配
在这些场景使用此 Skill
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.
工作流匹配
加入完整工作流
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.
替代方案短名单
安装前对比
可能适合该任务的相近 Skill。
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.
概览
--- 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
技术详情
- 版本
- 1.0.0
- 许可证
- MIT
- 最近更新
- 2026年8月21日
- 发布时间
- 2026年8月21日
决策摘要
备选候选
仓库近期活跃
Agent 验证证据
Agent 验证证据
来自解析、审查、安装和一次小范围运行后的结果报告。
- 成功率
- —
- 近期失败
- —
- 结果
- 0
- 输出质量
- —
- 失败
- 0
- 不相关
- 0
- 安装次数
- 0
- 风险拦截
- 0
- 需要配置
- 0
- 生产环境
- 0
暂时没有 Agent 结果数据。首次 Agent 执行可以通过 /api/agent/outcome 报告成功、需要设置、风险拦截、失败或不相关。
增长闭环
分享工具包
为 setup-architecture-as-code 准备的场景化草稿,可手动发布到 X。
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
可选:带安装命令的回复
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...
收录来源
Registry 收录
此列表来自公开来源,维护者认领获批前不会标记为官方。
- 创作者
- jrjsmrtn
- 收录方
- OpenAgentSkill 社区索引
归属链接指向公开仓库或创作者主页。创作者可认领列表以更新所有权信号。
认领此 Skill所有者认领
认领此 Skill 页面
这条 Registry 收录 列表归属于 jrjsmrtn,但尚未标记为官方。认领后可增加已验证所有者信号,使后续发布、安装和审计更新更值得信赖。
创作者外链工具包
将证据徽章加入你的 README
在开发者评估仓库的位置展示规范页面、当前信任与审计信号,以及真实的 Agent 验证证据。
[](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)作者
jrjsmrtn
@jrjsmrtn
健康信号
- GitHub Stars
- 14
- 质量评分
- 32/100
- 最近 GitHub 推送
- 2026年8月21日
- 框架提示
- 未知
- OpenAgentSkill 浏览量
- 11
- 复制安装命令
- 0
- 跳转点击
- 0
社区信号
告诉我们这个 Skill 是否对你的 Agent 工作流有帮助。汇总反馈会持续改善排序。
信任与安全
Do not auto-install
- GitHub 采用度14 个 GitHub Stars修复
- Star/Fork 活跃度14 个 Star,0 个 Fork; 当前元数据中没有议题活跃度信息修复
- 近期维护距上次推送 1 天通过
- 许可证清晰度MIT通过
- README/SKILL.md 完整度元数据包含足够的用法与工作流上下文通过
- 依赖与运行时风险command execution surface, external package install surface检查
相关 Skill
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