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.
- 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,46 +1,46 @@
|
|
|
1
|
-
# MCP Server Auto-Use
|
|
2
|
-
|
|
3
|
-
## Automatic Triggers
|
|
4
|
-
|
|
5
|
-
###
|
|
6
|
-
**Trigger Keywords**: "how to", "implement", "best practice", "pattern", "library", "framework", "package"
|
|
7
|
-
|
|
8
|
-
**Auto-Fetch Examples**:
|
|
9
|
-
- User: "Add authentication" → Fetch: "Next.js auth patterns 2026"
|
|
10
|
-
- User: "Create API endpoint" → Fetch: "REST API best practices"
|
|
11
|
-
- User: "Use WebSocket" → Fetch: "WebSocket implementation guide"
|
|
12
|
-
|
|
13
|
-
**Rule**: **ALWAYS** fetch docs BEFORE implementing unfamiliar patterns
|
|
14
|
-
|
|
15
|
-
### Other MCP Servers
|
|
16
|
-
|
|
17
|
-
| MCP Server | When to Use | Cost |
|
|
18
|
-
|------------|-------------|------|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
25
|
-
## Cost Hierarchy
|
|
26
|
-
|
|
27
|
-
**Tier 1 (Use Liberally)**:
|
|
28
|
-
**Tier 2 (Use When Needed)**:
|
|
29
|
-
**Tier 3 (Use Sparingly)**:
|
|
30
|
-
|
|
31
|
-
## Rules
|
|
32
|
-
|
|
33
|
-
1. Always try cheaper tools first (follow escalation protocol)
|
|
34
|
-
2. Run
|
|
35
|
-
3. Fetch docs with
|
|
36
|
-
4. Use
|
|
37
|
-
5. Use
|
|
38
|
-
|
|
39
|
-
## Patterns & Examples
|
|
40
|
-
See `.
|
|
41
|
-
|
|
42
|
-
## Fallback
|
|
43
|
-
- Browser unavailable → Use
|
|
44
|
-
- GitHub unavailable → Use
|
|
45
|
-
- ESLint unavailable → Use
|
|
46
|
-
- Context7 unavailable → Use WebSearch
|
|
1
|
+
# MCP Server Auto-Use
|
|
2
|
+
|
|
3
|
+
## Automatic Triggers
|
|
4
|
+
|
|
5
|
+
### context7 (Library/Framework Questions)
|
|
6
|
+
**Trigger Keywords**: "how to", "implement", "best practice", "pattern", "library", "framework", "package"
|
|
7
|
+
|
|
8
|
+
**Auto-Fetch Examples**:
|
|
9
|
+
- User: "Add authentication" → Fetch: "Next.js auth patterns 2026"
|
|
10
|
+
- User: "Create API endpoint" → Fetch: "REST API best practices"
|
|
11
|
+
- User: "Use WebSocket" → Fetch: "WebSocket implementation guide"
|
|
12
|
+
|
|
13
|
+
**Rule**: **ALWAYS** fetch docs BEFORE implementing unfamiliar patterns
|
|
14
|
+
|
|
15
|
+
### Other MCP Servers
|
|
16
|
+
|
|
17
|
+
| MCP Server | When to Use | Cost |
|
|
18
|
+
|------------|-------------|------|
|
|
19
|
+
| claude-in-chrome | UI changes, visual verification | High |
|
|
20
|
+
| github | PR/issue operations, git commands | Moderate |
|
|
21
|
+
| eslint | After EVERY code change (automatic) | Low |
|
|
22
|
+
| chrome-devtools | Performance audits, Lighthouse | Moderate |
|
|
23
|
+
| playwright | E2E testing, cross-browser | High |
|
|
24
|
+
|
|
25
|
+
## Cost Hierarchy
|
|
26
|
+
|
|
27
|
+
**Tier 1 (Use Liberally)**: eslint, context7
|
|
28
|
+
**Tier 2 (Use When Needed)**: github, chrome-devtools
|
|
29
|
+
**Tier 3 (Use Sparingly)**: claude-in-chrome, playwright
|
|
30
|
+
|
|
31
|
+
## Rules
|
|
32
|
+
|
|
33
|
+
1. Always try cheaper tools first (follow escalation protocol)
|
|
34
|
+
2. Run eslint automatically after code changes
|
|
35
|
+
3. Fetch docs with context7 BEFORE implementing
|
|
36
|
+
4. Use claude-in-chrome ONLY for visual verification
|
|
37
|
+
5. Use github for all GitHub operations
|
|
38
|
+
|
|
39
|
+
## Patterns & Examples
|
|
40
|
+
See `.claude/docs/MCP-INTEGRATION-GUIDE.md` for complete patterns, chaining examples, and cost optimization strategies.
|
|
41
|
+
|
|
42
|
+
## Fallback
|
|
43
|
+
- Browser unavailable → Use playwright MCP, or WebFetch for static pages
|
|
44
|
+
- GitHub unavailable → Use Bash with gh CLI
|
|
45
|
+
- ESLint unavailable → Use Bash with npm run lint
|
|
46
|
+
- Context7 unavailable → Use WebSearch
|
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
# Parallel Exploration Auto
|
|
2
|
-
|
|
3
|
-
## Automatic Triggers
|
|
4
|
-
|
|
5
|
-
**Launch 2-4 parallel subagents when**:
|
|
6
|
-
- Task spans >3 areas/directories
|
|
7
|
-
- Complexity >10 steps or >5 files
|
|
8
|
-
- Bug investigation (unknown root cause)
|
|
9
|
-
- Agent unfamiliarity detected (>3 questions)
|
|
10
|
-
|
|
11
|
-
## Configuration
|
|
12
|
-
|
|
13
|
-
```yaml
|
|
14
|
-
|
|
15
|
-
subagent_type: "
|
|
16
|
-
model: "
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
❌ >4 subagents, ❌ capable model for exploration, ❌ no consolidation
|
|
1
|
+
# Parallel Exploration Auto
|
|
2
|
+
|
|
3
|
+
## Automatic Triggers
|
|
4
|
+
|
|
5
|
+
**Launch 2-4 parallel subagents when**:
|
|
6
|
+
- Task spans >3 areas/directories
|
|
7
|
+
- Complexity >10 steps or >5 files
|
|
8
|
+
- Bug investigation (unknown root cause)
|
|
9
|
+
- Agent unfamiliarity detected (>3 questions)
|
|
10
|
+
|
|
11
|
+
## Configuration
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
Agent:
|
|
15
|
+
subagent_type: "Explore"
|
|
16
|
+
model: "haiku" # ALWAYS for exploration
|
|
17
|
+
run_in_background: true
|
|
18
|
+
timeout: 120s
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Rules
|
|
22
|
+
|
|
23
|
+
1. Default to 2-3 subagents, scale to 4 for complex tasks
|
|
24
|
+
2. ALWAYS use `model="haiku"` (90% of cases)
|
|
25
|
+
3. Consolidate findings before planning
|
|
26
|
+
4. See `.claude/skills/parallel-exploration/SKILL.md` for patterns
|
|
27
|
+
|
|
28
|
+
## Anti-Patterns
|
|
29
|
+
|
|
30
|
+
❌ >4 subagents, ❌ capable model for exploration, ❌ no consolidation
|