codingbuddy-rules 4.2.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 +251 -47
- package/.ai-rules/agents/README.md +179 -9
- package/.ai-rules/agents/act-mode.json +14 -7
- package/.ai-rules/agents/data-scientist.json +156 -0
- package/.ai-rules/agents/security-engineer.json +98 -0
- package/.ai-rules/agents/software-engineer.json +74 -0
- package/.ai-rules/agents/systems-developer.json +83 -0
- package/.ai-rules/agents/test-engineer.json +69 -0
- 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
|
@@ -1,126 +1,471 @@
|
|
|
1
1
|
# Kiro Integration Guide
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Guide for using codingbuddy with Kiro.
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
codingbuddy integrates with Kiro in two ways:
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
1. **`.kiro/rules/guidelines.md`** - Kiro-specific rules and guidelines (always-on instructions)
|
|
10
|
+
2. **MCP Server** - codingbuddy MCP tools for workflow management
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
## Two Usage Contexts
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
### End Users (Your Project)
|
|
15
|
+
|
|
16
|
+
End users access rules **only through MCP tools**. No local rule files needed.
|
|
17
|
+
|
|
18
|
+
```jsonc
|
|
19
|
+
// .kiro/settings/mcp.json
|
|
20
|
+
{
|
|
21
|
+
"mcpServers": {
|
|
22
|
+
"codingbuddy": {
|
|
23
|
+
"command": "npx",
|
|
24
|
+
"args": ["-y", "codingbuddy"],
|
|
25
|
+
"env": {
|
|
26
|
+
"CODINGBUDDY_PROJECT_ROOT": "/absolute/path/to/your/project"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
> **Important:** Kiro의 `roots/list` MCP capability 지원 여부는 미확인입니다.
|
|
34
|
+
> `CODINGBUDDY_PROJECT_ROOT` 없이는 서버가 프로젝트의 `codingbuddy.config.json`을 찾지 못하여
|
|
35
|
+
> `language` 등 설정이 기본값으로 동작합니다. 항상 이 환경변수를 프로젝트의 절대 경로로 설정하세요.
|
|
36
|
+
|
|
37
|
+
Optional: Create `.kiro/rules/guidelines.md` for basic integration:
|
|
14
38
|
|
|
15
39
|
```markdown
|
|
16
|
-
#
|
|
40
|
+
# codingbuddy Integration
|
|
41
|
+
|
|
42
|
+
When PLAN, ACT, EVAL keywords detected → call `parse_mode` MCP tool.
|
|
43
|
+
Follow the returned instructions and rules exactly.
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Monorepo Contributors
|
|
47
|
+
|
|
48
|
+
Contributors to the codingbuddy repository can use direct file references:
|
|
17
49
|
|
|
18
|
-
|
|
50
|
+
```
|
|
51
|
+
Project Root/
|
|
52
|
+
├── .kiro/
|
|
53
|
+
│ ├── rules/
|
|
54
|
+
│ │ └── guidelines.md # References .ai-rules
|
|
55
|
+
│ └── settings/
|
|
56
|
+
│ └── mcp.json # MCP server configuration
|
|
57
|
+
└── packages/rules/.ai-rules/ # Single Source of Truth
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## DRY Principle
|
|
61
|
+
|
|
62
|
+
**Single Source of Truth**: `packages/rules/.ai-rules/`
|
|
63
|
+
|
|
64
|
+
- All Agent definitions, rules, skills managed only in `.ai-rules/`
|
|
65
|
+
- `.kiro/rules/guidelines.md` acts as a **pointer only**
|
|
66
|
+
- No duplication, only references
|
|
19
67
|
|
|
20
|
-
|
|
68
|
+
## Configuration Files
|
|
21
69
|
|
|
22
|
-
###
|
|
70
|
+
### .kiro/settings/mcp.json
|
|
23
71
|
|
|
24
|
-
|
|
25
|
-
- **PLAN mode**: Create implementation plans with TDD approach
|
|
26
|
-
- **ACT mode**: Execute changes following quality standards
|
|
27
|
-
- **EVAL mode**: Evaluate code quality and suggest improvements
|
|
72
|
+
MCP server configuration for codingbuddy tools:
|
|
28
73
|
|
|
29
|
-
|
|
74
|
+
```json
|
|
75
|
+
{
|
|
76
|
+
"mcpServers": {
|
|
77
|
+
"codingbuddy": {
|
|
78
|
+
"command": "npx",
|
|
79
|
+
"args": ["-y", "codingbuddy"],
|
|
80
|
+
"env": {
|
|
81
|
+
"CODINGBUDDY_PROJECT_ROOT": "/absolute/path/to/your/project"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
```
|
|
30
87
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
- **Architecture**: Layered structure (app → widgets → features → entities → shared)
|
|
34
|
-
- **Conventions**: File naming, import/export rules, pure/impure function separation
|
|
88
|
+
> **Note:** Kiro는 `${VARIABLE}` 문법으로 환경변수 확장을 지원합니다.
|
|
89
|
+
> `${workspaceFolder}` 가 지원되는 경우 절대 경로 대신 사용할 수 있습니다.
|
|
35
90
|
|
|
36
|
-
|
|
91
|
+
**MCP configuration paths:**
|
|
92
|
+
- **Project-level**: `.kiro/settings/mcp.json`
|
|
93
|
+
- **Global**: `~/.kiro/settings/mcp.json`
|
|
37
94
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
- **Commit Discipline**: Separate structural and behavioral changes
|
|
95
|
+
**Project root resolution priority** (in `mcp.service.ts`):
|
|
96
|
+
1. `CODINGBUDDY_PROJECT_ROOT` environment variable (highest priority)
|
|
97
|
+
2. `roots/list` MCP capability (support unconfirmed in Kiro)
|
|
98
|
+
3. `findProjectRoot()` automatic detection (fallback)
|
|
43
99
|
|
|
44
|
-
###
|
|
100
|
+
### .kiro/rules/guidelines.md
|
|
45
101
|
|
|
46
|
-
|
|
47
|
-
- Frontend Development (React/Next.js, TDD, design system)
|
|
48
|
-
- Code Review (quality evaluation, architecture analysis)
|
|
49
|
-
- Security (OAuth 2.0, JWT, XSS/CSRF protection)
|
|
50
|
-
- Performance (bundle optimization, rendering)
|
|
51
|
-
- Accessibility (WCAG 2.1 AA compliance)
|
|
52
|
-
- And more...
|
|
102
|
+
Always-on instructions automatically applied to all Kiro conversations:
|
|
53
103
|
|
|
54
|
-
|
|
104
|
+
```markdown
|
|
105
|
+
# codingbuddy Guidelines
|
|
55
106
|
|
|
56
|
-
|
|
107
|
+
## Workflow
|
|
108
|
+
When PLAN, ACT, EVAL, or AUTO keywords detected → call `parse_mode` MCP tool.
|
|
109
|
+
Follow the returned instructions and rules exactly.
|
|
57
110
|
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
111
|
+
## References
|
|
112
|
+
- Core workflow: packages/rules/.ai-rules/rules/core.md
|
|
113
|
+
- Project context: packages/rules/.ai-rules/rules/project.md
|
|
114
|
+
- Coding principles: packages/rules/.ai-rules/rules/augmented-coding.md
|
|
115
|
+
- Agents: packages/rules/.ai-rules/agents/
|
|
62
116
|
```
|
|
63
117
|
|
|
64
|
-
|
|
118
|
+
### Directory Structure
|
|
65
119
|
|
|
66
120
|
```
|
|
67
121
|
.kiro/
|
|
68
122
|
├── rules/
|
|
69
|
-
│ └── guidelines.md
|
|
70
|
-
└──
|
|
123
|
+
│ └── guidelines.md # Always-on instructions (references .ai-rules)
|
|
124
|
+
└── settings/
|
|
125
|
+
└── mcp.json # MCP server configuration
|
|
71
126
|
|
|
72
127
|
.ai-rules/
|
|
73
128
|
├── rules/
|
|
74
|
-
│ ├── core.md
|
|
75
|
-
│ ├── project.md
|
|
76
|
-
│ └── augmented-coding.md
|
|
129
|
+
│ ├── core.md # Workflow (PLAN/ACT/EVAL/AUTO)
|
|
130
|
+
│ ├── project.md # Tech stack, architecture
|
|
131
|
+
│ └── augmented-coding.md # TDD, code quality
|
|
77
132
|
├── agents/
|
|
78
|
-
│ └── *.json
|
|
133
|
+
│ └── *.json # 35 agent definitions
|
|
134
|
+
├── skills/
|
|
135
|
+
│ └── */SKILL.md # Skill definitions
|
|
79
136
|
└── adapters/
|
|
80
|
-
└── kiro.md
|
|
137
|
+
└── kiro.md # This guide
|
|
81
138
|
```
|
|
82
139
|
|
|
83
140
|
## Usage
|
|
84
141
|
|
|
85
|
-
###
|
|
142
|
+
### Mode Keywords
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
PLAN Design user authentication feature
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
-> `parse_mode` MCP tool is called, loading appropriate Agent and rules
|
|
149
|
+
|
|
150
|
+
### Specialist Usage
|
|
86
151
|
|
|
87
152
|
```
|
|
88
|
-
|
|
153
|
+
EVAL Review from security perspective
|
|
154
|
+
```
|
|
89
155
|
|
|
90
|
-
|
|
91
|
-
[Follows .ai-rules/rules/core.md workflow]
|
|
92
|
-
[References .ai-rules/rules/project.md for structure]
|
|
93
|
-
[Applies .ai-rules/rules/augmented-coding.md TDD]
|
|
156
|
+
-> security-specialist activated
|
|
94
157
|
|
|
95
|
-
|
|
158
|
+
### Auto Mode
|
|
96
159
|
|
|
97
|
-
|
|
98
|
-
|
|
160
|
+
```
|
|
161
|
+
AUTO implement user dashboard
|
|
99
162
|
```
|
|
100
163
|
|
|
101
|
-
|
|
164
|
+
→ Autonomous PLAN → ACT → EVAL cycling
|
|
102
165
|
|
|
103
|
-
|
|
104
|
-
- Project structure from `.ai-rules/rules/project.md`
|
|
105
|
-
- Code quality patterns from `.ai-rules/rules/augmented-coding.md`
|
|
106
|
-
- Specialist knowledge from `.ai-rules/agents/*.json`
|
|
166
|
+
## MCP Tools
|
|
107
167
|
|
|
108
|
-
|
|
168
|
+
Available codingbuddy MCP tools in Kiro:
|
|
109
169
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
170
|
+
| Tool | Purpose |
|
|
171
|
+
|------|---------|
|
|
172
|
+
| `parse_mode` | Parse mode keywords (PLAN/ACT/EVAL/AUTO) + load Agent/rules |
|
|
173
|
+
| `search_rules` | Search rules and guidelines by query |
|
|
174
|
+
| `get_agent_details` | Get specific Agent profile and expertise |
|
|
175
|
+
| `get_project_config` | Get project configuration (language, tech stack) |
|
|
176
|
+
| `get_code_conventions` | Get project code conventions and style guide |
|
|
177
|
+
| `suggest_config_updates` | Analyze project and suggest config updates |
|
|
178
|
+
| `recommend_skills` | Recommend skills based on prompt → then call `get_skill` |
|
|
179
|
+
| `get_skill` | Load full skill content by name (e.g., `get_skill("systematic-debugging")`) |
|
|
180
|
+
| `list_skills` | List all available skills with optional filtering |
|
|
181
|
+
| `get_agent_system_prompt` | Get complete system prompt for a specialist agent |
|
|
182
|
+
| `prepare_parallel_agents` | Prepare specialist agents for sequential execution |
|
|
183
|
+
| `dispatch_agents` | Get Task tool-ready dispatch params (Claude Code optimized) |
|
|
184
|
+
| `generate_checklist` | Generate contextual checklists (security, a11y, performance) |
|
|
185
|
+
| `analyze_task` | Analyze task for risk assessment and specialist recommendations |
|
|
186
|
+
| `read_context` | Read context document (`docs/codingbuddy/context.md`) |
|
|
187
|
+
| `update_context` | Update context document with decisions, notes, progress |
|
|
188
|
+
| `cleanup_context` | Manually trigger context document cleanup |
|
|
189
|
+
| `set_project_root` | ~~Set project root directory~~ **(deprecated)** — use `CODINGBUDDY_PROJECT_ROOT` env var instead |
|
|
114
190
|
|
|
115
|
-
##
|
|
191
|
+
## Specialist Agents Execution
|
|
192
|
+
|
|
193
|
+
Kiro does not have a `Task` tool for spawning background subagents. When `parse_mode` returns `parallelAgentsRecommendation`, execute specialists **sequentially**.
|
|
194
|
+
|
|
195
|
+
### Auto-Detection
|
|
196
|
+
|
|
197
|
+
The MCP server automatically detects Kiro as the client and returns a sequential execution hint in `parallelAgentsRecommendation.hint`. No manual configuration is needed.
|
|
198
|
+
|
|
199
|
+
### Sequential Workflow
|
|
200
|
+
|
|
201
|
+
```
|
|
202
|
+
parse_mode returns parallelAgentsRecommendation
|
|
203
|
+
↓
|
|
204
|
+
Call prepare_parallel_agents with recommended specialists
|
|
205
|
+
↓
|
|
206
|
+
For each specialist (sequentially):
|
|
207
|
+
- Announce: "Analyzing from [icon] [specialist-name] perspective..."
|
|
208
|
+
- Apply the specialist's system prompt as analysis context
|
|
209
|
+
- Analyze the target code/design from that specialist's viewpoint
|
|
210
|
+
- Record findings
|
|
211
|
+
↓
|
|
212
|
+
Consolidate all specialist findings into unified summary
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Example (EVAL mode)
|
|
216
|
+
|
|
217
|
+
```
|
|
218
|
+
parse_mode({ prompt: "EVAL review auth implementation" })
|
|
219
|
+
-> parallelAgentsRecommendation:
|
|
220
|
+
specialists: ["security-specialist", "accessibility-specialist", "performance-specialist"]
|
|
221
|
+
|
|
222
|
+
prepare_parallel_agents({
|
|
223
|
+
mode: "EVAL",
|
|
224
|
+
specialists: ["security-specialist", "accessibility-specialist", "performance-specialist"]
|
|
225
|
+
})
|
|
226
|
+
-> agents[]: each has systemPrompt
|
|
227
|
+
|
|
228
|
+
Sequential analysis:
|
|
229
|
+
1. 🔒 Security: Apply security-specialist prompt, analyze, record findings
|
|
230
|
+
2. ♿ Accessibility: Apply accessibility-specialist prompt, analyze, record findings
|
|
231
|
+
3. ⚡ Performance: Apply performance-specialist prompt, analyze, record findings
|
|
232
|
+
|
|
233
|
+
Present: Consolidated findings from all 3 specialists
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### Consuming dispatchReady from parse_mode
|
|
237
|
+
|
|
238
|
+
When `parse_mode` returns `dispatchReady`, the specialist system prompts are pre-built. In Kiro, use the `dispatchParams.prompt` field as analysis context (ignore `subagent_type` — it is Claude Code specific):
|
|
239
|
+
|
|
240
|
+
```
|
|
241
|
+
parse_mode returns dispatchReady
|
|
242
|
+
↓
|
|
243
|
+
dispatchReady.primaryAgent
|
|
244
|
+
→ Use as the main analysis context
|
|
245
|
+
↓
|
|
246
|
+
dispatchReady.parallelAgents[] (if present)
|
|
247
|
+
→ For each: the dispatchParams.prompt field contains the specialist's system prompt.
|
|
248
|
+
Apply the prompt as analysis context, analyze sequentially, record findings
|
|
249
|
+
↓
|
|
250
|
+
Consolidate all findings
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
> **Fallback:** If `dispatchReady` is not present in the `parse_mode` response, call `prepare_parallel_agents` MCP tool to retrieve specialist system prompts.
|
|
254
|
+
|
|
255
|
+
### Visibility Pattern
|
|
256
|
+
|
|
257
|
+
When executing sequential specialists, display clear status messages:
|
|
258
|
+
|
|
259
|
+
**Start:**
|
|
260
|
+
```
|
|
261
|
+
🔄 Executing N specialist analyses sequentially...
|
|
262
|
+
→ 🔒 security-specialist
|
|
263
|
+
→ ♿ accessibility-specialist
|
|
264
|
+
→ ⚡ performance-specialist
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
**During:**
|
|
268
|
+
```
|
|
269
|
+
🔍 Analyzing from 🔒 security-specialist perspective... (1/3)
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
**Completion:**
|
|
273
|
+
```
|
|
274
|
+
📊 Specialist Analysis Complete:
|
|
275
|
+
|
|
276
|
+
🔒 Security:
|
|
277
|
+
[findings summary]
|
|
278
|
+
|
|
279
|
+
♿ Accessibility:
|
|
280
|
+
[findings summary]
|
|
281
|
+
|
|
282
|
+
⚡ Performance:
|
|
283
|
+
[findings summary]
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
### Handling Failures
|
|
287
|
+
|
|
288
|
+
When `prepare_parallel_agents` returns `failedAgents`:
|
|
289
|
+
|
|
290
|
+
```
|
|
291
|
+
⚠️ Some agents failed to load:
|
|
292
|
+
✗ performance-specialist: Profile not found
|
|
293
|
+
|
|
294
|
+
Continuing with 2/3 agents...
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
**Strategy:**
|
|
298
|
+
- Continue with successfully loaded agents
|
|
299
|
+
- Report failures clearly to user
|
|
300
|
+
- Document which agents couldn't be loaded in final report
|
|
301
|
+
|
|
302
|
+
### Specialist Icons
|
|
303
|
+
|
|
304
|
+
| Icon | Specialist |
|
|
305
|
+
|------|------------|
|
|
306
|
+
| 🔒 | security-specialist |
|
|
307
|
+
| ♿ | accessibility-specialist |
|
|
308
|
+
| ⚡ | performance-specialist |
|
|
309
|
+
| 📏 | code-quality-specialist |
|
|
310
|
+
| 🧪 | test-strategy-specialist |
|
|
311
|
+
| 🏛️ | architecture-specialist |
|
|
312
|
+
| 📚 | documentation-specialist |
|
|
313
|
+
| 🔍 | seo-specialist |
|
|
314
|
+
| 🎨 | design-system-specialist |
|
|
315
|
+
| 📨 | event-architecture-specialist |
|
|
316
|
+
| 🔗 | integration-specialist |
|
|
317
|
+
| 📊 | observability-specialist |
|
|
318
|
+
| 🔄 | migration-specialist |
|
|
319
|
+
| 🌐 | i18n-specialist |
|
|
320
|
+
|
|
321
|
+
### When to Use Specialist Execution
|
|
322
|
+
|
|
323
|
+
Specialist execution is recommended when `parse_mode` returns a `parallelAgentsRecommendation` field:
|
|
324
|
+
|
|
325
|
+
| Mode | Default Specialists | Use Case |
|
|
326
|
+
|------|---------------------|----------|
|
|
327
|
+
| **PLAN** | architecture-specialist, test-strategy-specialist | Validate architecture and test approach |
|
|
328
|
+
| **ACT** | code-quality-specialist, test-strategy-specialist | Verify implementation quality |
|
|
329
|
+
| **EVAL** | security-specialist, accessibility-specialist, performance-specialist, code-quality-specialist | Comprehensive multi-dimensional review |
|
|
330
|
+
|
|
331
|
+
### Specialist Activation Scope
|
|
332
|
+
|
|
333
|
+
Each workflow mode activates different specialist agents:
|
|
334
|
+
|
|
335
|
+
- **PLAN mode**: Architecture and test strategy specialists validate design
|
|
336
|
+
- **ACT mode**: Code quality and test strategy specialists verify implementation
|
|
337
|
+
- **EVAL mode**: Security, accessibility, performance, and code quality specialists provide comprehensive review
|
|
338
|
+
|
|
339
|
+
**Important:** Specialists from one mode do NOT carry over to the next mode. Each mode has its own recommended specialist set.
|
|
340
|
+
|
|
341
|
+
## Skills
|
|
342
|
+
|
|
343
|
+
Kiro accesses codingbuddy skills through three patterns:
|
|
344
|
+
|
|
345
|
+
1. **Auto-recommend** — AI calls `recommend_skills` based on intent detection
|
|
346
|
+
2. **Browse and select** — User calls `list_skills` to discover, then `get_skill` to load
|
|
347
|
+
3. **Slash-command** — User types `/<command>`, AI maps to `get_skill`
|
|
348
|
+
|
|
349
|
+
### Using Skills in Kiro
|
|
350
|
+
|
|
351
|
+
**Method 1: MCP Tool Chain (End Users — Recommended)**
|
|
352
|
+
|
|
353
|
+
The AI should follow this chain when a skill might apply:
|
|
116
354
|
|
|
117
|
-
|
|
355
|
+
1. `recommend_skills({ prompt: "user's message" })` — Get skill recommendations
|
|
356
|
+
2. `get_skill("skill-name")` — Load the recommended skill's full content
|
|
357
|
+
3. Follow the skill instructions in the response
|
|
118
358
|
|
|
119
|
-
|
|
359
|
+
Example flow:
|
|
360
|
+
```
|
|
361
|
+
User: "There is a bug in the authentication logic"
|
|
362
|
+
-> AI calls recommend_skills({ prompt: "There is a bug in the authentication logic" })
|
|
363
|
+
-> Response: { recommendations: [{ skillName: "systematic-debugging", ... }], nextAction: "Call get_skill..." }
|
|
364
|
+
-> AI calls get_skill("systematic-debugging")
|
|
365
|
+
-> AI follows the systematic-debugging skill instructions
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
**Method 2: File Reference (Monorepo Contributors Only)**
|
|
369
|
+
|
|
370
|
+
Reference skill files directly from `.ai-rules/skills/` directory in your prompts.
|
|
371
|
+
|
|
372
|
+
> **Note:** `parse_mode` already embeds matched skill content in `included_skills` — no separate `get_skill` call needed when using mode keywords (PLAN/ACT/EVAL/AUTO).
|
|
373
|
+
|
|
374
|
+
### Skill Discovery
|
|
375
|
+
|
|
376
|
+
Use `list_skills` to browse available skills before deciding which one to load:
|
|
377
|
+
|
|
378
|
+
```
|
|
379
|
+
list_skills() # Browse all skills
|
|
380
|
+
list_skills({ minPriority: 1, maxPriority: 3 }) # Filter by priority
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
**Discovery flow:**
|
|
384
|
+
|
|
385
|
+
1. `list_skills()` — Browse available skills and descriptions
|
|
386
|
+
2. Identify the skill relevant to the current task
|
|
387
|
+
3. `get_skill("skill-name")` — Load the full skill content
|
|
388
|
+
4. Follow the skill instructions
|
|
389
|
+
|
|
390
|
+
> **Tip:** Use `recommend_skills` when you want AI to automatically pick the best skill. Use `list_skills` when you want to manually browse and select.
|
|
391
|
+
|
|
392
|
+
### Slash-Command Mapping
|
|
393
|
+
|
|
394
|
+
Kiro has no native slash-command skill invocation. When a user types `/<command>`, the AI must call `get_skill` to replicate the behavior of Claude Code's built-in Skill tool.
|
|
395
|
+
|
|
396
|
+
**Rule:** When user input matches `/<command>`, call `get_skill("<skill-name>")` and follow the returned instructions. This table is a curated subset — use `list_skills()` to discover all available skills.
|
|
397
|
+
|
|
398
|
+
| User Types | MCP Call |
|
|
399
|
+
|---|---|
|
|
400
|
+
| `/debug` or `/debugging` | `get_skill("systematic-debugging")` |
|
|
401
|
+
| `/tdd` | `get_skill("test-driven-development")` |
|
|
402
|
+
| `/brainstorm` | `get_skill("brainstorming")` |
|
|
403
|
+
| `/plan` or `/write-plan` | `get_skill("writing-plans")` |
|
|
404
|
+
| `/execute` or `/exec` | `get_skill("executing-plans")` |
|
|
405
|
+
| `/design` or `/frontend` | `get_skill("frontend-design")` |
|
|
406
|
+
| `/refactor` | `get_skill("refactoring")` |
|
|
407
|
+
| `/security` or `/audit` | `get_skill("security-audit")` |
|
|
408
|
+
| `/pr` | `get_skill("pr-all-in-one")` |
|
|
409
|
+
| `/review` or `/pr-review` | `get_skill("pr-review")` |
|
|
410
|
+
| `/parallel` or `/agents` | `get_skill("dispatching-parallel-agents")` |
|
|
411
|
+
| `/subagent` | `get_skill("subagent-driven-development")` |
|
|
412
|
+
|
|
413
|
+
For unrecognized slash commands, call `recommend_skills({ prompt: "<user's full message>" })` to find the closest match.
|
|
414
|
+
|
|
415
|
+
> **Disambiguation:** `/plan` (with slash prefix) triggers `get_skill("writing-plans")`. `PLAN` (without slash, at message start) triggers `parse_mode`. Similarly, `/execute` triggers `get_skill("executing-plans")` while `ACT` triggers `parse_mode`. The slash prefix is the distinguishing signal.
|
|
416
|
+
|
|
417
|
+
### Proactive Skill Activation
|
|
120
418
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
419
|
+
Kiro lacks session hooks that automatically enforce skill invocation (unlike Claude Code). The AI must detect intent patterns and call `recommend_skills` proactively — without waiting for the user to explicitly request a skill.
|
|
420
|
+
|
|
421
|
+
**Rule:** When the user's message suggests a skill would help, call `recommend_skills` at the start of the response — before any other action. The `recommend_skills` engine matches trigger patterns across multiple languages and is the authoritative source of truth.
|
|
422
|
+
|
|
423
|
+
Common trigger examples (not exhaustive):
|
|
424
|
+
|
|
425
|
+
| User Intent Signal | Likely Skill |
|
|
426
|
+
|---|---|
|
|
427
|
+
| Bug report, error, "not working", exception | `systematic-debugging` |
|
|
428
|
+
| "Brainstorm", "build", "create", "implement" | `brainstorming` |
|
|
429
|
+
| "Test first", TDD, write tests before code | `test-driven-development` |
|
|
430
|
+
| "Plan", "design", implementation approach | `writing-plans` |
|
|
431
|
+
| PR, commit, code review workflow | `pr-all-in-one` |
|
|
432
|
+
|
|
433
|
+
```
|
|
434
|
+
User: "I need to plan the implementation for user authentication"
|
|
435
|
+
-> AI calls recommend_skills({ prompt: "plan implementation for user authentication" })
|
|
436
|
+
-> Loads writing-plans via get_skill
|
|
437
|
+
-> Follows skill instructions to create structured plan
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
> **Note:** When the user message starts with a mode keyword (`PLAN`, `ACT`, `EVAL`, `AUTO`), `parse_mode` already handles skill matching automatically via `included_skills` — no separate `recommend_skills` call is needed.
|
|
441
|
+
|
|
442
|
+
### Available Skills
|
|
443
|
+
|
|
444
|
+
Highlighted skills (use `list_skills()` for the complete list):
|
|
445
|
+
|
|
446
|
+
- `brainstorming/SKILL.md` - Idea → Design
|
|
447
|
+
- `test-driven-development/SKILL.md` - TDD workflow
|
|
448
|
+
- `systematic-debugging/SKILL.md` - Systematic debugging
|
|
449
|
+
- `writing-plans/SKILL.md` - Implementation plan writing
|
|
450
|
+
- `executing-plans/SKILL.md` - Plan execution
|
|
451
|
+
- `subagent-driven-development/SKILL.md` - Subagent development
|
|
452
|
+
- `dispatching-parallel-agents/SKILL.md` - Parallel Agent dispatch
|
|
453
|
+
- `frontend-design/SKILL.md` - Frontend design
|
|
454
|
+
|
|
455
|
+
## AGENTS.md
|
|
456
|
+
|
|
457
|
+
Industry standard format compatible with all AI tools (Kiro, Cursor, Claude Code, Codex, etc.):
|
|
458
|
+
|
|
459
|
+
```markdown
|
|
460
|
+
# AGENTS.md
|
|
461
|
+
|
|
462
|
+
This project uses codingbuddy MCP server to manage AI Agents.
|
|
463
|
+
|
|
464
|
+
## Quick Start
|
|
465
|
+
...
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
See `AGENTS.md` in project root for details.
|
|
124
469
|
|
|
125
470
|
## PR All-in-One Skill
|
|
126
471
|
|
|
@@ -143,7 +488,7 @@ Unified commit and PR workflow that:
|
|
|
143
488
|
|
|
144
489
|
### Configuration
|
|
145
490
|
|
|
146
|
-
Create `.claude/pr-config.json` in your project root. Required settings:
|
|
491
|
+
Create `.claude/pr-config.json` in your project root (this path is used by the skill regardless of IDE). Required settings:
|
|
147
492
|
- `defaultTargetBranch`: Target branch for PRs
|
|
148
493
|
- `issueTracker`: `jira`, `github`, `linear`, `gitlab`, or `custom`
|
|
149
494
|
- `issuePattern`: Regex pattern for issue ID extraction
|
|
@@ -172,7 +517,7 @@ Reference skill files in Kiro by accessing `.ai-rules/skills/pr-all-in-one/` dir
|
|
|
172
517
|
|
|
173
518
|
## AUTO Mode
|
|
174
519
|
|
|
175
|
-
AUTO mode enables autonomous PLAN
|
|
520
|
+
AUTO mode enables autonomous PLAN → ACT → EVAL cycling until quality criteria are met.
|
|
176
521
|
|
|
177
522
|
### Triggering AUTO Mode
|
|
178
523
|
|
|
@@ -184,29 +529,19 @@ Use the `AUTO` keyword (or localized versions) at the start of your message:
|
|
|
184
529
|
| Korean | `자동` |
|
|
185
530
|
| Japanese | `自動` |
|
|
186
531
|
| Chinese | `自动` |
|
|
187
|
-
| Spanish | `
|
|
532
|
+
| Spanish | `AUTOMÁTICO` |
|
|
188
533
|
|
|
189
534
|
### Example Usage
|
|
190
535
|
|
|
191
536
|
```
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
Kiro: # Mode: AUTO (Iteration 1/3)
|
|
195
|
-
## Phase: PLAN
|
|
196
|
-
[Follows .ai-rules/rules/core.md workflow]
|
|
197
|
-
|
|
198
|
-
## Phase: ACT
|
|
199
|
-
[Executes with quality standards from .ai-rules]
|
|
200
|
-
|
|
201
|
-
## Phase: EVAL
|
|
202
|
-
[Evaluates against quality criteria]
|
|
203
|
-
|
|
204
|
-
### Quality Status
|
|
205
|
-
- Critical: 0
|
|
206
|
-
- High: 0
|
|
537
|
+
AUTO implement user authentication feature
|
|
538
|
+
```
|
|
207
539
|
|
|
208
|
-
✅ AUTO mode completed successfully!
|
|
209
540
|
```
|
|
541
|
+
자동 사용자 인증 기능 구현해줘
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
When AUTO keyword is detected, Kiro calls `parse_mode` MCP tool which returns AUTO mode instructions.
|
|
210
545
|
|
|
211
546
|
### Workflow
|
|
212
547
|
|
|
@@ -236,9 +571,132 @@ module.exports = {
|
|
|
236
571
|
- Bug fixes needing comprehensive testing
|
|
237
572
|
- Code quality improvements with measurable criteria
|
|
238
573
|
|
|
574
|
+
> **Kiro limitation:** AUTO mode에는 강제 루프 메커니즘이 없습니다. 자세한 내용은 [Known Limitations](#known-limitations)를 참조하세요.
|
|
575
|
+
|
|
576
|
+
## Context Document Management
|
|
577
|
+
|
|
578
|
+
codingbuddy uses a fixed-path context document (`docs/codingbuddy/context.md`) to persist decisions across mode transitions.
|
|
579
|
+
|
|
580
|
+
### How It Works
|
|
581
|
+
|
|
582
|
+
| Mode | Behavior |
|
|
583
|
+
|------|----------|
|
|
584
|
+
| PLAN / AUTO | Resets (clears) existing content and starts fresh |
|
|
585
|
+
| ACT / EVAL | Appends new section to existing content |
|
|
586
|
+
|
|
587
|
+
### Required Workflow
|
|
588
|
+
|
|
589
|
+
1. `parse_mode` automatically reads/creates the context document
|
|
590
|
+
2. Review `contextDocument` in the response for previous decisions
|
|
591
|
+
3. **Before completing each mode:** call `update_context` to persist current work
|
|
592
|
+
|
|
593
|
+
### Available Tools
|
|
594
|
+
|
|
595
|
+
| Tool | Purpose |
|
|
596
|
+
|------|---------|
|
|
597
|
+
| `read_context` | Read current context document |
|
|
598
|
+
| `update_context` | Persist decisions, notes, progress, findings |
|
|
599
|
+
| `cleanup_context` | Summarize older sections to reduce document size |
|
|
600
|
+
|
|
601
|
+
### Kiro-Specific Note
|
|
602
|
+
|
|
603
|
+
Unlike Claude Code, Kiro has no hooks to enforce `update_context` calls. You must **manually remember** to call `update_context` before concluding each mode to avoid losing context across sessions.
|
|
604
|
+
|
|
605
|
+
## Known Limitations
|
|
606
|
+
|
|
607
|
+
Kiro environment does not support several features available in Claude Code:
|
|
608
|
+
|
|
609
|
+
| Feature | Status | Workaround |
|
|
610
|
+
|---------|--------|------------|
|
|
611
|
+
| **Task tool** (background subagents) | ❌ Not available | Use `prepare_parallel_agents` for sequential execution |
|
|
612
|
+
| **Native Skill tool** (`/skill-name`) | ❌ Not available | Use MCP tool chain: `recommend_skills` → `get_skill` |
|
|
613
|
+
| **Session hooks** (PreToolUse, etc.) | ❌ Not available | Rely on `.kiro/rules/guidelines.md` for always-on instructions |
|
|
614
|
+
| **Autonomous loop mechanism** | ❌ Not available | AUTO mode depends on Kiro AI voluntarily looping |
|
|
615
|
+
| **Context compaction hooks** | ❌ Not available | Manually call `update_context` before ending each mode |
|
|
616
|
+
| **`dispatch_agents` full usage** | ⚠️ Partial | Use `dispatchReady.dispatchParams.prompt` as analysis context; `prepare_parallel_agents` as fallback |
|
|
617
|
+
| **`restart_tui`** | ❌ Not applicable | Claude Code TUI-only tool |
|
|
618
|
+
|
|
619
|
+
### AUTO Mode Reliability
|
|
620
|
+
|
|
621
|
+
AUTO mode documents autonomous PLAN → ACT → EVAL cycling. In Kiro, this depends entirely on the AI model voluntarily continuing the loop — there is no enforcement mechanism like Claude Code's hooks. Results may vary:
|
|
622
|
+
|
|
623
|
+
- The AI may stop after one iteration instead of looping
|
|
624
|
+
- Quality exit criteria (`Critical = 0 AND High = 0`) are advisory, not enforced
|
|
625
|
+
- For reliable multi-iteration workflows, prefer manual `PLAN` → `ACT` → `EVAL` cycling
|
|
626
|
+
|
|
627
|
+
## Kiro-Specific Advantages
|
|
628
|
+
|
|
629
|
+
Kiro provides unique capabilities that complement codingbuddy's workflow:
|
|
630
|
+
|
|
631
|
+
### Powers
|
|
632
|
+
|
|
633
|
+
Self-contained MCP server packages with documentation. Powers extend Kiro's capabilities with pre-built integrations (e.g., AWS, database tools) that can work alongside codingbuddy's MCP tools.
|
|
634
|
+
|
|
635
|
+
### Hooks
|
|
636
|
+
|
|
637
|
+
Event-driven automation that triggers on specific events:
|
|
638
|
+
- `onFileChange` - React to file modifications
|
|
639
|
+
- `onSave` - Run actions when files are saved
|
|
640
|
+
- Custom event hooks for CI/CD integration
|
|
641
|
+
|
|
642
|
+
Hooks can automate quality checks that complement codingbuddy's EVAL mode.
|
|
643
|
+
|
|
644
|
+
### Steering
|
|
645
|
+
|
|
646
|
+
Structured development workflow with:
|
|
647
|
+
- **Specs** - Requirements specification documents
|
|
648
|
+
- **Design docs** - Architecture and design decisions
|
|
649
|
+
- **Task lists** - Structured task breakdown and tracking
|
|
650
|
+
|
|
651
|
+
Steering aligns well with codingbuddy's PLAN mode for structured implementation planning.
|
|
652
|
+
|
|
653
|
+
### Agent-Native
|
|
654
|
+
|
|
655
|
+
Kiro is built as an agent-native IDE with:
|
|
656
|
+
- Built-in AI agent with tool permissions
|
|
657
|
+
- Natural language task execution
|
|
658
|
+
- Integrated tool approval workflow
|
|
659
|
+
|
|
660
|
+
This agent-native architecture provides a natural fit for codingbuddy's agent-based workflow system.
|
|
661
|
+
|
|
662
|
+
## Verification Status
|
|
663
|
+
|
|
664
|
+
> Initial documentation based on code analysis and Kiro public documentation. Runtime verification pending.
|
|
665
|
+
|
|
666
|
+
| Pattern | Status | Notes |
|
|
667
|
+
|---------|--------|-------|
|
|
668
|
+
| MCP Configuration | ✅ Documented | `.kiro/settings/mcp.json` with `CODINGBUDDY_PROJECT_ROOT` |
|
|
669
|
+
| `CODINGBUDDY_PROJECT_ROOT` guidance | ✅ Documented | Priority and fallback behavior explained |
|
|
670
|
+
| MCP Tools Table | ✅ Documented | All 17 tools documented |
|
|
671
|
+
| Specialist Agents Execution | ✅ Documented | Sequential workflow, dispatchReady, visibility, failures, activation scope |
|
|
672
|
+
| Context Document Management | ✅ Documented | With Kiro-specific guidance |
|
|
673
|
+
| Known Limitations | ✅ Added | Task tool, hooks, AUTO mode limitations |
|
|
674
|
+
| Kiro Powers integration | ⚠️ Unverified | Documented but not tested in live environment |
|
|
675
|
+
| `roots/list` support | ⚠️ Unknown | Not confirmed in Kiro documentation |
|
|
676
|
+
| AUTO mode reliability | ⚠️ Documented with caveat | No enforcement mechanism in Kiro |
|
|
677
|
+
|
|
239
678
|
## Getting Started
|
|
240
679
|
|
|
241
680
|
1. Ensure `.ai-rules/` directory exists with all common rules
|
|
242
|
-
2.
|
|
243
|
-
|
|
244
|
-
|
|
681
|
+
2. Configure MCP server in `.kiro/settings/mcp.json`:
|
|
682
|
+
```json
|
|
683
|
+
{
|
|
684
|
+
"mcpServers": {
|
|
685
|
+
"codingbuddy": {
|
|
686
|
+
"command": "npx",
|
|
687
|
+
"args": ["-y", "codingbuddy"],
|
|
688
|
+
"env": {
|
|
689
|
+
"CODINGBUDDY_PROJECT_ROOT": "/absolute/path/to/your/project"
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
```
|
|
695
|
+
3. (Optional) Create `.kiro/rules/guidelines.md` for always-on instructions
|
|
696
|
+
4. Start a Kiro session — MCP tools are now available
|
|
697
|
+
5. Use PLAN/ACT/EVAL/AUTO workflow via `parse_mode` MCP tool
|
|
698
|
+
|
|
699
|
+
## Reference
|
|
700
|
+
|
|
701
|
+
- [Kiro MCP Configuration Documentation](https://kiro.dev/docs/mcp/configuration/)
|
|
702
|
+
- [codingbuddy MCP API](../../docs/api.md)
|