agy-superpowers 5.1.5 → 5.1.6
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/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Require user confirmation before fixing any bug or error
|
|
3
|
+
alwaysApply: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Debug Confirmation Policy
|
|
7
|
+
|
|
8
|
+
<HARD-GATE>
|
|
9
|
+
When you identify a bug, error, test failure, or any code that needs fixing —
|
|
10
|
+
whether the user asked you to fix it, or you discovered it yourself —
|
|
11
|
+
you MUST present your analysis and get user confirmation BEFORE writing any fix.
|
|
12
|
+
|
|
13
|
+
## Required Analysis Report
|
|
14
|
+
|
|
15
|
+
Present the following to the user:
|
|
16
|
+
|
|
17
|
+
1. **Root Cause** — What is causing the issue and why
|
|
18
|
+
2. **Evidence** — Error messages, stack traces, or code references that support your analysis
|
|
19
|
+
3. **Proposed Fix** — Specific files and changes you plan to make
|
|
20
|
+
4. **Risk Assessment** — What else could be affected by this fix
|
|
21
|
+
|
|
22
|
+
Then ask: "Bạn đồng ý với phân tích và hướng fix này không?"
|
|
23
|
+
|
|
24
|
+
## Wait for Confirmation
|
|
25
|
+
|
|
26
|
+
- If user confirms → proceed with implementation
|
|
27
|
+
- If user requests changes → revise analysis and re-present
|
|
28
|
+
- If user rejects → stop and ask for guidance
|
|
29
|
+
|
|
30
|
+
## DO NOT:
|
|
31
|
+
- Write fix code before presenting analysis
|
|
32
|
+
- Combine analysis + fix in one step
|
|
33
|
+
- Skip this gate because the fix "seems obvious"
|
|
34
|
+
</HARD-GATE>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Match response language to user's language
|
|
3
|
+
alwaysApply: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Language Matching Policy
|
|
7
|
+
|
|
8
|
+
<HARD-GATE>
|
|
9
|
+
You MUST respond in the same language the user is writing in.
|
|
10
|
+
|
|
11
|
+
## Rules
|
|
12
|
+
|
|
13
|
+
1. **Detect** — Identify the language of the user's most recent message.
|
|
14
|
+
2. **Mirror** — Use that language for ALL natural-language content: explanations, descriptions, questions, analysis, summaries, and conversation.
|
|
15
|
+
3. **Switch dynamically** — If the user switches language mid-conversation, switch immediately from your next response onward.
|
|
16
|
+
|
|
17
|
+
## English Exceptions
|
|
18
|
+
|
|
19
|
+
The following ALWAYS stay in English regardless of user language:
|
|
20
|
+
|
|
21
|
+
- Code blocks, variable names, function names, class names
|
|
22
|
+
- Commit messages
|
|
23
|
+
- File names and file paths
|
|
24
|
+
- Branch names
|
|
25
|
+
- Technical terms with no widely-used equivalent (e.g., "refactor", "deploy", "middleware", "webhook")
|
|
26
|
+
|
|
27
|
+
## DO NOT:
|
|
28
|
+
- Respond in English when the user writes in another language
|
|
29
|
+
- Mix languages in a single response (except for English exceptions above)
|
|
30
|
+
- Default to English because "it's a technical topic"
|
|
31
|
+
- Ignore language switches mid-conversation
|
|
32
|
+
</HARD-GATE>
|
|
@@ -167,6 +167,23 @@ You MUST complete each phase before proceeding to the next.
|
|
|
167
167
|
- Ask for help
|
|
168
168
|
- Research more
|
|
169
169
|
|
|
170
|
+
### Confirmation Gate: Present Analysis Before Fixing
|
|
171
|
+
|
|
172
|
+
<HARD-GATE>
|
|
173
|
+
You MUST present your complete analysis to the user and get explicit confirmation
|
|
174
|
+
BEFORE proceeding to Phase 4 (Implementation).
|
|
175
|
+
|
|
176
|
+
**Present a summary containing:**
|
|
177
|
+
1. **Root Cause** — from Phase 1
|
|
178
|
+
2. **Pattern Analysis** — key differences found in Phase 2
|
|
179
|
+
3. **Hypothesis** — your confirmed theory from Phase 3
|
|
180
|
+
4. **Proposed Fix** — what you plan to change (files, functions, approach)
|
|
181
|
+
|
|
182
|
+
Then ask: "Bạn đồng ý với phân tích và hướng fix này không?"
|
|
183
|
+
|
|
184
|
+
Wait for user confirmation. Do NOT proceed to Phase 4 until confirmed.
|
|
185
|
+
</HARD-GATE>
|
|
186
|
+
|
|
170
187
|
### Phase 4: Implementation
|
|
171
188
|
|
|
172
189
|
**Fix the root cause, not the symptom:**
|