claudify-agent 1.0.1 → 1.0.2

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 (47) hide show
  1. package/.claude/QUICK-REFERENCE.md +213 -213
  2. package/.claude/cost-dashboard.md +162 -162
  3. package/.claude/docs/COST-OPTIMIZATION.md +402 -403
  4. package/.claude/docs/MCP-INTEGRATION-GUIDE.md +348 -348
  5. package/.claude/docs/PLAN-MODE-OPTIMIZATION.md +835 -836
  6. package/.claude/hooks/auto-learning-review.ts +200 -195
  7. package/.claude/hooks/auto-lint-fix.ts +60 -104
  8. package/.claude/hooks/auto-security-review.ts +314 -354
  9. package/.claude/hooks/auto-validate.ts +249 -348
  10. package/.claude/hooks/lib/claude-hook.ts +168 -0
  11. package/.claude/hooks/plan-quality-tracker.ts +598 -719
  12. package/.claude/rules/anti-patterns.md +22 -22
  13. package/.claude/rules/context-tier-1.md +41 -41
  14. package/.claude/rules/context-tier-2.md +285 -285
  15. package/.claude/rules/general.md +25 -25
  16. package/.claude/rules/mcp-auto-use.md +46 -46
  17. package/.claude/rules/parallel-exploration-auto.md +30 -31
  18. package/.claude/rules/plan-mode-execution.md +289 -289
  19. package/.claude/rules/plan-mode-research.md +34 -34
  20. package/.claude/rules/plan-mode-structure.md +166 -166
  21. package/.claude/rules/plan-mode-validation.md +129 -130
  22. package/.claude/rules/security-critical.md +19 -19
  23. package/.claude/rules/tool-auto-selection.md +45 -45
  24. package/.claude/rules/tool-strategy.md +22 -22
  25. package/.claude/scripts/security-scan.js +1 -1
  26. package/.claude/security-dashboard.md +142 -142
  27. package/.claude/settings.json +50 -0
  28. package/.claude/skills/debug-optimizer/SKILL.md +420 -399
  29. package/.claude/skills/learning-loop/SKILL.md +313 -308
  30. package/.claude/skills/mcp-mastery/SKILL.md +218 -214
  31. package/.claude/skills/nextjs-guide/SKILL.md +687 -687
  32. package/.claude/skills/parallel-exploration/SKILL.md +197 -193
  33. package/.claude/skills/plan-mode-mastery/SKILL.md +268 -263
  34. package/.claude/skills/python-guide/SKILL.md +822 -822
  35. package/.claude/skills/react-guide/SKILL.md +762 -762
  36. package/.claude/skills/{security.md → security-guide/SKILL.md} +10 -0
  37. package/.claude/skills/solidity-guide/SKILL.md +5 -0
  38. package/.claude/skills/tool-selection/SKILL.md +433 -428
  39. package/.claude/skills/vite-guide/SKILL.md +445 -445
  40. package/CLAUDE.md +1 -0
  41. package/README.md +74 -35
  42. package/README.vi.md +106 -0
  43. package/bin/cli.js +13 -4
  44. package/package.json +9 -1
  45. package/.claude/skills/debug-optimizer.md +0 -12
  46. package/.claude/skills/nextjs.md +0 -13
  47. package/.claude/skills/react.md +0 -12
@@ -1,308 +1,313 @@
1
- # SKILL.md: Learning Loop
2
-
3
- ## Description
4
- Analyzes plan metrics to identify patterns, detect repeated mistakes, and suggest continuous improvements based on historical execution data.
5
-
6
- ## When to Use
7
- - Weekly review of plan performance
8
- - After detecting repeated failures
9
- - When plan accuracy drops below threshold
10
- - Proactive optimization of workflows
11
-
12
- ## Capabilities
13
- - Pattern recognition from metrics
14
- - Anti-pattern detection
15
- - Repeated mistake identification
16
- - Trend analysis
17
- - Improvement recommendations
18
- - Rule update suggestions
19
-
20
- ## Commands
21
- /learning-loop-analyze: Full pattern analysis
22
- /learning-loop-weekly: Weekly performance review
23
- /learning-loop-suggest: Generate improvement suggestions
24
- /learning-loop-patterns: Show detected anti-patterns
25
-
26
- ## Workflows
27
-
28
- ### Weekly Analysis Workflow
29
-
30
- 1. **Load Metrics** (30s)
31
- ```bash
32
- Read: .cursor/plan-metrics.json
33
- ```
34
- - Last 10-20 plan executions
35
- - Extract key metrics
36
-
37
- 2. **Pattern Detection** (60s)
38
- - Run anti-pattern detection rules
39
- - Identify repeated mistakes
40
- - Calculate trends
41
-
42
- 3. **Analysis Report** (30s)
43
- ```markdown
44
- ## Weekly Learning Report
45
-
46
- ### Performance Summary
47
- - Avg Accuracy: X% (trend: ↑/↓/→)
48
- - Avg Iterations: X (target: <2)
49
- - Tool Efficiency: X% (target: >70%)
50
-
51
- ### Detected Anti-Patterns
52
- 1. [SEVERITY] Pattern name
53
- - Suggestion: ...
54
-
55
- ### Repeated Mistakes
56
- - Mistake 1 (count: X)
57
- - Mistake 2 (count: X)
58
-
59
- ### Top 3 Improvements
60
- 1. [Action item]
61
- 2. [Action item]
62
- 3. [Action item]
63
-
64
- ### Rule Update Suggestions
65
- - Suggest updating: .cursor/rules/[file]
66
- - Reason: [pattern detected]
67
- ```
68
-
69
- 4. **Action Items** (30s)
70
- - Prioritize top 3 improvements
71
- - Create tasks for rule updates
72
- - Schedule follow-up review
73
-
74
- ### Anti-Pattern Detection
75
-
76
- The skill detects these anti-patterns automatically:
77
-
78
- 1. **Over-Engineering** (High)
79
- - Using expensive tools when cheap alternatives work
80
- - Detection: avg tool efficiency < 50% over 3 plans
81
- - Fix: Follow tool escalation protocol
82
-
83
- 2. **Planning Without Research** (Critical)
84
- - Creating plans without SemanticSearch
85
- - Detection: No SemanticSearch in last 3 plans
86
- - Fix: Always research before planning
87
-
88
- 3. **Repeated Execution Failures** (Critical)
89
- - Multiple consecutive low-accuracy plans
90
- - Detection: 2+ plans with <60% accuracy
91
- - Fix: Improve validation process
92
-
93
- 4. **MCP Overuse** (Medium)
94
- - Using MCP tools unnecessarily
95
- - Detection: High MCP usage + low accuracy
96
- - Fix: Use MCP only when essential
97
-
98
- 5. **Skipping Validation** (High)
99
- - Not running ReadLints/tests
100
- - Detection: No validation tools in 3 plans
101
- - Fix: Auto-validate after changes
102
-
103
- 6. **Context Bloat** (Medium)
104
- - Loading too much context
105
- - Detection: Low efficiency + high iterations
106
- - Fix: Apply tiered injection, minimalism
107
-
108
- ### Trend Analysis
109
-
110
- Analyzes performance trends:
111
-
112
- ```typescript
113
- if (secondHalfAvg > firstHalfAvg + 5) {
114
- trend = "improving";
115
- // Reinforce what's working
116
- } else if (secondHalfAvg < firstHalfAvg - 5) {
117
- trend = "declining";
118
- // Investigate root causes
119
- } else {
120
- trend = "stable";
121
- // Look for optimization opportunities
122
- }
123
- ```
124
-
125
- ## Examples
126
-
127
- ### Example 1: Weekly Review
128
-
129
- User: "/learning-loop-weekly"
130
-
131
- Agent analyzes last 10 plans:
132
-
133
- ```markdown
134
- ## Weekly Learning Report (Mar 23-30, 2026)
135
-
136
- ### Performance Summary
137
- - Avg Accuracy: 82.5% (↑ +5.2% from last week)
138
- - Avg Iterations: 1.8 (↓ -0.5, improving)
139
- - Tool Efficiency: 75.0% (→ stable)
140
- - Avg Parallel Subagents: 2.3
141
-
142
- ### Wins This Week
143
- ✅ Accuracy improved above 80% threshold
144
- ✅ Iteration count decreasing
145
- ✅ MCP usage correlated with success
146
-
147
- ### Detected Anti-Patterns
148
- 1. [MEDIUM] MCP Overuse (2 occurrences)
149
- - Suggestion: Use MCP tools only when essential
150
-
151
- ### Repeated Mistakes
152
- - None detected this week 🎉
153
-
154
- ### Top 3 Improvements
155
- 1. Continue current research practices
156
- 2. Reduce MCP usage for simple tasks
157
- 3. Document successful patterns
158
-
159
- ### Rule Updates
160
- No updates needed this week
161
- ```
162
-
163
- ### Example 2: Pattern Detection
164
-
165
- User: "/learning-loop-patterns"
166
-
167
- Agent detects patterns:
168
-
169
- ```markdown
170
- ## Detected Anti-Patterns
171
-
172
- ### 1. [CRITICAL] Planning Without Research
173
- **Occurrences**: 3 times in last 5 plans
174
- **Impact**: Avg accuracy 58% (vs 82% when researched)
175
- **Suggestion**: Always use SemanticSearch before planning
176
-
177
- ### 2. [HIGH] Skipping Validation
178
- **Occurrences**: 4 times in last 5 plans
179
- **Impact**: 75% of unvalidated plans had lints
180
- **Suggestion**: Enable auto-validate hook
181
-
182
- ### Recommended Actions
183
- 1. Add rule: "Always research before planning"
184
- 2. Enable auto-validate in hooks.config.json
185
- 3. Create checklist for plan creation
186
- ```
187
-
188
- ### Example 3: Improvement Suggestions
189
-
190
- User: "/learning-loop-suggest"
191
-
192
- Agent generates suggestions:
193
-
194
- ```markdown
195
- ## Improvement Suggestions
196
-
197
- ### Immediate (This Week)
198
- 1. **Add pre-plan research step**
199
- - Time cost: +2 min per plan
200
- - Benefit: +20% accuracy improvement
201
-
202
- 2. **Enable automatic validation**
203
- - Already configured, just use it
204
- - Benefit: Catch 100% of lint issues
205
-
206
- 3. **Reduce MCP tool usage**
207
- - Current: 4.2 MCP tools/plan
208
- - Target: 2.0 MCP tools/plan
209
- - Savings: ~30% token cost
210
-
211
- ### Medium-term (This Month)
212
- 1. Create validation checklist
213
- 2. Document successful patterns
214
- 3. Update anti-pattern detection rules
215
-
216
- ### Long-term (This Quarter)
217
- 1. Integrate with CI/CD metrics
218
- 2. A/B test different workflows
219
- 3. Build pattern recognition dashboard
220
- ```
221
-
222
- ## Best Practices
223
-
224
- ### 1. Review Weekly
225
- - Schedule fixed time (e.g., Friday 4pm)
226
- - Review last 10 plans
227
- - Identify top 3 improvements
228
- - Update rules if needed
229
-
230
- ### 2. Act on Patterns
231
- - Don't just detect - fix
232
- - Prioritize critical patterns first
233
- - Track improvement over time
234
-
235
- ### 3. Keep Rules Minimal
236
- - Only add rules for repeated patterns
237
- - Keep rules under 20 lines
238
- - Use references over content
239
-
240
- ### 4. Measure Impact
241
- - Before/after comparisons
242
- - Track metric changes
243
- - Adjust based on data
244
-
245
- ## Anti-Patterns
246
-
247
- ### ❌ Ignoring Detected Patterns
248
- Bad: Detect patterns but don't act
249
- Good: Create action items, track fixes
250
-
251
- ### ❌ Over-Analyzing
252
- Bad: Analyze every single plan
253
- Good: Weekly batch analysis
254
-
255
- ### ❌ Too Many Rules
256
- Bad: Add rule for every mistake
257
- Good: Only for repeated patterns (3+ occurrences)
258
-
259
- ### ❌ No Follow-up
260
- Bad: Generate suggestions, forget them
261
- Good: Schedule follow-up review
262
-
263
- ## Troubleshooting
264
-
265
- ### Not Enough Data
266
- **Problem**: Less than 3 plans to analyze
267
-
268
- **Solution**:
269
- - Wait for more data
270
- - Run analysis after 10+ plans
271
- - Use qualitative feedback initially
272
-
273
- ### False Positive Patterns
274
- **Problem**: Pattern detected but not actually an issue
275
-
276
- **Solution**:
277
- - Adjust detection thresholds
278
- - Add exception rules
279
- - Manual review before acting
280
-
281
- ### No Patterns Detected
282
- **Problem**: Analysis shows no patterns
283
-
284
- **Solution**:
285
- - Check if thresholds too strict
286
- - Look for subtle patterns
287
- - Consider qualitative feedback
288
-
289
- ## Metrics Reference
290
-
291
- ### Key Metrics Tracked
292
- - `plan_accuracy`: % of plan followed correctly
293
- - `iteration_count`: Number of /grind loops
294
- - `tool_efficiency`: Cost-weighted tool score
295
- - `parallel_subagents`: Number of parallel explorations
296
- - `mcp_usage`: MCP server utilization
297
- - `cost_estimate`: Estimated token consumption
298
-
299
- ### Thresholds
300
- - **Excellent**: Accuracy >90%, Iterations <2, Efficiency >80%
301
- - **Good**: Accuracy 70-90%, Iterations 2-3, Efficiency 60-80%
302
- - **Needs Work**: Accuracy <70%, Iterations >3, Efficiency <60%
303
-
304
- ## Related Documentation
305
- - `AGENT-INSTRUCTION-BEST-PRACTICES.md` - Core research
306
- - `.cursor/hooks.config.json` - Configuration
307
- - `.cursor/plan-metrics.json` - Historical data
308
- - `.cursor/docs/PLAN-MODE-OPTIMIZATION.md` - Plan mode guide
1
+ ---
2
+ name: learning-loop
3
+ description: Analyze plan metrics in .claude/plan-metrics.json to detect anti-patterns and repeated mistakes and suggest rule improvements. Use for weekly reviews or when plan accuracy drops.
4
+ ---
5
+
6
+ # SKILL.md: Learning Loop
7
+
8
+ ## Description
9
+ Analyzes plan metrics to identify patterns, detect repeated mistakes, and suggest continuous improvements based on historical execution data.
10
+
11
+ ## When to Use
12
+ - Weekly review of plan performance
13
+ - After detecting repeated failures
14
+ - When plan accuracy drops below threshold
15
+ - Proactive optimization of workflows
16
+
17
+ ## Capabilities
18
+ - Pattern recognition from metrics
19
+ - Anti-pattern detection
20
+ - Repeated mistake identification
21
+ - Trend analysis
22
+ - Improvement recommendations
23
+ - Rule update suggestions
24
+
25
+ ## Commands
26
+ /learning-loop-analyze: Full pattern analysis
27
+ /learning-loop-weekly: Weekly performance review
28
+ /learning-loop-suggest: Generate improvement suggestions
29
+ /learning-loop-patterns: Show detected anti-patterns
30
+
31
+ ## Workflows
32
+
33
+ ### Weekly Analysis Workflow
34
+
35
+ 1. **Load Metrics** (30s)
36
+ ```bash
37
+ Read: .claude/plan-metrics.json
38
+ ```
39
+ - Last 10-20 plan executions
40
+ - Extract key metrics
41
+
42
+ 2. **Pattern Detection** (60s)
43
+ - Run anti-pattern detection rules
44
+ - Identify repeated mistakes
45
+ - Calculate trends
46
+
47
+ 3. **Analysis Report** (30s)
48
+ ```markdown
49
+ ## Weekly Learning Report
50
+
51
+ ### Performance Summary
52
+ - Avg Accuracy: X% (trend: ↑/↓/→)
53
+ - Avg Iterations: X (target: <2)
54
+ - Tool Efficiency: X% (target: >70%)
55
+
56
+ ### Detected Anti-Patterns
57
+ 1. [SEVERITY] Pattern name
58
+ - Suggestion: ...
59
+
60
+ ### Repeated Mistakes
61
+ - Mistake 1 (count: X)
62
+ - Mistake 2 (count: X)
63
+
64
+ ### Top 3 Improvements
65
+ 1. [Action item]
66
+ 2. [Action item]
67
+ 3. [Action item]
68
+
69
+ ### Rule Update Suggestions
70
+ - Suggest updating: .claude/rules/[file]
71
+ - Reason: [pattern detected]
72
+ ```
73
+
74
+ 4. **Action Items** (30s)
75
+ - Prioritize top 3 improvements
76
+ - Create tasks for rule updates
77
+ - Schedule follow-up review
78
+
79
+ ### Anti-Pattern Detection
80
+
81
+ The skill detects these anti-patterns automatically:
82
+
83
+ 1. **Over-Engineering** (High)
84
+ - Using expensive tools when cheap alternatives work
85
+ - Detection: avg tool efficiency < 50% over 3 plans
86
+ - Fix: Follow tool escalation protocol
87
+
88
+ 2. **Planning Without Research** (Critical)
89
+ - Creating plans without Explore (quick)
90
+ - Detection: No Explore (quick) in last 3 plans
91
+ - Fix: Always research before planning
92
+
93
+ 3. **Repeated Execution Failures** (Critical)
94
+ - Multiple consecutive low-accuracy plans
95
+ - Detection: 2+ plans with <60% accuracy
96
+ - Fix: Improve validation process
97
+
98
+ 4. **MCP Overuse** (Medium)
99
+ - Using MCP tools unnecessarily
100
+ - Detection: High MCP usage + low accuracy
101
+ - Fix: Use MCP only when essential
102
+
103
+ 5. **Skipping Validation** (High)
104
+ - Not running Lint check/tests
105
+ - Detection: No validation tools in 3 plans
106
+ - Fix: Auto-validate after changes
107
+
108
+ 6. **Context Bloat** (Medium)
109
+ - Loading too much context
110
+ - Detection: Low efficiency + high iterations
111
+ - Fix: Apply tiered injection, minimalism
112
+
113
+ ### Trend Analysis
114
+
115
+ Analyzes performance trends:
116
+
117
+ ```typescript
118
+ if (secondHalfAvg > firstHalfAvg + 5) {
119
+ trend = "improving";
120
+ // Reinforce what's working
121
+ } else if (secondHalfAvg < firstHalfAvg - 5) {
122
+ trend = "declining";
123
+ // Investigate root causes
124
+ } else {
125
+ trend = "stable";
126
+ // Look for optimization opportunities
127
+ }
128
+ ```
129
+
130
+ ## Examples
131
+
132
+ ### Example 1: Weekly Review
133
+
134
+ User: "/learning-loop-weekly"
135
+
136
+ Agent analyzes last 10 plans:
137
+
138
+ ```markdown
139
+ ## Weekly Learning Report (Mar 23-30, 2026)
140
+
141
+ ### Performance Summary
142
+ - Avg Accuracy: 82.5% (↑ +5.2% from last week)
143
+ - Avg Iterations: 1.8 (↓ -0.5, improving)
144
+ - Tool Efficiency: 75.0% (→ stable)
145
+ - Avg Parallel Subagents: 2.3
146
+
147
+ ### Wins This Week
148
+ ✅ Accuracy improved above 80% threshold
149
+ ✅ Iteration count decreasing
150
+ ✅ MCP usage correlated with success
151
+
152
+ ### Detected Anti-Patterns
153
+ 1. [MEDIUM] MCP Overuse (2 occurrences)
154
+ - Suggestion: Use MCP tools only when essential
155
+
156
+ ### Repeated Mistakes
157
+ - None detected this week 🎉
158
+
159
+ ### Top 3 Improvements
160
+ 1. Continue current research practices
161
+ 2. Reduce MCP usage for simple tasks
162
+ 3. Document successful patterns
163
+
164
+ ### Rule Updates
165
+ No updates needed this week
166
+ ```
167
+
168
+ ### Example 2: Pattern Detection
169
+
170
+ User: "/learning-loop-patterns"
171
+
172
+ Agent detects patterns:
173
+
174
+ ```markdown
175
+ ## Detected Anti-Patterns
176
+
177
+ ### 1. [CRITICAL] Planning Without Research
178
+ **Occurrences**: 3 times in last 5 plans
179
+ **Impact**: Avg accuracy 58% (vs 82% when researched)
180
+ **Suggestion**: Always use Explore (quick) before planning
181
+
182
+ ### 2. [HIGH] Skipping Validation
183
+ **Occurrences**: 4 times in last 5 plans
184
+ **Impact**: 75% of unvalidated plans had lints
185
+ **Suggestion**: Enable auto-validate hook
186
+
187
+ ### Recommended Actions
188
+ 1. Add rule: "Always research before planning"
189
+ 2. Enable auto-validate in hooks.config.json
190
+ 3. Create checklist for plan creation
191
+ ```
192
+
193
+ ### Example 3: Improvement Suggestions
194
+
195
+ User: "/learning-loop-suggest"
196
+
197
+ Agent generates suggestions:
198
+
199
+ ```markdown
200
+ ## Improvement Suggestions
201
+
202
+ ### Immediate (This Week)
203
+ 1. **Add pre-plan research step**
204
+ - Time cost: +2 min per plan
205
+ - Benefit: +20% accuracy improvement
206
+
207
+ 2. **Enable automatic validation**
208
+ - Already configured, just use it
209
+ - Benefit: Catch 100% of lint issues
210
+
211
+ 3. **Reduce MCP tool usage**
212
+ - Current: 4.2 MCP tools/plan
213
+ - Target: 2.0 MCP tools/plan
214
+ - Savings: ~30% token cost
215
+
216
+ ### Medium-term (This Month)
217
+ 1. Create validation checklist
218
+ 2. Document successful patterns
219
+ 3. Update anti-pattern detection rules
220
+
221
+ ### Long-term (This Quarter)
222
+ 1. Integrate with CI/CD metrics
223
+ 2. A/B test different workflows
224
+ 3. Build pattern recognition dashboard
225
+ ```
226
+
227
+ ## Best Practices
228
+
229
+ ### 1. Review Weekly
230
+ - Schedule fixed time (e.g., Friday 4pm)
231
+ - Review last 10 plans
232
+ - Identify top 3 improvements
233
+ - Update rules if needed
234
+
235
+ ### 2. Act on Patterns
236
+ - Don't just detect - fix
237
+ - Prioritize critical patterns first
238
+ - Track improvement over time
239
+
240
+ ### 3. Keep Rules Minimal
241
+ - Only add rules for repeated patterns
242
+ - Keep rules under 20 lines
243
+ - Use references over content
244
+
245
+ ### 4. Measure Impact
246
+ - Before/after comparisons
247
+ - Track metric changes
248
+ - Adjust based on data
249
+
250
+ ## Anti-Patterns
251
+
252
+ ### ❌ Ignoring Detected Patterns
253
+ Bad: Detect patterns but don't act
254
+ Good: Create action items, track fixes
255
+
256
+ ### ❌ Over-Analyzing
257
+ Bad: Analyze every single plan
258
+ Good: Weekly batch analysis
259
+
260
+ ### ❌ Too Many Rules
261
+ Bad: Add rule for every mistake
262
+ Good: Only for repeated patterns (3+ occurrences)
263
+
264
+ ### ❌ No Follow-up
265
+ Bad: Generate suggestions, forget them
266
+ Good: Schedule follow-up review
267
+
268
+ ## Troubleshooting
269
+
270
+ ### Not Enough Data
271
+ **Problem**: Less than 3 plans to analyze
272
+
273
+ **Solution**:
274
+ - Wait for more data
275
+ - Run analysis after 10+ plans
276
+ - Use qualitative feedback initially
277
+
278
+ ### False Positive Patterns
279
+ **Problem**: Pattern detected but not actually an issue
280
+
281
+ **Solution**:
282
+ - Adjust detection thresholds
283
+ - Add exception rules
284
+ - Manual review before acting
285
+
286
+ ### No Patterns Detected
287
+ **Problem**: Analysis shows no patterns
288
+
289
+ **Solution**:
290
+ - Check if thresholds too strict
291
+ - Look for subtle patterns
292
+ - Consider qualitative feedback
293
+
294
+ ## Metrics Reference
295
+
296
+ ### Key Metrics Tracked
297
+ - `plan_accuracy`: % of plan followed correctly
298
+ - `iteration_count`: Number of fix-and-retest loops
299
+ - `tool_efficiency`: Cost-weighted tool score
300
+ - `parallel_subagents`: Number of parallel explorations
301
+ - `mcp_usage`: MCP server utilization
302
+ - `cost_estimate`: Estimated token consumption
303
+
304
+ ### Thresholds
305
+ - **Excellent**: Accuracy >90%, Iterations <2, Efficiency >80%
306
+ - **Good**: Accuracy 70-90%, Iterations 2-3, Efficiency 60-80%
307
+ - **Needs Work**: Accuracy <70%, Iterations >3, Efficiency <60%
308
+
309
+ ## Related Documentation
310
+ - `AGENT-INSTRUCTION-BEST-PRACTICES.md` - Core research
311
+ - `.claude/hooks.config.json` - Configuration
312
+ - `.claude/plan-metrics.json` - Historical data
313
+ - `.claude/docs/PLAN-MODE-OPTIMIZATION.md` - Plan mode guide