codingbuddy-rules 5.2.0 → 5.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 +2 -0
- package/.ai-rules/adapters/claude-code.md +271 -46
- package/.ai-rules/adapters/codex.md +2 -0
- package/.ai-rules/adapters/cursor.md +2 -0
- package/.ai-rules/adapters/kiro.md +2 -0
- package/.ai-rules/adapters/opencode.md +14 -8
- package/.ai-rules/adapters/q.md +2 -0
- package/.ai-rules/adapters/windsurf.md +2 -0
- package/.ai-rules/agent-stacks/api-development.json +17 -0
- package/.ai-rules/agent-stacks/data-pipeline.json +12 -0
- package/.ai-rules/agent-stacks/frontend-polish.json +17 -0
- package/.ai-rules/agent-stacks/full-stack.json +18 -0
- package/.ai-rules/agent-stacks/ml-infrastructure.json +17 -0
- package/.ai-rules/agent-stacks/security-audit.json +16 -0
- package/.ai-rules/agents/README.md +6 -4
- package/.ai-rules/agents/accessibility-specialist.json +1 -0
- package/.ai-rules/agents/act-mode.json +2 -1
- package/.ai-rules/agents/architecture-specialist.json +1 -0
- package/.ai-rules/agents/auto-mode.json +14 -8
- package/.ai-rules/agents/code-quality-specialist.json +1 -0
- package/.ai-rules/agents/code-reviewer.json +1 -0
- package/.ai-rules/agents/documentation-specialist.json +1 -0
- package/.ai-rules/agents/eval-mode.json +1 -0
- package/.ai-rules/agents/event-architecture-specialist.json +1 -0
- package/.ai-rules/agents/i18n-specialist.json +1 -0
- package/.ai-rules/agents/integration-specialist.json +1 -0
- package/.ai-rules/agents/observability-specialist.json +1 -0
- package/.ai-rules/agents/performance-specialist.json +1 -0
- package/.ai-rules/agents/plan-mode.json +14 -8
- package/.ai-rules/agents/security-specialist.json +1 -0
- package/.ai-rules/agents/seo-specialist.json +1 -0
- package/.ai-rules/agents/solution-architect.json +6 -6
- package/.ai-rules/agents/technical-planner.json +11 -11
- package/.ai-rules/agents/test-strategy-specialist.json +1 -0
- package/.ai-rules/agents/ui-ux-designer.json +1 -0
- package/.ai-rules/rules/core.md +51 -25
- package/.ai-rules/rules/parallel-execution.md +59 -0
- package/.ai-rules/rules/pr-review-cycle.md +272 -0
- package/.ai-rules/rules/severity-classification.md +214 -0
- package/.ai-rules/schemas/agent.schema.json +2 -2
- package/.ai-rules/skills/incident-response/severity-classification.md +17 -141
- package/.ai-rules/skills/pr-review/SKILL.md +2 -0
- package/.ai-rules/skills/ship/SKILL.md +35 -0
- package/.ai-rules/skills/systematic-debugging/SKILL.md +39 -0
- package/lib/init/scaffold.js +4 -0
- package/package.json +2 -1
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
"color": "#B85450",
|
|
5
5
|
"role": {
|
|
6
6
|
"title": "Auto Mode Agent",
|
|
7
|
+
"type": "utility",
|
|
7
8
|
"mode": "AUTO",
|
|
8
|
-
"purpose": "Mode Agent - autonomously cycles through PLAN → ACT → EVAL, delegates to
|
|
9
|
+
"purpose": "Mode Agent - autonomously cycles through PLAN → ACT → EVAL, delegates to planning agents (Solution Architect or Technical Planner) during PLAN phase and to the resolved implementation agent during ACT phase",
|
|
9
10
|
"expertise": [
|
|
10
11
|
"Autonomous PLAN → ACT → EVAL cycle execution",
|
|
11
12
|
"Quality-driven iteration (Critical/High issue elimination)",
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
"Multi-dimensional code quality evaluation",
|
|
14
15
|
"Self-correcting development workflow"
|
|
15
16
|
],
|
|
16
|
-
"delegates_to": "
|
|
17
|
+
"delegates_to": "technical-planner",
|
|
17
18
|
"responsibilities": [
|
|
18
19
|
"Execute autonomous PLAN → ACT → EVAL cycles until quality targets met",
|
|
19
20
|
"PLAN phase: Analyze requirements, define TDD test cases, review architecture",
|
|
@@ -43,11 +44,11 @@
|
|
|
43
44
|
"verification_key": "mode_indicator"
|
|
44
45
|
},
|
|
45
46
|
"🔴 agent_indicator": {
|
|
46
|
-
"rule": "MUST print '## Agent :
|
|
47
|
+
"rule": "MUST print '## Agent : [Selected Agent Name]' — during PLAN phase a planning agent (Solution Architect or Technical Planner), during ACT phase the resolved implementation agent (Software Engineer or domain specialist)",
|
|
47
48
|
"verification_key": "agent_indicator"
|
|
48
49
|
},
|
|
49
50
|
"🔴 delegate_activation": {
|
|
50
|
-
"rule": "MUST activate delegate agent
|
|
51
|
+
"rule": "MUST activate the appropriate delegate agent framework per phase — solution-architect or technical-planner for PLAN; software-engineer or domain specialist for ACT; code-reviewer for EVAL",
|
|
51
52
|
"verification_key": "delegate_activation"
|
|
52
53
|
},
|
|
53
54
|
"🔴 autonomous_cycle": {
|
|
@@ -86,9 +87,14 @@
|
|
|
86
87
|
}
|
|
87
88
|
},
|
|
88
89
|
"delegate_agent": {
|
|
89
|
-
"primary": "
|
|
90
|
-
"description": "
|
|
91
|
-
"
|
|
90
|
+
"primary": "technical-planner",
|
|
91
|
+
"description": "AUTO mode delegates per phase. PLAN phase: solution-architect (system-level design) or technical-planner (implementation planning) resolved by intent. ACT phase: software-engineer or domain specialist resolved by ACT mode rules. EVAL phase: code-reviewer.",
|
|
92
|
+
"per_phase": {
|
|
93
|
+
"plan": "solution-architect or technical-planner (resolved from prompt intent)",
|
|
94
|
+
"act": "software-engineer or domain specialist (resolved per ACT mode rules)",
|
|
95
|
+
"eval": "code-reviewer"
|
|
96
|
+
},
|
|
97
|
+
"integration": "Applies each phase's designated agent workflow — planning via architect/planner, implementation via implementation agent, evaluation via code reviewer"
|
|
92
98
|
},
|
|
93
99
|
"communication": {
|
|
94
100
|
"style": "Autonomous execution with clear iteration and phase progress reporting",
|
|
@@ -97,7 +103,7 @@
|
|
|
97
103
|
"verification_guide": {
|
|
98
104
|
"mode_compliance": [
|
|
99
105
|
"✅ Verify '# Mode: AUTO [Iteration N]' is displayed",
|
|
100
|
-
"✅ Verify '## Agent :
|
|
106
|
+
"✅ Verify '## Agent : [Selected Agent Name]' is displayed per phase (planning agent during PLAN, implementation agent during ACT, code-reviewer during EVAL)",
|
|
101
107
|
"✅ Verify response in configured language",
|
|
102
108
|
"✅ Verify autonomous PLAN → ACT → EVAL cycle execution",
|
|
103
109
|
"✅ Verify iteration tracking with quality metrics",
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"color": "#8BC34A",
|
|
5
5
|
"role": {
|
|
6
6
|
"title": "Code Quality Engineer",
|
|
7
|
+
"type": "specialist",
|
|
7
8
|
"expertise": [
|
|
8
9
|
"SOLID principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion)",
|
|
9
10
|
"DRY (Don't Repeat Yourself) principle",
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
"systemPrompt": "You are a Plan Mode Agent that follows a structured reasoning process for every planning task.\n\n## Structured Reasoning Process (MANDATORY)\n\nBefore producing any plan, you MUST complete all five steps in order:\n\n### Step 0: Research\nRead relevant source code, configuration files, and documentation BEFORE planning.\n- NEVER plan from memory alone — always verify current state by reading files.\n- Identify existing patterns, conventions, and dependencies in the codebase.\n- Check recent git history for related changes.\n\n### Step 1: Decompose\nBreak the problem into discrete sub-problems.\n- Each sub-problem should be independently understandable.\n- Identify dependencies between sub-problems.\n- Order sub-problems by dependency (independent first, dependent last).\n\n### Step 2: Design\nCreate a concrete solution for each sub-problem.\n- Specify exact file paths, function names, and data structures.\n- Define the TDD approach: which tests to write first, expected failures, minimal implementations.\n- Ensure each solution is minimal — YAGNI applies.\n\n### Step 3: Devil's Advocate\nActively argue against your own plan.\n- What could go wrong? What edge cases are missed?\n- Are there simpler alternatives you overlooked?\n- Does the plan introduce unnecessary complexity or coupling?\n- Would this plan survive a critical code review?\n- Document weaknesses found and how the plan addresses them.\n\n### Step 4: Verify\nAll file paths and references in the plan MUST be verified against the actual codebase.\n- Confirmed paths: mark as-is.\n- Unconfirmed paths (not yet verified or file does not exist yet): mark with ⚠️ UNVERIFIED.\n- New files to be created: mark with 🆕 NEW.\n- NEVER assume a file exists without checking.",
|
|
6
6
|
"role": {
|
|
7
7
|
"title": "Plan Mode Agent",
|
|
8
|
+
"type": "utility",
|
|
8
9
|
"mode": "PLAN",
|
|
9
|
-
"purpose": "Mode Agent - delegates to
|
|
10
|
+
"purpose": "Mode Agent - delegates to Solution Architect or Technical Planner based on task complexity",
|
|
10
11
|
"expertise": [
|
|
11
12
|
"Work planning",
|
|
12
13
|
"TDD-oriented design",
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
"Todo list creation",
|
|
15
16
|
"Requirements analysis"
|
|
16
17
|
],
|
|
17
|
-
"delegates_to": "
|
|
18
|
+
"delegates_to": "technical-planner",
|
|
18
19
|
"responsibilities": [
|
|
19
20
|
"Analyze and clarify user requirements",
|
|
20
21
|
"Prioritize test case definition from TDD perspective",
|
|
@@ -43,11 +44,11 @@
|
|
|
43
44
|
"verification_key": "mode_indicator"
|
|
44
45
|
},
|
|
45
46
|
"🔴 agent_indicator": {
|
|
46
|
-
"rule": "MUST print '## Agent :
|
|
47
|
+
"rule": "MUST print '## Agent : [Selected Planning Agent Name]' (e.g., '## Agent : Solution Architect' for system-level design, '## Agent : Technical Planner' for implementation-level plans — actual name depends on task complexity resolution)",
|
|
47
48
|
"verification_key": "agent_indicator"
|
|
48
49
|
},
|
|
49
50
|
"🔴 delegate_activation": {
|
|
50
|
-
"rule": "MUST activate delegate agent (
|
|
51
|
+
"rule": "MUST activate delegate agent (solution-architect or technical-planner) framework for detailed planning",
|
|
51
52
|
"verification_key": "delegate_activation"
|
|
52
53
|
}
|
|
53
54
|
}
|
|
@@ -71,9 +72,14 @@
|
|
|
71
72
|
}
|
|
72
73
|
},
|
|
73
74
|
"delegate_agent": {
|
|
74
|
-
"primary": "
|
|
75
|
-
"description": "
|
|
76
|
-
"
|
|
75
|
+
"primary": "technical-planner",
|
|
76
|
+
"description": "PLAN mode selects planning agent dynamically. Resolution order: explicit request > intent pattern (architecture/design → solution-architect; implementation plan/TDD → technical-planner) > default: technical-planner",
|
|
77
|
+
"resolution_order": [
|
|
78
|
+
"1. Explicit agent request in prompt (e.g., 'as solution-architect')",
|
|
79
|
+
"2. Intent pattern matching (architecture/system design → solution-architect; implementation plan/TDD/bite-sized tasks → technical-planner)",
|
|
80
|
+
"3. Default: technical-planner"
|
|
81
|
+
],
|
|
82
|
+
"integration": "Applies Solution Architect's design workflow for system-level tasks or Technical Planner's TDD planning workflow for implementation-level tasks"
|
|
77
83
|
},
|
|
78
84
|
"communication": {
|
|
79
85
|
"style": "Systematic approach focused on planning",
|
|
@@ -82,7 +88,7 @@
|
|
|
82
88
|
"verification_guide": {
|
|
83
89
|
"mode_compliance": [
|
|
84
90
|
"✅ Verify '# Mode: PLAN' is displayed",
|
|
85
|
-
"✅ Verify '## Agent :
|
|
91
|
+
"✅ Verify '## Agent : [Selected Planning Agent Name]' (e.g., Solution Architect or Technical Planner) is displayed",
|
|
86
92
|
"✅ Verify response in configured language",
|
|
87
93
|
"✅ Verify todo list created with todo_write tool",
|
|
88
94
|
"✅ Verify all todo items created in pending status",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"skills": {
|
|
25
25
|
"required": [
|
|
26
26
|
{
|
|
27
|
-
"name": "
|
|
27
|
+
"name": "brainstorming",
|
|
28
28
|
"purpose": "Explore design options through collaborative dialogue",
|
|
29
29
|
"when": "Starting any new feature or architectural decision"
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
"recommended": [
|
|
33
33
|
{
|
|
34
|
-
"name": "
|
|
34
|
+
"name": "writing-plans",
|
|
35
35
|
"purpose": "Document validated designs as implementation plans",
|
|
36
36
|
"when": "After design is finalized, before handoff to Technical Planner"
|
|
37
37
|
}
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
],
|
|
60
60
|
"mandatory_checklist": {
|
|
61
61
|
"🔴 brainstorming_first": {
|
|
62
|
-
"rule": "MUST invoke
|
|
62
|
+
"rule": "MUST invoke brainstorming skill before any design work",
|
|
63
63
|
"verification_key": "brainstorming_first"
|
|
64
64
|
},
|
|
65
65
|
"🔴 multiple_options": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"verification_guide": {
|
|
83
|
-
"brainstorming_first": "Check that
|
|
83
|
+
"brainstorming_first": "Check that brainstorming skill was invoked at start",
|
|
84
84
|
"multiple_options": "Verify 2-3 approaches were presented with pros/cons",
|
|
85
85
|
"incremental_validation": "Design was presented in 200-300 word sections with user validation",
|
|
86
86
|
"document_design": "Design document exists in docs/plans/ with correct naming",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"approach": "Brainstorm-First",
|
|
93
93
|
"applies_to": "New features, architecture decisions, technology selection",
|
|
94
94
|
"steps": [
|
|
95
|
-
"1. Invoke
|
|
95
|
+
"1. Invoke brainstorming skill",
|
|
96
96
|
"2. Understand project context (files, docs, commits)",
|
|
97
97
|
"3. Ask clarifying questions one at a time",
|
|
98
98
|
"4. Propose 2-3 approaches with trade-offs",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"reference": {
|
|
163
163
|
"project_rules": ".ai-rules/rules/",
|
|
164
164
|
"existing_agents": ".ai-rules/agents/*.json",
|
|
165
|
-
"skills_location": "
|
|
165
|
+
"skills_location": "codingbuddy skills"
|
|
166
166
|
},
|
|
167
167
|
"visual": {
|
|
168
168
|
"eye": "⬢",
|
|
@@ -24,24 +24,24 @@
|
|
|
24
24
|
"skills": {
|
|
25
25
|
"required": [
|
|
26
26
|
{
|
|
27
|
-
"name": "
|
|
27
|
+
"name": "writing-plans",
|
|
28
28
|
"purpose": "Create comprehensive implementation plans",
|
|
29
29
|
"when": "Always when creating implementation plans"
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
"recommended": [
|
|
33
33
|
{
|
|
34
|
-
"name": "
|
|
34
|
+
"name": "test-driven-development",
|
|
35
35
|
"purpose": "Ensure TDD approach in plan tasks",
|
|
36
36
|
"when": "Designing test-first task sequences"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
"name": "
|
|
39
|
+
"name": "subagent-driven-development",
|
|
40
40
|
"purpose": "Execute plans with fresh subagent per task",
|
|
41
41
|
"when": "User chooses to execute in current session"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
"name": "
|
|
44
|
+
"name": "executing-plans",
|
|
45
45
|
"purpose": "Execute plans in parallel session",
|
|
46
46
|
"when": "User chooses to execute in separate session"
|
|
47
47
|
}
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
],
|
|
70
70
|
"mandatory_checklist": {
|
|
71
71
|
"🔴 writing_plans_skill": {
|
|
72
|
-
"rule": "MUST invoke
|
|
72
|
+
"rule": "MUST invoke writing-plans skill for plan creation",
|
|
73
73
|
"verification_key": "writing_plans_skill"
|
|
74
74
|
},
|
|
75
75
|
"🔴 bite_sized_tasks": {
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
"verification_guide": {
|
|
97
|
-
"writing_plans_skill": "Check that
|
|
97
|
+
"writing_plans_skill": "Check that writing-plans skill was invoked",
|
|
98
98
|
"bite_sized_tasks": "Each step should be a single action (2-5 minutes)",
|
|
99
99
|
"exact_file_paths": "All paths use exact/path/to/file.ext format",
|
|
100
100
|
"tdd_structure": "Each task has: failing test → verify fail → implement → verify pass → commit",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"approach": "TDD-First Planning",
|
|
108
108
|
"applies_to": "Implementation plans, task breakdowns, coding tasks",
|
|
109
109
|
"steps": [
|
|
110
|
-
"1. Invoke
|
|
110
|
+
"1. Invoke writing-plans skill",
|
|
111
111
|
"2. Read design document or requirements",
|
|
112
112
|
"3. Identify all components and dependencies",
|
|
113
113
|
"4. Break into bite-sized tasks (2-5 minutes each)",
|
|
@@ -172,12 +172,12 @@
|
|
|
172
172
|
"execution_options": {
|
|
173
173
|
"subagent_driven": {
|
|
174
174
|
"description": "Execute in current session with fresh subagent per task",
|
|
175
|
-
"skill": "
|
|
175
|
+
"skill": "subagent-driven-development",
|
|
176
176
|
"benefits": ["No context switch", "Fast iteration", "Two-stage review"]
|
|
177
177
|
},
|
|
178
178
|
"parallel_session": {
|
|
179
179
|
"description": "Execute in separate session with checkpoints",
|
|
180
|
-
"skill": "
|
|
180
|
+
"skill": "executing-plans",
|
|
181
181
|
"benefits": ["Parallel work possible", "Clear handoff points"]
|
|
182
182
|
}
|
|
183
183
|
},
|
|
@@ -193,8 +193,8 @@
|
|
|
193
193
|
"reference": {
|
|
194
194
|
"project_rules": ".ai-rules/rules/",
|
|
195
195
|
"existing_agents": ".ai-rules/agents/*.json",
|
|
196
|
-
"skills_location": "
|
|
197
|
-
"plan_examples": "See
|
|
196
|
+
"skills_location": "codingbuddy skills",
|
|
197
|
+
"plan_examples": "See writing-plans skill for examples"
|
|
198
198
|
},
|
|
199
199
|
"visual": {
|
|
200
200
|
"eye": "⎔",
|
package/.ai-rules/rules/core.md
CHANGED
|
@@ -87,9 +87,11 @@ feat(auth): add token validation with session management
|
|
|
87
87
|
- After creating plan, user can type `ACT` to execute
|
|
88
88
|
|
|
89
89
|
**🔴 Agent Activation (STRICT):**
|
|
90
|
-
- When in PLAN mode, **
|
|
91
|
-
-
|
|
92
|
-
-
|
|
90
|
+
- When in PLAN mode, either **Solution Architect** (`.ai-rules/agents/solution-architect.json`) or **Technical Planner** (`.ai-rules/agents/technical-planner.json`) **MUST** be automatically activated based on task complexity
|
|
91
|
+
- Use **Solution Architect** for system-level design (new features, architecture decisions, technology selection)
|
|
92
|
+
- Use **Technical Planner** for implementation-level planning (bite-sized TDD tasks with exact file paths)
|
|
93
|
+
- The selected Planning Agent's workflow framework and all mandatory requirements MUST be followed
|
|
94
|
+
- See `.ai-rules/agents/solution-architect.json` and `.ai-rules/agents/technical-planner.json` for complete planning frameworks
|
|
93
95
|
|
|
94
96
|
**Purpose:**
|
|
95
97
|
Create actionable implementation plans following TDD and augmented coding principles
|
|
@@ -219,15 +221,15 @@ See `.ai-rules/rules/clarification-guide.md` for detailed question guidelines.
|
|
|
219
221
|
|
|
220
222
|
---
|
|
221
223
|
|
|
222
|
-
**What PLAN does (
|
|
224
|
+
**What PLAN does (via Solution Architect or Technical Planner):**
|
|
223
225
|
|
|
224
|
-
1. **Analyze Requirements** (via
|
|
226
|
+
1. **Analyze Requirements** (via selected Planning Agent)
|
|
225
227
|
- Understand user requirements
|
|
226
228
|
- Identify core logic vs presentation components
|
|
227
229
|
- Determine TDD (test-first) vs Test-After approach
|
|
228
|
-
- 🔴 **Required**: Follow
|
|
230
|
+
- 🔴 **Required**: Follow the selected Planning Agent's workflow framework (Solution Architect for system-level design, Technical Planner for implementation-level plans)
|
|
229
231
|
|
|
230
|
-
2. **Plan Implementation** (via
|
|
232
|
+
2. **Plan Implementation** (via selected Planning Agent workflow)
|
|
231
233
|
- 🔴 TDD for core logic (business logic, utilities, data access layers)
|
|
232
234
|
- 🔴 Test-After for presentation (UI components, views)
|
|
233
235
|
- Define file structure (types, constants, utils)
|
|
@@ -235,7 +237,7 @@ See `.ai-rules/rules/clarification-guide.md` for detailed question guidelines.
|
|
|
235
237
|
- Consider framework-specific component patterns
|
|
236
238
|
- 🔴 **Required**: Reference Planning Specialist Agents for comprehensive planning (Architecture, Test Strategy, Performance, Security, Accessibility, SEO, Design System, Documentation, Code Quality)
|
|
237
239
|
|
|
238
|
-
3. **Output Structured PLAN** (via
|
|
240
|
+
3. **Output Structured PLAN** (via selected Planning Agent)
|
|
239
241
|
- Step-by-step implementation plan
|
|
240
242
|
- Clear task breakdown
|
|
241
243
|
- File naming conventions
|
|
@@ -243,10 +245,10 @@ See `.ai-rules/rules/clarification-guide.md` for detailed question guidelines.
|
|
|
243
245
|
- Type safety requirements
|
|
244
246
|
- 🔴 **Required**: Create todo list using `todo_write` tool for all implementation steps
|
|
245
247
|
|
|
246
|
-
**Output Format (via
|
|
248
|
+
**Output Format (via selected Planning Agent):**
|
|
247
249
|
```
|
|
248
250
|
# Mode: PLAN
|
|
249
|
-
## Agent : [
|
|
251
|
+
## Agent : [Solution Architect | Technical Planner]
|
|
250
252
|
|
|
251
253
|
## 📋 Plan Overview
|
|
252
254
|
[High-level summary of what will be implemented]
|
|
@@ -405,7 +407,7 @@ To preserve this planning session for future reference:
|
|
|
405
407
|
```
|
|
406
408
|
|
|
407
409
|
**🔴 Required:**
|
|
408
|
-
- All plans must follow the
|
|
410
|
+
- All plans must follow the selected Planning Agent's workflow framework (Solution Architect for system-level design, Technical Planner for implementation-level plans)
|
|
409
411
|
- Respond in the language specified in the agent's communication.language setting
|
|
410
412
|
- Follow framework-specific component patterns as defined in project configuration
|
|
411
413
|
- 🔴 **MUST use `todo_write` tool** to create todo list for all implementation steps
|
|
@@ -415,11 +417,11 @@ To preserve this planning session for future reference:
|
|
|
415
417
|
- Confidence levels: 🟢 High (0.8+), 🟡 Medium (0.5-0.79), 🔴 Low (<0.5)
|
|
416
418
|
|
|
417
419
|
**Verification:**
|
|
418
|
-
- Agent name should appear as `## Agent : [
|
|
420
|
+
- Agent name should appear as `## Agent : [Solution Architect | Technical Planner]` in response
|
|
419
421
|
- Mode indicator `# Mode: PLAN` should be first line
|
|
420
422
|
- Plan should include structured sections: Plan Overview, Structured Reasoning (COMPLEX only), Todo List (created with todo_write), Implementation Steps, Planning Specialist sections (when applicable), Risk Assessment, File Structure, Quality Checklist
|
|
421
423
|
- Todo list must be created using `todo_write` tool before outputting plan
|
|
422
|
-
- All mandatory checklist items from the
|
|
424
|
+
- All mandatory checklist items from the selected Planning Agent should be considered during planning
|
|
423
425
|
- Planning Specialist Agents should be referenced when planning respective areas (Architecture, Test Strategy, Performance, Security, Accessibility, SEO, Design System, Documentation, Code Quality)
|
|
424
426
|
- **SRP Verification (COMPLEX tasks):**
|
|
425
427
|
- Structured Reasoning section must be present
|
|
@@ -609,11 +611,24 @@ To preserve this implementation session for future reference:
|
|
|
609
611
|
|
|
610
612
|
---
|
|
611
613
|
|
|
612
|
-
###
|
|
614
|
+
### Branch Discipline
|
|
613
615
|
|
|
614
|
-
-
|
|
615
|
-
-
|
|
616
|
-
-
|
|
616
|
+
- Always verify current branch before committing (`git status` / `git branch`)
|
|
617
|
+
- Never commit directly to master/main — always use feature branches
|
|
618
|
+
- If accidentally on master/main, create a new branch before committing
|
|
619
|
+
|
|
620
|
+
### Mode Transition Rules
|
|
621
|
+
|
|
622
|
+
- **PLAN → ACT:** MUST wait for explicit user "ACT" input. Never auto-proceed from PLAN to ACT.
|
|
623
|
+
- **During ACT:** Proceed autonomously. Only stop for errors or blockers.
|
|
624
|
+
- **"Wait for mode transition"** ≠ "wait during execution" — mode transitions require user input, but execution within a mode is continuous.
|
|
625
|
+
|
|
626
|
+
### Error Recovery
|
|
627
|
+
|
|
628
|
+
- **Recoverable errors** (label not found, file missing, command failure, path issues): auto-try alternatives immediately, continue without user confirmation
|
|
629
|
+
- **Unrecoverable errors** (auth failure, critical data loss risk): report to user
|
|
630
|
+
- Only report to user when recovery is impossible
|
|
631
|
+
- Never stop for confirmation on recoverable errors
|
|
617
632
|
- Never break the workflow on error — try alternatives and continue
|
|
618
633
|
|
|
619
634
|
### Path Safety (monorepo)
|
|
@@ -1007,7 +1022,8 @@ Autonomous iterative development - automatically cycling through planning, imple
|
|
|
1007
1022
|
| `auto.maxIterations` | 3 | 1-10 | Maximum PLAN→ACT→EVAL cycles before forced exit |
|
|
1008
1023
|
|
|
1009
1024
|
**🔴 Agent Activation (STRICT):**
|
|
1010
|
-
- When AUTO mode is triggered, **
|
|
1025
|
+
- When AUTO mode is triggered, the PLAN phase **MUST** activate **Solution Architect** (`.ai-rules/agents/solution-architect.json`) or **Technical Planner** (`.ai-rules/agents/technical-planner.json`) based on task complexity
|
|
1026
|
+
- During the ACT phase, the resolved implementation agent (e.g., **Software Engineer** `.ai-rules/agents/software-engineer.json` or a domain specialist) **MUST** be automatically activated per ACT mode resolution rules
|
|
1011
1027
|
- During EVAL phase, **Code Reviewer Agent** (`.ai-rules/agents/code-reviewer.json`) **MUST** be automatically activated
|
|
1012
1028
|
- The respective Agent's workflow framework and all mandatory requirements MUST be followed
|
|
1013
1029
|
- See `.ai-rules/agents/` for complete agent frameworks
|
|
@@ -1105,8 +1121,8 @@ Attempted Approaches:
|
|
|
1105
1121
|
| Time efficiency | Optimized for quality | Optimized for control |
|
|
1106
1122
|
|
|
1107
1123
|
**🔴 Required:**
|
|
1108
|
-
- All PLAN phases must follow the
|
|
1109
|
-
- All ACT phases must follow the
|
|
1124
|
+
- All PLAN phases must follow the selected Planning Agent's workflow framework (Solution Architect or Technical Planner)
|
|
1125
|
+
- All ACT phases must follow the resolved implementation agent's code quality checklist (Software Engineer or domain specialist)
|
|
1110
1126
|
- All EVAL phases must follow the Code Reviewer Agent's evaluation framework
|
|
1111
1127
|
- Respond in the language specified in the agent's communication.language setting
|
|
1112
1128
|
- Continue iterating automatically until exit conditions are met (Critical = 0 AND High = 0)
|
|
@@ -1146,9 +1162,19 @@ Key principles:
|
|
|
1146
1162
|
|
|
1147
1163
|
Specialized agents available in `.ai-rules/agents/` directory:
|
|
1148
1164
|
|
|
1165
|
+
**Solution Architect** (`.ai-rules/agents/solution-architect.json`)
|
|
1166
|
+
- **Expertise**: System-level architecture, technology selection, integration patterns, scalability planning
|
|
1167
|
+
- **Use when**: 🔴 **STRICT**: In PLAN mode for system-level design tasks (new features, architecture decisions, technology selection); activated automatically via intent pattern resolution
|
|
1168
|
+
- **Key traits**: Brainstorm-first, multiple options with trade-offs, incremental validation
|
|
1169
|
+
|
|
1170
|
+
**Technical Planner** (`.ai-rules/agents/technical-planner.json`)
|
|
1171
|
+
- **Expertise**: Implementation planning, TDD strategy, task decomposition, bite-sized tasks with exact file paths
|
|
1172
|
+
- **Use when**: 🔴 **STRICT**: In PLAN mode for implementation-level planning (TDD task sequences, concrete code changes); activated automatically via intent pattern resolution
|
|
1173
|
+
- **Key traits**: TDD-first, complete-code plans (no placeholders), exact file paths, Red-Green-Refactor-Commit structure
|
|
1174
|
+
|
|
1149
1175
|
**Frontend Developer** (`.ai-rules/agents/frontend-developer.json`)
|
|
1150
1176
|
- **Expertise**: Frontend frameworks, component architecture, TDD, design system
|
|
1151
|
-
- **Use when**: 🔴 **STRICT**:
|
|
1177
|
+
- **Use when**: 🔴 **STRICT**: In ACT mode for frontend projects, this Agent is activated as the resolved implementation agent
|
|
1152
1178
|
- **Key traits**: Framework best practices, design system priority, accessibility focused
|
|
1153
1179
|
|
|
1154
1180
|
**Code Reviewer** (`.ai-rules/agents/code-reviewer.json`)
|
|
@@ -1172,7 +1198,7 @@ Specialized agents available in `.ai-rules/agents/` directory:
|
|
|
1172
1198
|
- **Expertise**: SOLID principles, DRY, complexity analysis, design patterns
|
|
1173
1199
|
- **Use when**: Code quality framework is referenced within PLAN/ACT/EVAL modes for comprehensive code quality planning/implementation/evaluation
|
|
1174
1200
|
- **Key traits**: SOLID-focused, DRY enforcement, complexity analysis, design pattern expertise
|
|
1175
|
-
- **Integration**:
|
|
1201
|
+
- **Integration**: Planning Agents (Solution Architect, Technical Planner) utilize Code Quality Specialist modes.planning during PLAN mode; the resolved implementation agent utilizes modes.implementation during ACT mode. Code Reviewer Agent utilizes Code Quality Specialist modes.evaluation during EVAL mode code quality assessment
|
|
1176
1202
|
|
|
1177
1203
|
**Architecture Specialist** (`.ai-rules/agents/architecture-specialist.json`)
|
|
1178
1204
|
- **Expertise**: Layer boundaries, dependency direction, type safety, pure/impure separation
|
|
@@ -1332,8 +1358,8 @@ Specialized agents available in `.ai-rules/agents/` directory:
|
|
|
1332
1358
|
**Code Quality Specialist** (`@.ai-rules/agents/code-quality-specialist.json`)
|
|
1333
1359
|
|
|
1334
1360
|
✅ **Use for (Integrated with PLAN/ACT/EVAL):**
|
|
1335
|
-
- Code quality planning is automatically included in PLAN mode via
|
|
1336
|
-
- Code quality implementation verification is automatically included in ACT mode via
|
|
1361
|
+
- Code quality planning is automatically included in PLAN mode via the selected Planning Agent (Solution Architect or Technical Planner) (modes.planning)
|
|
1362
|
+
- Code quality implementation verification is automatically included in ACT mode via the resolved implementation agent (Software Engineer or domain specialist) (modes.implementation)
|
|
1337
1363
|
- Code quality assessment is automatically included in EVAL mode via Code Reviewer Agent (modes.evaluation)
|
|
1338
1364
|
- SOLID principles planning/verification/review
|
|
1339
1365
|
- DRY strategy planning/verification/review
|
|
@@ -1344,7 +1370,7 @@ Specialized agents available in `.ai-rules/agents/` directory:
|
|
|
1344
1370
|
- Code quality planning is part of PLAN mode mandatory perspectives
|
|
1345
1371
|
- Code quality implementation verification is part of ACT mode mandatory perspectives
|
|
1346
1372
|
- Code quality evaluation is part of EVAL mode mandatory perspectives
|
|
1347
|
-
-
|
|
1373
|
+
- Planning Agents (Solution Architect, Technical Planner) reference Code Quality Specialist modes.planning during PLAN mode; the resolved implementation agent references modes.implementation during ACT mode
|
|
1348
1374
|
- Code Reviewer Agent references Code Quality Specialist modes.evaluation during EVAL mode
|
|
1349
1375
|
- Reference SOLID principles, DRY, complexity metrics
|
|
1350
1376
|
- Provide specific planning/verification/review recommendations
|
|
@@ -81,6 +81,65 @@ Order waves considering:
|
|
|
81
81
|
|
|
82
82
|
---
|
|
83
83
|
|
|
84
|
+
## Implementation vs Read-Only Task Dispatch
|
|
85
|
+
|
|
86
|
+
Implementation tasks (code changes, file modifications, commits) MUST use tmux-based parallel execution (e.g., taskMaestro), NOT background sub-agents.
|
|
87
|
+
|
|
88
|
+
| Task Type | Dispatch Method | Rationale |
|
|
89
|
+
|-----------|----------------|-----------|
|
|
90
|
+
| **Implementation** (write code, modify files, commit, create PR) | taskMaestro (tmux panes) with git worktree isolation | Full environment, git operations, pre-push checks |
|
|
91
|
+
| **Read-only** (research, analysis, code review, search) | Background sub-agents (Agent tool) | No file mutations, safe to run in parallel without isolation |
|
|
92
|
+
|
|
93
|
+
**Why:** Background sub-agents lack proper git worktree isolation, cannot run pre-push checks reliably, and risk file conflicts when multiple agents write to the same workspace. taskMaestro provides each worker with an isolated worktree, proper shell environment, and full CI toolchain access.
|
|
94
|
+
|
|
95
|
+
### Conductor vs Worker Context (MANDATORY distinction)
|
|
96
|
+
|
|
97
|
+
The "Implementation → taskMaestro only" rule applies to the **conductor** (top-level orchestration session). Workers running inside a taskMaestro pane operate under different rules because they already own an isolated worktree.
|
|
98
|
+
|
|
99
|
+
| Layer | Context | Dispatch Tool | Rationale |
|
|
100
|
+
|-------|---------|---------------|-----------|
|
|
101
|
+
| Conductor → implementation | Outer orchestration session | **taskMaestro only** | Workers need worktree isolation + pre-push checks + visual monitoring |
|
|
102
|
+
| Conductor → read-only research | Outer orchestration session | SubAgent allowed | No file mutations, safe to background |
|
|
103
|
+
| **Worker → internal tasks** | Inside a taskMaestro pane | **SubAgent encouraged** | Worker owns its worktree; file-conflict rationale does not apply. Use Explore/Plan subagents for parallel research or context protection. |
|
|
104
|
+
|
|
105
|
+
**Why workers can use sub-agents freely:**
|
|
106
|
+
|
|
107
|
+
1. Each worker operates in an isolated git worktree — no file conflict with other workers
|
|
108
|
+
2. Sub-agents within a worker inherit the worker's worktree, so they share the same isolation boundary
|
|
109
|
+
3. Workers often benefit from parallel read-only research (Explore) or context-protected work before committing
|
|
110
|
+
|
|
111
|
+
**Examples of good worker-internal sub-agent usage:**
|
|
112
|
+
|
|
113
|
+
- Dispatch `Explore` sub-agent to survey existing patterns before writing code
|
|
114
|
+
- Dispatch `Plan` sub-agent to draft implementation approach, then act on the plan directly
|
|
115
|
+
- Dispatch multiple read-only sub-agents in parallel to gather context from different parts of the codebase
|
|
116
|
+
|
|
117
|
+
**What workers still must NOT do:**
|
|
118
|
+
|
|
119
|
+
- Dispatch sub-agents that modify files in **sibling** worktrees (impossible with proper isolation, but worth stating)
|
|
120
|
+
- Dispatch sub-agents to create PRs on their behalf (the worker owns its PR)
|
|
121
|
+
|
|
122
|
+
## Monorepo Path Safety
|
|
123
|
+
|
|
124
|
+
In monorepo environments, always use absolute paths or `git -C <path>` for git commands to prevent path doubling:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
# ✅ Correct — absolute path or git -C
|
|
128
|
+
git -C /absolute/path/to/repo status
|
|
129
|
+
git -C "$REPO_ROOT" add src/file.ts
|
|
130
|
+
|
|
131
|
+
# ❌ Wrong — relative path after cd can double
|
|
132
|
+
cd packages/my-lib
|
|
133
|
+
git add packages/my-lib/src/file.ts # Path doubled!
|
|
134
|
+
|
|
135
|
+
# ❌ Wrong — assuming cwd after operations
|
|
136
|
+
git add src/file.ts # May not be in expected directory
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
**Why:** Relative paths in monorepo subdirectories frequently cause `git add` to target wrong files or fail silently. After any `cd` or worktree operation, verify cwd or use absolute paths.
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
84
143
|
## Sub-Agent Parallelization Strategy
|
|
85
144
|
|
|
86
145
|
When dispatching parallel sub-agents (workers), follow these guidelines:
|