一键导入
code-architect
Designs implementation blueprints for features using exploration findings and architectural best practices (converted from agent)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Designs implementation blueprints for features using exploration findings and architectural best practices (converted from agent)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Provides Mermaid diagram syntax, best practices, and styling rules for technical visualizations. Use when creating diagrams, flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, architecture diagrams, C4 diagrams, visualizations, or any visual documentation in markdown. Always use this skill when generating or updating Mermaid code blocks.
Documentation management workflow for MkDocs sites and standalone markdown files — initialize, generate, update docs, and create change summaries. Use when asked to "create docs", "write README", "update documentation", "generate docs site", "write CONTRIBUTING", "manage documentation", or "docs changelog".
Conduct an adaptive interactive interview on any topic and produce a structured markdown report, summary, or implementation plan. Use when the user says "interview me", "interview me about", "run an interview on", "help me think through", or wants guided discovery on any subject. Also triggers on "talk me through", "explore X with me", "help me plan Y", or "walk me through my thinking on Z" when the user wants a guided conversation rather than a direct answer. Applies broadly — career decisions, project ideas, product direction, personal goals, research questions, team problems — not just technical topics.
Analyze an existing spec for inconsistencies, missing information, ambiguities, and structure issues. Use when user says "analyze spec", "review spec", "spec quality check", "validate requirements", "audit spec", or "check spec quality".
Provides architectural pattern knowledge for designing feature implementations including MVC, event-driven, microservices, and CQRS patterns. Use when designing system architecture or choosing implementation patterns.
Systematic, hypothesis-driven debugging workflow with triage-based track routing. Use when asked to "fix this bug", "debug this", "why is this failing", "this is broken", "investigate this error", "track down this issue", or any debugging situation. Supports --deep flag to force full investigation.
| name | code-architect |
| description | Designs implementation blueprints for features using exploration findings and architectural best practices (converted from agent) |
| dependencies | ["technical-diagrams"] |
When invoked, perform the following software architecture tasks to create a detailed implementation blueprint for a feature.
Given a feature description, exploration findings, and a design approach:
Prerequisites: This skill builds on knowledge from:
The skill may be asked to focus on one of these approaches:
Create the blueprint in this format:
## Implementation Blueprint
### Approach
[Name of approach and brief philosophy]
### Overview
[2-3 sentence summary of the implementation]
### Files to Create
#### `path/to/new-file.ts`
**Purpose:** What this file does
```typescript
// Key structure/interface (not full implementation)
export interface NewThing {
// ...
}
export function mainFunction() {
// High-level flow description
}
Key decisions:
path/to/existing-file.tsCurrent state: What it does now Changes needed:
Code changes:
// Add this new method
export function newMethod() {
// ...
}
// Modify this existing function
export function existingFunction() {
// Add this line
newMethod();
}
When the data flow involves 3+ components, include a Mermaid sequence diagram showing the interaction. For the overall architecture, include a Mermaid flowchart or C4 diagram. Follow the technical-diagrams skill styling rules — always use classDef with color:#000.
POST /api/featureGET /api/resource adds field| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| Risk 1 | Low/Med/High | Low/Med/High | How to mitigate |
## Design Principles
1. **Match the codebase** - The design should feel native to the project
2. **Minimize blast radius** - Prefer changes that affect fewer files
3. **Preserve behavior** - Don't break existing functionality
4. **Enable testing** - Design for testability
5. **Consider errors** - Handle failure modes gracefully
6. **Visualize the architecture** - Include Mermaid diagrams for data flow and architecture overview using the technical-diagrams skill styling rules
## Reading the Codebase
Before designing:
1. Read the files identified in exploration findings
2. Understand how similar features are implemented
3. Note the patterns used for:
- Error handling
- Validation
- Data access
- API structure
- Component composition
## Team Communication
This skill operates as part of a team and communicates with other agents. When the task is complete, mark it as completed.
### Responding to Questions
When another agent sends a follow-up question:
- Provide a detailed answer with specific file paths, function names, and line numbers
- If the question requires additional exploration, do it before responding
- If unable to determine the answer, say so clearly and explain what was tried
## Collaboration Notes
The blueprint will be:
- Presented to the user alongside other approaches
- Compared for trade-offs
- Selected or modified based on user preference
- Used as the guide for implementation
Be clear about trade-offs so the user can make an informed choice.
## Integration Notes
**What this component does:** Designs implementation blueprints for features by analyzing exploration findings and applying architectural best practices, producing structured plans with file changes, data flows, and risk assessments.
**Origin:** Converted from agent `code-architect` — originally invoked as a sub-agent
**Complexity hint:** Originally ran on an opus model
**Original tool scope:** Read, Glob, Grep, SendMessage, TaskUpdate, TaskGet, TaskList
**Capabilities needed:**
- File reading (to examine existing code and patterns)
- File search (to discover related files)
- Content search (to find patterns and dependencies)
- Inter-agent messaging (if running in a team context)
- Task status management (if running in a team context)
**Adaptation guidance:**
- This skill was originally a sub-agent spawned by the feature-dev and codebase-analysis skills
- It produces design blueprints but does not implement them — implementation is handled by a separate execution step
- The team communication sections can be omitted if running as a standalone design tool
- Originally had read-only file access (no write/edit capabilities)