/dev-architecture-playbook
Route full software-development architecture work from product intent through design, implementation, testing, release, and operations. Use when the user asks for a complete development architecture, wants to know which Spellbook skills to combine, needs an execution path across
$ npx -y skills add majiayu000/spellbook --skill dev-architecture-playbook --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/dev-architecture-playbook
Context preview
The summary Claude sees to decide when to auto-load this skill.
Route full software-development architecture work from product intent through design, implementation, testing, release, and operations. Use when the user asks for a complete development architecture, wants to know which Spellbook skills to combine, needs an execution path across
SKILL.md
dev-architecture-playbook.SKILL.mdname: dev-architecture-playbook
description: Route full software-development architecture work from product intent through design, implementation, testing, release, and operations. Use when the user asks for a complete development architecture, wants to know which Spellbook skills to combine, needs an execution path across PRD/spec/API/data/security/performance/release/SRE, or asks to turn an idea or repo into a production-ready engineering plan.
Dev Architecture Playbook
Purpose
Use this as the lifecycle router before starting broad product or architecture work. It chooses the minimum useful skill chain, defines gates, and prevents starting implementation before the required contracts exist.
Route
Classify the request first:
| Request | Primary Skills | Output | |---|---|---| | Idea, product direction, or market/user problem | `product-discovery`, `prd-master` | Product brief, user stories, success metrics | | Architecture or module boundaries | `architecture-foundation`, `technical-spec`, `elegant-architecture` | Architecture spec, boundaries, rejected alternatives | | API, auth, data, or schema contract | `api-design`, `auth-security`, `database-patterns`, `data-contract-migrations` | Versioned contracts and migration plan | | UI/product surface | `frontend-design`, `ui-ux-pro-max`, `ui-design-system`, `playwright-automation` | UX flow, component plan, visual checks | | Implementation workflow | `flowguard`, `threads`, `systematic-debugging`, `comprehensive-testing` | Bounded execution, ownership, root-cause debugging, and verification | | Quality and regression risk | `comprehensive-testing`, `codebase-audit`, `vibeguard`, `project-health-auditor` | Test matrix and risk list | | Release and operations | `release-engineering`, `config-secrets-environments`, `performance-capacity`, `incident-slo-runbook`, `observability-sre`, `devops-excellence` | Rollout, config, capacity, SLO, runbook |
Required Gates
Do not treat the architecture as complete until these gates are explicit:
1. Goal and non-goals. 2. Domain model and ownership boundaries. 3. External API, data, and config contracts. 4. Security and permission model. 5. Test strategy with command-level verification. 6. Release, rollback, and migration gates. 7. Observability, SLO, and incident response.
If a gate is irrelevant, state why. Do not silently skip data, security, or rollback gates for production systems.
Execution Pattern
Use this sequence for greenfield or major refactors:
1. Product: write the product brief or PRD. 2. Architecture: define modules, runtime boundaries, and tradeoffs. 3. Contracts: define API, data, config, and security contracts. 4. Plan: split work into independently verifiable steps. 5. Implement: use one workflow skill per step, not every skill at once. 6. Verify: run build, typecheck, tests, and focused behavioral checks. 7. Release: define rollout, migration, rollback, monitoring, and support owner.
For existing repos, start with `repo-agent-context-audit` or `codebase-audit` before proposing new structure.
Output Shape
Return a compact plan:
goal:
context:
selected_skill_chain:
architecture_gates:
implementation_steps:
verification_commands:
release_and_ops_gates:
open_risks:
Prefer the smallest chain that covers the risk. Too many skills at once usually means the scope needs to be split.
Read more
name: dev-architecture-playbook description: Route full software-development architecture work from product intent through design, implementation, testing, release, and operations. Use when the user asks for a complete development architecture, wants to know which Spellbook skills to combine, needs an execution path across PRD/spec/API/data/security/performance/release/SRE, or asks to turn an idea or repo into a production-ready engineering plan.
Dev Architecture Playbook
Purpose
Use this as the lifecycle router before starting broad product or architecture work. It chooses the minimum useful skill chain, defines gates, and prevents starting implementation before the required contracts exist.
Route
Classify the request first:
| Request | Primary Skills | Output | |---|---|---| | Idea, product direction, or market/user problem | `product-discovery`, `prd-master` | Product brief, user stories, success metrics | | Architecture or module boundaries | `architecture-foundation`, `technical-spec`, `elegant-architecture` | Architecture spec, boundaries, rejected alternatives | | API, auth, data, or schema contract | `api-design`, `auth-security`, `database-patterns`, `data-contract-migrations` | Versioned contracts and migration plan | | UI/product surface | `frontend-design`, `ui-ux-pro-max`, `ui-design-system`, `playwright-automation` | UX flow, component plan, visual checks | | Implementation workflow | `flowguard`, `threads`, `systematic-debugging`, `comprehensive-testing` | Bounded execution, ownership, root-cause debugging, and verification | | Quality and regression risk | `comprehensive-testing`, `codebase-audit`, `vibeguard`, `project-health-auditor` | Test matrix and risk list | | Release and operations | `release-engineering`, `config-secrets-environments`, `performance-capacity`, `incident-slo-runbook`, `observability-sre`, `devops-excellence` | Rollout, config, capacity, SLO, runbook |
Required Gates
Do not treat the architecture as complete until these gates are explicit:
1. Goal and non-goals. 2. Domain model and ownership boundaries. 3. External API, data, and config contracts. 4. Security and permission model. 5. Test strategy with command-level verification. 6. Release, rollback, and migration gates. 7. Observability, SLO, and incident response.
If a gate is irrelevant, state why. Do not silently skip data, security, or rollback gates for production systems.
Execution Pattern
Use this sequence for greenfield or major refactors:
1. Product: write the product brief or PRD. 2. Architecture: define modules, runtime boundaries, and tradeoffs. 3. Contracts: define API, data, config, and security contracts. 4. Plan: split work into independently verifiable steps. 5. Implement: use one workflow skill per step, not every skill at once. 6. Verify: run build, typecheck, tests, and focused behavioral checks. 7. Release: define rollout, migration, rollback, monitoring, and support owner.
For existing repos, start with `repo-agent-context-audit` or `codebase-audit` before proposing new structure.
Output Shape
Return a compact plan:
goal: context: selected_skill_chain: architecture_gates: implementation_steps: verification_commands: release_and_ops_gates: open_risks:
Prefer the smallest chain that covers the risk. Too many skills at once usually means the scope needs to be split.
Cross-runtime skills for Claude Code, Codex, and multi-agent workflows.
Repo: majiayu000/spellbook
Other skills on spellbook.
- /agentsmd-optimize
Audit AND optimize a CLAUDE.md / AGENTS.md instruction file — score it against the five high-leverage patterns, flag anti-patterns, then apply approved fixes in place. Use when the user says 优化 CLAUDE.md / 优化 AGENTS.md / optimize my agent doc / 帮我改 claudemd, or after an audit
Open skill - /agentsmd-scaffold
Generate or update repository-specific AGENTS.md instruction files from real repo evidence. Use when asked to create, design, scaffold, split, or improve root or scoped AGENTS.md files for Codex/Claude/agent workflows, especially when a repo needs directory-specific rules,
Open skill - /api-design
REST/GraphQL/gRPC API design best practices. Use when designing APIs, defining contracts, handling versioning. Covers OpenAPI 3.2, GraphQL Federation, gRPC streaming.
Open skill - /app-ui-design
Mobile app UI design expert for iOS and Android. Use when designing app interfaces, creating design systems, ensuring accessibility, or following platform guidelines. Covers Material Design 3, Human Interface Guidelines, color theory, typography, and 2025 trends.
Open skill - /app-user-story-qa
End-to-end app feature inventory and user-story testing workflow with a canonical tracker. Use when the user asks to audit every feature, derive expected behavior from code, test user journeys, or explicitly fix and retest documented UX or logistical defects.
Open skill - /architecture-foundation
Design architecture foundations before implementation. Use when asked to design or refactor architecture, choose Rust/Go crate, package, module, runtime, workflow, or service boundaries, compare mature project architecture, prevent stacked one-off PRs, audit migration debt in
Open skill

