codingbuddy-rules 4.3.0 → 4.4.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/adapters/antigravity.md +648 -160
- package/.ai-rules/adapters/codex.md +500 -10
- package/.ai-rules/adapters/cursor.md +252 -8
- package/.ai-rules/adapters/kiro.md +551 -93
- package/.ai-rules/adapters/opencode-skills.md +179 -188
- package/.ai-rules/adapters/opencode.md +245 -44
- package/.ai-rules/skills/README.md +92 -24
- package/.ai-rules/skills/agent-design/SKILL.md +269 -0
- package/.ai-rules/skills/code-explanation/SKILL.md +259 -0
- package/.ai-rules/skills/context-management/SKILL.md +244 -0
- package/.ai-rules/skills/deployment-checklist/SKILL.md +233 -0
- package/.ai-rules/skills/documentation-generation/SKILL.md +293 -0
- package/.ai-rules/skills/error-analysis/SKILL.md +250 -0
- package/.ai-rules/skills/legacy-modernization/SKILL.md +292 -0
- package/.ai-rules/skills/mcp-builder/SKILL.md +356 -0
- package/.ai-rules/skills/prompt-engineering/SKILL.md +318 -0
- package/.ai-rules/skills/rule-authoring/SKILL.md +273 -0
- package/.ai-rules/skills/security-audit/SKILL.md +241 -0
- package/.ai-rules/skills/tech-debt/SKILL.md +224 -0
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ Update your configuration file (`.opencode.json` or `crush.json`):
|
|
|
37
37
|
"plan-mode": {
|
|
38
38
|
"description": "PLAN mode - Analysis and planning without changes",
|
|
39
39
|
"mode": "primary",
|
|
40
|
-
"prompt": "{file:packages/rules/.ai-rules/agents/plan-mode.json}\n\n[OpenCode Override]\nMode: PLAN only.
|
|
40
|
+
"prompt": "{file:packages/rules/.ai-rules/agents/plan-mode.json}\n\n[OpenCode Override]\nMode: PLAN only. Do NOT make any file changes. Focus on analysis and planning. Follow languageInstruction from parse_mode response.",
|
|
41
41
|
"permission": {
|
|
42
42
|
"edit": "deny",
|
|
43
43
|
"bash": {
|
|
@@ -51,7 +51,7 @@ Update your configuration file (`.opencode.json` or `crush.json`):
|
|
|
51
51
|
"act-mode": {
|
|
52
52
|
"description": "ACT mode - Full development with all tools",
|
|
53
53
|
"mode": "primary",
|
|
54
|
-
"prompt": "{file:packages/rules/.ai-rules/agents/act-mode.json}\n\n[OpenCode Override]\nMode: ACT.
|
|
54
|
+
"prompt": "{file:packages/rules/.ai-rules/agents/act-mode.json}\n\n[OpenCode Override]\nMode: ACT. Follow TDD workflow and code quality standards. Follow languageInstruction from parse_mode response.",
|
|
55
55
|
"permission": {
|
|
56
56
|
"edit": "allow",
|
|
57
57
|
"bash": "allow"
|
|
@@ -60,7 +60,7 @@ Update your configuration file (`.opencode.json` or `crush.json`):
|
|
|
60
60
|
"eval-mode": {
|
|
61
61
|
"description": "EVAL mode - Code quality evaluation",
|
|
62
62
|
"mode": "primary",
|
|
63
|
-
"prompt": "{file:packages/rules/.ai-rules/agents/eval-mode.json}\n\n[OpenCode Override]\nMode: EVAL.
|
|
63
|
+
"prompt": "{file:packages/rules/.ai-rules/agents/eval-mode.json}\n\n[OpenCode Override]\nMode: EVAL. Provide evidence-based evaluation. Follow languageInstruction from parse_mode response.",
|
|
64
64
|
"permission": {
|
|
65
65
|
"edit": "deny",
|
|
66
66
|
"bash": {
|
|
@@ -74,7 +74,7 @@ Update your configuration file (`.opencode.json` or `crush.json`):
|
|
|
74
74
|
"backend": {
|
|
75
75
|
"description": "Backend development - Node.js, Python, Go, Java, Rust",
|
|
76
76
|
"mode": "subagent",
|
|
77
|
-
"prompt": "{file:packages/rules/.ai-rules/agents/backend-developer.json}\n\n[OpenCode Override]\
|
|
77
|
+
"prompt": "{file:packages/rules/.ai-rules/agents/backend-developer.json}\n\n[OpenCode Override]\nFollow TDD workflow and clean architecture. Follow languageInstruction from parse_mode response.",
|
|
78
78
|
"permission": {
|
|
79
79
|
"edit": "allow",
|
|
80
80
|
"bash": "allow"
|
|
@@ -83,7 +83,7 @@ Update your configuration file (`.opencode.json` or `crush.json`):
|
|
|
83
83
|
"architect": {
|
|
84
84
|
"description": "Architecture and design patterns specialist",
|
|
85
85
|
"mode": "subagent",
|
|
86
|
-
"prompt": "{file:packages/rules/.ai-rules/agents/architecture-specialist.json}\n\n[OpenCode Override]\
|
|
86
|
+
"prompt": "{file:packages/rules/.ai-rules/agents/architecture-specialist.json}\n\n[OpenCode Override]\nFocus on layer boundaries and dependency direction. Follow languageInstruction from parse_mode response.",
|
|
87
87
|
"permission": {
|
|
88
88
|
"edit": "deny",
|
|
89
89
|
"bash": "ask"
|
|
@@ -92,7 +92,7 @@ Update your configuration file (`.opencode.json` or `crush.json`):
|
|
|
92
92
|
"tester": {
|
|
93
93
|
"description": "Test strategy and TDD specialist",
|
|
94
94
|
"mode": "subagent",
|
|
95
|
-
"prompt": "{file:packages/rules/.ai-rules/agents/test-strategy-specialist.json}\n\n[OpenCode Override]\
|
|
95
|
+
"prompt": "{file:packages/rules/.ai-rules/agents/test-strategy-specialist.json}\n\n[OpenCode Override]\nEnforce 90%+ coverage and no-mocking principle. Follow languageInstruction from parse_mode response.",
|
|
96
96
|
"permission": {
|
|
97
97
|
"edit": "allow",
|
|
98
98
|
"bash": "allow"
|
|
@@ -101,7 +101,7 @@ Update your configuration file (`.opencode.json` or `crush.json`):
|
|
|
101
101
|
"security": {
|
|
102
102
|
"description": "Security audit - OAuth, JWT, XSS/CSRF protection",
|
|
103
103
|
"mode": "subagent",
|
|
104
|
-
"prompt": "{file:packages/rules/.ai-rules/agents/security-specialist.json}\n\n[OpenCode Override]\
|
|
104
|
+
"prompt": "{file:packages/rules/.ai-rules/agents/security-specialist.json}\n\n[OpenCode Override]\nFollow OWASP guidelines. Follow languageInstruction from parse_mode response.",
|
|
105
105
|
"permission": {
|
|
106
106
|
"edit": "deny",
|
|
107
107
|
"bash": "ask"
|
|
@@ -110,7 +110,7 @@ Update your configuration file (`.opencode.json` or `crush.json`):
|
|
|
110
110
|
"a11y": {
|
|
111
111
|
"description": "Accessibility - WCAG 2.1 AA compliance",
|
|
112
112
|
"mode": "subagent",
|
|
113
|
-
"prompt": "{file:packages/rules/.ai-rules/agents/accessibility-specialist.json}\n\n[OpenCode Override]\
|
|
113
|
+
"prompt": "{file:packages/rules/.ai-rules/agents/accessibility-specialist.json}\n\n[OpenCode Override]\nVerify ARIA and keyboard navigation. Follow languageInstruction from parse_mode response.",
|
|
114
114
|
"permission": {
|
|
115
115
|
"edit": "deny",
|
|
116
116
|
"bash": "ask"
|
|
@@ -119,7 +119,7 @@ Update your configuration file (`.opencode.json` or `crush.json`):
|
|
|
119
119
|
"performance": {
|
|
120
120
|
"description": "Performance optimization specialist",
|
|
121
121
|
"mode": "subagent",
|
|
122
|
-
"prompt": "{file:packages/rules/.ai-rules/agents/performance-specialist.json}\n\n[OpenCode Override]\
|
|
122
|
+
"prompt": "{file:packages/rules/.ai-rules/agents/performance-specialist.json}\n\n[OpenCode Override]\nFocus on bundle size and runtime optimization. Follow languageInstruction from parse_mode response.",
|
|
123
123
|
"permission": {
|
|
124
124
|
"edit": "deny",
|
|
125
125
|
"bash": "ask"
|
|
@@ -130,7 +130,10 @@ Update your configuration file (`.opencode.json` or `crush.json`):
|
|
|
130
130
|
"mcp": {
|
|
131
131
|
"codingbuddy": {
|
|
132
132
|
"type": "local",
|
|
133
|
-
"command": ["npx", "codingbuddy@latest", "mcp"]
|
|
133
|
+
"command": ["npx", "codingbuddy@latest", "mcp"],
|
|
134
|
+
"env": {
|
|
135
|
+
"CODINGBUDDY_PROJECT_ROOT": "/absolute/path/to/your/project"
|
|
136
|
+
}
|
|
134
137
|
}
|
|
135
138
|
}
|
|
136
139
|
}
|
|
@@ -173,19 +176,79 @@ Add to your MCP configuration:
|
|
|
173
176
|
"codingbuddy": {
|
|
174
177
|
"type": "local",
|
|
175
178
|
"command": ["npx", "codingbuddy@latest", "mcp"],
|
|
176
|
-
"env":
|
|
179
|
+
"env": {
|
|
180
|
+
"CODINGBUDDY_PROJECT_ROOT": "/absolute/path/to/your/project"
|
|
181
|
+
}
|
|
177
182
|
}
|
|
178
183
|
}
|
|
179
184
|
}
|
|
180
185
|
```
|
|
181
186
|
|
|
187
|
+
> **Important:** OpenCode/Crush의 `roots/list` MCP capability 지원 여부는 미확인입니다.
|
|
188
|
+
> `CODINGBUDDY_PROJECT_ROOT` 없이는 서버가 프로젝트의 `codingbuddy.config.json`을 찾지 못하여
|
|
189
|
+
> `language` 등 설정이 기본값으로 동작합니다. 항상 이 환경변수를 프로젝트의 절대 경로로 설정하세요.
|
|
190
|
+
|
|
182
191
|
#### Available MCP Tools
|
|
183
192
|
|
|
184
|
-
Once connected, you can use:
|
|
193
|
+
Once connected, you can use the following tools (17 tools total):
|
|
194
|
+
|
|
195
|
+
**Core Workflow:**
|
|
196
|
+
- `parse_mode`: Parse PLAN/ACT/EVAL/AUTO workflow mode (includes dynamic language instructions)
|
|
197
|
+
- `update_context`: Persist decisions and notes to `docs/codingbuddy/context.md` (**mandatory** at mode completion)
|
|
198
|
+
- `read_context`: Read current context document
|
|
199
|
+
- `cleanup_context`: Manually trigger context document cleanup (auto-triggered when size exceeds threshold)
|
|
200
|
+
|
|
201
|
+
**Analysis & Planning:**
|
|
185
202
|
- `search_rules`: Query AI rules and guidelines
|
|
203
|
+
- `analyze_task`: Pre-planning task analysis with risk assessment and specialist recommendations
|
|
204
|
+
- `generate_checklist`: Contextual checklists (security, accessibility, performance, testing)
|
|
205
|
+
|
|
206
|
+
**Agent Dispatch:**
|
|
186
207
|
- `get_agent_details`: Get specialist agent information
|
|
208
|
+
- `get_agent_system_prompt`: Get complete system prompt for a specialist agent
|
|
209
|
+
- `dispatch_agents`: Get Task tool-ready dispatch parameters for agents
|
|
210
|
+
- `prepare_parallel_agents`: Ready-to-use prompts for parallel specialist agents
|
|
211
|
+
|
|
212
|
+
**Skills:**
|
|
187
213
|
- `recommend_skills`: Get skill recommendations based on prompt
|
|
188
|
-
- `
|
|
214
|
+
- `get_skill`: Load full skill content by name
|
|
215
|
+
- `list_skills`: List all available skills with optional filtering
|
|
216
|
+
|
|
217
|
+
**Configuration:**
|
|
218
|
+
- `get_project_config`: Get project configuration (tech stack, architecture, language)
|
|
219
|
+
- `get_code_conventions`: Get project code conventions
|
|
220
|
+
- `suggest_config_updates`: Analyze project and suggest config updates based on detected changes
|
|
221
|
+
|
|
222
|
+
#### Context Persistence Workflow
|
|
223
|
+
|
|
224
|
+
The `update_context` tool persists PLAN/ACT/EVAL decisions to `docs/codingbuddy/context.md`. This is **mandatory** — without it, context is lost between mode switches and context compaction.
|
|
225
|
+
|
|
226
|
+
**Workflow:**
|
|
227
|
+
|
|
228
|
+
```
|
|
229
|
+
PLAN mode:
|
|
230
|
+
parse_mode → (automatically resets context document)
|
|
231
|
+
... do planning work ...
|
|
232
|
+
update_context({ mode: "PLAN", task: "...", decisions: [...], notes: [...] })
|
|
233
|
+
|
|
234
|
+
ACT mode:
|
|
235
|
+
parse_mode → (reads existing context, appends new section)
|
|
236
|
+
... review previous PLAN decisions from contextDocument ...
|
|
237
|
+
... implement changes ...
|
|
238
|
+
update_context({ mode: "ACT", progress: [...], notes: [...] })
|
|
239
|
+
|
|
240
|
+
EVAL mode:
|
|
241
|
+
parse_mode → (reads existing context, appends new section)
|
|
242
|
+
... review PLAN decisions + ACT progress from contextDocument ...
|
|
243
|
+
... evaluate quality ...
|
|
244
|
+
update_context({ mode: "EVAL", findings: [...], recommendations: [...] })
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
**Key Rules:**
|
|
248
|
+
- `parse_mode` automatically manages the context file (reset in PLAN, append in ACT/EVAL)
|
|
249
|
+
- You **must** call `update_context` before completing each mode
|
|
250
|
+
- The context file survives context compaction — it is the only persistent memory across modes
|
|
251
|
+
- Use `read_context` to check current context state at any time
|
|
189
252
|
|
|
190
253
|
#### Dynamic Language Configuration
|
|
191
254
|
|
|
@@ -391,18 +454,30 @@ For Crush users, additional features available:
|
|
|
391
454
|
}
|
|
392
455
|
```
|
|
393
456
|
|
|
394
|
-
### Skills
|
|
457
|
+
### Skills Integration
|
|
458
|
+
|
|
459
|
+
Crush supports skills through two mechanisms:
|
|
460
|
+
|
|
461
|
+
1. **Native Discovery**: Place skills in `~/.config/crush/skills/` or configure additional paths via `options.skills_paths`. Crush automatically injects available skills into the system prompt.
|
|
462
|
+
|
|
463
|
+
2. **MCP Tools (Recommended)**: Use codingbuddy MCP server's skill tools for cross-platform, programmatic skill access:
|
|
464
|
+
- `recommend_skills` — prompt-based skill recommendations
|
|
465
|
+
- `get_skill` — load full skill content by name
|
|
466
|
+
- `list_skills` — list all available skills
|
|
467
|
+
|
|
468
|
+
**Configuration:**
|
|
395
469
|
```json
|
|
396
470
|
{
|
|
397
471
|
"options": {
|
|
398
472
|
"skills_paths": [
|
|
399
|
-
"packages/rules/.ai-rules/skills"
|
|
400
|
-
"~/.config/crush/skills"
|
|
473
|
+
"packages/rules/.ai-rules/skills"
|
|
401
474
|
]
|
|
402
475
|
}
|
|
403
476
|
}
|
|
404
477
|
```
|
|
405
478
|
|
|
479
|
+
> **Note:** There is no `/skill` slash command. Skills are activated through natural language or via MCP tools. See [opencode-skills.md](opencode-skills.md) for detailed usage patterns.
|
|
480
|
+
|
|
406
481
|
## Benefits
|
|
407
482
|
|
|
408
483
|
### ✅ Advantages
|
|
@@ -412,14 +487,14 @@ For Crush users, additional features available:
|
|
|
412
487
|
- **Agent-based Workflow**: Clear separation of concerns
|
|
413
488
|
- **Consistent Standards**: Same rules across all AI tools
|
|
414
489
|
- **MCP Integration**: Access to specialized tools and knowledge
|
|
415
|
-
- **
|
|
490
|
+
- **Dynamic Language Support**: Configurable language via codingbuddy.config.json (ko, en, ja, zh, es, etc.)
|
|
416
491
|
|
|
417
492
|
### ✅ Key Features
|
|
418
493
|
|
|
419
494
|
- **Dynamic Model Switching**: Change AI models during session
|
|
420
495
|
- **Advanced Permissions**: Fine-grained tool access control
|
|
421
496
|
- **Auto-initialization**: Project-specific context loading
|
|
422
|
-
- **File Reference System**: `{file:path}` syntax for instructions
|
|
497
|
+
- **File Reference System**: `{file:path}` syntax for instructions — *unverified in Crush*
|
|
423
498
|
|
|
424
499
|
## Troubleshooting
|
|
425
500
|
|
|
@@ -444,9 +519,20 @@ npx codingbuddy@latest --version
|
|
|
444
519
|
npx codingbuddy@latest mcp
|
|
445
520
|
```
|
|
446
521
|
|
|
447
|
-
**3. Agent Not Responding in
|
|
448
|
-
- Verify `
|
|
449
|
-
-
|
|
522
|
+
**3. Agent Not Responding in Configured Language**
|
|
523
|
+
- Verify `codingbuddy.config.json` has the correct `language` setting
|
|
524
|
+
- Call `parse_mode` to receive dynamic `languageInstruction`
|
|
525
|
+
- Ensure agent prompts do NOT hardcode a language — use `languageInstruction` from `parse_mode`
|
|
526
|
+
|
|
527
|
+
**4. Project Config Not Detected**
|
|
528
|
+
```bash
|
|
529
|
+
# CODINGBUDDY_PROJECT_ROOT가 MCP env에 설정되어 있는지 확인
|
|
530
|
+
# 이 환경변수 없이는 codingbuddy.config.json을 찾지 못합니다
|
|
531
|
+
# .opencode.json 또는 crush.json의 mcp 섹션에 추가:
|
|
532
|
+
"env": {
|
|
533
|
+
"CODINGBUDDY_PROJECT_ROOT": "/absolute/path/to/your/project"
|
|
534
|
+
}
|
|
535
|
+
```
|
|
450
536
|
|
|
451
537
|
### Migration from OpenCode to Crush
|
|
452
538
|
|
|
@@ -455,6 +541,21 @@ npx codingbuddy@latest mcp
|
|
|
455
541
|
3. **Install Crush**: `brew install charmbracelet/tap/crush`
|
|
456
542
|
4. **Migrate sessions**: Export/import session data
|
|
457
543
|
|
|
544
|
+
## Verification Status
|
|
545
|
+
|
|
546
|
+
| Feature | Status | Notes |
|
|
547
|
+
|---------|--------|-------|
|
|
548
|
+
| Agent configuration (plan/act/eval-mode) | ✅ Verified | Agent JSON files exist at expected paths |
|
|
549
|
+
| MCP server connection | ✅ Verified | `npx codingbuddy@latest mcp` works |
|
|
550
|
+
| `parse_mode` with dynamic language | ✅ Verified | Returns `languageInstruction` field |
|
|
551
|
+
| `update_context` persistence | ✅ Verified | Writes to `docs/codingbuddy/context.md` |
|
|
552
|
+
| `{file:path}` syntax in prompts | ⚠️ Unverified | Not tested in live OpenCode/Crush environment |
|
|
553
|
+
| Custom Commands (`~/.config/opencode/commands/`) | ⚠️ Unverified | Command syntax may differ in Crush |
|
|
554
|
+
| AUTO mode single-agent execution | ⚠️ Unverified | Requires manual agent switching for permissions |
|
|
555
|
+
| Crush `skills_paths` configuration | ⚠️ Unverified | Based on Crush documentation, not tested |
|
|
556
|
+
| LSP integration | ⚠️ Unverified | Configuration format based on Crush docs |
|
|
557
|
+
| Multi-model support | ⚠️ Unverified | Configuration format based on Crush docs |
|
|
558
|
+
|
|
458
559
|
## Maintenance
|
|
459
560
|
|
|
460
561
|
### Updating Rules
|
|
@@ -475,20 +576,112 @@ npx codingbuddy@latest mcp
|
|
|
475
576
|
|
|
476
577
|
## Advanced Usage
|
|
477
578
|
|
|
478
|
-
###
|
|
579
|
+
### Specialist Agents Execution
|
|
479
580
|
|
|
480
|
-
|
|
481
|
-
# Terminal 1: Planning
|
|
482
|
-
opencode --agent plan-mode
|
|
483
|
-
Create a plan for me
|
|
581
|
+
OpenCode/Crush does not have a `Task` tool for spawning background subagents like Claude Code. When `parse_mode` returns `parallelAgentsRecommendation`, execute specialists **sequentially** using the `/agent <name>` command.
|
|
484
582
|
|
|
485
|
-
|
|
486
|
-
opencode --agent act-mode
|
|
487
|
-
ACT
|
|
583
|
+
#### Auto-Detection
|
|
488
584
|
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
585
|
+
The MCP server automatically detects OpenCode/Crush as the client and returns a sequential execution hint in `parallelAgentsRecommendation.hint`. No manual configuration is needed.
|
|
586
|
+
|
|
587
|
+
#### Sequential Workflow
|
|
588
|
+
|
|
589
|
+
```
|
|
590
|
+
parse_mode returns parallelAgentsRecommendation
|
|
591
|
+
↓
|
|
592
|
+
For each recommended specialist (sequentially):
|
|
593
|
+
/agent <specialist-name>
|
|
594
|
+
Perform specialist analysis
|
|
595
|
+
Record findings
|
|
596
|
+
↓
|
|
597
|
+
/agent <current-mode-agent> (e.g., /agent eval-mode — return to mode agent)
|
|
598
|
+
Consolidate all findings
|
|
599
|
+
```
|
|
600
|
+
|
|
601
|
+
#### Example (EVAL mode)
|
|
602
|
+
|
|
603
|
+
```
|
|
604
|
+
parse_mode({ prompt: "EVAL review auth implementation" })
|
|
605
|
+
→ parallelAgentsRecommendation:
|
|
606
|
+
specialists: ["security-specialist", "accessibility-specialist", "performance-specialist"]
|
|
607
|
+
|
|
608
|
+
Sequential analysis:
|
|
609
|
+
1. /agent security → security-specialist: 🔒 Analyze from security perspective, record findings
|
|
610
|
+
2. /agent a11y → accessibility-specialist: ♿ Analyze from accessibility perspective, record findings
|
|
611
|
+
3. /agent performance → performance-specialist: ⚡ Analyze from performance perspective, record findings
|
|
612
|
+
4. /agent eval-mode → Return to EVAL mode
|
|
613
|
+
|
|
614
|
+
Present: Consolidated findings from all 3 specialists
|
|
615
|
+
```
|
|
616
|
+
|
|
617
|
+
#### Consuming dispatchReady from parse_mode
|
|
618
|
+
|
|
619
|
+
When `parse_mode` returns `dispatchReady`, the specialist system prompts are pre-built. In OpenCode, use the `dispatchParams.prompt` field as analysis context (ignore `subagent_type` — it is Claude Code specific):
|
|
620
|
+
|
|
621
|
+
```
|
|
622
|
+
parse_mode returns dispatchReady
|
|
623
|
+
↓
|
|
624
|
+
dispatchReady.primaryAgent
|
|
625
|
+
→ Use as the main analysis context
|
|
626
|
+
↓
|
|
627
|
+
dispatchReady.parallelAgents[] (if present)
|
|
628
|
+
→ For each: the dispatchParams.prompt field contains the specialist's system prompt.
|
|
629
|
+
Switch via /agent, apply the prompt as analysis context, record findings
|
|
630
|
+
↓
|
|
631
|
+
Consolidate all findings
|
|
632
|
+
```
|
|
633
|
+
|
|
634
|
+
#### Specialist Agent Mapping
|
|
635
|
+
|
|
636
|
+
| parallelAgentsRecommendation | OpenCode Agent | Icon |
|
|
637
|
+
|------------------------------|----------------|------|
|
|
638
|
+
| security-specialist | `security` | 🔒 |
|
|
639
|
+
| accessibility-specialist | `a11y` | ♿ |
|
|
640
|
+
| performance-specialist | `performance` | ⚡ |
|
|
641
|
+
| architecture-specialist | `architect` | 🏛️ |
|
|
642
|
+
| test-strategy-specialist | `tester` | 🧪 |
|
|
643
|
+
| code-quality-specialist | N/A (inline) | 📏 |
|
|
644
|
+
| event-architecture-specialist | N/A (inline) | 📨 |
|
|
645
|
+
| integration-specialist | N/A (inline) | 🔗 |
|
|
646
|
+
| observability-specialist | N/A (inline) | 📊 |
|
|
647
|
+
| migration-specialist | N/A (inline) | 🔄 |
|
|
648
|
+
| documentation-specialist | N/A (inline) | 📚 |
|
|
649
|
+
| seo-specialist | N/A (inline) | 🔍 |
|
|
650
|
+
| i18n-specialist | N/A (inline) | 🌐 |
|
|
651
|
+
|
|
652
|
+
> **Note:** Specialists without a dedicated OpenCode agent (e.g., `code-quality-specialist`) should be analyzed inline within the current agent context using the specialist's system prompt from `prepare_parallel_agents`.
|
|
653
|
+
>
|
|
654
|
+
> **Fallback:** If `dispatchReady` is not present in the `parse_mode` response, call `prepare_parallel_agents` MCP tool to retrieve specialist system prompts.
|
|
655
|
+
|
|
656
|
+
#### Visibility Pattern
|
|
657
|
+
|
|
658
|
+
When executing sequential specialists, display clear status messages:
|
|
659
|
+
|
|
660
|
+
**Start:**
|
|
661
|
+
```
|
|
662
|
+
🔄 Executing N specialist analyses sequentially...
|
|
663
|
+
→ 🔒 security
|
|
664
|
+
→ ♿ a11y
|
|
665
|
+
→ ⚡ performance
|
|
666
|
+
```
|
|
667
|
+
|
|
668
|
+
**During:**
|
|
669
|
+
```
|
|
670
|
+
🔍 Analyzing from 🔒 security perspective... (1/3)
|
|
671
|
+
```
|
|
672
|
+
|
|
673
|
+
**Completion:**
|
|
674
|
+
```
|
|
675
|
+
📊 Specialist Analysis Complete:
|
|
676
|
+
|
|
677
|
+
🔒 Security:
|
|
678
|
+
[findings summary]
|
|
679
|
+
|
|
680
|
+
♿ Accessibility:
|
|
681
|
+
[findings summary]
|
|
682
|
+
|
|
683
|
+
⚡ Performance:
|
|
684
|
+
[findings summary]
|
|
492
685
|
```
|
|
493
686
|
|
|
494
687
|
### Custom Agent Creation
|
|
@@ -583,21 +776,29 @@ AUTO Build a new user authentication feature
|
|
|
583
776
|
|
|
584
777
|
### OpenCode Agent Integration
|
|
585
778
|
|
|
586
|
-
AUTO mode
|
|
779
|
+
AUTO mode describes an autonomous PLAN→ACT→EVAL cycle. However, agent switching behavior differs by platform:
|
|
780
|
+
|
|
781
|
+
**⚠️ Limitation:** OpenCode/Crush does not support automatic agent switching. The `/agent <name>` command requires manual user input. Therefore, AUTO mode in OpenCode works in one of two ways:
|
|
587
782
|
|
|
783
|
+
**1. Single-Agent AUTO (Recommended):** Stay in the `plan-mode` agent and prefix your message with `AUTO`. The AI handles all phases within a single agent context, using `parse_mode` for mode-specific rules at each phase.
|
|
784
|
+
|
|
785
|
+
```
|
|
786
|
+
/agent plan-mode
|
|
787
|
+
AUTO Build a new user authentication feature
|
|
788
|
+
→ AI internally cycles: PLAN → ACT → EVAL using parse_mode
|
|
789
|
+
→ Note: File edits require the user to approve permission prompts
|
|
588
790
|
```
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
↓
|
|
593
|
-
act-mode agent (ACT phase)
|
|
594
|
-
↓
|
|
595
|
-
eval-mode agent (EVAL phase)
|
|
596
|
-
↓
|
|
597
|
-
[Check quality criteria]
|
|
598
|
-
↓
|
|
599
|
-
Loop or Exit
|
|
791
|
+
|
|
792
|
+
**2. Manual Agent Switching:** The user manually switches agents between phases:
|
|
793
|
+
|
|
600
794
|
```
|
|
795
|
+
/agent plan-mode → AUTO Build auth feature (PLAN phase starts)
|
|
796
|
+
/agent act-mode → Continue (ACT phase — full edit/bash permissions)
|
|
797
|
+
/agent eval-mode → Continue (EVAL phase — read-only evaluation)
|
|
798
|
+
→ Repeat if quality criteria not met
|
|
799
|
+
```
|
|
800
|
+
|
|
801
|
+
**Recommended approach:** Use Single-Agent AUTO for simplicity. For strict permission control, use Manual Agent Switching.
|
|
601
802
|
|
|
602
803
|
### Configuration
|
|
603
804
|
|
|
@@ -4,26 +4,60 @@ Reusable workflows for consistent development practices.
|
|
|
4
4
|
|
|
5
5
|
## Available Skills
|
|
6
6
|
|
|
7
|
+
### Core Development
|
|
8
|
+
|
|
7
9
|
| Skill | Description | When to Use |
|
|
8
10
|
|-------|-------------|-------------|
|
|
9
11
|
| api-design | REST/GraphQL API design with OpenAPI spec, versioning, and documentation | Designing new APIs |
|
|
10
12
|
| brainstorming | Explores user intent, requirements and design before implementation | Before any creative work |
|
|
11
13
|
| database-migration | Zero-downtime schema changes, large-scale data migrations, rollback planning | Schema changes, data migrations, production database modifications |
|
|
12
14
|
| dependency-management | Systematic dependency updates, CVE response, and license compliance | Security vulnerabilities, major upgrades, license audits |
|
|
15
|
+
| frontend-design | Create distinctive, production-grade frontend interfaces | Building web components/pages |
|
|
16
|
+
| refactoring | Structured, test-driven refactoring workflow with Tidy First principles | Improving code structure without changing behavior |
|
|
17
|
+
| test-driven-development | Write tests first, then minimal code to pass | Before implementing features |
|
|
18
|
+
| widget-slot-architecture | Next.js App Router Parallel Routes based Widget-Slot architecture | Large-scale Next.js project page structure design |
|
|
19
|
+
|
|
20
|
+
### Quality & Security
|
|
21
|
+
|
|
22
|
+
| Skill | Description | When to Use |
|
|
23
|
+
|-------|-------------|-------------|
|
|
24
|
+
| code-explanation | Structured analysis from bird's eye to line-by-line for onboarding and reviews | Explaining unfamiliar code, onboarding, code reviews |
|
|
25
|
+
| performance-optimization | Profiling-first performance optimization workflow | Performance issues, bottleneck analysis, optimization |
|
|
26
|
+
| security-audit | OWASP Top 10 based security review, secrets scanning, auth/authz checks | Before shipping features, security assessments |
|
|
27
|
+
| tech-debt | Debt identification, ROI-based prioritization, and incremental paydown planning | Sprint planning, pre-feature assessment, quarterly reviews |
|
|
28
|
+
|
|
29
|
+
### Workflow & Process
|
|
30
|
+
|
|
31
|
+
| Skill | Description | When to Use |
|
|
32
|
+
|-------|-------------|-------------|
|
|
33
|
+
| context-management | Preserve critical decisions across sessions and context compaction | Long tasks, multi-session work, PLAN→ACT→EVAL transitions |
|
|
34
|
+
| deployment-checklist | Pre-deploy validation, health checks, rollback planning | Before every staging/production deployment |
|
|
13
35
|
| dispatching-parallel-agents | Handle 2+ independent tasks without shared state | Parallel task execution |
|
|
36
|
+
| error-analysis | Classify and trace errors from stack traces to root cause | Encountering error messages, unexpected behavior |
|
|
14
37
|
| executing-plans | Execute implementation plans with review checkpoints | Following written plans |
|
|
15
|
-
| frontend-design | Create distinctive, production-grade frontend interfaces | Building web components/pages |
|
|
16
38
|
| incident-response | Systematic organizational response to production incidents | Production incidents, alerts, service degradation |
|
|
17
|
-
|
|
|
18
|
-
| pr-review | Systematic, evidence-based PR review with anti-sycophancy principles | Conducting manual PR reviews |
|
|
19
|
-
| refactoring | Structured, test-driven refactoring workflow with Tidy First principles | Improving code structure without changing behavior |
|
|
39
|
+
| legacy-modernization | Strangler fig pattern for incremental migration of legacy code | Modernizing old patterns, major version upgrades |
|
|
20
40
|
| subagent-driven-development | Execute plans with independent tasks in current session | In-session plan execution |
|
|
21
41
|
| systematic-debugging | Systematic approach before proposing fixes | Encountering bugs or failures |
|
|
22
|
-
| test-driven-development | Write tests first, then minimal code to pass | Before implementing features |
|
|
23
|
-
| performance-optimization | Profiling-first performance optimization workflow | Performance issues, bottleneck analysis, optimization |
|
|
24
|
-
| widget-slot-architecture | Next.js App Router Parallel Routes based Widget-Slot architecture | Large-scale Next.js project page structure design |
|
|
25
42
|
| writing-plans | Create implementation plans before coding | Multi-step tasks with specs |
|
|
26
43
|
|
|
44
|
+
### Documentation & Communication
|
|
45
|
+
|
|
46
|
+
| Skill | Description | When to Use |
|
|
47
|
+
|-------|-------------|-------------|
|
|
48
|
+
| documentation-generation | Generate README, API docs, CHANGELOG, and ADRs from code | Creating or updating project documentation |
|
|
49
|
+
| pr-all-in-one | Unified commit and PR workflow with smart issue linking | `/pr-all-in-one [target] [issue]` |
|
|
50
|
+
| pr-review | Systematic, evidence-based PR review with anti-sycophancy principles | Conducting manual PR reviews |
|
|
51
|
+
| prompt-engineering | Write and optimize prompts for AI tools and agent system prompts | AI tool instructions, MCP tool descriptions, agent prompts |
|
|
52
|
+
|
|
53
|
+
### codingbuddy Specific
|
|
54
|
+
|
|
55
|
+
| Skill | Description | When to Use |
|
|
56
|
+
|-------|-------------|-------------|
|
|
57
|
+
| agent-design | Design new specialist agent JSON definitions with schema, expertise, and system prompts | Adding new agents to codingbuddy |
|
|
58
|
+
| mcp-builder | NestJS-based MCP server development with Tools/Resources/Prompts design | Building or extending MCP servers |
|
|
59
|
+
| rule-authoring | Write unambiguous AI coding rules compatible across multiple AI tools | Creating rules for .ai-rules/ directories |
|
|
60
|
+
|
|
27
61
|
## Skill Format
|
|
28
62
|
|
|
29
63
|
Skills use YAML frontmatter + Markdown:
|
|
@@ -102,6 +136,8 @@ EOF
|
|
|
102
136
|
```
|
|
103
137
|
.ai-rules/skills/
|
|
104
138
|
├── README.md # This file
|
|
139
|
+
│
|
|
140
|
+
├── [Core Development]
|
|
105
141
|
├── api-design/
|
|
106
142
|
│ └── SKILL.md
|
|
107
143
|
├── brainstorming/
|
|
@@ -118,11 +154,37 @@ EOF
|
|
|
118
154
|
│ ├── major-upgrade-guide.md
|
|
119
155
|
│ ├── lock-file-management.md
|
|
120
156
|
│ └── license-compliance.md
|
|
157
|
+
├── frontend-design/
|
|
158
|
+
│ └── SKILL.md
|
|
159
|
+
├── refactoring/
|
|
160
|
+
│ ├── SKILL.md
|
|
161
|
+
│ └── refactoring-catalog.md
|
|
162
|
+
├── test-driven-development/
|
|
163
|
+
│ └── SKILL.md
|
|
164
|
+
├── widget-slot-architecture/
|
|
165
|
+
│ └── SKILL.md
|
|
166
|
+
│
|
|
167
|
+
├── [Quality & Security]
|
|
168
|
+
├── code-explanation/
|
|
169
|
+
│ └── SKILL.md
|
|
170
|
+
├── performance-optimization/
|
|
171
|
+
│ ├── SKILL.md
|
|
172
|
+
│ └── documentation-template.md
|
|
173
|
+
├── security-audit/
|
|
174
|
+
│ └── SKILL.md
|
|
175
|
+
├── tech-debt/
|
|
176
|
+
│ └── SKILL.md
|
|
177
|
+
│
|
|
178
|
+
├── [Workflow & Process]
|
|
179
|
+
├── context-management/
|
|
180
|
+
│ └── SKILL.md
|
|
181
|
+
├── deployment-checklist/
|
|
182
|
+
│ └── SKILL.md
|
|
121
183
|
├── dispatching-parallel-agents/
|
|
122
184
|
│ └── SKILL.md
|
|
123
|
-
├──
|
|
185
|
+
├── error-analysis/
|
|
124
186
|
│ └── SKILL.md
|
|
125
|
-
├──
|
|
187
|
+
├── executing-plans/
|
|
126
188
|
│ └── SKILL.md
|
|
127
189
|
├── incident-response/
|
|
128
190
|
│ ├── SKILL.md
|
|
@@ -130,9 +192,18 @@ EOF
|
|
|
130
192
|
│ ├── escalation-matrix.md
|
|
131
193
|
│ ├── postmortem-template.md
|
|
132
194
|
│ └── severity-classification.md
|
|
133
|
-
├──
|
|
134
|
-
│
|
|
135
|
-
|
|
195
|
+
├── legacy-modernization/
|
|
196
|
+
│ └── SKILL.md
|
|
197
|
+
├── subagent-driven-development/
|
|
198
|
+
│ └── SKILL.md
|
|
199
|
+
├── systematic-debugging/
|
|
200
|
+
│ └── SKILL.md
|
|
201
|
+
├── writing-plans/
|
|
202
|
+
│ └── SKILL.md
|
|
203
|
+
│
|
|
204
|
+
├── [Documentation & Communication]
|
|
205
|
+
├── documentation-generation/
|
|
206
|
+
│ └── SKILL.md
|
|
136
207
|
├── pr-all-in-one/
|
|
137
208
|
│ ├── SKILL.md
|
|
138
209
|
│ ├── configuration-guide.md
|
|
@@ -140,17 +211,14 @@ EOF
|
|
|
140
211
|
│ └── pr-templates.md
|
|
141
212
|
├── pr-review/
|
|
142
213
|
│ └── SKILL.md
|
|
143
|
-
├──
|
|
144
|
-
│ ├── SKILL.md
|
|
145
|
-
│ └── refactoring-catalog.md
|
|
146
|
-
├── subagent-driven-development/
|
|
147
|
-
│ └── SKILL.md
|
|
148
|
-
├── systematic-debugging/
|
|
149
|
-
│ └── SKILL.md
|
|
150
|
-
├── test-driven-development/
|
|
151
|
-
│ └── SKILL.md
|
|
152
|
-
├── widget-slot-architecture/
|
|
214
|
+
├── prompt-engineering/
|
|
153
215
|
│ └── SKILL.md
|
|
154
|
-
|
|
155
|
-
|
|
216
|
+
│
|
|
217
|
+
└── [codingbuddy Specific]
|
|
218
|
+
├── agent-design/
|
|
219
|
+
│ └── SKILL.md
|
|
220
|
+
├── mcp-builder/
|
|
221
|
+
│ └── SKILL.md
|
|
222
|
+
└── rule-authoring/
|
|
223
|
+
└── SKILL.md
|
|
156
224
|
```
|