codingbuddy-rules 5.0.0 → 5.1.1

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.
Files changed (53) hide show
  1. package/.ai-rules/adapters/aider.md +374 -0
  2. package/.ai-rules/adapters/windsurf.md +395 -0
  3. package/.ai-rules/agents/accessibility-specialist.json +6 -0
  4. package/.ai-rules/agents/act-mode.json +6 -0
  5. package/.ai-rules/agents/agent-architect.json +6 -0
  6. package/.ai-rules/agents/ai-ml-engineer.json +6 -0
  7. package/.ai-rules/agents/architecture-specialist.json +6 -0
  8. package/.ai-rules/agents/auto-mode.json +6 -0
  9. package/.ai-rules/agents/backend-developer.json +6 -0
  10. package/.ai-rules/agents/code-quality-specialist.json +6 -0
  11. package/.ai-rules/agents/code-reviewer.json +25 -4
  12. package/.ai-rules/agents/data-engineer.json +6 -0
  13. package/.ai-rules/agents/data-scientist.json +6 -0
  14. package/.ai-rules/agents/devops-engineer.json +6 -0
  15. package/.ai-rules/agents/documentation-specialist.json +6 -0
  16. package/.ai-rules/agents/eval-mode.json +11 -1
  17. package/.ai-rules/agents/event-architecture-specialist.json +6 -0
  18. package/.ai-rules/agents/frontend-developer.json +6 -0
  19. package/.ai-rules/agents/i18n-specialist.json +6 -0
  20. package/.ai-rules/agents/integration-specialist.json +6 -0
  21. package/.ai-rules/agents/migration-specialist.json +6 -0
  22. package/.ai-rules/agents/mobile-developer.json +7 -10
  23. package/.ai-rules/agents/observability-specialist.json +6 -0
  24. package/.ai-rules/agents/parallel-orchestrator.json +6 -0
  25. package/.ai-rules/agents/performance-specialist.json +6 -0
  26. package/.ai-rules/agents/plan-mode.json +6 -0
  27. package/.ai-rules/agents/plan-reviewer.json +7 -4
  28. package/.ai-rules/agents/platform-engineer.json +6 -0
  29. package/.ai-rules/agents/security-engineer.json +6 -0
  30. package/.ai-rules/agents/security-specialist.json +6 -0
  31. package/.ai-rules/agents/seo-specialist.json +6 -0
  32. package/.ai-rules/agents/software-engineer.json +6 -0
  33. package/.ai-rules/agents/solution-architect.json +6 -0
  34. package/.ai-rules/agents/systems-developer.json +6 -0
  35. package/.ai-rules/agents/technical-planner.json +6 -0
  36. package/.ai-rules/agents/test-engineer.json +6 -0
  37. package/.ai-rules/agents/test-strategy-specialist.json +6 -0
  38. package/.ai-rules/agents/tooling-engineer.json +6 -0
  39. package/.ai-rules/agents/ui-ux-designer.json +6 -0
  40. package/.ai-rules/schemas/agent.schema.json +38 -0
  41. package/.ai-rules/skills/README.md +6 -0
  42. package/.ai-rules/skills/agent-design/examples/agent-template.json +1 -4
  43. package/.ai-rules/skills/mcp-builder/examples/tool-example.ts +8 -13
  44. package/.ai-rules/skills/onboard/SKILL.md +150 -0
  45. package/.ai-rules/skills/plan-to-issues/SKILL.md +318 -0
  46. package/.ai-rules/skills/retrospective/SKILL.md +192 -0
  47. package/.ai-rules/skills/ship/SKILL.md +242 -0
  48. package/.ai-rules/skills/skill-creator/assets/eval_review.html +539 -260
  49. package/bin/cli.js +11 -19
  50. package/lib/init/detect-stack.js +18 -4
  51. package/lib/init/prompt.js +2 -2
  52. package/lib/init/suggest-agent.js +13 -2
  53. package/package.json +1 -1
@@ -0,0 +1,374 @@
1
+ # Aider Integration Guide
2
+
3
+ Guide for using codingbuddy with Aider (CLI AI pair programming tool).
4
+
5
+ ## Overview
6
+
7
+ codingbuddy integrates with Aider through:
8
+
9
+ 1. **AGENTS.md** - Industry standard format compatible with all AI tools
10
+ 2. **CONVENTIONS.md** - Aider's native convention file format
11
+ 3. **`.aider.conf.yml`** - Aider configuration file
12
+
13
+ ## Two Usage Contexts
14
+
15
+ ### End Users (Your Project)
16
+
17
+ End users provide codingbuddy rules to Aider via read-only convention files:
18
+
19
+ ```bash
20
+ # Load codingbuddy rules as read-only context
21
+ aider --read CONVENTIONS.md
22
+ ```
23
+
24
+ Or configure in `.aider.conf.yml`:
25
+
26
+ ```yaml
27
+ read:
28
+ - CONVENTIONS.md
29
+ ```
30
+
31
+ ### Monorepo Contributors
32
+
33
+ Contributors to the codingbuddy repository can reference `.ai-rules/` files directly:
34
+
35
+ ```bash
36
+ # Load multiple rule files as read-only context
37
+ aider --read packages/rules/.ai-rules/rules/core.md \
38
+ --read packages/rules/.ai-rules/rules/augmented-coding.md \
39
+ --read packages/rules/.ai-rules/rules/project.md \
40
+ --read AGENTS.md
41
+ ```
42
+
43
+ Or in `.aider.conf.yml`:
44
+
45
+ ```yaml
46
+ read:
47
+ - packages/rules/.ai-rules/rules/core.md
48
+ - packages/rules/.ai-rules/rules/augmented-coding.md
49
+ - packages/rules/.ai-rules/rules/project.md
50
+ - AGENTS.md
51
+ ```
52
+
53
+ ## DRY Principle
54
+
55
+ **Single Source of Truth**: `packages/rules/.ai-rules/`
56
+
57
+ - All Agent definitions, rules, skills managed only in `.ai-rules/`
58
+ - `CONVENTIONS.md` acts as a **pointer or summary** referencing `.ai-rules/`
59
+ - No duplication; reference source files via `--read`
60
+
61
+ ## Aider Configuration System
62
+
63
+ ### `.aider.conf.yml`
64
+
65
+ Aider's primary configuration file using YAML format. Loaded from these locations (in order, later files take priority):
66
+
67
+ 1. **Home directory** (`~/.aider.conf.yml`) - Global personal settings
68
+ 2. **Git root** (`.aider.conf.yml`) - Project-level settings
69
+ 3. **Current directory** (`.aider.conf.yml`) - Directory-specific settings
70
+
71
+ ### Configuration Example
72
+
73
+ ```yaml
74
+ # .aider.conf.yml - codingbuddy integration
75
+
76
+ # Load codingbuddy rules as read-only context
77
+ read:
78
+ - CONVENTIONS.md
79
+ - AGENTS.md
80
+
81
+ # Recommended settings for codingbuddy workflow
82
+ auto-commits: true
83
+ suggest-shell-commands: true
84
+ ```
85
+
86
+ ### List Format Options
87
+
88
+ Lists can be specified as bullet lists or inline arrays:
89
+
90
+ ```yaml
91
+ # Bullet list
92
+ read:
93
+ - CONVENTIONS.md
94
+ - AGENTS.md
95
+
96
+ # Inline array
97
+ read: [CONVENTIONS.md, AGENTS.md]
98
+ ```
99
+
100
+ ### CONVENTIONS.md
101
+
102
+ Aider's native mechanism for specifying coding guidelines. Create a `CONVENTIONS.md` in your project root:
103
+
104
+ ```markdown
105
+ # Project Conventions
106
+
107
+ ## Workflow
108
+ Follow PLAN/ACT/EVAL workflow modes.
109
+ - Start in PLAN mode for analysis and planning
110
+ - Move to ACT mode for implementation (TDD: Red -> Green -> Refactor)
111
+ - Use EVAL mode for code quality evaluation
112
+
113
+ ## Code Quality
114
+ - TypeScript strict mode (no `any`)
115
+ - 90%+ test coverage goal
116
+ - SOLID principles
117
+ - No mocking - test real behavior
118
+
119
+ ## TDD Cycle
120
+ 1. Write a failing test (Red)
121
+ 2. Implement minimum code to pass (Green)
122
+ 3. Refactor for clarity (Refactor)
123
+
124
+ ## Project Structure
125
+ See `packages/rules/.ai-rules/rules/project.md` for layered architecture details.
126
+
127
+ ## Specialist Agents
128
+ See `packages/rules/.ai-rules/agents/README.md` for available specialists.
129
+ ```
130
+
131
+ Load it with:
132
+
133
+ ```bash
134
+ aider --read CONVENTIONS.md
135
+ ```
136
+
137
+ > **Tip:** Use `--read` (read-only) instead of `--file` (editable) for convention files. This prevents accidental modifications and enables prompt caching.
138
+
139
+ ### `.aiderignore`
140
+
141
+ Aider supports `.aiderignore` for excluding files from its context, using `.gitignore`-style patterns:
142
+
143
+ ```gitignore
144
+ # .aiderignore
145
+ node_modules/
146
+ dist/
147
+ *.min.js
148
+ *.lock
149
+ ```
150
+
151
+ Place in the git root directory. For custom ignore files, use `--aiderignore <filename>`.
152
+
153
+ ## Integration Methods
154
+
155
+ ### Method 1: CONVENTIONS.md (Recommended for End Users)
156
+
157
+ Create a `CONVENTIONS.md` summarizing your project's coding standards, then load it as read-only context:
158
+
159
+ ```bash
160
+ aider --read CONVENTIONS.md
161
+ ```
162
+
163
+ ### Method 2: Direct `.ai-rules/` References (Recommended for Contributors)
164
+
165
+ Load specific rule files directly for comprehensive coverage:
166
+
167
+ ```yaml
168
+ # .aider.conf.yml
169
+ read:
170
+ - packages/rules/.ai-rules/rules/core.md
171
+ - packages/rules/.ai-rules/rules/augmented-coding.md
172
+ - packages/rules/.ai-rules/rules/project.md
173
+ - AGENTS.md
174
+ ```
175
+
176
+ ### Method 3: Combined Approach
177
+
178
+ Use `CONVENTIONS.md` for quick reference and load detailed rules separately:
179
+
180
+ ```yaml
181
+ # .aider.conf.yml
182
+ read:
183
+ - CONVENTIONS.md
184
+ - packages/rules/.ai-rules/rules/core.md
185
+ ```
186
+
187
+ ## Directory Structure
188
+
189
+ ```
190
+ project/
191
+ ├── .aider.conf.yml # Aider configuration
192
+ ├── .aiderignore # File exclusion patterns
193
+ ├── CONVENTIONS.md # Coding conventions (for Aider)
194
+ ├── AGENTS.md # Cross-platform agent definitions
195
+ ├── packages/rules/.ai-rules/
196
+ │ ├── rules/
197
+ │ │ ├── core.md
198
+ │ │ ├── project.md
199
+ │ │ └── augmented-coding.md
200
+ │ ├── agents/
201
+ │ │ └── *.json
202
+ │ └── adapters/
203
+ │ └── aider.md # This guide
204
+ └── ~/.aider.conf.yml # Global user settings
205
+ ```
206
+
207
+ ## Usage
208
+
209
+ ### Basic Workflow
210
+
211
+ ```bash
212
+ # Start Aider with codingbuddy conventions
213
+ aider --read CONVENTIONS.md
214
+
215
+ # In the Aider chat, reference workflow modes
216
+ > Please follow PLAN mode to design this feature first
217
+
218
+ # Add specific files for editing
219
+ > /add src/auth/login.ts
220
+
221
+ # Add read-only context
222
+ > /read packages/rules/.ai-rules/agents/security-specialist.json
223
+ ```
224
+
225
+ ### In-Chat Commands
226
+
227
+ | Command | Purpose |
228
+ |---------|---------|
229
+ | `/add <file>` | Add file for editing |
230
+ | `/read <file>` | Add file as read-only context |
231
+ | `/drop <file>` | Remove file from context |
232
+ | `/ask <question>` | Ask without making changes |
233
+ | `/architect <request>` | Use architect mode for planning |
234
+
235
+ ### Architect Mode
236
+
237
+ Aider's `/architect` command maps naturally to codingbuddy's PLAN mode:
238
+
239
+ ```bash
240
+ # PLAN mode equivalent
241
+ > /architect Design a user authentication system with JWT
242
+
243
+ # ACT mode equivalent (regular chat)
244
+ > Implement the authentication system following TDD
245
+ ```
246
+
247
+ ### Using Specialist Context
248
+
249
+ Load specialist agent definitions as read-only context for focused reviews:
250
+
251
+ ```bash
252
+ # Security review
253
+ > /read packages/rules/.ai-rules/agents/security-specialist.json
254
+ > Review the auth implementation from a security perspective
255
+
256
+ # Performance review
257
+ > /read packages/rules/.ai-rules/agents/performance-specialist.json
258
+ > Analyze performance bottlenecks in this module
259
+ ```
260
+
261
+ ## Community Conventions
262
+
263
+ Aider maintains a community conventions repository at [github.com/Aider-AI/conventions](https://github.com/Aider-AI/conventions) with pre-built convention files for various tech stacks. These can complement codingbuddy rules.
264
+
265
+ ## MCP Support
266
+
267
+ > **Note:** As of early 2026, Aider does not natively support MCP servers. Rules integration relies on the `--read` flag and `CONVENTIONS.md` approach described above. If MCP support is added in the future, the same codingbuddy MCP server configuration used by other tools can be applied.
268
+
269
+ ### Workaround: Using Aider with MCP-Provided Rules
270
+
271
+ Export rules from the MCP server to files, then load them in Aider:
272
+
273
+ ```bash
274
+ # Export rules content to a file (manual step)
275
+ # Then load in Aider
276
+ aider --read exported-rules.md
277
+ ```
278
+
279
+ ## Skills
280
+
281
+ Without MCP support, Aider accesses codingbuddy skills through file references:
282
+
283
+ ### Using Skills
284
+
285
+ ```bash
286
+ # Load a skill as read-only context
287
+ > /read packages/rules/.ai-rules/skills/systematic-debugging/SKILL.md
288
+ > Debug this authentication failure using the systematic debugging approach
289
+
290
+ > /read packages/rules/.ai-rules/skills/test-driven-development/SKILL.md
291
+ > Implement this feature following TDD workflow
292
+ ```
293
+
294
+ ### Available Skills
295
+
296
+ | Skill | File |
297
+ |-------|------|
298
+ | Systematic Debugging | `skills/systematic-debugging/SKILL.md` |
299
+ | Test-Driven Development | `skills/test-driven-development/SKILL.md` |
300
+ | Brainstorming | `skills/brainstorming/SKILL.md` |
301
+ | Writing Plans | `skills/writing-plans/SKILL.md` |
302
+ | Executing Plans | `skills/executing-plans/SKILL.md` |
303
+ | Frontend Design | `skills/frontend-design/SKILL.md` |
304
+
305
+ ## Known Limitations
306
+
307
+ Aider is a CLI tool with a different architecture than IDE-based AI assistants:
308
+
309
+ | Feature | Status | Workaround |
310
+ |---------|--------|------------|
311
+ | **MCP Server support** | ❌ Not available | Use `--read` flag with convention/rule files |
312
+ | **Mode keywords (PLAN/ACT/EVAL/AUTO)** | ❌ Not native | Manually instruct Aider to follow mode workflows |
313
+ | **Specialist agent dispatch** | ❌ Not available | Load specialist JSON as read-only context with `/read` |
314
+ | **Background subagents** | ❌ Not available | Sequential analysis only |
315
+ | **Session hooks** | ❌ Not available | Rely on `.aider.conf.yml` for always-on settings |
316
+ | **Context document persistence** | ❌ Not available | Manually manage context between sessions |
317
+ | **Skills auto-detection** | ❌ Not available | Manually load skills via `/read` |
318
+ | **Autonomous loop (AUTO mode)** | ❌ Not available | Use Aider's interactive chat loop manually |
319
+
320
+ ### Aider Strengths
321
+
322
+ Despite these limitations, Aider offers unique advantages:
323
+
324
+ - **CLI-native**: Works in any terminal, SSH sessions, CI/CD pipelines
325
+ - **Git-aware**: Automatic commits, diff-based editing
326
+ - **Repo-map**: Automatic codebase understanding via tree-sitter
327
+ - **Multi-model**: Supports OpenAI, Anthropic, local models, and more
328
+ - **Prompt caching**: Read-only files are cached for efficient token usage
329
+ - **Architect mode**: Built-in plan-then-implement workflow
330
+
331
+ ## AGENTS.md
332
+
333
+ Industry standard format compatible with all AI tools (Aider, Cursor, Claude Code, Codex, etc.):
334
+
335
+ ```markdown
336
+ # AGENTS.md
337
+
338
+ This project uses codingbuddy MCP server to manage AI Agents.
339
+
340
+ ## Quick Start
341
+ ...
342
+ ```
343
+
344
+ See `AGENTS.md` in project root for details. Aider can read this file:
345
+
346
+ ```bash
347
+ aider --read AGENTS.md
348
+ ```
349
+
350
+ ## Verification Status
351
+
352
+ > Documentation based on Aider public documentation and community resources. Runtime verification has been performed for core features.
353
+
354
+ | Pattern | Status | Notes |
355
+ |---------|--------|-------|
356
+ | `CONVENTIONS.md` loading via `--read` | ✅ Verified | Documented in official Aider docs |
357
+ | `.aider.conf.yml` configuration | ✅ Verified | YAML format with multi-location loading |
358
+ | `.aiderignore` file support | ✅ Verified | `.gitignore`-style patterns |
359
+ | Read-only file context (`/read`) | ✅ Verified | Files cached with prompt caching enabled |
360
+ | Architect mode for planning | ✅ Verified | Maps to PLAN mode workflow |
361
+ | MCP server integration | ❌ Not supported | No native MCP support as of early 2026 |
362
+ | AGENTS.md compatibility | ✅ Verified | Standard markdown, loadable via `--read` |
363
+ | Community conventions repo | ✅ Verified | Available at github.com/Aider-AI/conventions |
364
+
365
+ ## Reference
366
+
367
+ - [Aider Documentation](https://aider.chat/docs/)
368
+ - [Aider Conventions Guide](https://aider.chat/docs/usage/conventions.html)
369
+ - [Aider Configuration](https://aider.chat/docs/config/aider_conf.html)
370
+ - [Aider Options Reference](https://aider.chat/docs/config/options.html)
371
+ - [Aider In-Chat Commands](https://aider.chat/docs/usage/commands.html)
372
+ - [Community Conventions Repository](https://github.com/Aider-AI/conventions)
373
+ - [AGENTS.md Official Spec](https://agents.md)
374
+ - [codingbuddy Documentation](../../docs/)