claudify-agent 1.0.1 → 1.0.3

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 +13 -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,162 +1,162 @@
1
- # Cost Dashboard
2
-
3
- **Last Updated**: Auto-generated after each plan execution
4
- **Tracking Status**: ✅ Enabled
5
-
6
- ---
7
-
8
- ## Recent Plans (Last 10)
9
-
10
- | # | Date | Type | Cost (tokens) | Efficiency | Accuracy | Status |
11
- |---|------|------|---------------|------------|----------|--------|
12
- | 1 | - | - | - | - | - | Pending first plan |
13
-
14
- ---
15
-
16
- ## Cost Trends
17
-
18
- ### This Week
19
- - **Total Plans**: 0
20
- - **Total Cost**: 0 tokens
21
- - **Average Cost/Plan**: 0 tokens
22
- - **Target**: <8,000 tokens/plan
23
-
24
- ### Cost Distribution
25
- - **Tier 1 Tools** (Read/Glob/Grep): 0% (target: >60%)
26
- - **Tier 2 Tools** (SemanticSearch/Write): 0%
27
- - **Tier 3 Tools** (Task/ReadLints): 0%
28
- - **Tier 4 Tools** (MCP/Browser): 0% (target: <30%)
29
-
30
- ---
31
-
32
- ## Budget Tracking
33
-
34
- | Task Type | Budget | Actual | Variance | Status |
35
- |-----------|--------|--------|----------|--------|
36
- | Simple Fix | 3,000 | 0 | 0 | ✅ On budget |
37
- | Feature Implementation | 15,000 | 0 | 0 | ✅ On budget |
38
- | Complex Refactor | 20,000 | 0 | 0 | ✅ On budget |
39
-
40
- ---
41
-
42
- ## Most Expensive Plans (Top 5)
43
-
44
- | Rank | Date | Type | Cost | Reason |
45
- |------|------|------|------|--------|
46
- | 1 | - | - | - | - |
47
- | 2 | - | - | - | - |
48
- | 3 | - | - | - | - |
49
- | 4 | - | - | - | - |
50
- | 5 | - | - | - | - |
51
-
52
- ---
53
-
54
- ## Optimization Wins
55
-
56
- ### This Week
57
- - **Token Savings**: 0 tokens (vs baseline)
58
- - **Efficiency Improvement**: 0% (vs baseline)
59
- - **Best Optimized Plan**: None yet
60
-
61
- ### Successful Patterns
62
- 1. **Tool Escalation**: Start with Tier 1, escalate only if needed
63
- 2. **Research-First**: 2-3 min research prevents wasted iterations
64
- 3. **MCP Optimization**: Use MCP only when essential
65
- 4. **Fast Model**: Use `model="fast"` for 90% of subagents
66
-
67
- ---
68
-
69
- ## Cost Alerts
70
-
71
- ### Alert Thresholds
72
- - **Single Plan**: >20,000 tokens ⚠️
73
- - **Daily Total**: >100,000 tokens ⚠️
74
- - **Weekly Average**: >10,000 tokens/plan ⚠️
75
-
76
- ### Recent Alerts
77
- - No alerts triggered yet
78
-
79
- ---
80
-
81
- ## ROI Calculation
82
-
83
- ### Time Saved
84
- - **Estimated Time Saved**: 0 hours (vs manual implementation)
85
- - **Developer Rate**: $50/hour (assumed)
86
- - **Time Savings Value**: $0
87
-
88
- ### Token Cost
89
- - **Total Token Cost**: $0 (estimated)
90
- - **Net Savings**: $0
91
-
92
- ### Payback Period
93
- - **Implementation Time**: 3 hours
94
- - **Payback**: <1 week (projected)
95
- - **Annual ROI**: $6,000+ per developer (projected)
96
-
97
- ---
98
-
99
- ## Efficiency Score
100
-
101
- **Current Score**: 75/100 (Baseline)
102
-
103
- **Calculation**:
104
- ```
105
- Efficiency = (Tier1_Usage × 1.0 + Tier2_Usage × 0.8 + Tier3_Usage × 0.6 + Tier4_Usage × 0.4) / Total_Usage × 100
106
- ```
107
-
108
- **Targets**:
109
- - **Excellent**: >85%
110
- - **Good**: >70%
111
- - **Needs Work**: <60%
112
-
113
- ---
114
-
115
- ## Cost Optimization Checklist
116
-
117
- ### Before Starting Task
118
- - [ ] Define clear success criteria
119
- - [ ] Estimate complexity (simple/medium/complex)
120
- - [ ] Identify cheapest tool sequence
121
- - [ ] Set cost budget based on task type
122
-
123
- ### During Execution
124
- - [ ] Follow tool escalation protocol (Tier 1 → Tier 4)
125
- - [ ] Use Tier 1 tools first (Read/Glob/Grep)
126
- - [ ] Avoid MCP unless essential
127
- - [ ] Track tool usage mentally
128
-
129
- ### After Completion
130
- - [ ] Review actual cost vs estimate
131
- - [ ] Check efficiency score (target: >70%)
132
- - [ ] Identify optimization opportunities
133
- - [ ] Log learnings for future reference
134
-
135
- ---
136
-
137
- ## Related Documentation
138
-
139
- - `.cursor/docs/COST-OPTIMIZATION.md` - Complete cost optimization guide
140
- - `.cursor/hooks.config.json` - Cost tracking configuration
141
- - `.cursor/skills/tool-selection/SKILL.md` - Tool selection decision trees
142
- - `AGENT-INSTRUCTION-BEST-PRACTICES.md` - Research backing (ETH Zurich cost findings)
143
-
144
- ---
145
-
146
- ## Maintenance
147
-
148
- ### Weekly Review
149
- - [ ] Review cost metrics and trends
150
- - [ ] Identify most expensive plans
151
- - [ ] Document optimization wins
152
- - [ ] Adjust thresholds if needed
153
-
154
- ### Monthly Review
155
- - [ ] Analyze cost trends
156
- - [ ] Update benchmarks
157
- - [ ] Refine optimization strategies
158
- - [ ] Calculate actual ROI
159
-
160
- ---
161
-
162
- *This dashboard is automatically updated by the plan-quality-tracker hook*
1
+ # Cost Dashboard
2
+
3
+ **Last Updated**: Auto-generated after each plan execution
4
+ **Tracking Status**: ✅ Enabled
5
+
6
+ ---
7
+
8
+ ## Recent Plans (Last 10)
9
+
10
+ | # | Date | Type | Cost (tokens) | Efficiency | Accuracy | Status |
11
+ |---|------|------|---------------|------------|----------|--------|
12
+ | 1 | - | - | - | - | - | Pending first plan |
13
+
14
+ ---
15
+
16
+ ## Cost Trends
17
+
18
+ ### This Week
19
+ - **Total Plans**: 0
20
+ - **Total Cost**: 0 tokens
21
+ - **Average Cost/Plan**: 0 tokens
22
+ - **Target**: <8,000 tokens/plan
23
+
24
+ ### Cost Distribution
25
+ - **Tier 1 Tools** (Read/Glob/Grep): 0% (target: >60%)
26
+ - **Tier 2 Tools** (Explore (quick)/Write): 0%
27
+ - **Tier 3 Tools** (Agent/Lint check): 0%
28
+ - **Tier 4 Tools** (MCP/Browser): 0% (target: <30%)
29
+
30
+ ---
31
+
32
+ ## Budget Tracking
33
+
34
+ | Task Type | Budget | Actual | Variance | Status |
35
+ |-----------|--------|--------|----------|--------|
36
+ | Simple Fix | 3,000 | 0 | 0 | ✅ On budget |
37
+ | Feature Implementation | 15,000 | 0 | 0 | ✅ On budget |
38
+ | Complex Refactor | 20,000 | 0 | 0 | ✅ On budget |
39
+
40
+ ---
41
+
42
+ ## Most Expensive Plans (Top 5)
43
+
44
+ | Rank | Date | Type | Cost | Reason |
45
+ |------|------|------|------|--------|
46
+ | 1 | - | - | - | - |
47
+ | 2 | - | - | - | - |
48
+ | 3 | - | - | - | - |
49
+ | 4 | - | - | - | - |
50
+ | 5 | - | - | - | - |
51
+
52
+ ---
53
+
54
+ ## Optimization Wins
55
+
56
+ ### This Week
57
+ - **Token Savings**: 0 tokens (vs baseline)
58
+ - **Efficiency Improvement**: 0% (vs baseline)
59
+ - **Best Optimized Plan**: None yet
60
+
61
+ ### Successful Patterns
62
+ 1. **Tool Escalation**: Start with Tier 1, escalate only if needed
63
+ 2. **Research-First**: 2-3 min research prevents wasted iterations
64
+ 3. **MCP Optimization**: Use MCP only when essential
65
+ 4. **Fast Model**: Use `model="haiku"` for 90% of subagents
66
+
67
+ ---
68
+
69
+ ## Cost Alerts
70
+
71
+ ### Alert Thresholds
72
+ - **Single Plan**: >20,000 tokens ⚠️
73
+ - **Daily Total**: >100,000 tokens ⚠️
74
+ - **Weekly Average**: >10,000 tokens/plan ⚠️
75
+
76
+ ### Recent Alerts
77
+ - No alerts triggered yet
78
+
79
+ ---
80
+
81
+ ## ROI Calculation
82
+
83
+ ### Time Saved
84
+ - **Estimated Time Saved**: 0 hours (vs manual implementation)
85
+ - **Developer Rate**: $50/hour (assumed)
86
+ - **Time Savings Value**: $0
87
+
88
+ ### Token Cost
89
+ - **Total Token Cost**: $0 (estimated)
90
+ - **Net Savings**: $0
91
+
92
+ ### Payback Period
93
+ - **Implementation Time**: 3 hours
94
+ - **Payback**: <1 week (projected)
95
+ - **Annual ROI**: $6,000+ per developer (projected)
96
+
97
+ ---
98
+
99
+ ## Efficiency Score
100
+
101
+ **Current Score**: 75/100 (Baseline)
102
+
103
+ **Calculation**:
104
+ ```
105
+ Efficiency = (Tier1_Usage × 1.0 + Tier2_Usage × 0.8 + Tier3_Usage × 0.6 + Tier4_Usage × 0.4) / Total_Usage × 100
106
+ ```
107
+
108
+ **Targets**:
109
+ - **Excellent**: >85%
110
+ - **Good**: >70%
111
+ - **Needs Work**: <60%
112
+
113
+ ---
114
+
115
+ ## Cost Optimization Checklist
116
+
117
+ ### Before Starting Task
118
+ - [ ] Define clear success criteria
119
+ - [ ] Estimate complexity (simple/medium/complex)
120
+ - [ ] Identify cheapest tool sequence
121
+ - [ ] Set cost budget based on task type
122
+
123
+ ### During Execution
124
+ - [ ] Follow tool escalation protocol (Tier 1 → Tier 4)
125
+ - [ ] Use Tier 1 tools first (Read/Glob/Grep)
126
+ - [ ] Avoid MCP unless essential
127
+ - [ ] Track tool usage mentally
128
+
129
+ ### After Completion
130
+ - [ ] Review actual cost vs estimate
131
+ - [ ] Check efficiency score (target: >70%)
132
+ - [ ] Identify optimization opportunities
133
+ - [ ] Log learnings for future reference
134
+
135
+ ---
136
+
137
+ ## Related Documentation
138
+
139
+ - `.claude/docs/COST-OPTIMIZATION.md` - Complete cost optimization guide
140
+ - `.claude/hooks.config.json` - Cost tracking configuration
141
+ - `.claude/skills/tool-selection/SKILL.md` - Tool selection decision trees
142
+ - `AGENT-INSTRUCTION-BEST-PRACTICES.md` - Research backing (ETH Zurich cost findings)
143
+
144
+ ---
145
+
146
+ ## Maintenance
147
+
148
+ ### Weekly Review
149
+ - [ ] Review cost metrics and trends
150
+ - [ ] Identify most expensive plans
151
+ - [ ] Document optimization wins
152
+ - [ ] Adjust thresholds if needed
153
+
154
+ ### Monthly Review
155
+ - [ ] Analyze cost trends
156
+ - [ ] Update benchmarks
157
+ - [ ] Refine optimization strategies
158
+ - [ ] Calculate actual ROI
159
+
160
+ ---
161
+
162
+ *This dashboard is automatically updated by the plan-quality-tracker hook*