/openlogos:architecture-designerfrom openlogos
Designs system architecture and selects technology stack based on product requirements and design documents. Generates architecture diagrams and updates project configuration.
Ships in openlogos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Before diving into per-scenario technical implementation, establish the project's technical global view — system architecture, technology selection, deployment topology, and non-functional constraints. Ensure that subsequent sequence diagrams, API designs, and code generation all proceed under consistent architectural constraints.
tech_stack field in logos-project.yamlArchitecture design is the bridge from Phase 2 (product design) to Phase 3 (technical implementation). Its inputs come from Phase 1/2, and its outputs influence all subsequent steps in Phase 3:
| Input (from Phase 1/2) | Output (influences subsequent Phase 3 steps) |
|---|---|
| Scenario list and complexity | System boundary definition → sequence diagram participants |
| Non-functional requirements (performance, security) | Technology selection constraints → API design decisions |
| Product interaction type (Web/Mobile/API) | Frontend tech stack → prototype implementation approach |
| Data volume and access patterns | Database selection → DB design |
| Third-party service dependencies (payment, email, etc.) | Integration approach → external participants in sequence diagrams |
Read the following documents to build an overall understanding of the project:
logos-project.yaml: Whether there are initial selections in the current tech_stackKey points to extract:
Choose an architecture pattern based on product complexity:
Simple Projects (personal SaaS, utility products):
Medium Projects (team SaaS, multi-role systems):
Complex Projects (multi-service, high-concurrency, multi-platform):
⚠️ Mermaid flowchart / graph syntax safety (required):
ID["label"] for node labels by default, especially when labels contain /, (, ), <, >, :, #, {}, [], spaces, Chinese text, API paths, ports, technology stacks, or <br/>.PROXY["/voice/api proxy"], API["API Server<br/>Node.js"], DB["PostgreSQL :5432"].PROXY[/voice/api proxy], because [/ is Mermaid shape syntax and labels containing additional / can break rendering.<br/> inside the same quoted label: API["HTTP API<br/>/voice/api"].subgraph "Voice Service".ID[(Database)] or ID[/Input/] when the shape itself is intentional; do not use shape syntax for ordinary text labels.Draw system architecture diagram using Mermaid:
graph TB
subgraph "Frontend"
Web["Web App - Next.js"]
end
subgraph "Backend"
API["API Server - Node.js"]
Worker["Background Worker"]
end
subgraph "Data"
DB["PostgreSQL"]
Cache["Redis"]
S3["Object Storage"]
end
subgraph "External"
Auth["Supabase Auth"]
Email["SendGrid"]
end
Web -->|REST API| API
API --> DB
API --> Cache
API --> S3
API --> Auth
Worker --> DB
Worker --> Email
Provide selection and rationale for each technology dimension:
| Dimension | Selection | Rationale | Alternatives |
|-----------|-----------|-----------|-------------|
| Language | TypeScript | Unified frontend/backend, type safety | Go (when performance is priority) |
| Frontend Framework | Next.js 15 | SSR + RSC, mature ecosystem | Astro (content sites), Nuxt (Vue ecosystem) |
| Backend Framework | Hono | Lightweight, edge-first, native TS | Express (ecosystem), Fastify (performance) |
| Database | PostgreSQL | Feature-rich, JSONB, RLS | MySQL (simple scenarios) |
| Authentication | Supabase Auth | Out-of-the-box, RLS integration | NextAuth (self-hosted) |
| Deployment | Vercel + Supabase | Zero-ops, auto-scaling | AWS (full control) |
Selection Principles:
Define key non-functional requirements:
Catalog all external service dependencies for the project and determine the isolation strategy for each dependency during orchestration testing. The output of this step directly impacts whether Phase 3 Step 3 (orchestration testing) can be executed smoothly.
Available test strategies:
| Strategy | Description | Typical Scenario |
|---|---|---|
test-api | Test environment provides a backdoor API | Email/SMS verification codes |
fixed-value | Specific test data uses fixed values | Fixed verification code for test phone numbers |
env-disable | Environment variable disables the feature | CAPTCHA, slider verification |
mock-callback | Orchestration actively calls a simulated callback | Payment callbacks, Webhooks |
mock-service | Local mock service as replacement | OAuth Provider |
If the project has no external service dependencies (e.g., a pure CLI tool), this step can be skipped.
Write the confirmed technology selections into the tech_stack field of logos-project.yaml, and write external dependencies and test strategies into the external_dependencies field, ensuring that all subsequent Skills and AI tools can read the unified tech stack and testing conventions.
external_dependencies:
- name: "Email Service"
provider: "SendGrid"
used_in: ["S01-User Registration", "S03-Forgot Password"]
test_strategy: "test-api"
test_config: "GET /api/test/latest-email?to={email}"
logos/resources/prd/3-technical-plan/1-architecture/core-01-architecture-overview.md (globally unique; always update this file in place, never create a new one)tech_stack and external_dependencies fields in logos-project.yamltech_stack from logos-project.yaml — inaccurate selections will result in unusable generated codeThe following prompts can be copied directly for use with AI:
Help me design the technical architectureBased on the product design, help me make technology selectionsHelp me draw the system architecture diagramHelp me determine the tech stack and update logos-project.yaml本 Skill 必须先读取 spec/authority-closure.md,不得在本文件维护 AC-01~AC-08 的独立副本。英文目标文件中的本段与中文 Skill 共享同一规范引用;若表述与根规范冲突,以根规范为准。
在技术选型前执行共享事实盘点:识别跨组件/进程/仓库的业务事实、完成谓词、缓存/marker/receipt/view,以及 owner/writer/recovery/cutover 变化。适用时在架构文档建立唯一 Authority Registry,逐 fact 填写 fact_id、semantic scope、authority owner、canonical state、sole writer、mutation entry、decision API、projections/freshness/rebuild、recovery source、forbidden shadow sources 和 cutover exit。
禁止把“双方保持同步”“最后写入胜出”“读取时择新”当作闭包。无法选出唯一 owner/writer、无法关闭旧 writer 或无法证明 projection freshness 时,明确报告未决并停止架构交付。交接 scenario-architect 时只传稳定 fact 引用,不复制 owner 表。
完成检查:每个适用 fact 通过 AC-01~AC-07 反例检查;Authority Registry 是项目实例唯一源;决策取舍必要时升格 Decision;测试设计入口已标注 AC-08。
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub miniidealab/openlogos --plugin openlogos16 skills in this plugin
/api-designerDesign OpenAPI specifications derived from scenario sequence diagrams. Use when scenarios exist in 2-scenario-implementation/ but logos/resources/api/ is empty. All description and summary values in YAML must be double-quoted./change-writerWrite change proposals with impact analysis following OpenLogos delta workflow. Use when the project lifecycle is active and source code or methodology documents need modification./code-implementorGenerate business code and test code based on the full specification chain (sequence diagrams, API YAML, DB DDL, test case specs). Use when test cases exist in logos/resources/test/ but logos/resources/implementation/ is empty./code-reviewerReview code for OpenLogos methodology compliance, including YAML validity checks. Use when reviewing code changes, checking pull requests, or performing code quality analysis./db-designerDesign database schema based on API and scenario requirements. Use when scenarios exist but logos/resources/database/ is empty./deployment-designerDesign the deployment plan (topology, environments, release commands, migrations, rollback, post-deploy smoke) and the environment registry deploy configuration for openlogos deploy. Use when API/DB design is complete but logos/resources/prd/3-technical-plan/3-deployment/ is empty, or when a change affects deployment.Other plugins' skills for the same job