codingbuddy-rules 1.3.0 → 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 +102 -9
- 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
|
+
```
|
|
@@ -59,11 +59,70 @@ Update your configuration file (`.opencode.json` or `crush.json`):
|
|
|
59
59
|
},
|
|
60
60
|
"eval-mode": {
|
|
61
61
|
"description": "EVAL mode - Code quality evaluation",
|
|
62
|
-
"mode": "
|
|
62
|
+
"mode": "primary",
|
|
63
63
|
"prompt": "{file:packages/rules/.ai-rules/agents/eval-mode.json}\n\n[OpenCode Override]\nMode: EVAL. Always respond in Korean. Provide evidence-based evaluation.",
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
64
|
+
"permission": {
|
|
65
|
+
"edit": "deny",
|
|
66
|
+
"bash": {
|
|
67
|
+
"git status": "allow",
|
|
68
|
+
"git diff*": "allow",
|
|
69
|
+
"git log*": "allow",
|
|
70
|
+
"*": "ask"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"backend": {
|
|
75
|
+
"description": "Backend development - Node.js, Python, Go, Java, Rust",
|
|
76
|
+
"mode": "subagent",
|
|
77
|
+
"prompt": "{file:packages/rules/.ai-rules/agents/backend-developer.json}\n\n[OpenCode Override]\nAlways respond in Korean. Follow TDD workflow and clean architecture.",
|
|
78
|
+
"permission": {
|
|
79
|
+
"edit": "allow",
|
|
80
|
+
"bash": "allow"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"architect": {
|
|
84
|
+
"description": "Architecture and design patterns specialist",
|
|
85
|
+
"mode": "subagent",
|
|
86
|
+
"prompt": "{file:packages/rules/.ai-rules/agents/architecture-specialist.json}\n\n[OpenCode Override]\nAlways respond in Korean. Focus on layer boundaries and dependency direction.",
|
|
87
|
+
"permission": {
|
|
88
|
+
"edit": "deny",
|
|
89
|
+
"bash": "ask"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"tester": {
|
|
93
|
+
"description": "Test strategy and TDD specialist",
|
|
94
|
+
"mode": "subagent",
|
|
95
|
+
"prompt": "{file:packages/rules/.ai-rules/agents/test-strategy-specialist.json}\n\n[OpenCode Override]\nAlways respond in Korean. Enforce 90%+ coverage and no-mocking principle.",
|
|
96
|
+
"permission": {
|
|
97
|
+
"edit": "allow",
|
|
98
|
+
"bash": "allow"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"security": {
|
|
102
|
+
"description": "Security audit - OAuth, JWT, XSS/CSRF protection",
|
|
103
|
+
"mode": "subagent",
|
|
104
|
+
"prompt": "{file:packages/rules/.ai-rules/agents/security-specialist.json}\n\n[OpenCode Override]\nAlways respond in Korean. Follow OWASP guidelines.",
|
|
105
|
+
"permission": {
|
|
106
|
+
"edit": "deny",
|
|
107
|
+
"bash": "ask"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"a11y": {
|
|
111
|
+
"description": "Accessibility - WCAG 2.1 AA compliance",
|
|
112
|
+
"mode": "subagent",
|
|
113
|
+
"prompt": "{file:packages/rules/.ai-rules/agents/accessibility-specialist.json}\n\n[OpenCode Override]\nAlways respond in Korean. Verify ARIA and keyboard navigation.",
|
|
114
|
+
"permission": {
|
|
115
|
+
"edit": "deny",
|
|
116
|
+
"bash": "ask"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"performance": {
|
|
120
|
+
"description": "Performance optimization specialist",
|
|
121
|
+
"mode": "subagent",
|
|
122
|
+
"prompt": "{file:packages/rules/.ai-rules/agents/performance-specialist.json}\n\n[OpenCode Override]\nAlways respond in Korean. Focus on bundle size and runtime optimization.",
|
|
123
|
+
"permission": {
|
|
124
|
+
"edit": "deny",
|
|
125
|
+
"bash": "ask"
|
|
67
126
|
}
|
|
68
127
|
}
|
|
69
128
|
},
|
|
@@ -85,6 +144,7 @@ Update your configuration file (`.opencode.json` or `crush.json`):
|
|
|
85
144
|
| **act-mode.json** | `act-mode` | ACT mode workflow (delegates to frontend-developer) |
|
|
86
145
|
| **eval-mode.json** | `eval-mode` | EVAL mode workflow (delegates to code-reviewer) |
|
|
87
146
|
| **frontend-developer.json** | N/A (delegate) | Primary development implementation |
|
|
147
|
+
| **backend-developer.json** | `backend` | Backend development (Node.js, Python, Go, Java, Rust) |
|
|
88
148
|
| **code-reviewer.json** | N/A (delegate) | Code quality evaluation implementation |
|
|
89
149
|
| **architecture-specialist.json** | `architect` | Architecture and design patterns |
|
|
90
150
|
| **test-strategy-specialist.json** | `tester` | Test strategy and TDD |
|
|
@@ -122,11 +182,40 @@ Once connected, you can use:
|
|
|
122
182
|
- `search_rules`: Query AI rules and guidelines
|
|
123
183
|
- `get_agent_details`: Get specialist agent information
|
|
124
184
|
- `recommend_skills`: Get skill recommendations based on prompt
|
|
125
|
-
- `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
|
+
```
|
|
126
215
|
|
|
127
216
|
#### Enhanced parse_mode Response
|
|
128
217
|
|
|
129
|
-
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:
|
|
130
219
|
|
|
131
220
|
```json
|
|
132
221
|
{
|
|
@@ -134,6 +223,8 @@ The `parse_mode` tool now returns additional Mode Agent information:
|
|
|
134
223
|
"originalPrompt": "새로운 사용자 등록 기능을 만들어줘",
|
|
135
224
|
"instructions": "설계 우선 접근. TDD 관점에서...",
|
|
136
225
|
"rules": [...],
|
|
226
|
+
"language": "ko",
|
|
227
|
+
"languageInstruction": "Always respond in Korean (한국어).",
|
|
137
228
|
"agent": "plan-mode",
|
|
138
229
|
"delegates_to": "frontend-developer",
|
|
139
230
|
"delegate_agent_info": {
|
|
@@ -145,6 +236,8 @@ The `parse_mode` tool now returns additional Mode Agent information:
|
|
|
145
236
|
```
|
|
146
237
|
|
|
147
238
|
**New Fields:**
|
|
239
|
+
- `language`: Language code from codingbuddy.config.js
|
|
240
|
+
- `languageInstruction`: Formatted instruction text for AI assistants (🆕)
|
|
148
241
|
- `agent`: Mode Agent name (plan-mode, act-mode, eval-mode)
|
|
149
242
|
- `delegates_to`: Which specialist agent the Mode Agent delegates to
|
|
150
243
|
- `delegate_agent_info`: Detailed information about the delegate agent (optional)
|
|
@@ -383,15 +476,15 @@ npx codingbuddy@latest mcp
|
|
|
383
476
|
|
|
384
477
|
```bash
|
|
385
478
|
# Terminal 1: Planning
|
|
386
|
-
opencode --agent plan
|
|
479
|
+
opencode --agent plan-mode
|
|
387
480
|
계획을 세워줘
|
|
388
481
|
|
|
389
482
|
# Terminal 2: Implementation
|
|
390
|
-
opencode --agent
|
|
483
|
+
opencode --agent act-mode
|
|
391
484
|
ACT
|
|
392
485
|
|
|
393
486
|
# Terminal 3: Review
|
|
394
|
-
opencode --agent
|
|
487
|
+
opencode --agent eval-mode
|
|
395
488
|
EVAL
|
|
396
489
|
```
|
|
397
490
|
|