codingbuddy-rules 0.0.0-canary.20260106072742.5537605 → 0.0.0-canary.20260106105956.dda0e31

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.
@@ -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 6 AI tools
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
@@ -24,6 +24,8 @@ AI Agent definitions for specialized development roles.
24
24
 
25
25
  | Task Type | Recommended Agent | File |
26
26
  |-----------|-------------------|------|
27
+ | **High-level Architecture Design** | Solution Architect | `solution-architect.json` |
28
+ | **Implementation Planning** | Technical Planner | `technical-planner.json` |
27
29
  | **React/Next.js Development** | Frontend Developer | `frontend-developer.json` |
28
30
  | **Backend API Development** | Backend Developer | `backend-developer.json` |
29
31
  | **Code Review (EVAL)** | Code Reviewer | `code-reviewer.json` |
@@ -43,6 +45,8 @@ AI Agent definitions for specialized development roles.
43
45
 
44
46
  | Agent | Description |
45
47
  |-------|-------------|
48
+ | Solution Architect | High-level system design and architecture planning |
49
+ | Technical Planner | Low-level implementation planning with TDD and bite-sized tasks |
46
50
  | Frontend Developer | TDD-based frontend development with React/Next.js |
47
51
  | Backend Developer | Multi-stack backend API development (Node, Python, Go, Java, Rust) |
48
52
  | Code Reviewer | Auto-activated in EVAL mode, multi-dimensional code quality assessment |
@@ -93,9 +97,18 @@ as agent-architect, design new agent
93
97
 
94
98
  ### Available Primary Agents
95
99
 
100
+ **PLAN Mode Primary Agents:**
101
+
102
+ | Agent | role.type | Activation Condition |
103
+ |-------|-----------|---------------------|
104
+ | Solution Architect | `primary` | Architecture design, system design, technology selection |
105
+ | Technical Planner | `primary` | Implementation planning, task breakdown, TDD planning |
106
+
107
+ **ACT Mode Primary Agents:**
108
+
96
109
  | Agent | role.type | Activation Condition |
97
110
  |-------|-----------|---------------------|
98
- | Frontend Developer | `primary` | Default for PLAN/ACT modes, React/Next.js projects |
111
+ | Frontend Developer | `primary` | Default for ACT mode, React/Next.js projects |
99
112
  | Backend Developer | `primary` | Backend file context (.go, .py, .java, .rs) |
100
113
  | Agent Architect | `primary` | Agent-related work requests |
101
114
  | DevOps Engineer | `primary` | Dockerfile, docker-compose context |
@@ -104,6 +117,15 @@ as agent-architect, design new agent
104
117
 
105
118
  EVAL mode always uses `code-reviewer` (regardless of Primary Agent settings).
106
119
 
120
+ ### Intent-Based Resolution (PLAN Mode)
121
+
122
+ PLAN mode uses intent-based resolution to automatically select between Solution Architect and Technical Planner:
123
+
124
+ | Intent Pattern | Selected Agent |
125
+ |----------------|----------------|
126
+ | Architecture, system design, technology selection | Solution Architect |
127
+ | Implementation plan, task breakdown, TDD | Technical Planner |
128
+
107
129
  ---
108
130
 
109
131
  ## Mode Agents
@@ -253,6 +275,89 @@ Unified specialist agents organized by domain:
253
275
 
254
276
  ## Agent Details
255
277
 
278
+ ### Solution Architect (`solution-architect.json`)
279
+
280
+ > **Note**: This is a **Primary Agent** for PLAN mode, specializing in high-level system design.
281
+
282
+ **Expertise:**
283
+
284
+ - System Architecture Design
285
+ - Technology Selection
286
+ - Integration Patterns
287
+ - Scalability Planning
288
+ - Trade-off Analysis
289
+
290
+ **Development Philosophy:**
291
+
292
+ - **Brainstorm-First**: Always start with `superpowers:brainstorming` skill
293
+ - **Multiple Options**: Present 2-3 design approaches with trade-offs
294
+ - **Incremental Validation**: Present design in sections (200-300 words) and validate with user
295
+ - **Document-Driven**: Save validated designs to `docs/plans/YYYY-MM-DD-<topic>-design.md`
296
+
297
+ **Responsibilities:**
298
+
299
+ - Analyze requirements and constraints
300
+ - Design high-level system architecture
301
+ - Evaluate technology options
302
+ - Define component boundaries
303
+ - Delegate to domain specialists (Frontend/Backend/DevOps)
304
+
305
+ **Workflow:**
306
+
307
+ 1. Invoke `superpowers:brainstorming` skill
308
+ 2. Understand project context (files, docs, commits)
309
+ 3. Ask clarifying questions one at a time
310
+ 4. Propose 2-3 approaches with trade-offs
311
+ 5. Present design in sections with user validation
312
+ 6. Document to `docs/plans/`
313
+ 7. Offer handoff to Technical Planner
314
+
315
+ ---
316
+
317
+ ### Technical Planner (`technical-planner.json`)
318
+
319
+ > **Note**: This is a **Primary Agent** for PLAN mode, specializing in detailed implementation planning.
320
+
321
+ **Expertise:**
322
+
323
+ - Implementation Planning
324
+ - TDD Strategy
325
+ - Task Decomposition
326
+ - Code Structure Design
327
+ - Test Design
328
+
329
+ **Development Philosophy:**
330
+
331
+ - **Bite-Sized Tasks**: Each task is 2-5 minutes of work
332
+ - **TDD-First**: Red-Green-Refactor-Commit structure per task
333
+ - **Complete Code**: Plans include full code, no placeholders
334
+ - **Exact Paths**: Specify exact file paths for all changes
335
+
336
+ **Responsibilities:**
337
+
338
+ - Break down designs into bite-sized tasks (2-5 minutes each)
339
+ - Define exact file paths and code changes
340
+ - Design test cases with TDD approach
341
+ - Create executable implementation plans
342
+ - Ensure plans are context-complete for engineers
343
+
344
+ **Workflow:**
345
+
346
+ 1. Invoke `superpowers:writing-plans` skill
347
+ 2. Read design document or requirements
348
+ 3. Identify all components and dependencies
349
+ 4. Break into bite-sized tasks (2-5 minutes each)
350
+ 5. For each task: exact files, complete code, test commands
351
+ 6. Save to `docs/plans/YYYY-MM-DD-<feature>.md`
352
+ 7. Offer execution choice (subagent vs parallel session)
353
+
354
+ **Execution Options:**
355
+
356
+ - **Subagent-Driven**: Execute in current session with `superpowers:subagent-driven-development`
357
+ - **Parallel Session**: Execute in separate session with `superpowers:executing-plans`
358
+
359
+ ---
360
+
256
361
  ### Primary Developer Agent Example: Frontend Developer (`frontend-developer.json`)
257
362
 
258
363
  > **Note**: This is an example Primary Developer Agent for React/Next.js projects. Create your own agent (e.g., `backend-developer.json`, `mobile-developer.json`) following this pattern for other tech stacks.
@@ -746,8 +851,10 @@ All agent files are located directly in `.ai-rules/agents/` directory without su
746
851
 
747
852
  ```
748
853
  .ai-rules/agents/
749
- ├── frontend-developer.json # Primary Agent (auto-activated, default)
750
- ├── backend-developer.json # Primary Agent for backend
854
+ ├── solution-architect.json # Primary Agent for PLAN mode (architecture)
855
+ ├── technical-planner.json # Primary Agent for PLAN mode (implementation)
856
+ ├── frontend-developer.json # Primary Agent for ACT mode (default)
857
+ ├── backend-developer.json # Primary Agent for ACT mode (backend)
751
858
  ├── agent-architect.json # Primary Agent for agent management
752
859
  ├── devops-engineer.json # Primary Agent for infrastructure
753
860
  ├── code-reviewer.json # Core agent (EVAL mode, fixed)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codingbuddy-rules",
3
- "version": "0.0.0-canary.20260106072742.5537605",
3
+ "version": "0.0.0-canary.20260106105956.dda0e31",
4
4
  "description": "AI coding rules for consistent practices across AI assistants",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",