You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add multi-language keyword support and mandatory mode detection rules
Add multi-language support for PLAN/ACT/EVAL keywords and mandatory mode detection rules across all adapters
- Add 4 language keyword support (Korean, Japanese, Chinese, Spanish)
- Add MANDATORY keyword mode detection section to all AI adapter rule files
- Update parse_mode tool description with MANDATORY enforcement rules
- Implement multi-language keyword parsing logic with comprehensive tests
- Add multi-keyword detection and warning functionality
close#122
Copy file name to clipboardExpand all lines: .antigravity/rules/instructions.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,36 @@ Available specialist agents:
87
87
88
88
See agent details in [packages/rules/.ai-rules/agents/README.md](../../packages/rules/.ai-rules/agents/README.md)
89
89
90
+
## 🔴 MANDATORY: Keyword Mode Detection
91
+
92
+
<CODINGBUDDY_CRITICAL_RULE>
93
+
94
+
**When user message starts with PLAN, ACT, or EVAL keyword (or localized: Korean 계획/실행/평가, Japanese 計画/実行/評価, Chinese 计划/执行/评估, Spanish PLANIFICAR/ACTUAR/EVALUAR):**
95
+
96
+
1.**IMMEDIATELY** follow the mode-specific rules from `packages/rules/.ai-rules/rules/core.md`
97
+
2. Apply the mode's workflow **EXACTLY**
98
+
3. Do NOT proceed with your own interpretation
99
+
100
+
**This is MANDATORY, not optional.**
101
+
102
+
Failure to follow mode rules when these keywords are present will result in:
Copy file name to clipboardExpand all lines: .claude/rules/custom-instructions.md
+27-7Lines changed: 27 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,15 +53,35 @@ Follow the common rules defined in `packages/rules/.ai-rules/` for consistency a
53
53
54
54
See [packages/rules/.ai-rules/agents/README.md](../../packages/rules/.ai-rules/agents/README.md) for details.
55
55
56
-
## Keyword Invocation
56
+
## 🔴 MANDATORY: Keyword Mode Detection
57
57
58
-
사용자 프롬프트가 `PLAN`, `ACT`, `EVAL` 키워드로 시작하면:
59
-
1.`parse_mode` MCP 도구를 호출하여 모드와 규칙을 가져옴
60
-
2. 반환된 `instructions`를 따라 작업 수행
61
-
3. 반환된 `rules`를 컨텍스트로 활용
62
-
4.`warnings`가 있으면 사용자에게 안내
58
+
<CODINGBUDDY_CRITICAL_RULE>
63
59
64
-
예시: `PLAN 인증 기능 설계` → parse_mode 호출 → PLAN 모드로 작업
60
+
**When user message starts with PLAN, ACT, or EVAL keyword (or localized: Korean 계획/실행/평가, Japanese 計画/実行/評価, Chinese 计划/执行/评估, Spanish PLANIFICAR/ACTUAR/EVALUAR):**
61
+
62
+
1.**IMMEDIATELY** call `mcp__codingbuddy__parse_mode` with the user's prompt
63
+
2. Follow the returned `instructions`**EXACTLY**
64
+
3. Apply the returned `rules` as context
65
+
4. If `warnings` are present, inform the user
66
+
67
+
**This is MANDATORY, not optional.**
68
+
69
+
Failure to call `parse_mode` when these keywords are present will result in:
Copy file name to clipboardExpand all lines: .codex/rules/system-prompt.md
+27-7Lines changed: 27 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,15 +117,35 @@ For complete agent documentation, see [packages/rules/.ai-rules/agents/README.md
117
117
118
118
---
119
119
120
-
## Keyword Invocation
120
+
## 🔴 MANDATORY: Keyword Mode Detection
121
121
122
-
When user prompt starts with `PLAN`, `ACT`, or `EVAL`:
123
-
1. Call `parse_mode` MCP tool with the full prompt
124
-
2. Follow returned `instructions` for the detected mode
125
-
3. Use returned `rules` as context for the task
126
-
4. If `warnings` exist, inform the user
122
+
<CODINGBUDDY_CRITICAL_RULE>
127
123
128
-
Example: `PLAN design auth feature` → call parse_mode → work in PLAN mode
124
+
**When user message starts with PLAN, ACT, or EVAL keyword (or localized: Korean 계획/실행/평가, Japanese 計画/実行/評価, Chinese 计划/执行/评估, Spanish PLANIFICAR/ACTUAR/EVALUAR):**
125
+
126
+
1.**IMMEDIATELY** call `parse_mode` MCP tool with the user's prompt
127
+
2. Follow the returned `instructions`**EXACTLY**
128
+
3. Apply the returned `rules` as context
129
+
4. If `warnings` are present, inform the user
130
+
131
+
**This is MANDATORY, not optional.**
132
+
133
+
Failure to call `parse_mode` when these keywords are present will result in:
Copy file name to clipboardExpand all lines: .cursor/rules/imports.mdc
+27-7Lines changed: 27 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -123,15 +123,35 @@ For complete agent documentation, see [.ai-rules/agents/README.md](../../.ai-rul
123
123
124
124
---
125
125
126
-
## Keyword Invocation
126
+
## 🔴 MANDATORY: Keyword Mode Detection
127
127
128
-
When user prompt starts with `PLAN`, `ACT`, or `EVAL`:
129
-
1. Call `parse_mode` MCP tool with the full prompt
130
-
2. Follow returned `instructions` for the detected mode
131
-
3. Use returned `rules` as context for the task
132
-
4. If `warnings` exist, inform the user
128
+
<CODINGBUDDY_CRITICAL_RULE>
133
129
134
-
Example: `PLAN design auth feature` → call parse_mode → work in PLAN mode
130
+
**When user message starts with PLAN, ACT, or EVAL keyword (or localized: Korean 계획/실행/평가, Japanese 計画/実行/評価, Chinese 计划/执行/评估, Spanish PLANIFICAR/ACTUAR/EVALUAR):**
131
+
132
+
1. **IMMEDIATELY** call `parse_mode` MCP tool with the user's prompt
133
+
2. Follow the returned `instructions` **EXACTLY**
134
+
3. Apply the returned `rules` as context
135
+
4. If `warnings` are present, inform the user
136
+
137
+
**This is MANDATORY, not optional.**
138
+
139
+
Failure to call `parse_mode` when these keywords are present will result in:
Copy file name to clipboardExpand all lines: .kiro/rules/guidelines.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,36 @@ See `packages/rules/.ai-rules/agents/`:
36
36
- Accessibility (WCAG 2.1 AA compliance)
37
37
- SEO, Architecture, Test Strategy, Design System, Documentation, Code Quality, DevOps
38
38
39
+
## 🔴 MANDATORY: Keyword Mode Detection
40
+
41
+
<CODINGBUDDY_CRITICAL_RULE>
42
+
43
+
**When user message starts with PLAN, ACT, or EVAL keyword (or localized: Korean 계획/실행/평가, Japanese 計画/実行/評価, Chinese 计划/执行/评估, Spanish PLANIFICAR/ACTUAR/EVALUAR):**
44
+
45
+
1.**IMMEDIATELY** follow the mode-specific rules from `packages/rules/.ai-rules/rules/core.md`
46
+
2. Apply the mode's workflow **EXACTLY**
47
+
3. Do NOT proceed with your own interpretation
48
+
49
+
**This is MANDATORY, not optional.**
50
+
51
+
Failure to follow mode rules when these keywords are present will result in:
Copy file name to clipboardExpand all lines: .q/rules/customizations.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,36 @@ Refer to `packages/rules/.ai-rules/agents/*.json`:
33
33
- Performance optimization
34
34
- Accessibility guidelines
35
35
36
+
## 🔴 MANDATORY: Keyword Mode Detection
37
+
38
+
<CODINGBUDDY_CRITICAL_RULE>
39
+
40
+
**When user message starts with PLAN, ACT, or EVAL keyword (or localized: Korean 계획/실행/평가, Japanese 計画/実行/評価, Chinese 计划/执行/评估, Spanish PLANIFICAR/ACTUAR/EVALUAR):**
41
+
42
+
1.**IMMEDIATELY** follow the mode-specific rules from `packages/rules/.ai-rules/rules/core.md`
43
+
2. Apply the mode's workflow **EXACTLY**
44
+
3. Do NOT proceed with your own interpretation
45
+
46
+
**This is MANDATORY, not optional.**
47
+
48
+
Failure to follow mode rules when these keywords are present will result in:
0 commit comments