codingbuddy-rules 1.3.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ai-rules/CHANGELOG.md +50 -11
- package/.ai-rules/adapters/claude-code.md +92 -0
- package/.ai-rules/adapters/opencode.md +35 -2
- package/.ai-rules/agents/README.md +243 -48
- package/.ai-rules/agents/accessibility-specialist.json +4 -0
- package/.ai-rules/agents/act-mode.json +5 -0
- package/.ai-rules/agents/agent-architect.json +205 -0
- package/.ai-rules/agents/architecture-specialist.json +4 -0
- package/.ai-rules/agents/backend-developer.json +6 -0
- package/.ai-rules/agents/code-quality-specialist.json +4 -0
- package/.ai-rules/agents/code-reviewer.json +5 -0
- package/.ai-rules/agents/devops-engineer.json +5 -0
- package/.ai-rules/agents/documentation-specialist.json +4 -0
- package/.ai-rules/agents/eval-mode.json +5 -0
- package/.ai-rules/agents/frontend-developer.json +6 -0
- package/.ai-rules/agents/performance-specialist.json +4 -0
- package/.ai-rules/agents/plan-mode.json +5 -0
- package/.ai-rules/agents/security-specialist.json +4 -0
- package/.ai-rules/agents/seo-specialist.json +4 -0
- package/.ai-rules/agents/solution-architect.json +181 -0
- package/.ai-rules/agents/technical-planner.json +217 -0
- package/.ai-rules/agents/test-strategy-specialist.json +4 -0
- package/.ai-rules/agents/ui-ux-designer.json +4 -0
- package/.ai-rules/keyword-modes.json +17 -3
- package/package.json +1 -1
package/.ai-rules/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,55 @@ All notable changes to the Multi-AI Coding Assistant Common Rules System will be
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.0.0] - 2026-01-06
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **PLAN Mode Primary Agents** with intent-based resolution
|
|
13
|
+
- `solution-architect.json`: High-level system design and architecture planning
|
|
14
|
+
- `technical-planner.json`: Low-level implementation planning with TDD and bite-sized tasks
|
|
15
|
+
- Intent-based automatic selection between architects based on prompt analysis
|
|
16
|
+
- Support for Korean and English intent patterns
|
|
17
|
+
|
|
18
|
+
- **AI Model Selection and Resolution**
|
|
19
|
+
- CLI init prompt for model selection (Sonnet/Opus/Haiku)
|
|
20
|
+
- `ai.defaultModel` configuration field in `codingbuddy.config.js`
|
|
21
|
+
- Agent-level model preferences with priority resolution (agent > mode > system)
|
|
22
|
+
- `resolvedModel` field in MCP tool responses
|
|
23
|
+
|
|
24
|
+
- **Parallel Agent Execution Support**
|
|
25
|
+
- `get_agent_system_prompt` MCP tool for generating subagent prompts
|
|
26
|
+
- `prepare_parallel_agents` MCP tool for batch agent preparation
|
|
27
|
+
- `parallelAgentsRecommendation` in `parse_mode` response
|
|
28
|
+
- Default specialist lists per mode (PLAN/ACT/EVAL)
|
|
29
|
+
|
|
30
|
+
- **Dynamic Language Configuration**
|
|
31
|
+
- `LanguageService` supporting 10 languages (ko, en, ja, zh, es, de, fr, pt, ru, hi)
|
|
32
|
+
- `languageInstruction` field in `parse_mode` response
|
|
33
|
+
- Automatic language detection from project config
|
|
34
|
+
|
|
35
|
+
- **Agent Activation Transparency**
|
|
36
|
+
- `ActivationMessageBuilder` for clear agent activation reporting
|
|
37
|
+
- `activation_message` field showing active agents with tiers
|
|
38
|
+
|
|
39
|
+
### Changed
|
|
40
|
+
|
|
41
|
+
- **Primary Agent Resolution**
|
|
42
|
+
- Extended `PrimaryAgentSource` type to include `intent`
|
|
43
|
+
- Priority order: explicit > config > intent > context > default
|
|
44
|
+
- Centralized Primary Agent constants with `_LIST` variants
|
|
45
|
+
|
|
46
|
+
- **Token Usage Optimization**
|
|
47
|
+
- Mode-based `core.md` filtering to reduce token consumption
|
|
48
|
+
- Shared `ResponseUtils` for consolidated response generation
|
|
49
|
+
|
|
50
|
+
### Fixed
|
|
51
|
+
|
|
52
|
+
- Canary deployment timestamp mismatch bug
|
|
53
|
+
- Type assertions replaced with proper typing in keyword service
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
8
57
|
## [1.0.0] - 2025-11-20
|
|
9
58
|
|
|
10
59
|
### Added
|
|
@@ -48,18 +97,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
48
97
|
|
|
49
98
|
## [Unreleased]
|
|
50
99
|
|
|
51
|
-
### Added
|
|
52
|
-
- **Clarification Phase** for PLAN mode (`rules/clarification-guide.md`)
|
|
53
|
-
- Optional phase triggered when AI detects ambiguous requirements
|
|
54
|
-
- Sequential Q&A with progress indicator (Question N/M format)
|
|
55
|
-
- Multiple-choice questions preferred for easy response
|
|
56
|
-
- Ambiguity assessment checklist (6 categories, triggers on 2+ unclear)
|
|
57
|
-
- Question count guidelines (2-7 questions based on complexity)
|
|
58
|
-
- Korean/English output format support
|
|
59
|
-
- Updated `rules/core.md` with Clarification Phase section
|
|
60
|
-
|
|
61
100
|
### Planned
|
|
62
|
-
- Real-world usage testing across all
|
|
101
|
+
- Real-world usage testing across all 7 AI tools (including OpenCode)
|
|
63
102
|
- Performance metrics collection
|
|
64
103
|
- User feedback integration
|
|
65
104
|
- Advanced examples and use cases
|
|
@@ -165,3 +165,95 @@ recommend_skills({ prompt: "Build a dashboard component" })
|
|
|
165
165
|
**Supported Languages:** English, Korean, Japanese, Chinese, Spanish
|
|
166
166
|
|
|
167
167
|
The tool returns skill recommendations with confidence levels (high/medium) and matched patterns for transparency.
|
|
168
|
+
|
|
169
|
+
## Agent Hierarchy
|
|
170
|
+
|
|
171
|
+
CodingBuddy uses a layered agent hierarchy for different types of tasks:
|
|
172
|
+
|
|
173
|
+
### Tier 1: Primary Agents (Mode-specific)
|
|
174
|
+
|
|
175
|
+
| Mode | Agents | Description |
|
|
176
|
+
|------|--------|-------------|
|
|
177
|
+
| **PLAN** | solution-architect, technical-planner | Design and planning tasks |
|
|
178
|
+
| **ACT** | frontend-developer, backend-developer, devops-engineer, agent-architect | Implementation tasks |
|
|
179
|
+
| **EVAL** | code-reviewer | Code review and evaluation |
|
|
180
|
+
|
|
181
|
+
### Tier 2: Specialist Agents
|
|
182
|
+
|
|
183
|
+
Specialist agents can be invoked by any Primary Agent as needed:
|
|
184
|
+
|
|
185
|
+
- security-specialist
|
|
186
|
+
- accessibility-specialist
|
|
187
|
+
- performance-specialist
|
|
188
|
+
- test-strategy-specialist
|
|
189
|
+
- documentation-specialist
|
|
190
|
+
- architecture-specialist
|
|
191
|
+
- code-quality-specialist
|
|
192
|
+
- seo-specialist
|
|
193
|
+
- design-system-specialist
|
|
194
|
+
|
|
195
|
+
### Agent Resolution
|
|
196
|
+
|
|
197
|
+
1. **PLAN mode**: Always uses `solution-architect` or `technical-planner` based on prompt analysis
|
|
198
|
+
2. **ACT mode**: Uses recommended agent from PLAN, or falls back to AI analysis
|
|
199
|
+
3. **EVAL mode**: Always uses `code-reviewer`
|
|
200
|
+
|
|
201
|
+
## Activation Messages
|
|
202
|
+
|
|
203
|
+
When agents or skills are activated, CodingBuddy displays activation messages for transparency:
|
|
204
|
+
|
|
205
|
+
### Output Format
|
|
206
|
+
|
|
207
|
+
```
|
|
208
|
+
🤖 solution-architect [Primary Agent]
|
|
209
|
+
👤 security-specialist [Specialist] (by solution-architect)
|
|
210
|
+
⚡ brainstorming [Specialist] (by technical-planner)
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Icons
|
|
214
|
+
|
|
215
|
+
| Icon | Meaning |
|
|
216
|
+
|------|---------|
|
|
217
|
+
| 🤖 | Primary Agent |
|
|
218
|
+
| 👤 | Specialist Agent |
|
|
219
|
+
| ⚡ | Skill |
|
|
220
|
+
|
|
221
|
+
### ParseMode Response Fields
|
|
222
|
+
|
|
223
|
+
The `parse_mode` MCP tool returns these agent-related fields:
|
|
224
|
+
|
|
225
|
+
```json
|
|
226
|
+
{
|
|
227
|
+
"mode": "PLAN",
|
|
228
|
+
"delegates_to": "solution-architect",
|
|
229
|
+
"primary_agent_source": "intent",
|
|
230
|
+
"activation_message": {
|
|
231
|
+
"formatted": "🤖 solution-architect [Primary Agent]",
|
|
232
|
+
"activations": [
|
|
233
|
+
{
|
|
234
|
+
"type": "agent",
|
|
235
|
+
"name": "solution-architect",
|
|
236
|
+
"tier": "primary",
|
|
237
|
+
"timestamp": "2024-01-06T12:00:00Z"
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"recommended_act_agent": {
|
|
242
|
+
"agentName": "backend-developer",
|
|
243
|
+
"reason": "API implementation task detected",
|
|
244
|
+
"confidence": 0.9
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### Displaying Activation Messages
|
|
250
|
+
|
|
251
|
+
AI assistants should display the `activation_message.formatted` field at the start of their response:
|
|
252
|
+
|
|
253
|
+
```
|
|
254
|
+
🤖 solution-architect [Primary Agent]
|
|
255
|
+
|
|
256
|
+
# Mode: PLAN
|
|
257
|
+
|
|
258
|
+
...
|
|
259
|
+
```
|
|
@@ -182,11 +182,40 @@ Once connected, you can use:
|
|
|
182
182
|
- `search_rules`: Query AI rules and guidelines
|
|
183
183
|
- `get_agent_details`: Get specialist agent information
|
|
184
184
|
- `recommend_skills`: Get skill recommendations based on prompt
|
|
185
|
-
- `parse_mode`: Parse PLAN/ACT/EVAL workflow mode (
|
|
185
|
+
- `parse_mode`: Parse PLAN/ACT/EVAL workflow mode (includes dynamic language instructions)
|
|
186
|
+
|
|
187
|
+
#### Dynamic Language Configuration
|
|
188
|
+
|
|
189
|
+
OpenCode agents get language instructions dynamically from the MCP server:
|
|
190
|
+
|
|
191
|
+
1. **Set language in codingbuddy.config.js:**
|
|
192
|
+
```javascript
|
|
193
|
+
module.exports = {
|
|
194
|
+
language: 'ko', // or 'en', 'ja', 'zh', 'es', etc.
|
|
195
|
+
// ... other config
|
|
196
|
+
};
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
2. **Call parse_mode to get dynamic language instruction:**
|
|
200
|
+
```bash
|
|
201
|
+
# AI should call parse_mode when user starts with PLAN/ACT/EVAL
|
|
202
|
+
# Returns languageInstruction field automatically
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
3. **Remove hardcoded language from agent prompts:**
|
|
206
|
+
```json
|
|
207
|
+
{
|
|
208
|
+
"agent": {
|
|
209
|
+
"plan-mode": {
|
|
210
|
+
"prompt": "{file:...plan-mode.json}\n\n[OpenCode Override]\nMode: PLAN only. Use languageInstruction from parse_mode response.",
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
```
|
|
186
215
|
|
|
187
216
|
#### Enhanced parse_mode Response
|
|
188
217
|
|
|
189
|
-
The `parse_mode` tool now returns additional Mode Agent information:
|
|
218
|
+
The `parse_mode` tool now returns additional Mode Agent information and dynamic language instructions:
|
|
190
219
|
|
|
191
220
|
```json
|
|
192
221
|
{
|
|
@@ -194,6 +223,8 @@ The `parse_mode` tool now returns additional Mode Agent information:
|
|
|
194
223
|
"originalPrompt": "새로운 사용자 등록 기능을 만들어줘",
|
|
195
224
|
"instructions": "설계 우선 접근. TDD 관점에서...",
|
|
196
225
|
"rules": [...],
|
|
226
|
+
"language": "ko",
|
|
227
|
+
"languageInstruction": "Always respond in Korean (한국어).",
|
|
197
228
|
"agent": "plan-mode",
|
|
198
229
|
"delegates_to": "frontend-developer",
|
|
199
230
|
"delegate_agent_info": {
|
|
@@ -205,6 +236,8 @@ The `parse_mode` tool now returns additional Mode Agent information:
|
|
|
205
236
|
```
|
|
206
237
|
|
|
207
238
|
**New Fields:**
|
|
239
|
+
- `language`: Language code from codingbuddy.config.js
|
|
240
|
+
- `languageInstruction`: Formatted instruction text for AI assistants (🆕)
|
|
208
241
|
- `agent`: Mode Agent name (plan-mode, act-mode, eval-mode)
|
|
209
242
|
- `delegates_to`: Which specialist agent the Mode Agent delegates to
|
|
210
243
|
- `delegate_agent_info`: Detailed information about the delegate agent (optional)
|
|
@@ -22,39 +22,109 @@ AI Agent definitions for specialized development roles.
|
|
|
22
22
|
|
|
23
23
|
## Quick Reference: Which Agent?
|
|
24
24
|
|
|
25
|
-
|
|
|
26
|
-
|
|
27
|
-
| **
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
|
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
| **
|
|
36
|
-
| **
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
25
|
+
| Task Type | Recommended Agent | File |
|
|
26
|
+
|-----------|-------------------|------|
|
|
27
|
+
| **High-level Architecture Design** | Solution Architect | `solution-architect.json` |
|
|
28
|
+
| **Implementation Planning** | Technical Planner | `technical-planner.json` |
|
|
29
|
+
| **React/Next.js Development** | Frontend Developer | `frontend-developer.json` |
|
|
30
|
+
| **Backend API Development** | Backend Developer | `backend-developer.json` |
|
|
31
|
+
| **Code Review (EVAL)** | Code Reviewer | `code-reviewer.json` |
|
|
32
|
+
| **Architecture Design** | Architecture Specialist | `architecture-specialist.json` |
|
|
33
|
+
| **Test Strategy** | Test Strategy Specialist | `test-strategy-specialist.json` |
|
|
34
|
+
| **Performance Optimization** | Performance Specialist | `performance-specialist.json` |
|
|
35
|
+
| **Security Review** | Security Specialist | `security-specialist.json` |
|
|
36
|
+
| **Accessibility Review** | Accessibility Specialist | `accessibility-specialist.json` |
|
|
37
|
+
| **SEO Optimization** | SEO Specialist | `seo-specialist.json` |
|
|
38
|
+
| **UI/UX Design** | UI/UX Designer | `ui-ux-designer.json` |
|
|
39
|
+
| **Documentation** | Documentation Specialist | `documentation-specialist.json` |
|
|
40
|
+
| **Code Quality** | Code Quality Specialist | `code-quality-specialist.json` |
|
|
41
|
+
| **Infrastructure/Deployment** | DevOps Engineer | `devops-engineer.json` |
|
|
42
|
+
| **Agent Management** | Agent Architect | `agent-architect.json` |
|
|
40
43
|
|
|
41
44
|
### Agent Summary
|
|
42
45
|
|
|
43
|
-
| Agent |
|
|
44
|
-
|
|
45
|
-
|
|
|
46
|
-
|
|
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
|
|
|
51
|
-
|
|
|
52
|
-
|
|
|
53
|
-
|
|
|
54
|
-
|
|
|
55
|
-
|
|
|
56
|
-
|
|
|
57
|
-
|
|
|
46
|
+
| Agent | Description |
|
|
47
|
+
|-------|-------------|
|
|
48
|
+
| Solution Architect | High-level system design and architecture planning |
|
|
49
|
+
| Technical Planner | Low-level implementation planning with TDD and bite-sized tasks |
|
|
50
|
+
| Frontend Developer | TDD-based frontend development with React/Next.js |
|
|
51
|
+
| Backend Developer | Multi-stack backend API development (Node, Python, Go, Java, Rust) |
|
|
52
|
+
| Code Reviewer | Auto-activated in EVAL mode, multi-dimensional code quality assessment |
|
|
53
|
+
| Architecture Specialist | Layer boundaries, dependency direction, Clean Architecture |
|
|
54
|
+
| Test Strategy Specialist | TDD strategy, test coverage, test quality |
|
|
55
|
+
| Performance Specialist | Core Web Vitals, bundle optimization, rendering performance |
|
|
56
|
+
| Security Specialist | OWASP, authentication/authorization, XSS/CSRF defense |
|
|
57
|
+
| Accessibility Specialist | WCAG 2.1 AA, semantic HTML, screen reader support |
|
|
58
|
+
| SEO Specialist | Metadata, JSON-LD, Open Graph |
|
|
59
|
+
| UI/UX Designer | Visual hierarchy, UX laws, interaction patterns |
|
|
60
|
+
| Documentation Specialist | Code comments, JSDoc, documentation quality assessment |
|
|
61
|
+
| Code Quality Specialist | SOLID, DRY, complexity analysis |
|
|
62
|
+
| DevOps Engineer | Docker, monitoring, deployment optimization |
|
|
63
|
+
| Agent Architect | AI agent design, validation, checklist auditing |
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Primary Agent System
|
|
68
|
+
|
|
69
|
+
**Primary Agents** are core agents that receive delegation from Mode Agents (PLAN/ACT/EVAL) to perform actual work.
|
|
70
|
+
|
|
71
|
+
### Dynamic Primary Agent Resolution
|
|
72
|
+
|
|
73
|
+
Primary Agent is dynamically determined based on the following priority:
|
|
74
|
+
|
|
75
|
+
| Priority | Source | Description |
|
|
76
|
+
|----------|--------|-------------|
|
|
77
|
+
| 1 | **explicit** | Explicit request in prompt (e.g., "use backend-developer agent") |
|
|
78
|
+
| 2 | **config** | Project configuration's `primaryAgent` setting |
|
|
79
|
+
| 3 | **context** | Inference based on file path (e.g., `.go` → backend-developer) |
|
|
80
|
+
| 4 | **default** | Default value (frontend-developer) |
|
|
81
|
+
|
|
82
|
+
### Primary Agent Request Patterns
|
|
83
|
+
|
|
84
|
+
**Korean:**
|
|
85
|
+
```
|
|
86
|
+
backend-developer로 작업해 # "Work with backend-developer" (~로 작업해 = "work with ~")
|
|
87
|
+
agent-architect으로 해줘 # "Do it with agent-architect" (~으로 해줘 = "do with ~")
|
|
88
|
+
devops-engineer로 개발해 # "Develop with devops-engineer" (~로 개발해 = "develop with ~")
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**English:**
|
|
92
|
+
```
|
|
93
|
+
use backend-developer agent
|
|
94
|
+
using frontend-developer create this
|
|
95
|
+
as agent-architect, design new agent
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Available Primary Agents
|
|
99
|
+
|
|
100
|
+
**PLAN Mode Primary Agents:**
|
|
101
|
+
|
|
102
|
+
| Agent | role.type | Activation Condition |
|
|
103
|
+
|-------|-----------|---------------------|
|
|
104
|
+
| Solution Architect | `primary` | Architecture design, system design, technology selection |
|
|
105
|
+
| Technical Planner | `primary` | Implementation planning, task breakdown, TDD planning |
|
|
106
|
+
|
|
107
|
+
**ACT Mode Primary Agents:**
|
|
108
|
+
|
|
109
|
+
| Agent | role.type | Activation Condition |
|
|
110
|
+
|-------|-----------|---------------------|
|
|
111
|
+
| Frontend Developer | `primary` | Default for ACT mode, React/Next.js projects |
|
|
112
|
+
| Backend Developer | `primary` | Backend file context (.go, .py, .java, .rs) |
|
|
113
|
+
| Agent Architect | `primary` | Agent-related work requests |
|
|
114
|
+
| DevOps Engineer | `primary` | Dockerfile, docker-compose context |
|
|
115
|
+
|
|
116
|
+
### EVAL Mode
|
|
117
|
+
|
|
118
|
+
EVAL mode always uses `code-reviewer` (regardless of Primary Agent settings).
|
|
119
|
+
|
|
120
|
+
### Intent-Based Resolution (PLAN Mode)
|
|
121
|
+
|
|
122
|
+
PLAN mode uses intent-based resolution to automatically select between Solution Architect and Technical Planner:
|
|
123
|
+
|
|
124
|
+
| Intent Pattern | Selected Agent |
|
|
125
|
+
|----------------|----------------|
|
|
126
|
+
| Architecture, system design, technology selection | Solution Architect |
|
|
127
|
+
| Implementation plan, task breakdown, TDD | Technical Planner |
|
|
58
128
|
|
|
59
129
|
---
|
|
60
130
|
|
|
@@ -68,14 +138,15 @@ Mode Agents are workflow orchestrators that provide seamless integration with Op
|
|
|
68
138
|
|
|
69
139
|
```
|
|
70
140
|
Mode Agents (Workflow Orchestrators)
|
|
71
|
-
├── plan-mode → delegates to →
|
|
72
|
-
├── act-mode → delegates to →
|
|
73
|
-
└── eval-mode → delegates to → code-reviewer
|
|
141
|
+
├── plan-mode → delegates to → [Dynamic Primary Agent]
|
|
142
|
+
├── act-mode → delegates to → [Dynamic Primary Agent]
|
|
143
|
+
└── eval-mode → delegates to → code-reviewer (always)
|
|
74
144
|
|
|
75
|
-
|
|
76
|
-
├── frontend-developer # React/Next.js expertise
|
|
145
|
+
Primary Agents (Implementation Experts) - role.type: "primary"
|
|
146
|
+
├── frontend-developer # React/Next.js expertise (default)
|
|
77
147
|
├── backend-developer # Multi-language backend expertise
|
|
78
|
-
|
|
148
|
+
├── agent-architect # AI agent framework expertise
|
|
149
|
+
└── devops-engineer # Infrastructure expertise
|
|
79
150
|
|
|
80
151
|
Specialist Agents (Domain Experts)
|
|
81
152
|
├── architecture-specialist
|
|
@@ -84,13 +155,15 @@ Specialist Agents (Domain Experts)
|
|
|
84
155
|
└── ... (other specialists)
|
|
85
156
|
```
|
|
86
157
|
|
|
158
|
+
**Dynamic Resolution**: Primary Agent is dynamically determined based on prompt content, project configuration, and file context.
|
|
159
|
+
|
|
87
160
|
### Mode Agent Details
|
|
88
161
|
|
|
89
162
|
| Mode Agent | Workflow | Delegates To | Purpose |
|
|
90
163
|
|------------|----------|--------------|---------|
|
|
91
|
-
| **plan-mode** | PLAN |
|
|
92
|
-
| **act-mode** | ACT |
|
|
93
|
-
| **eval-mode** | EVAL | code-reviewer | Code quality evaluation |
|
|
164
|
+
| **plan-mode** | PLAN | Dynamic Primary Agent | Analysis and planning without changes |
|
|
165
|
+
| **act-mode** | ACT | Dynamic Primary Agent | Full development with all tools |
|
|
166
|
+
| **eval-mode** | EVAL | code-reviewer (fixed) | Code quality evaluation |
|
|
94
167
|
|
|
95
168
|
**Key Features:**
|
|
96
169
|
- **Seamless Integration**: Works with OpenCode agent system
|
|
@@ -105,9 +178,9 @@ Specialist Agents (Domain Experts)
|
|
|
105
178
|
```bash
|
|
106
179
|
# OpenCode CLI example
|
|
107
180
|
/agent plan-mode
|
|
108
|
-
|
|
181
|
+
Create a new feature
|
|
109
182
|
|
|
110
|
-
/agent act-mode
|
|
183
|
+
/agent act-mode
|
|
111
184
|
ACT
|
|
112
185
|
|
|
113
186
|
/agent eval-mode
|
|
@@ -121,15 +194,16 @@ When using the `parse_mode` MCP tool, you receive enhanced response with Mode Ag
|
|
|
121
194
|
```json
|
|
122
195
|
{
|
|
123
196
|
"mode": "PLAN",
|
|
124
|
-
"originalPrompt": "
|
|
125
|
-
"instructions": "
|
|
197
|
+
"originalPrompt": "Create a new feature",
|
|
198
|
+
"instructions": "Design-first approach...",
|
|
126
199
|
"rules": [{"name": "rules/core.md", "content": "..."}],
|
|
127
200
|
"warnings": ["No keyword found, defaulting to PLAN"],
|
|
128
201
|
"agent": "plan-mode",
|
|
129
202
|
"delegates_to": "frontend-developer",
|
|
203
|
+
"primary_agent_source": "default",
|
|
130
204
|
"delegate_agent_info": {
|
|
131
205
|
"name": "Frontend Developer",
|
|
132
|
-
"description": "React/Next.js
|
|
206
|
+
"description": "React/Next.js expert with TDD and design system experience",
|
|
133
207
|
"expertise": ["React", "Next.js", "TDD", "TypeScript"]
|
|
134
208
|
}
|
|
135
209
|
}
|
|
@@ -146,6 +220,7 @@ When using the `parse_mode` MCP tool, you receive enhanced response with Mode Ag
|
|
|
146
220
|
| `warnings` | array | No | Parsing warnings (e.g., missing keyword) |
|
|
147
221
|
| `agent` | string | No | Mode Agent name (e.g., "plan-mode") |
|
|
148
222
|
| `delegates_to` | string | No | Delegate agent name (e.g., "frontend-developer") |
|
|
223
|
+
| `primary_agent_source` | string | No | How Primary Agent was selected: "explicit", "config", "context", "default" |
|
|
149
224
|
| `delegate_agent_info` | object | No | Delegate agent details (name, description, expertise) |
|
|
150
225
|
|
|
151
226
|
### Agent Priority System
|
|
@@ -200,6 +275,89 @@ Unified specialist agents organized by domain:
|
|
|
200
275
|
|
|
201
276
|
## Agent Details
|
|
202
277
|
|
|
278
|
+
### Solution Architect (`solution-architect.json`)
|
|
279
|
+
|
|
280
|
+
> **Note**: This is a **Primary Agent** for PLAN mode, specializing in high-level system design.
|
|
281
|
+
|
|
282
|
+
**Expertise:**
|
|
283
|
+
|
|
284
|
+
- System Architecture Design
|
|
285
|
+
- Technology Selection
|
|
286
|
+
- Integration Patterns
|
|
287
|
+
- Scalability Planning
|
|
288
|
+
- Trade-off Analysis
|
|
289
|
+
|
|
290
|
+
**Development Philosophy:**
|
|
291
|
+
|
|
292
|
+
- **Brainstorm-First**: Always start with `superpowers:brainstorming` skill
|
|
293
|
+
- **Multiple Options**: Present 2-3 design approaches with trade-offs
|
|
294
|
+
- **Incremental Validation**: Present design in sections (200-300 words) and validate with user
|
|
295
|
+
- **Document-Driven**: Save validated designs to `docs/plans/YYYY-MM-DD-<topic>-design.md`
|
|
296
|
+
|
|
297
|
+
**Responsibilities:**
|
|
298
|
+
|
|
299
|
+
- Analyze requirements and constraints
|
|
300
|
+
- Design high-level system architecture
|
|
301
|
+
- Evaluate technology options
|
|
302
|
+
- Define component boundaries
|
|
303
|
+
- Delegate to domain specialists (Frontend/Backend/DevOps)
|
|
304
|
+
|
|
305
|
+
**Workflow:**
|
|
306
|
+
|
|
307
|
+
1. Invoke `superpowers:brainstorming` skill
|
|
308
|
+
2. Understand project context (files, docs, commits)
|
|
309
|
+
3. Ask clarifying questions one at a time
|
|
310
|
+
4. Propose 2-3 approaches with trade-offs
|
|
311
|
+
5. Present design in sections with user validation
|
|
312
|
+
6. Document to `docs/plans/`
|
|
313
|
+
7. Offer handoff to Technical Planner
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
### Technical Planner (`technical-planner.json`)
|
|
318
|
+
|
|
319
|
+
> **Note**: This is a **Primary Agent** for PLAN mode, specializing in detailed implementation planning.
|
|
320
|
+
|
|
321
|
+
**Expertise:**
|
|
322
|
+
|
|
323
|
+
- Implementation Planning
|
|
324
|
+
- TDD Strategy
|
|
325
|
+
- Task Decomposition
|
|
326
|
+
- Code Structure Design
|
|
327
|
+
- Test Design
|
|
328
|
+
|
|
329
|
+
**Development Philosophy:**
|
|
330
|
+
|
|
331
|
+
- **Bite-Sized Tasks**: Each task is 2-5 minutes of work
|
|
332
|
+
- **TDD-First**: Red-Green-Refactor-Commit structure per task
|
|
333
|
+
- **Complete Code**: Plans include full code, no placeholders
|
|
334
|
+
- **Exact Paths**: Specify exact file paths for all changes
|
|
335
|
+
|
|
336
|
+
**Responsibilities:**
|
|
337
|
+
|
|
338
|
+
- Break down designs into bite-sized tasks (2-5 minutes each)
|
|
339
|
+
- Define exact file paths and code changes
|
|
340
|
+
- Design test cases with TDD approach
|
|
341
|
+
- Create executable implementation plans
|
|
342
|
+
- Ensure plans are context-complete for engineers
|
|
343
|
+
|
|
344
|
+
**Workflow:**
|
|
345
|
+
|
|
346
|
+
1. Invoke `superpowers:writing-plans` skill
|
|
347
|
+
2. Read design document or requirements
|
|
348
|
+
3. Identify all components and dependencies
|
|
349
|
+
4. Break into bite-sized tasks (2-5 minutes each)
|
|
350
|
+
5. For each task: exact files, complete code, test commands
|
|
351
|
+
6. Save to `docs/plans/YYYY-MM-DD-<feature>.md`
|
|
352
|
+
7. Offer execution choice (subagent vs parallel session)
|
|
353
|
+
|
|
354
|
+
**Execution Options:**
|
|
355
|
+
|
|
356
|
+
- **Subagent-Driven**: Execute in current session with `superpowers:subagent-driven-development`
|
|
357
|
+
- **Parallel Session**: Execute in separate session with `superpowers:executing-plans`
|
|
358
|
+
|
|
359
|
+
---
|
|
360
|
+
|
|
203
361
|
### Primary Developer Agent Example: Frontend Developer (`frontend-developer.json`)
|
|
204
362
|
|
|
205
363
|
> **Note**: This is an example Primary Developer Agent for React/Next.js projects. Create your own agent (e.g., `backend-developer.json`, `mobile-developer.json`) following this pattern for other tech stacks.
|
|
@@ -317,6 +475,40 @@ Unified specialist agents organized by domain:
|
|
|
317
475
|
|
|
318
476
|
---
|
|
319
477
|
|
|
478
|
+
### Agent Architect (`agent-architect.json`)
|
|
479
|
+
|
|
480
|
+
> **Note**: This is a **Primary Agent** for managing AI agent configurations, schemas, and validation.
|
|
481
|
+
|
|
482
|
+
**Expertise:**
|
|
483
|
+
|
|
484
|
+
- Agent Schema Design (JSON/YAML)
|
|
485
|
+
- Workflow Orchestration
|
|
486
|
+
- Quality Assurance Automation
|
|
487
|
+
- TDD for Configuration
|
|
488
|
+
- Meta-Agent Patterns
|
|
489
|
+
|
|
490
|
+
**Responsibilities:**
|
|
491
|
+
|
|
492
|
+
- Generate new agent definitions from requirements
|
|
493
|
+
- Validate agent configurations against AgentProfile schema
|
|
494
|
+
- Audit code against agent mandatory_checklist
|
|
495
|
+
- Optimize agent workflows and delegation chains
|
|
496
|
+
- Maintain agent registry consistency
|
|
497
|
+
- Design specialized agents for specific domains
|
|
498
|
+
|
|
499
|
+
**Workflow:**
|
|
500
|
+
|
|
501
|
+
- **Agent Creation**: TDD approach - Define schema → Create minimal JSON → Validate → Enhance → Test → Document
|
|
502
|
+
- **Agent Validation**: Multi-layer validation (Schema, Checklist, Reference integrity, Documentation)
|
|
503
|
+
- **Checklist Audit**: Systematic verification against mandatory_checklist items
|
|
504
|
+
|
|
505
|
+
**Activation Patterns:**
|
|
506
|
+
|
|
507
|
+
- Korean: "create agent", "validate agent", "audit checklist"
|
|
508
|
+
- English: "create agent", "validate agent", "audit checklist"
|
|
509
|
+
|
|
510
|
+
---
|
|
511
|
+
|
|
320
512
|
### Code Reviewer (`code-reviewer.json`)
|
|
321
513
|
|
|
322
514
|
**Expertise:**
|
|
@@ -659,11 +851,14 @@ All agent files are located directly in `.ai-rules/agents/` directory without su
|
|
|
659
851
|
|
|
660
852
|
```
|
|
661
853
|
.ai-rules/agents/
|
|
662
|
-
├──
|
|
663
|
-
├──
|
|
664
|
-
├──
|
|
854
|
+
├── solution-architect.json # Primary Agent for PLAN mode (architecture)
|
|
855
|
+
├── technical-planner.json # Primary Agent for PLAN mode (implementation)
|
|
856
|
+
├── frontend-developer.json # Primary Agent for ACT mode (default)
|
|
857
|
+
├── backend-developer.json # Primary Agent for ACT mode (backend)
|
|
858
|
+
├── agent-architect.json # Primary Agent for agent management
|
|
859
|
+
├── devops-engineer.json # Primary Agent for infrastructure
|
|
860
|
+
├── code-reviewer.json # Core agent (EVAL mode, fixed)
|
|
665
861
|
├── code-quality-specialist.json # Utility agent
|
|
666
|
-
├── devops-engineer.json # Utility agent
|
|
667
862
|
├── accessibility-specialist.json # Domain specialist
|
|
668
863
|
├── architecture-specialist.json # Domain specialist
|
|
669
864
|
├── ui-ux-designer.json # Domain specialist
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "Accessibility Specialist",
|
|
3
3
|
"description": "Accessibility expert for Planning, Implementation, and Evaluation modes - unified specialist for WCAG 2.1 AA compliance, ARIA attributes, and keyboard navigation",
|
|
4
|
+
"model": {
|
|
5
|
+
"preferred": "claude-sonnet-4-20250514",
|
|
6
|
+
"reason": "Suitable model for accessibility analysis"
|
|
7
|
+
},
|
|
4
8
|
"role": {
|
|
5
9
|
"title": "Accessibility Engineer",
|
|
6
10
|
"expertise": [
|