codingbuddy-rules 2.0.0 β 2.2.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 +83 -3
- package/.ai-rules/adapters/claude-code.md +288 -5
- package/.ai-rules/adapters/codex.md +57 -0
- package/.ai-rules/adapters/cursor.md +172 -94
- package/.ai-rules/adapters/kiro.md +70 -4
- package/.ai-rules/adapters/opencode-skills.md +16 -16
- package/.ai-rules/adapters/opencode.md +107 -16
- package/.ai-rules/adapters/q.md +61 -4
- package/.ai-rules/agents/README.md +56 -0
- package/.ai-rules/agents/accessibility-specialist.json +1 -1
- package/.ai-rules/agents/act-mode.json +34 -34
- package/.ai-rules/agents/agent-architect.json +2 -2
- package/.ai-rules/agents/architecture-specialist.json +1 -1
- package/.ai-rules/agents/backend-developer.json +1 -1
- package/.ai-rules/agents/code-quality-specialist.json +1 -1
- package/.ai-rules/agents/code-reviewer.json +70 -0
- package/.ai-rules/agents/data-engineer.json +376 -0
- package/.ai-rules/agents/devops-engineer.json +6 -6
- package/.ai-rules/agents/documentation-specialist.json +1 -1
- package/.ai-rules/agents/eval-mode.json +52 -33
- package/.ai-rules/agents/frontend-developer.json +1 -1
- package/.ai-rules/agents/i18n-specialist.json +393 -0
- package/.ai-rules/agents/mobile-developer.json +355 -0
- package/.ai-rules/agents/performance-specialist.json +1 -1
- package/.ai-rules/agents/plan-mode.json +25 -25
- package/.ai-rules/agents/security-specialist.json +1 -1
- package/.ai-rules/agents/seo-specialist.json +1 -1
- package/.ai-rules/agents/solution-architect.json +2 -2
- package/.ai-rules/agents/technical-planner.json +2 -2
- package/.ai-rules/agents/test-strategy-specialist.json +1 -1
- package/.ai-rules/agents/tooling-engineer.json +202 -0
- package/.ai-rules/agents/ui-ux-designer.json +1 -1
- package/.ai-rules/checklists/accessibility.json +132 -0
- package/.ai-rules/checklists/code-quality.json +97 -0
- package/.ai-rules/checklists/index.json +47 -0
- package/.ai-rules/checklists/performance.json +97 -0
- package/.ai-rules/checklists/security.json +119 -0
- package/.ai-rules/checklists/seo.json +97 -0
- package/.ai-rules/checklists/testing.json +97 -0
- package/.ai-rules/rules/core.md +200 -2
- package/.ai-rules/skills/api-design/SKILL.md +459 -0
- package/package.json +1 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "security",
|
|
3
|
+
"icon": "π",
|
|
4
|
+
"description": "Security-related review items",
|
|
5
|
+
"categories": [
|
|
6
|
+
{
|
|
7
|
+
"name": "authentication",
|
|
8
|
+
"triggers": {
|
|
9
|
+
"files": [
|
|
10
|
+
"**/auth/**",
|
|
11
|
+
"**/login/**",
|
|
12
|
+
"**/session/**",
|
|
13
|
+
"**/password/**",
|
|
14
|
+
"**/signin/**",
|
|
15
|
+
"**/signup/**"
|
|
16
|
+
],
|
|
17
|
+
"imports": [
|
|
18
|
+
"bcrypt",
|
|
19
|
+
"argon2",
|
|
20
|
+
"jsonwebtoken",
|
|
21
|
+
"passport",
|
|
22
|
+
"next-auth",
|
|
23
|
+
"@auth/*",
|
|
24
|
+
"jose"
|
|
25
|
+
],
|
|
26
|
+
"patterns": [
|
|
27
|
+
"password",
|
|
28
|
+
"token",
|
|
29
|
+
"credential",
|
|
30
|
+
"session",
|
|
31
|
+
"authenticate"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"items": [
|
|
35
|
+
{
|
|
36
|
+
"id": "sec-auth-001",
|
|
37
|
+
"text": "Hash passwords using bcrypt/argon2 (never store plaintext)",
|
|
38
|
+
"priority": "critical",
|
|
39
|
+
"reason": "Plaintext passwords can be stolen if database is compromised",
|
|
40
|
+
"reference": "OWASP Authentication Cheatsheet"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "sec-auth-002",
|
|
44
|
+
"text": "Implement rate limiting on login attempts",
|
|
45
|
+
"priority": "high",
|
|
46
|
+
"reason": "Prevents brute force attacks"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "sec-auth-003",
|
|
50
|
+
"text": "Use secure session management (HttpOnly, Secure, SameSite cookies)",
|
|
51
|
+
"priority": "critical",
|
|
52
|
+
"reason": "Prevents session hijacking and XSS attacks"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "sec-auth-004",
|
|
56
|
+
"text": "Implement proper logout (invalidate session server-side)",
|
|
57
|
+
"priority": "high",
|
|
58
|
+
"reason": "Ensures complete session termination"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "input_validation",
|
|
64
|
+
"triggers": {
|
|
65
|
+
"files": ["**/api/**", "**/form/**", "**/input/**", "**/handler/**"],
|
|
66
|
+
"imports": ["zod", "yup", "joi", "validator"],
|
|
67
|
+
"patterns": ["validate", "sanitize", "input", "formData"]
|
|
68
|
+
},
|
|
69
|
+
"items": [
|
|
70
|
+
{
|
|
71
|
+
"id": "sec-input-001",
|
|
72
|
+
"text": "Validate all user input server-side",
|
|
73
|
+
"priority": "critical",
|
|
74
|
+
"reason": "Client-side validation can be bypassed"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "sec-input-002",
|
|
78
|
+
"text": "Sanitize input to prevent XSS attacks",
|
|
79
|
+
"priority": "critical",
|
|
80
|
+
"reason": "Unsanitized input can execute malicious scripts"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "sec-input-003",
|
|
84
|
+
"text": "Use parameterized queries to prevent SQL injection",
|
|
85
|
+
"priority": "critical",
|
|
86
|
+
"reason": "Raw queries with user input enable SQL injection"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "data_protection",
|
|
92
|
+
"triggers": {
|
|
93
|
+
"files": ["**/api/**", "**/data/**", "**/user/**", "**/profile/**"],
|
|
94
|
+
"imports": ["crypto", "node:crypto"],
|
|
95
|
+
"patterns": ["encrypt", "decrypt", "secret", "private", "pii"]
|
|
96
|
+
},
|
|
97
|
+
"items": [
|
|
98
|
+
{
|
|
99
|
+
"id": "sec-data-001",
|
|
100
|
+
"text": "Encrypt sensitive data at rest",
|
|
101
|
+
"priority": "high",
|
|
102
|
+
"reason": "Protects data if storage is compromised"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "sec-data-002",
|
|
106
|
+
"text": "Use HTTPS for all data transmission",
|
|
107
|
+
"priority": "critical",
|
|
108
|
+
"reason": "Prevents man-in-the-middle attacks"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "sec-data-003",
|
|
112
|
+
"text": "Never log sensitive information (passwords, tokens, PII)",
|
|
113
|
+
"priority": "high",
|
|
114
|
+
"reason": "Logs can be accessed by unauthorized parties"
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "seo",
|
|
3
|
+
"icon": "π",
|
|
4
|
+
"description": "SEO optimization review items",
|
|
5
|
+
"categories": [
|
|
6
|
+
{
|
|
7
|
+
"name": "metadata",
|
|
8
|
+
"triggers": {
|
|
9
|
+
"files": ["**/page/**", "**/layout/**", "**/app/**", "**/head/**"],
|
|
10
|
+
"imports": ["next/head", "react-helmet"],
|
|
11
|
+
"patterns": ["<title", "<meta", "metadata", "generateMetadata"]
|
|
12
|
+
},
|
|
13
|
+
"items": [
|
|
14
|
+
{
|
|
15
|
+
"id": "seo-meta-001",
|
|
16
|
+
"text": "Set unique, descriptive title for each page",
|
|
17
|
+
"priority": "critical",
|
|
18
|
+
"reason": "Titles appear in search results and browser tabs"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "seo-meta-002",
|
|
22
|
+
"text": "Write compelling meta descriptions (150-160 chars)",
|
|
23
|
+
"priority": "high",
|
|
24
|
+
"reason": "Descriptions appear in search result snippets"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "seo-meta-003",
|
|
28
|
+
"text": "Set canonical URL to prevent duplicate content issues",
|
|
29
|
+
"priority": "medium",
|
|
30
|
+
"reason": "Helps search engines understand the primary URL"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "seo-meta-004",
|
|
34
|
+
"text": "Add Open Graph and Twitter Card meta tags",
|
|
35
|
+
"priority": "medium",
|
|
36
|
+
"reason": "Controls appearance when shared on social media"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "structure",
|
|
42
|
+
"triggers": {
|
|
43
|
+
"files": ["**/page/**", "**/layout/**", "**/*.tsx", "**/*.jsx"],
|
|
44
|
+
"imports": [],
|
|
45
|
+
"patterns": ["<h1", "<h2", "<main", "<article", "<nav"]
|
|
46
|
+
},
|
|
47
|
+
"items": [
|
|
48
|
+
{
|
|
49
|
+
"id": "seo-struct-001",
|
|
50
|
+
"text": "Use exactly one h1 per page",
|
|
51
|
+
"priority": "high",
|
|
52
|
+
"reason": "H1 signals main topic to search engines"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "seo-struct-002",
|
|
56
|
+
"text": "Use semantic HTML elements (article, section, nav)",
|
|
57
|
+
"priority": "medium",
|
|
58
|
+
"reason": "Semantic markup helps search engines understand content"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "seo-struct-003",
|
|
62
|
+
"text": "Implement breadcrumb navigation with structured data",
|
|
63
|
+
"priority": "low",
|
|
64
|
+
"reason": "Helps users and search engines navigate site hierarchy"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "links",
|
|
70
|
+
"triggers": {
|
|
71
|
+
"files": ["**/page/**", "**/*.tsx", "**/*.jsx"],
|
|
72
|
+
"imports": ["next/link"],
|
|
73
|
+
"patterns": ["<a ", "<Link", "href="]
|
|
74
|
+
},
|
|
75
|
+
"items": [
|
|
76
|
+
{
|
|
77
|
+
"id": "seo-link-001",
|
|
78
|
+
"text": "Use descriptive link text (avoid 'click here')",
|
|
79
|
+
"priority": "medium",
|
|
80
|
+
"reason": "Link text signals page content to search engines"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "seo-link-002",
|
|
84
|
+
"text": "Add rel='noopener noreferrer' to external links",
|
|
85
|
+
"priority": "medium",
|
|
86
|
+
"reason": "Security and performance best practice"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "seo-link-003",
|
|
90
|
+
"text": "Ensure all internal links use relative paths",
|
|
91
|
+
"priority": "low",
|
|
92
|
+
"reason": "Maintains link equity within the site"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "testing",
|
|
3
|
+
"icon": "π§ͺ",
|
|
4
|
+
"description": "Testing strategy and coverage review items",
|
|
5
|
+
"categories": [
|
|
6
|
+
{
|
|
7
|
+
"name": "unit_testing",
|
|
8
|
+
"triggers": {
|
|
9
|
+
"files": ["**/util/**", "**/lib/**", "**/helper/**", "**/service/**"],
|
|
10
|
+
"imports": ["vitest", "jest", "@testing-library/*"],
|
|
11
|
+
"patterns": ["describe", "it(", "test(", "expect"]
|
|
12
|
+
},
|
|
13
|
+
"items": [
|
|
14
|
+
{
|
|
15
|
+
"id": "test-unit-001",
|
|
16
|
+
"text": "Write tests for all pure functions",
|
|
17
|
+
"priority": "high",
|
|
18
|
+
"reason": "Pure functions are easiest to test and most valuable to cover"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "test-unit-002",
|
|
22
|
+
"text": "Cover edge cases and error conditions",
|
|
23
|
+
"priority": "high",
|
|
24
|
+
"reason": "Edge cases often hide bugs"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "test-unit-003",
|
|
28
|
+
"text": "Use descriptive test names that explain behavior",
|
|
29
|
+
"priority": "medium",
|
|
30
|
+
"reason": "Test names document expected behavior"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "test-unit-004",
|
|
34
|
+
"text": "Target 90%+ coverage for core logic",
|
|
35
|
+
"priority": "high",
|
|
36
|
+
"reason": "High coverage reduces regression risk"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "component_testing",
|
|
42
|
+
"triggers": {
|
|
43
|
+
"files": ["**/components/**", "**/features/**", "**/widgets/**"],
|
|
44
|
+
"imports": ["@testing-library/react", "react-test-renderer"],
|
|
45
|
+
"patterns": ["render(", "screen.", "userEvent"]
|
|
46
|
+
},
|
|
47
|
+
"items": [
|
|
48
|
+
{
|
|
49
|
+
"id": "test-comp-001",
|
|
50
|
+
"text": "Test user interactions (click, type, submit)",
|
|
51
|
+
"priority": "high",
|
|
52
|
+
"reason": "UI should respond correctly to user actions"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "test-comp-002",
|
|
56
|
+
"text": "Test different component states (loading, error, success)",
|
|
57
|
+
"priority": "high",
|
|
58
|
+
"reason": "Components should handle all states gracefully"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "test-comp-003",
|
|
62
|
+
"text": "Use Testing Library queries by role/label for accessibility",
|
|
63
|
+
"priority": "medium",
|
|
64
|
+
"reason": "Tests that query like users improve accessibility"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "api_testing",
|
|
70
|
+
"triggers": {
|
|
71
|
+
"files": ["**/api/**", "**/hook/**", "**/query/**", "**/mutation/**"],
|
|
72
|
+
"imports": ["msw", "nock", "@tanstack/react-query"],
|
|
73
|
+
"patterns": ["fetch(", "axios", "useMutation", "useQuery"]
|
|
74
|
+
},
|
|
75
|
+
"items": [
|
|
76
|
+
{
|
|
77
|
+
"id": "test-api-001",
|
|
78
|
+
"text": "Mock API responses with MSW for realistic testing",
|
|
79
|
+
"priority": "high",
|
|
80
|
+
"reason": "Avoid mocking implementation details"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "test-api-002",
|
|
84
|
+
"text": "Test loading, success, and error states",
|
|
85
|
+
"priority": "high",
|
|
86
|
+
"reason": "API calls can fail in multiple ways"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "test-api-003",
|
|
90
|
+
"text": "Test retry and caching behavior",
|
|
91
|
+
"priority": "medium",
|
|
92
|
+
"reason": "Data fetching libraries have complex behavior"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
package/.ai-rules/rules/core.md
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
### Work Modes
|
|
4
4
|
|
|
5
|
-
You have
|
|
5
|
+
You have four modes of operation:
|
|
6
6
|
|
|
7
7
|
1. **Plan mode** - Define a plan without making changes
|
|
8
8
|
2. **Act mode** - Execute the plan and make changes
|
|
9
9
|
3. **Eval mode** - Analyze results and propose improvements
|
|
10
|
+
4. **Auto mode** - Autonomous execution cycling PLAN β ACT β EVAL until quality achieved
|
|
10
11
|
|
|
11
12
|
**Mode Rules:**
|
|
12
13
|
- Start in PLAN mode by default
|
|
@@ -16,6 +17,8 @@ You have three modes of operation:
|
|
|
16
17
|
- EVAL mode analyzes ACT results and proposes improved PLAN
|
|
17
18
|
- After EVAL completes, return to PLAN mode with improvement suggestions
|
|
18
19
|
- User can repeat ACT β EVAL β PLAN cycle until satisfied
|
|
20
|
+
- Move to AUTO mode when user types `AUTO` (or localized: μλ, θͺε, θͺε¨, AUTOMΓTICO)
|
|
21
|
+
- AUTO mode autonomously cycles through PLAN β ACT β EVAL until quality targets met
|
|
19
22
|
- When in plan mode always output the full updated plan in every response
|
|
20
23
|
|
|
21
24
|
**Default Flow:**
|
|
@@ -28,12 +31,18 @@ PLAN β (user: ACT) β ACT β PLAN (automatic return)
|
|
|
28
31
|
PLAN β (user: ACT) β ACT β PLAN β (user: EVAL) β EVAL β Improved PLAN
|
|
29
32
|
```
|
|
30
33
|
|
|
31
|
-
**
|
|
34
|
+
**Autonomous Flow:**
|
|
35
|
+
```
|
|
36
|
+
(user: AUTO) β AUTO [PLAN β ACT β EVAL β repeat until Critical=0 AND High=0]
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**Key Point:** EVAL is opt-in, not automatic. User must explicitly request evaluation. AUTO mode handles the entire cycle automatically.
|
|
32
40
|
|
|
33
41
|
**Mode Indicators:**
|
|
34
42
|
- Print `# Mode: PLAN` in plan mode
|
|
35
43
|
- Print `# Mode: ACT` in act mode
|
|
36
44
|
- Print `# Mode: EVAL` in eval mode
|
|
45
|
+
- Print `# Mode: AUTO` in auto mode (with iteration number)
|
|
37
46
|
|
|
38
47
|
---
|
|
39
48
|
|
|
@@ -524,6 +533,19 @@ Self-improvement through iterative refinement
|
|
|
524
533
|
- [ ] State management: State changes propagate correctly
|
|
525
534
|
- [ ] Async flow: Async/await chains remain valid
|
|
526
535
|
|
|
536
|
+
## π 리ν©ν λ§ κ²μ¦
|
|
537
|
+
|
|
538
|
+
**κ²ν λ²μ**: [λ³κ²½λ νμΌ λͺ©λ‘]
|
|
539
|
+
|
|
540
|
+
### λ°κ²¬λ λ¬Έμ
|
|
541
|
+
- π΄ `[file.ts:line]` - 쑰건 λΆκΈ°: [μ‘°κ±΄λ¬Έμ΄ νΉμ μΌμ΄μ€λ§ μ²λ¦¬νλ λ¬Έμ ]
|
|
542
|
+
- β οΈ `[file.ts:line]` - μ΅μ
λ μ²λ¦¬: [null/undefined μ°Έμ‘° μν]
|
|
543
|
+
|
|
544
|
+
### κ²μ¦ μλ£ (λ¬Έμ μμ)
|
|
545
|
+
- β
[κ²μ¦ νλͺ©λͺ
]
|
|
546
|
+
|
|
547
|
+
*μ€ν΅ μ¬μ : [μ κ· νμΌλ§ μμ± / λ¬Έμλ§ λ³κ²½ / ν
μ€νΈλ§ μΆκ° / ν΄λΉ μμ]*
|
|
548
|
+
|
|
527
549
|
## π Objective Assessment
|
|
528
550
|
| Criteria | Measured | Target | Status |
|
|
529
551
|
|----------|----------|--------|--------|
|
|
@@ -634,6 +656,7 @@ Self-improvement through iterative refinement
|
|
|
634
656
|
- [ ] All findings include objective evidence (location, metric, target)
|
|
635
657
|
- [ ] Devil's Advocate Analysis completed
|
|
636
658
|
- [ ] Impact Radius Analysis completed (dependencies, contract changes, side effects)
|
|
659
|
+
- [ ] Refactoring Verification completed (or skip reason stated)
|
|
637
660
|
- [ ] Critical Findings section appears before What Works
|
|
638
661
|
- [ ] No defense of implementation decisions
|
|
639
662
|
|
|
@@ -672,6 +695,181 @@ Self-improvement through iterative refinement
|
|
|
672
695
|
- Already meeting all standards
|
|
673
696
|
- Time-sensitive quick fixes
|
|
674
697
|
|
|
698
|
+
---
|
|
699
|
+
|
|
700
|
+
### Auto Mode
|
|
701
|
+
|
|
702
|
+
**Important:**
|
|
703
|
+
- AUTO mode is an **autonomous execution mode** that cycles through PLAN β ACT β EVAL automatically
|
|
704
|
+
- User initiates with `AUTO` keyword and the system handles the entire workflow
|
|
705
|
+
- Continues iterating until quality targets are achieved or maximum iterations reached
|
|
706
|
+
- Best for tasks where iterative refinement is expected
|
|
707
|
+
|
|
708
|
+
**Trigger:**
|
|
709
|
+
- Type `AUTO` to start autonomous execution
|
|
710
|
+
- Korean: `μλ`
|
|
711
|
+
- Japanese: `θͺε`
|
|
712
|
+
- Chinese: `θͺε¨`
|
|
713
|
+
- Spanish: `AUTOMΓTICO`
|
|
714
|
+
|
|
715
|
+
**Purpose:**
|
|
716
|
+
Autonomous iterative development - automatically cycling through planning, implementation, and evaluation until quality standards are met.
|
|
717
|
+
|
|
718
|
+
**How AUTO Works:**
|
|
719
|
+
|
|
720
|
+
1. **Initial Phase: PLAN**
|
|
721
|
+
- Creates implementation plan following TDD and augmented coding principles
|
|
722
|
+
- Activates Primary Developer Agent automatically
|
|
723
|
+
- Outputs structured plan with todo items
|
|
724
|
+
|
|
725
|
+
2. **Execution Phase: ACT**
|
|
726
|
+
- Executes the plan created in PLAN phase
|
|
727
|
+
- Follows TDD cycle for core logic, Test-After for UI
|
|
728
|
+
- Maintains quality standards throughout
|
|
729
|
+
|
|
730
|
+
3. **Evaluation Phase: EVAL**
|
|
731
|
+
- Automatically evaluates the implementation (no user prompt required)
|
|
732
|
+
- Activates Code Reviewer Agent
|
|
733
|
+
- Assesses quality across all mandatory perspectives
|
|
734
|
+
- Categorizes issues by severity: Critical, High, Medium, Low
|
|
735
|
+
|
|
736
|
+
4. **Iteration Decision:**
|
|
737
|
+
- **Success (Exit):** Critical = 0 AND High = 0 β Complete with success summary
|
|
738
|
+
- **Continue:** Critical > 0 OR High > 0 β Return to PLAN with improvements
|
|
739
|
+
- **Failure (Exit):** Max iterations reached β Transition to PLAN mode with suggestions
|
|
740
|
+
|
|
741
|
+
**Exit Conditions:**
|
|
742
|
+
|
|
743
|
+
| Condition | Result | Next Action |
|
|
744
|
+
|-----------|--------|-------------|
|
|
745
|
+
| Critical = 0 AND High = 0 | Success | Display completion summary |
|
|
746
|
+
| Max iterations reached | Failure | Transition to PLAN with remaining issues |
|
|
747
|
+
| User interruption | Stopped | Return control to user |
|
|
748
|
+
|
|
749
|
+
**Configuration:**
|
|
750
|
+
|
|
751
|
+
| Parameter | Default | Range | Description |
|
|
752
|
+
|-----------|---------|-------|-------------|
|
|
753
|
+
| `auto.maxIterations` | 3 | 1-10 | Maximum PLANβACTβEVAL cycles before forced exit |
|
|
754
|
+
|
|
755
|
+
**π΄ Agent Activation (STRICT):**
|
|
756
|
+
- When AUTO mode is triggered, **Primary Developer Agent** (e.g., `.ai-rules/agents/frontend-developer.json`) **MUST** be automatically activated for PLAN and ACT phases
|
|
757
|
+
- During EVAL phase, **Code Reviewer Agent** (`.ai-rules/agents/code-reviewer.json`) **MUST** be automatically activated
|
|
758
|
+
- The respective Agent's workflow framework and all mandatory requirements MUST be followed
|
|
759
|
+
- See `.ai-rules/agents/` for complete agent frameworks
|
|
760
|
+
|
|
761
|
+
**Output Format:**
|
|
762
|
+
```
|
|
763
|
+
# Mode: AUTO
|
|
764
|
+
## Autonomous Execution Started
|
|
765
|
+
|
|
766
|
+
Task: [Task description]
|
|
767
|
+
Max Iterations: [maxIterations]
|
|
768
|
+
|
|
769
|
+
---
|
|
770
|
+
|
|
771
|
+
## Iteration 1/[maxIterations] - PLAN Phase
|
|
772
|
+
[Standard PLAN mode output]
|
|
773
|
+
|
|
774
|
+
---
|
|
775
|
+
## Iteration 1/[maxIterations] - ACT Phase
|
|
776
|
+
[Standard ACT mode output]
|
|
777
|
+
|
|
778
|
+
---
|
|
779
|
+
## Iteration 1/[maxIterations] - EVAL Phase
|
|
780
|
+
[Standard EVAL mode output]
|
|
781
|
+
|
|
782
|
+
Issues Found:
|
|
783
|
+
- Critical: [N]
|
|
784
|
+
- High: [N] <- λ°λ³΅ νμ (if Critical > 0 OR High > 0)
|
|
785
|
+
- Medium: [N]
|
|
786
|
+
- Low: [N]
|
|
787
|
+
|
|
788
|
+
[If continue iteration: proceed to next iteration]
|
|
789
|
+
[If success: display completion format]
|
|
790
|
+
[If max iterations: display failure format]
|
|
791
|
+
```
|
|
792
|
+
|
|
793
|
+
**Success Completion Format:**
|
|
794
|
+
```
|
|
795
|
+
---
|
|
796
|
+
# Mode: AUTO - COMPLETED
|
|
797
|
+
|
|
798
|
+
Task completed successfully!
|
|
799
|
+
Final Stats:
|
|
800
|
+
- Iterations: [N]/[maxIterations]
|
|
801
|
+
- Critical: 0, High: 0
|
|
802
|
+
- Medium: [N], Low: [N]
|
|
803
|
+
|
|
804
|
+
Modified Files:
|
|
805
|
+
- [file1]
|
|
806
|
+
- [file2]
|
|
807
|
+
```
|
|
808
|
+
|
|
809
|
+
**Failure (Max Iterations) Format:**
|
|
810
|
+
```
|
|
811
|
+
---
|
|
812
|
+
# Mode: AUTO - MAX ITERATIONS REACHED
|
|
813
|
+
|
|
814
|
+
[maxIterations]ν μλνμ§λ§ μΌλΆ μ΄μκ° λ¨μμμ΅λλ€.
|
|
815
|
+
|
|
816
|
+
Remaining Issues:
|
|
817
|
+
- [CRITICAL] [Issue description]
|
|
818
|
+
- [HIGH] [Issue description]
|
|
819
|
+
|
|
820
|
+
μλν μ κ·Ό:
|
|
821
|
+
- Iteration 1: [approach]
|
|
822
|
+
- Iteration 2: [approach]
|
|
823
|
+
- Iteration 3: [approach]
|
|
824
|
+
|
|
825
|
+
---
|
|
826
|
+
# Mode: PLAN
|
|
827
|
+
```
|
|
828
|
+
|
|
829
|
+
**When to use AUTO:**
|
|
830
|
+
- Complex features requiring multiple refinement cycles
|
|
831
|
+
- Tasks where iterative improvement is expected
|
|
832
|
+
- When you want hands-off development until quality is achieved
|
|
833
|
+
- Production-critical code requiring thorough quality assurance
|
|
834
|
+
- Large implementations that benefit from systematic iteration
|
|
835
|
+
|
|
836
|
+
**When to use manual workflow instead:**
|
|
837
|
+
- Simple, single-step implementations
|
|
838
|
+
- When you want fine-grained control over each phase
|
|
839
|
+
- Exploratory development where direction may change
|
|
840
|
+
- Time-sensitive tasks that shouldn't iterate
|
|
841
|
+
- When specific phase customization is needed
|
|
842
|
+
|
|
843
|
+
**AUTO vs Manual Comparison:**
|
|
844
|
+
|
|
845
|
+
| Aspect | AUTO Mode | Manual (PLAN/ACT/EVAL) |
|
|
846
|
+
|--------|-----------|------------------------|
|
|
847
|
+
| User intervention | Minimal (start only) | Required for each phase |
|
|
848
|
+
| Iteration control | Automatic | User-controlled |
|
|
849
|
+
| Best for | Complex, iterative tasks | Simple or exploratory tasks |
|
|
850
|
+
| Quality guarantee | Enforced (exit conditions) | User judgment |
|
|
851
|
+
| Time efficiency | Optimized for quality | Optimized for control |
|
|
852
|
+
|
|
853
|
+
**π΄ Required:**
|
|
854
|
+
- All PLAN phases must follow the Primary Developer Agent's workflow framework
|
|
855
|
+
- All ACT phases must follow the Primary Developer Agent's code quality checklist
|
|
856
|
+
- All EVAL phases must follow the Code Reviewer Agent's evaluation framework
|
|
857
|
+
- Respond in the language specified in the agent's communication.language setting
|
|
858
|
+
- Continue iterating automatically until exit conditions are met (Critical = 0 AND High = 0)
|
|
859
|
+
- Transition to PLAN mode with remaining issues when max iterations reached
|
|
860
|
+
|
|
861
|
+
**Verification:**
|
|
862
|
+
- Mode indicator `# Mode: AUTO` should be first line at start
|
|
863
|
+
- Task description and max iterations should be displayed in start header
|
|
864
|
+
- Each iteration should display phase indicator: `## Iteration N/[maxIterations] - [Phase] Phase`
|
|
865
|
+
- EVAL phase must include issues summary with Critical, High, Medium, Low counts
|
|
866
|
+
- Success completion should display `# Mode: AUTO - COMPLETED`
|
|
867
|
+
- Failure completion should display `# Mode: AUTO - MAX ITERATIONS REACHED`
|
|
868
|
+
- Exit conditions should be evaluated after each EVAL phase
|
|
869
|
+
- Agent activation rules from PLAN, ACT, EVAL modes apply to respective phases within AUTO mode
|
|
870
|
+
|
|
871
|
+
---
|
|
872
|
+
|
|
675
873
|
### Communication Rules
|
|
676
874
|
|
|
677
875
|
- **Respond in the language specified in the agent's communication.language setting**
|