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,214 +1,218 @@
1
- # SKILL.md: MCP Server Mastery
2
-
3
- ## Description
4
- Automatic selection and optimal use of available MCP servers for maximum efficiency. Activates automatically based on task analysis in debug mode.
5
-
6
- ## When to Use (Automatic Triggers)
7
- **This skill activates AUTOMATICALLY when**:
8
- - Any task involving browser automation
9
- - GitHub operations (PRs, issues)
10
- - Code quality checks
11
- - Library/framework documentation needs
12
- - Performance optimization tasks
13
- - E2E testing requirements
14
-
15
- **No manual activation needed** - MCP selection happens automatically based on:
16
- - User request keywords
17
- - File patterns being modified
18
- - Task complexity and type
19
- - Error patterns detected
20
-
21
- ## Available MCP Servers
22
-
23
- ### 1. cursor-ide-browser
24
- **Capabilities**:
25
- - Browser automation (navigate, click, fill, scroll)
26
- - Visual verification (screenshots, snapshots)
27
- - Performance profiling (CPU, timing)
28
- - Console/network inspection
29
-
30
- **Automatic Triggers**:
31
- - User mentions: "UI", "visual", "frontend", "browser test"
32
- - Changes to: `components/`, `app/`, `pages/`
33
- - Task involves: Design matching, E2E testing
34
-
35
- **Optimal Usage Pattern**:
36
- ```
37
- 1. browser_snapshot (take_screenshot: true)
38
- 2. Identify refs from snapshot
39
- 3. Interact via refs (browser_click, browser_fill)
40
- 4. browser_take_screenshot (verify)
41
- 5. Use performance profiling if optimization mentioned
42
- ```
43
-
44
- **Cost**: High → Use sparingly, only when visual verification needed
45
-
46
- ### 2. user-github
47
- **Capabilities**:
48
- - Issue/PR management
49
- - Repository operations
50
- - Code review automation
51
- - Branch management
52
-
53
- **Automatic Triggers**:
54
- - User mentions: "PR", "issue", "branch", "commit"
55
- - Commands: `/pr`, `/fix-issue`, `/review`
56
-
57
- **Optimal Usage Pattern**:
58
- ```
59
- 1. Fetch issue/PR details
60
- 2. Implement changes
61
- 3. Run tests/lints
62
- 4. Create/update PR automatically
63
- 5. Link issues
64
- ```
65
-
66
- **Cost**: Moderate → Use for all git operations
67
-
68
- ### 3. user-ESLint
69
- **Capabilities**:
70
- - Automatic linting
71
- - Auto-fix issues
72
- - Quality reporting
73
-
74
- **Automatic Triggers**:
75
- - After EVERY substantive code change
76
- - User mentions: "lint", "quality", "errors"
77
-
78
- **Optimal Usage Pattern**:
79
- ```
80
- 1. Run ESLint on changed files (automatic)
81
- 2. Apply auto-fixes
82
- 3. Report remaining issues
83
- 4. Fix before committing
84
- ```
85
-
86
- **Cost**: Low → Run automatically after all edits
87
-
88
- ### 4. user-context7
89
- **Capabilities**:
90
- - Fetch current library docs
91
- - API syntax verification
92
- - Setup/configuration guides
93
- - Version-specific information
94
-
95
- **Automatic Triggers**:
96
- - Questions about libraries/frameworks
97
- - Setup/configuration needed
98
- - API syntax uncertain
99
-
100
- **Optimal Usage Pattern**:
101
- ```
102
- 1. Fetch docs BEFORE implementing
103
- 2. Verify current best practices
104
- 3. Apply to implementation
105
- 4. Cite doc source
106
- ```
107
-
108
- **Cost**: Low → Fetch proactively for library work
109
-
110
- ### 5. user-chrome-devtools
111
- **Capabilities**:
112
- - Lighthouse audits
113
- - Performance metrics
114
- - Accessibility checks
115
-
116
- **Automatic Triggers**:
117
- - User mentions: "performance", "lighthouse", "accessibility"
118
- - Optimization tasks
119
-
120
- **Cost**: Moderate → Use for performance audits
121
-
122
- ### 6. user-playwright / user-selenium
123
- **Capabilities**:
124
- - Cross-browser testing
125
- - E2E automation
126
- - Accessibility testing
127
-
128
- **Automatic Triggers**:
129
- - E2E testing needed
130
- - Cross-browser verification
131
- - Accessibility compliance
132
-
133
- **Cost**: High → Use for comprehensive testing
134
-
135
- ## MCP Selection Decision Tree
136
-
137
- ```
138
- Task involves browser/UI?
139
- ├─ Yes → cursor-ide-browser
140
- │ └─ Performance audit? → user-chrome-devtools
141
- │ └─ E2E tests? → user-playwright
142
- └─ No
143
- ├─ GitHub operations? → user-github
144
- ├─ Code quality? → user-ESLint (automatic)
145
- ├─ Library docs? → user-context7
146
- └─ None → Standard tools only
147
- ```
148
-
149
- ## Cost Optimization Rules (Automatically Enforced)
150
-
151
- 1. **Always run user-ESLint** after code changes (low cost, high value)
152
- 2. **Fetch user-context7** before library implementation (prevents errors)
153
- 3. **Use cursor-ide-browser** only when visual verification essential
154
- 4. **Prefer user-github** over manual git commands (automation)
155
- 5. **Run performance audits** only when performance mentioned
156
- 6. **Start with Tier 1 MCPs** (cheap) before Tier 2-3 (expensive)
157
- 7. **Chain MCPs automatically** for complex workflows (see examples)
158
- 8. **Track MCP usage** in .cursor/mcp-usage-log.md for optimization
159
-
160
- ## Debug Mode Auto-Triggers
161
-
162
- **In debug mode, these triggers are AUTOMATICALLY monitored**:
163
-
164
- ```
165
- File Change Detection:
166
- - components/**, app/**, pages/** → cursor-ide-browser
167
- - __tests__/**, e2e/** → user-playwright
168
- - *.ts, *.tsx → user-ESLint (after changes)
169
-
170
- Keyword Detection:
171
- - "PR", "issue", "branch" → user-github
172
- - "lint", "quality" → user-ESLint
173
- - "how to", "docs", "API" → user-context7
174
- - "performance", "optimize" → user-chrome-devtools + cursor-ide-browser
175
-
176
- Error Detection:
177
- - ESLint errors → user-ESLint (auto-fix mode)
178
- - Test failures → user-playwright (debug mode)
179
- - Build errors → user-context7 (fetch build docs)
180
- ```
181
-
182
- ## Examples
183
-
184
- ### Example 1: UI Feature Development
185
-
186
- User: "Add dark mode toggle to settings"
187
-
188
- MCP Sequence:
189
- 1. **user-context7**: Fetch Tailwind dark mode docs
190
- 2. **cursor-ide-browser**:
191
- - Navigate to settings page
192
- - Verify toggle renders correctly
193
- - Screenshot for confirmation
194
- 3. **user-ESLint**: Check code quality (automatic)
195
-
196
- ### Example 2: Bug Fix Workflow
197
-
198
- User: "Fix checkout issue #456"
199
-
200
- MCP Sequence:
201
- 1. **user-github**: Fetch issue #456 details
202
- 2. **user-context7**: Check payment library docs
203
- 3. **user-ESLint**: Verify fix quality (automatic)
204
- 4. **user-github**: Create PR linking issue
205
-
206
- ### Example 3: Performance Optimization
207
-
208
- User: "Optimize dashboard loading"
209
-
210
- MCP Sequence:
211
- 1. **user-chrome-devtools**: Run Lighthouse audit
212
- 2. **cursor-ide-browser**: Profile CPU usage
213
- 3. **user-context7**: Fetch React optimization docs
214
- 4. **user-chrome-devtools**: Re-run audit to verify improvement
1
+ ---
2
+ name: mcp-mastery
3
+ description: Pick the right MCP server (claude-in-chrome, github, eslint, context7, chrome-devtools, playwright) for a task. Use for browser verification, GitHub ops, lint, library docs, performance audits or E2E tests.
4
+ ---
5
+
6
+ # SKILL.md: MCP Server Mastery
7
+
8
+ ## Description
9
+ Automatic selection and optimal use of available MCP servers for maximum efficiency. Activates automatically based on task analysis.
10
+
11
+ ## When to Use (Automatic Triggers)
12
+ **This skill activates AUTOMATICALLY when**:
13
+ - Any task involving browser automation
14
+ - GitHub operations (PRs, issues)
15
+ - Code quality checks
16
+ - Library/framework documentation needs
17
+ - Performance optimization tasks
18
+ - E2E testing requirements
19
+
20
+ **No manual activation needed** - MCP selection happens automatically based on:
21
+ - User request keywords
22
+ - File patterns being modified
23
+ - Task complexity and type
24
+ - Error patterns detected
25
+
26
+ ## Available MCP Servers
27
+
28
+ ### 1. claude-in-chrome
29
+ **Capabilities**:
30
+ - Browser automation in your real Chrome (navigate, click, fill, scroll) — enable with `/chrome`
31
+ - Visual verification (screenshots, page reads)
32
+ - Console/network inspection
33
+
34
+ **Automatic Triggers**:
35
+ - User mentions: "UI", "visual", "frontend", "browser test"
36
+ - Changes to: `components/`, `app/`, `pages/`
37
+ - Task involves: Design matching, E2E testing
38
+
39
+ **Optimal Usage Pattern**:
40
+ ```
41
+ 1. navigate → read_page (accessibility tree)
42
+ 2. Identify element refs from the page read
43
+ 3. Interact via refs (computer click, form_input)
44
+ 4. computer screenshot (verify)
45
+ 5. Use chrome-devtools for profiling if optimization mentioned
46
+ ```
47
+
48
+ **Cost**: High → Use sparingly, only when visual verification needed
49
+
50
+ ### 2. github
51
+ **Capabilities**:
52
+ - Issue/PR management
53
+ - Repository operations
54
+ - Code review automation
55
+ - Branch management
56
+
57
+ **Automatic Triggers**:
58
+ - User mentions: "PR", "issue", "branch", "commit"
59
+ - Commands: `/pr`, `/fix-issue`, `/review`
60
+
61
+ **Optimal Usage Pattern**:
62
+ ```
63
+ 1. Fetch issue/PR details
64
+ 2. Implement changes
65
+ 3. Run tests/lints
66
+ 4. Create/update PR automatically
67
+ 5. Link issues
68
+ ```
69
+
70
+ **Cost**: Moderate → Use for all git operations
71
+
72
+ ### 3. eslint
73
+ **Capabilities**:
74
+ - Automatic linting
75
+ - Auto-fix issues
76
+ - Quality reporting
77
+
78
+ **Automatic Triggers**:
79
+ - After EVERY substantive code change
80
+ - User mentions: "lint", "quality", "errors"
81
+
82
+ **Optimal Usage Pattern**:
83
+ ```
84
+ 1. Run ESLint on changed files (automatic)
85
+ 2. Apply auto-fixes
86
+ 3. Report remaining issues
87
+ 4. Fix before committing
88
+ ```
89
+
90
+ **Cost**: Low → Run automatically after all edits
91
+
92
+ ### 4. context7
93
+ **Capabilities**:
94
+ - Fetch current library docs
95
+ - API syntax verification
96
+ - Setup/configuration guides
97
+ - Version-specific information
98
+
99
+ **Automatic Triggers**:
100
+ - Questions about libraries/frameworks
101
+ - Setup/configuration needed
102
+ - API syntax uncertain
103
+
104
+ **Optimal Usage Pattern**:
105
+ ```
106
+ 1. Fetch docs BEFORE implementing
107
+ 2. Verify current best practices
108
+ 3. Apply to implementation
109
+ 4. Cite doc source
110
+ ```
111
+
112
+ **Cost**: Low → Fetch proactively for library work
113
+
114
+ ### 5. chrome-devtools
115
+ **Capabilities**:
116
+ - Lighthouse audits
117
+ - Performance metrics
118
+ - Accessibility checks
119
+
120
+ **Automatic Triggers**:
121
+ - User mentions: "performance", "lighthouse", "accessibility"
122
+ - Optimization tasks
123
+
124
+ **Cost**: Moderate → Use for performance audits
125
+
126
+ ### 6. playwright / selenium
127
+ **Capabilities**:
128
+ - Cross-browser testing
129
+ - E2E automation
130
+ - Accessibility testing
131
+
132
+ **Automatic Triggers**:
133
+ - E2E testing needed
134
+ - Cross-browser verification
135
+ - Accessibility compliance
136
+
137
+ **Cost**: High → Use for comprehensive testing
138
+
139
+ ## MCP Selection Decision Tree
140
+
141
+ ```
142
+ Task involves browser/UI?
143
+ ├─ Yes → claude-in-chrome
144
+ │ └─ Performance audit? → chrome-devtools
145
+ │ └─ E2E tests? → playwright
146
+ └─ No
147
+ ├─ GitHub operations? → github
148
+ ├─ Code quality? → eslint (automatic)
149
+ ├─ Library docs? → context7
150
+ └─ None → Standard tools only
151
+ ```
152
+
153
+ ## Cost Optimization Rules (Automatically Enforced)
154
+
155
+ 1. **Always run eslint** after code changes (low cost, high value)
156
+ 2. **Fetch context7** before library implementation (prevents errors)
157
+ 3. **Use claude-in-chrome** only when visual verification essential
158
+ 4. **Prefer github** over manual git commands (automation)
159
+ 5. **Run performance audits** only when performance mentioned
160
+ 6. **Start with Tier 1 MCPs** (cheap) before Tier 2-3 (expensive)
161
+ 7. **Chain MCPs automatically** for complex workflows (see examples)
162
+ 8. **Track MCP usage** in .claude/mcp-usage-log.md for optimization
163
+
164
+ ## Auto-Triggers
165
+
166
+ **These triggers are monitored automatically**:
167
+
168
+ ```
169
+ File Change Detection:
170
+ - components/**, app/**, pages/** → claude-in-chrome
171
+ - __tests__/**, e2e/** → playwright
172
+ - *.ts, *.tsx → eslint (after changes)
173
+
174
+ Keyword Detection:
175
+ - "PR", "issue", "branch" → github
176
+ - "lint", "quality" → eslint
177
+ - "how to", "docs", "API" → context7
178
+ - "performance", "optimize" → chrome-devtools + claude-in-chrome
179
+
180
+ Error Detection:
181
+ - ESLint errors → eslint (auto-fix mode)
182
+ - Test failures → playwright (headed run / trace viewer)
183
+ - Build errors → context7 (fetch build docs)
184
+ ```
185
+
186
+ ## Examples
187
+
188
+ ### Example 1: UI Feature Development
189
+
190
+ User: "Add dark mode toggle to settings"
191
+
192
+ MCP Sequence:
193
+ 1. **context7**: Fetch Tailwind dark mode docs
194
+ 2. **claude-in-chrome**:
195
+ - Navigate to settings page
196
+ - Verify toggle renders correctly
197
+ - Screenshot for confirmation
198
+ 3. **eslint**: Check code quality (automatic)
199
+
200
+ ### Example 2: Bug Fix Workflow
201
+
202
+ User: "Fix checkout issue #456"
203
+
204
+ MCP Sequence:
205
+ 1. **github**: Fetch issue #456 details
206
+ 2. **context7**: Check payment library docs
207
+ 3. **eslint**: Verify fix quality (automatic)
208
+ 4. **github**: Create PR linking issue
209
+
210
+ ### Example 3: Performance Optimization
211
+
212
+ User: "Optimize dashboard loading"
213
+
214
+ MCP Sequence:
215
+ 1. **chrome-devtools**: Run Lighthouse audit
216
+ 2. **chrome-devtools**: Profile CPU usage
217
+ 3. **context7**: Fetch React optimization docs
218
+ 4. **chrome-devtools**: Re-run audit to verify improvement