codingbuddy-rules 2.1.0 → 2.2.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 (34) hide show
  1. package/.ai-rules/adapters/antigravity.md +83 -3
  2. package/.ai-rules/adapters/claude-code.md +139 -13
  3. package/.ai-rules/adapters/codex.md +57 -0
  4. package/.ai-rules/adapters/cursor.md +56 -0
  5. package/.ai-rules/adapters/kiro.md +70 -4
  6. package/.ai-rules/adapters/opencode-skills.md +16 -16
  7. package/.ai-rules/adapters/opencode.md +107 -16
  8. package/.ai-rules/adapters/q.md +61 -4
  9. package/.ai-rules/agents/accessibility-specialist.json +1 -1
  10. package/.ai-rules/agents/act-mode.json +34 -34
  11. package/.ai-rules/agents/agent-architect.json +2 -2
  12. package/.ai-rules/agents/architecture-specialist.json +1 -1
  13. package/.ai-rules/agents/backend-developer.json +1 -1
  14. package/.ai-rules/agents/code-quality-specialist.json +1 -1
  15. package/.ai-rules/agents/code-reviewer.json +70 -0
  16. package/.ai-rules/agents/data-engineer.json +1 -1
  17. package/.ai-rules/agents/devops-engineer.json +6 -6
  18. package/.ai-rules/agents/documentation-specialist.json +1 -1
  19. package/.ai-rules/agents/eval-mode.json +52 -33
  20. package/.ai-rules/agents/frontend-developer.json +1 -1
  21. package/.ai-rules/agents/i18n-specialist.json +1 -1
  22. package/.ai-rules/agents/mobile-developer.json +1 -1
  23. package/.ai-rules/agents/performance-specialist.json +1 -1
  24. package/.ai-rules/agents/plan-mode.json +25 -25
  25. package/.ai-rules/agents/security-specialist.json +1 -1
  26. package/.ai-rules/agents/seo-specialist.json +1 -1
  27. package/.ai-rules/agents/solution-architect.json +2 -2
  28. package/.ai-rules/agents/technical-planner.json +2 -2
  29. package/.ai-rules/agents/test-strategy-specialist.json +1 -1
  30. package/.ai-rules/agents/tooling-engineer.json +18 -0
  31. package/.ai-rules/agents/ui-ux-designer.json +1 -1
  32. package/.ai-rules/checklists/conventions.json +201 -0
  33. package/.ai-rules/rules/core.md +200 -2
  34. package/package.json +1 -1
@@ -2,11 +2,12 @@
2
2
 
3
3
  ### Work Modes
4
4
 
5
- You have three modes of operation:
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
- **Key Point:** EVAL is opt-in, not automatic. User must explicitly request evaluation.
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**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codingbuddy-rules",
3
- "version": "2.1.0",
3
+ "version": "2.2.1",
4
4
  "description": "AI coding rules for consistent practices across AI assistants",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",