Architect Skill
Spawn an code review (a.k.a architect) subagent for analysis and planning. The architect specializes in analysis and strategic guidance rather than implementation.
When to Use
Use this skill when:
- You need deep architectural analysis or code understanding
- You want strategic recommendations about system design or patterns
- You need comprehensive analysis of code quality or technical debt
- You want root cause analysis and debugging assistance
When NOT to Use
- Simple tasks that you can complete directly
- Tasks that require file edits or implementation (use delegation skill instead)
- Read-only operations (use ripgrep or glob/read tools instead)
Available Functions
architect(task, relevantFiles, ...)
Spawn an architect subagent for analysis and planning.
Parameters:
task (str, required): The analytical task or question for the architect
relevantFiles (list[str], required): Full file paths to analyze
responsibility (str, default "evaluate_task"): Focus area: "debug", "plan", or "evaluate_task"
includeGitDiff (bool, default False): Include current unstaged git diff
relevantGitCommits (str, optional): Git commit range to analyze (e.g., "HEAD~3..HEAD")
Returns: Dict with analysis results
{
"success": true,
"message": "Analysis summary",
"subagentAlias": "architect_1",
"result": "Full analysis output..."
}
Responsibilities:
- evaluate_task: Assess completed or ongoing work against goals
- plan: Create implementation plans with task decomposition and sequencing
- debug: Root cause analysis, reproduction steps, and recommended fixes
Example:
// Plan a new feature
const result = await architect({
task: "Create a plan for implementing rate limiting on API endpoints.",
relevantFiles: ["src/middleware/index.ts", "src/routes/api.ts"],
responsibility: "plan"
});
console.log(result.result);
// Debug an issue
const result2 = await architect({
task: "The UserAuthService.validateSession() returns false for valid tokens.",
relevantFiles: ["src/services/UserAuthService.ts", "src/utils/jwt.ts"],
responsibility: "debug",
includeGitDiff: true
});
Best Practices
- Be specific in your task description: Include concrete function names, error messages, or design goals
- Provide relevant files: The architect can only analyze files you pass in
relevantFiles
- Choose the right responsibility: Use "plan" for new work, "debug" for issues, "evaluate_task" for reviewing progress
- Use
includeGitDiff: When debugging regressions, include the diff to help the architect identify recent changes
- Use
relevantGitCommits: When you need the architect to understand recent history (e.g., "HEAD~3..HEAD")
1---2name: code-review3description: Spawn a code review (architect) subagent for deep analysis, planning, and debugging. The architect specializes in strategic guidance rather than implementation. Architect should be called after building major features. Relies on `delegation` skill.4---56# Architect Skill78Spawn an code review (a.k.a architect) subagent for analysis and planning. The architect specializes in analysis and strategic guidance rather than implementation.910## When to Use1112Use this skill when:1314- You need deep architectural analysis or code understanding15- You want strategic recommendations about system design or patterns16- You need comprehensive analysis of code quality or technical debt17- You want root cause analysis and debugging assistance1819## When NOT to Use2021- Simple tasks that you can complete directly22- Tasks that require file edits or implementation (use delegation skill instead)23- Read-only operations (use ripgrep or glob/read tools instead)2425## Available Functions2627### architect(task, relevantFiles, ...)2829Spawn an architect subagent for analysis and planning.3031**Parameters:**3233- `task` (str, required): The analytical task or question for the architect34- `relevantFiles` (list[str], required): Full file paths to analyze35- `responsibility` (str, default "evaluate_task"): Focus area: "debug", "plan", or "evaluate_task"36- `includeGitDiff` (bool, default False): Include current unstaged git diff37- `relevantGitCommits` (str, optional): Git commit range to analyze (e.g., "HEAD~3..HEAD")3839**Returns:** Dict with analysis results4041```json42{43 "success": true,44 "message": "Analysis summary",45 "subagentAlias": "architect_1",46 "result": "Full analysis output..."47}48```4950**Responsibilities:**5152- **evaluate_task**: Assess completed or ongoing work against goals53- **plan**: Create implementation plans with task decomposition and sequencing54- **debug**: Root cause analysis, reproduction steps, and recommended fixes5556**Example:**5758```javascript59// Plan a new feature60const result = await architect({61 task: "Create a plan for implementing rate limiting on API endpoints.",62 relevantFiles: ["src/middleware/index.ts", "src/routes/api.ts"],63 responsibility: "plan"64});65console.log(result.result);6667// Debug an issue68const result2 = await architect({69 task: "The UserAuthService.validateSession() returns false for valid tokens.",70 relevantFiles: ["src/services/UserAuthService.ts", "src/utils/jwt.ts"],71 responsibility: "debug",72 includeGitDiff: true73});74```7576## Best Practices77781. **Be specific in your task description**: Include concrete function names, error messages, or design goals792. **Provide relevant files**: The architect can only analyze files you pass in `relevantFiles`803. **Choose the right responsibility**: Use "plan" for new work, "debug" for issues, "evaluate_task" for reviewing progress814. **Use `includeGitDiff`**: When debugging regressions, include the diff to help the architect identify recent changes825. **Use `relevantGitCommits`**: When you need the architect to understand recent history (e.g., "HEAD~3..HEAD")