claudify-agent 1.0.0 → 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.
- package/.claude/QUICK-REFERENCE.md +213 -213
- package/.claude/cost-dashboard.md +162 -162
- package/.claude/docs/COST-OPTIMIZATION.md +402 -403
- package/.claude/docs/MCP-INTEGRATION-GUIDE.md +348 -348
- package/.claude/docs/PLAN-MODE-OPTIMIZATION.md +835 -836
- package/.claude/hooks/auto-learning-review.ts +200 -195
- package/.claude/hooks/auto-lint-fix.ts +60 -104
- package/.claude/hooks/auto-security-review.ts +314 -354
- package/.claude/hooks/auto-validate.ts +249 -348
- package/.claude/hooks/lib/claude-hook.ts +168 -0
- package/.claude/hooks/plan-quality-tracker.ts +598 -719
- package/.claude/rules/anti-patterns.md +22 -22
- package/.claude/rules/context-tier-1.md +41 -41
- package/.claude/rules/context-tier-2.md +285 -285
- package/.claude/rules/general.md +25 -25
- package/.claude/rules/mcp-auto-use.md +46 -46
- package/.claude/rules/parallel-exploration-auto.md +30 -31
- package/.claude/rules/plan-mode-execution.md +289 -289
- package/.claude/rules/plan-mode-research.md +34 -34
- package/.claude/rules/plan-mode-structure.md +166 -166
- package/.claude/rules/plan-mode-validation.md +129 -130
- package/.claude/rules/security-critical.md +19 -19
- package/.claude/rules/tool-auto-selection.md +45 -45
- package/.claude/rules/tool-strategy.md +22 -22
- package/.claude/scripts/security-scan.js +1 -1
- package/.claude/security-dashboard.md +142 -142
- package/.claude/settings.json +50 -0
- package/.claude/skills/debug-optimizer/SKILL.md +420 -399
- package/.claude/skills/learning-loop/SKILL.md +313 -308
- package/.claude/skills/mcp-mastery/SKILL.md +218 -214
- package/.claude/skills/nextjs-guide/SKILL.md +687 -687
- package/.claude/skills/parallel-exploration/SKILL.md +197 -193
- package/.claude/skills/plan-mode-mastery/SKILL.md +268 -263
- package/.claude/skills/python-guide/SKILL.md +822 -822
- package/.claude/skills/react-guide/SKILL.md +762 -762
- package/.claude/skills/{security.md → security-guide/SKILL.md} +10 -0
- package/.claude/skills/solidity-guide/SKILL.md +5 -0
- package/.claude/skills/tool-selection/SKILL.md +433 -428
- package/.claude/skills/vite-guide/SKILL.md +445 -445
- package/CLAUDE.md +1 -0
- package/README.md +74 -35
- package/README.vi.md +106 -0
- package/bin/cli.js +13 -4
- package/package.json +9 -1
- package/.claude/skills/debug-optimizer.md +0 -12
- package/.claude/skills/nextjs.md +0 -13
- package/.claude/skills/react.md +0 -12
|
@@ -1,214 +1,218 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
**
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
119
|
-
|
|
120
|
-
**
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
- E2E
|
|
130
|
-
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
**
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
-
|
|
172
|
-
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
-
|
|
178
|
-
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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
|