aiblueprint-cli 1.4.59 → 1.4.61
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/README.md +16 -36
- package/agents-config/agents/action.md +1 -1
- package/agents-config/agents/explore-codebase.md +53 -53
- package/agents-config/agents/explore-docs.md +50 -69
- package/agents-config/agents/websearch.md +36 -40
- package/agents-config/claude-config/scripts/.claude/skills/fix-on-my-computer/SKILL.md +81 -0
- package/agents-config/claude-config/scripts/CLAUDE.md +10 -4
- package/agents-config/claude-config/scripts/bun.lockb +0 -0
- package/agents-config/claude-config/scripts/package.json +22 -30
- package/agents-config/claude-config/scripts/statusline/CLAUDE.md +37 -155
- package/agents-config/claude-config/scripts/statusline/README.md +18 -94
- package/agents-config/claude-config/scripts/statusline/defaults.json +13 -10
- package/agents-config/claude-config/scripts/statusline/fixtures/mock-transcript.jsonl +4 -4
- package/agents-config/claude-config/scripts/statusline/fixtures/test-input.json +4 -4
- package/agents-config/claude-config/scripts/statusline/src/commands/interactive-config.ts +403 -0
- package/agents-config/claude-config/scripts/statusline/src/index.ts +33 -82
- package/agents-config/claude-config/scripts/statusline/src/lib/config-types.ts +7 -1
- package/agents-config/claude-config/scripts/statusline/src/lib/formatters.ts +40 -0
- package/agents-config/claude-config/scripts/statusline/src/lib/presets.ts +13 -13
- package/agents-config/claude-config/scripts/statusline/src/lib/render-pure.ts +24 -5
- package/agents-config/claude-config/scripts/statusline/statusline.config.free.json +79 -0
- package/agents-config/claude-config/scripts/statusline/statusline.config.json +77 -77
- package/agents-config/codex-config/config.toml +9 -0
- package/agents-config/codex-config/hooks/command-deny-list.ts +203 -0
- package/agents-config/commands/prompts/create-vitejs-app.md +272 -0
- package/agents-config/commands/prompts/nextjs-add-prisma-db.md +136 -0
- package/agents-config/commands/prompts/nextjs-setup-better-auth.md +173 -0
- package/agents-config/commands/prompts/nextjs-setup-project.md +200 -0
- package/agents-config/commands/prompts/prompt.md +55 -0
- package/agents-config/commands/prompts/saas-challenge-idea.md +135 -0
- package/agents-config/commands/prompts/saas-create-architecture.md +242 -0
- package/agents-config/commands/prompts/saas-create-headline.md +132 -0
- package/agents-config/commands/prompts/saas-create-landing-copywritting.md +267 -0
- package/agents-config/commands/prompts/saas-create-legals-docs.md +176 -0
- package/agents-config/commands/prompts/saas-create-logos.md +240 -0
- package/agents-config/commands/prompts/saas-create-prd.md +195 -0
- package/agents-config/commands/prompts/saas-create-tasks.md +240 -0
- package/agents-config/commands/prompts/saas-define-pricing.md +293 -0
- package/agents-config/commands/prompts/saas-find-domain-name.md +190 -0
- package/agents-config/commands/prompts/saas-implement-landing-page.md +257 -0
- package/agents-config/commands/prompts/setup-tmux.md +160 -0
- package/agents-config/commands/prompts/tools.md +148 -0
- package/agents-config/scripts/.claude/skills/fix-on-my-computer/SKILL.md +81 -0
- package/agents-config/scripts/CLAUDE.md +37 -0
- package/agents-config/scripts/biome.json +37 -0
- package/agents-config/scripts/bun.lockb +0 -0
- package/agents-config/scripts/package.json +24 -0
- package/agents-config/scripts/statusline/CLAUDE.md +87 -0
- package/agents-config/scripts/statusline/README.md +117 -0
- package/agents-config/scripts/statusline/__tests__/context.test.ts +229 -0
- package/agents-config/scripts/statusline/__tests__/formatters.test.ts +108 -0
- package/agents-config/scripts/statusline/__tests__/statusline.test.ts +309 -0
- package/agents-config/scripts/statusline/defaults.json +82 -0
- package/agents-config/scripts/statusline/fixtures/mock-transcript.jsonl +4 -0
- package/agents-config/scripts/statusline/fixtures/test-input.json +35 -0
- package/agents-config/scripts/statusline/src/commands/interactive-config.ts +403 -0
- package/agents-config/scripts/statusline/src/index.ts +141 -0
- package/agents-config/scripts/statusline/src/lib/config-types.ts +110 -0
- package/agents-config/scripts/statusline/src/lib/config.ts +21 -0
- package/agents-config/scripts/statusline/src/lib/context.ts +103 -0
- package/agents-config/scripts/statusline/src/lib/formatters.ts +426 -0
- package/agents-config/scripts/statusline/src/lib/git.ts +100 -0
- package/agents-config/scripts/statusline/src/lib/menu-factories.ts +224 -0
- package/agents-config/scripts/statusline/src/lib/presets.ts +177 -0
- package/agents-config/scripts/statusline/src/lib/render-pure.ts +516 -0
- package/agents-config/scripts/statusline/src/lib/types.ts +36 -0
- package/agents-config/scripts/statusline/src/lib/utils.ts +15 -0
- package/agents-config/scripts/statusline/statusline.config.free.json +79 -0
- package/agents-config/scripts/statusline/statusline.config.json +79 -0
- package/agents-config/scripts/statusline/test-with-fixtures.ts +37 -0
- package/agents-config/scripts/statusline/test.ts +20 -0
- package/agents-config/scripts/statusline/tsconfig.json +27 -0
- package/agents-config/scripts/tsconfig.json +27 -0
- package/agents-config/skills/{subagent-creator → agents-managers}/SKILL.md +47 -47
- package/agents-config/skills/{subagent-creator/references/subagents.md → agents-managers/references/agents.md} +45 -45
- package/agents-config/skills/{subagent-creator → agents-managers}/references/context-management.md +20 -20
- package/agents-config/skills/{subagent-creator → agents-managers}/references/debugging-agents.md +27 -27
- package/agents-config/skills/{subagent-creator → agents-managers}/references/error-handling-and-recovery.md +19 -19
- package/agents-config/skills/{subagent-creator → agents-managers}/references/evaluation-and-testing.md +29 -29
- package/agents-config/skills/{subagent-creator → agents-managers}/references/orchestration-patterns.md +5 -5
- package/agents-config/skills/{subagent-creator/references/writing-subagent-prompts.md → agents-managers/references/writing-agent-prompts.md} +23 -23
- package/agents-config/skills/codex-environment/SKILL.md +2 -0
- package/agents-config/skills/commit/SKILL.md +2 -0
- package/agents-config/skills/create-pr/SKILL.md +2 -0
- package/agents-config/skills/environments-manager/SKILL.md +271 -0
- package/agents-config/skills/environments-manager/examples/claude/.worktreeinclude +3 -0
- package/agents-config/skills/environments-manager/examples/claude/commands/dev.md +5 -0
- package/agents-config/skills/environments-manager/examples/claude/commands/lint.md +5 -0
- package/agents-config/skills/environments-manager/examples/claude/commands/test.md +5 -0
- package/agents-config/skills/environments-manager/examples/claude/commands/typecheck.md +5 -0
- package/agents-config/skills/environments-manager/examples/claude/settings.json +24 -0
- package/agents-config/skills/environments-manager/examples/codex/environments/environment.toml +29 -0
- package/agents-config/skills/environments-manager/examples/cursor/worktrees.json +3 -0
- package/agents-config/skills/environments-manager/examples/scripts/claude-worktree-create.sh +96 -0
- package/agents-config/skills/environments-manager/examples/scripts/claude-worktree-remove.sh +66 -0
- package/agents-config/skills/environments-manager/examples/scripts/dev.sh +15 -0
- package/agents-config/skills/environments-manager/examples/scripts/worktree-down.sh +22 -0
- package/agents-config/skills/environments-manager/examples/scripts/worktree-up.sh +50 -0
- package/agents-config/skills/environments-manager/references/claude.md +156 -0
- package/agents-config/skills/environments-manager/references/codex.md +97 -0
- package/agents-config/skills/environments-manager/references/cursor.md +88 -0
- package/agents-config/skills/fix-pr-comments/SKILL.md +2 -0
- package/agents-config/skills/grill-me/SKILL.md +10 -0
- package/agents-config/skills/merge/SKILL.md +2 -0
- package/agents-config/skills/rules-manager/SKILL.md +191 -0
- package/agents-config/skills/rules-manager/references/agents-vs-claude.md +66 -0
- package/agents-config/skills/rules-manager/references/examples.md +117 -0
- package/agents-config/skills/skill-manager/SKILL.md +101 -0
- package/agents-config/skills/skill-manager/references/claude-code.md +81 -0
- package/agents-config/skills/skill-manager/references/codex.md +288 -0
- package/agents-config/skills/skill-manager/references/cursor.md +125 -0
- package/agents-config/skills/skill-manager/references/description-recommandation.md +97 -0
- package/agents-config/skills/skill-manager/scripts/inspect-description.ts +743 -0
- package/agents-config/skills/ultrathink/SKILL.md +2 -0
- package/dist/cli.js +581 -299
- package/package.json +1 -1
- package/agents-config/claude-config/scripts/statusline/data/.gitignore +0 -8
- package/agents-config/claude-config/scripts/statusline/data/.gitkeep +0 -0
- package/agents-config/claude-config/scripts/statusline/docs/ARCHITECTURE.md +0 -166
- package/agents-config/claude-config/scripts/statusline/src/tests/spend-v2.test.ts +0 -306
- package/agents-config/skills/apex/SKILL.md +0 -261
- package/agents-config/skills/apex/scripts/setup-templates.sh +0 -100
- package/agents-config/skills/apex/scripts/update-progress.sh +0 -80
- package/agents-config/skills/apex/steps/step-00-init.md +0 -267
- package/agents-config/skills/apex/steps/step-00b-branch.md +0 -126
- package/agents-config/skills/apex/steps/step-00b-economy.md +0 -244
- package/agents-config/skills/apex/steps/step-00b-interactive.md +0 -153
- package/agents-config/skills/apex/steps/step-01-analyze.md +0 -361
- package/agents-config/skills/apex/steps/step-02-plan.md +0 -264
- package/agents-config/skills/apex/steps/step-03-execute.md +0 -239
- package/agents-config/skills/apex/steps/step-04-validate.md +0 -251
- package/agents-config/skills/apex/templates/00-context.md +0 -43
- package/agents-config/skills/apex/templates/01-analyze.md +0 -10
- package/agents-config/skills/apex/templates/02-plan.md +0 -10
- package/agents-config/skills/apex/templates/03-execute.md +0 -10
- package/agents-config/skills/apex/templates/04-validate.md +0 -10
- package/agents-config/skills/apex/templates/README.md +0 -176
- package/agents-config/skills/apex/templates/step-complete.md +0 -7
- package/agents-config/skills/claude-memory/SKILL.md +0 -293
- package/agents-config/skills/claude-memory/references/comprehensive-example.md +0 -175
- package/agents-config/skills/claude-memory/references/optimize-guide.md +0 -300
- package/agents-config/skills/claude-memory/references/project-patterns.md +0 -334
- package/agents-config/skills/claude-memory/references/prompting-techniques.md +0 -411
- package/agents-config/skills/claude-memory/references/rules-directory-guide.md +0 -298
- package/agents-config/skills/claude-memory/references/section-templates.md +0 -347
- package/agents-config/skills/fix-errors/SKILL.md +0 -61
- package/agents-config/skills/fix-grammar/SKILL.md +0 -59
- package/agents-config/skills/ralph-loop/SKILL.md +0 -117
- package/agents-config/skills/ralph-loop/scripts/setup.sh +0 -278
- package/agents-config/skills/ralph-loop/steps/step-00-init.md +0 -215
- package/agents-config/skills/ralph-loop/steps/step-01-interactive-prd.md +0 -366
- package/agents-config/skills/ralph-loop/steps/step-02-create-stories.md +0 -273
- package/agents-config/skills/ralph-loop/steps/step-03-finish.md +0 -245
- package/agents-config/skills/skill-creator/LICENSE.txt +0 -202
- package/agents-config/skills/skill-creator/SKILL.md +0 -421
- package/agents-config/skills/skill-creator/package.json +0 -5
- package/agents-config/skills/skill-creator/references/output-patterns.md +0 -82
- package/agents-config/skills/skill-creator/references/progressive-disclosure-patterns.md +0 -374
- package/agents-config/skills/skill-creator/references/prompting-integration.md +0 -363
- package/agents-config/skills/skill-creator/references/real-world-examples.md +0 -513
- package/agents-config/skills/skill-creator/references/script-patterns.md +0 -385
- package/agents-config/skills/skill-creator/references/workflows.md +0 -28
- package/agents-config/skills/skill-creator/references/xml-tag-guide.md +0 -606
- package/agents-config/skills/skill-creator/scripts/init-skill.ts +0 -214
- package/agents-config/skills/skill-creator/scripts/package-skill.ts +0 -146
- package/agents-config/skills/skill-creator/scripts/validate.ts +0 -138
- package/agents-config/skills/workflow-apex-free/SKILL.md +0 -261
- package/agents-config/skills/workflow-apex-free/scripts/setup-templates.sh +0 -100
- package/agents-config/skills/workflow-apex-free/scripts/update-progress.sh +0 -80
- package/agents-config/skills/workflow-apex-free/steps/step-00-init.md +0 -267
- package/agents-config/skills/workflow-apex-free/steps/step-00b-branch.md +0 -126
- package/agents-config/skills/workflow-apex-free/steps/step-00b-economy.md +0 -244
- package/agents-config/skills/workflow-apex-free/steps/step-00b-interactive.md +0 -153
- package/agents-config/skills/workflow-apex-free/steps/step-01-analyze.md +0 -361
- package/agents-config/skills/workflow-apex-free/steps/step-02-plan.md +0 -264
- package/agents-config/skills/workflow-apex-free/steps/step-03-execute.md +0 -239
- package/agents-config/skills/workflow-apex-free/steps/step-04-validate.md +0 -251
- package/agents-config/skills/workflow-apex-free/templates/00-context.md +0 -43
- package/agents-config/skills/workflow-apex-free/templates/01-analyze.md +0 -10
- package/agents-config/skills/workflow-apex-free/templates/02-plan.md +0 -10
- package/agents-config/skills/workflow-apex-free/templates/03-execute.md +0 -10
- package/agents-config/skills/workflow-apex-free/templates/04-validate.md +0 -10
- package/agents-config/skills/workflow-apex-free/templates/README.md +0 -176
- package/agents-config/skills/workflow-apex-free/templates/step-complete.md +0 -7
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AIBlueprint CLI
|
|
2
2
|
|
|
3
|
-
Supercharge Claude Code with security hooks, custom commands,
|
|
3
|
+
Supercharge Claude Code with security hooks, custom commands, a lightweight statusline, and workflow automation.
|
|
4
4
|
|
|
5
5
|
📚 **[Full Documentation](https://codelynx.dev/docs)** | 🎯 [Premium Features](https://mlv.sh/claude-cli)
|
|
6
6
|
|
|
@@ -14,10 +14,10 @@ npx aiblueprint-cli@latest agents setup
|
|
|
14
14
|
## ✨ Features
|
|
15
15
|
|
|
16
16
|
- **🛡️ Security** - Command validation hooks blocking dangerous operations
|
|
17
|
-
- **📊 Statusline** - Git status
|
|
17
|
+
- **📊 Statusline** - Git status and session context display
|
|
18
18
|
- **🤖 Commands** - 16 pre-configured workflow automation commands
|
|
19
19
|
- **🎭 Agents** - 3 specialized AI agents for codebase exploration
|
|
20
|
-
- **⚡ Scripts** - Built-in utilities
|
|
20
|
+
- **⚡ Scripts** - Built-in statusline utilities
|
|
21
21
|
|
|
22
22
|
## 📦 Installation
|
|
23
23
|
|
|
@@ -53,31 +53,14 @@ npx aiblueprint-cli@latest agents setup --skip
|
|
|
53
53
|
npx aiblueprint-cli@latest agents setup --folder ~/.my-claude
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
### Statusline
|
|
56
|
+
### Statusline
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
Install a lightweight Claude Code statusline:
|
|
59
59
|
|
|
60
60
|
```bash
|
|
61
|
-
|
|
62
|
-
npx aiblueprint-cli@latest agents statusline --list
|
|
63
|
-
|
|
64
|
-
# Today's spending report
|
|
65
|
-
npx aiblueprint-cli@latest agents statusline spend:today
|
|
66
|
-
|
|
67
|
-
# Weekly usage analysis
|
|
68
|
-
npx aiblueprint-cli@latest agents statusline weekly
|
|
69
|
-
|
|
70
|
-
# Configure statusline
|
|
71
|
-
npx aiblueprint-cli@latest agents statusline config
|
|
61
|
+
npx aiblueprint-cli@latest agents setup
|
|
72
62
|
```
|
|
73
63
|
|
|
74
|
-
**Available scripts:**
|
|
75
|
-
- `spend:today` / `spend:month` / `spend:project` - Spending reports
|
|
76
|
-
- `stats` - Daily usage statistics
|
|
77
|
-
- `weekly` - Weekly usage analysis
|
|
78
|
-
- `config` - Interactive configuration
|
|
79
|
-
- `migrate` - Migrate to SQLite database
|
|
80
|
-
|
|
81
64
|
### Other Commands
|
|
82
65
|
|
|
83
66
|
```bash
|
|
@@ -106,8 +89,7 @@ npx aiblueprint-cli@latest agents unify
|
|
|
106
89
|
### Custom Statusline
|
|
107
90
|
|
|
108
91
|
- Git branch, changes, and repository info
|
|
109
|
-
- Session
|
|
110
|
-
- Real-time token usage tracking
|
|
92
|
+
- Session context and duration
|
|
111
93
|
- Colored visual indicators
|
|
112
94
|
|
|
113
95
|
### Commands (16 Available)
|
|
@@ -124,7 +106,7 @@ npx aiblueprint-cli@latest agents unify
|
|
|
124
106
|
- `cleanup-context` - Memory optimization
|
|
125
107
|
|
|
126
108
|
**Utilities:**
|
|
127
|
-
- `
|
|
109
|
+
- `rules-manager` - AGENTS.md and `.agents/rules/` management
|
|
128
110
|
- `watch-ci` - Automated CI monitoring
|
|
129
111
|
- `epct` - Explore-Plan-Code-Test methodology
|
|
130
112
|
|
|
@@ -148,8 +130,8 @@ Install individual skills directly into `~/.claude/skills/`:
|
|
|
148
130
|
npx skills add Melvynx/aiblueprint --skill ultrathink
|
|
149
131
|
|
|
150
132
|
# Install multiple skills
|
|
151
|
-
npx skills add Melvynx/aiblueprint --skill
|
|
152
|
-
npx skills add Melvynx/aiblueprint --skill
|
|
133
|
+
npx skills add Melvynx/aiblueprint --skill rules-manager
|
|
134
|
+
npx skills add Melvynx/aiblueprint --skill skill-manager
|
|
153
135
|
```
|
|
154
136
|
|
|
155
137
|
**Available skills:**
|
|
@@ -160,16 +142,14 @@ npx skills add Melvynx/aiblueprint --skill fix-errors
|
|
|
160
142
|
| `create-pr` | Auto-generated pull requests |
|
|
161
143
|
| `fix-pr-comments` | Resolve PR review comments |
|
|
162
144
|
| `merge` | Context-aware branch merging |
|
|
163
|
-
| `claude-memory` | CLAUDE.md and .claude/rules management |
|
|
164
145
|
| `prompt-creator` | Expert prompt engineering |
|
|
165
|
-
| `skill-
|
|
166
|
-
| `
|
|
167
|
-
| `
|
|
168
|
-
| `
|
|
169
|
-
| `
|
|
146
|
+
| `skill-manager` | Manage skills and rules across Claude Code, Codex, and Cursor |
|
|
147
|
+
| `rules-manager` | Create and maintain AGENTS.md and agent rule files |
|
|
148
|
+
| `agents-managers` | Manage Claude Code agents and Task-tool orchestration |
|
|
149
|
+
| `environments-manager` | Set up per-worktree agent environments |
|
|
150
|
+
| `grill-me` | Stress-test a plan with focused design questions |
|
|
170
151
|
| `oneshot` | Ultra-fast feature implementation |
|
|
171
152
|
| `ultrathink` | Deep thinking mode for elegant solutions |
|
|
172
|
-
| `apex-free` | APEX methodology (Analyze-Plan-Execute-eXamine) |
|
|
173
153
|
|
|
174
154
|
## 💎 Premium
|
|
175
155
|
|
|
@@ -207,7 +187,7 @@ bun run test-local
|
|
|
207
187
|
|
|
208
188
|
- Node.js 16+ or Bun
|
|
209
189
|
- Claude Code installed
|
|
210
|
-
- Optional: `bun`, `
|
|
190
|
+
- Optional: `bun`, `gh CLI`
|
|
211
191
|
|
|
212
192
|
## 🤝 Contributing
|
|
213
193
|
|
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: explore-codebase
|
|
3
3
|
description: Use this agent whenever you need to explore the codebase to realize a feature.
|
|
4
|
-
|
|
5
|
-
model: haiku
|
|
4
|
+
model: sonnet
|
|
6
5
|
---
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
<role>
|
|
8
|
+
Codebase exploration specialist. Find and present ALL relevant code, patterns, and architecture for a requested feature. Be thorough — surface everything that matters.
|
|
9
|
+
</role>
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
<workflow>
|
|
12
|
+
1. **Discover** — Broad `Grep` searches to find entry points and related keywords
|
|
13
|
+
2. **Parallelize** — Run multiple searches simultaneously for different aspects (types, functions, routes, config)
|
|
14
|
+
3. **Read** — Read full files with `Read` to understand complete context
|
|
15
|
+
4. **Trace** — Follow import chains to discover hidden dependencies and connections
|
|
16
|
+
5. **Map** — Build a clear picture of how pieces connect
|
|
17
|
+
</workflow>
|
|
11
18
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
3. Read files completely with `Read` to understand context
|
|
15
|
-
4. Follow import chains to discover dependencies
|
|
16
|
-
|
|
17
|
-
## What to Find
|
|
18
|
-
|
|
19
|
-
- Existing similar features or patterns
|
|
19
|
+
<search_targets>
|
|
20
|
+
- Existing similar features or patterns to follow
|
|
20
21
|
- Related functions, classes, components
|
|
21
22
|
- Configuration and setup files
|
|
22
23
|
- Database schemas and models
|
|
23
24
|
- API endpoints and routes
|
|
24
25
|
- Tests showing usage examples
|
|
25
|
-
- Utility functions
|
|
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
|
-
- Avoid using it too much, maximum 2-3 calls and then use WebSearch. Each call cost 0.05$
|
|
26
|
+
- Utility functions available for reuse
|
|
27
|
+
</search_targets>
|
|
28
|
+
|
|
29
|
+
<constraints>
|
|
30
|
+
- NEVER create files of any kind
|
|
31
|
+
- ALWAYS output findings directly in your response
|
|
32
|
+
- Be thorough — include everything potentially relevant
|
|
33
|
+
- Read files fully before summarizing (don't guess from file names)
|
|
34
|
+
- Use `Glob` for file discovery, `Grep` for content search, `Read` for full context
|
|
35
|
+
- Exa MCP: max 2-3 calls only if external context is essential ($0.05 each)
|
|
36
|
+
</constraints>
|
|
37
|
+
|
|
38
|
+
<output_format>
|
|
39
|
+
**Relevant Files**:
|
|
40
|
+
|
|
41
|
+
`path/to/file.ext` — [Purpose]
|
|
42
|
+
- Lines X-Y: [Key code or logic]
|
|
43
|
+
- Lines Z: [Function/class definition]
|
|
44
|
+
- Connects to: [Relationship to feature]
|
|
45
|
+
|
|
46
|
+
`path/to/another.ext` — [Purpose]
|
|
47
|
+
- Lines X-Y: [Key code or logic]
|
|
48
|
+
|
|
49
|
+
**Patterns & Conventions**:
|
|
50
|
+
- [Naming conventions, architecture patterns, framework usage]
|
|
51
|
+
- [Existing approaches that should be followed]
|
|
52
|
+
|
|
53
|
+
**Dependencies**:
|
|
54
|
+
- Import relationships between key files
|
|
55
|
+
- External libraries in use
|
|
56
|
+
- API integrations
|
|
57
|
+
|
|
58
|
+
**Gaps**:
|
|
59
|
+
- [Libraries needing docs research]
|
|
60
|
+
- [External services to investigate]
|
|
61
|
+
</output_format>
|
|
62
|
+
|
|
63
|
+
<priority>
|
|
64
|
+
Thoroughness > Speed. Surface every relevant file and connection. The caller depends on complete context to make implementation decisions.
|
|
65
|
+
</priority>
|
|
@@ -1,84 +1,65 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: explore-docs
|
|
3
3
|
description: Use this agent to research library documentation and gather implementation context using Context7 MCP
|
|
4
|
-
|
|
5
|
-
model: haiku
|
|
4
|
+
model: sonnet
|
|
6
5
|
---
|
|
7
6
|
|
|
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
|
-
- Version: [if specified]
|
|
44
|
-
- Context7 ID: [resolved ID]
|
|
45
|
-
|
|
46
|
-
### Relevant Documentation
|
|
47
|
-
|
|
48
|
-
#### [Feature/Topic 1]
|
|
7
|
+
<role>
|
|
8
|
+
Documentation research specialist. Find relevant library docs and code examples using Context7 MCP, extracting only what's needed for implementation.
|
|
9
|
+
</role>
|
|
10
|
+
|
|
11
|
+
<workflow>
|
|
12
|
+
1. **Resolve** — Use `mcp__context7__resolve-library-id` to get the Context7-compatible library ID
|
|
13
|
+
2. **Query** — Use `mcp__context7__query-docs` with:
|
|
14
|
+
- The resolved library ID
|
|
15
|
+
- Specific topic query (e.g., "authentication setup", "hooks API")
|
|
16
|
+
- Token limit: 5000-10000 (adjust by complexity)
|
|
17
|
+
3. **Extract** — Pull implementation-relevant patterns, code examples, and configuration
|
|
18
|
+
4. **Fallback** — Only if Context7 lacks info, use `mcp__exa__get_code_context_exa` (max 2 calls, $0.05 each)
|
|
19
|
+
</workflow>
|
|
20
|
+
|
|
21
|
+
<constraints>
|
|
22
|
+
- NEVER create files of any kind
|
|
23
|
+
- ALWAYS output findings directly in your response
|
|
24
|
+
- Context7 first — only fall back to Exa when absolutely necessary
|
|
25
|
+
- Extract task-relevant info only, not entire documentation
|
|
26
|
+
- Code snippets > descriptions — always include working examples
|
|
27
|
+
- Maximum 2-3 Exa MCP calls total (cost control)
|
|
28
|
+
</constraints>
|
|
29
|
+
|
|
30
|
+
<extraction_focus>
|
|
31
|
+
- **Setup**: Dependencies, installation, configuration
|
|
32
|
+
- **Core APIs**: Functions, methods, props matching the task
|
|
33
|
+
- **Code Examples**: Real usage patterns (copy relevant snippets)
|
|
34
|
+
- **Patterns**: Idiomatic library usage
|
|
35
|
+
- **Gotchas**: Common pitfalls, version-specific issues
|
|
36
|
+
</extraction_focus>
|
|
37
|
+
|
|
38
|
+
<output_format>
|
|
39
|
+
**Library**: [name] — Context7 ID: [resolved ID]
|
|
40
|
+
|
|
41
|
+
**[Topic 1]**:
|
|
49
42
|
```
|
|
50
|
-
[
|
|
43
|
+
[Code example or API signature]
|
|
51
44
|
```
|
|
52
45
|
- Purpose: [what it does]
|
|
53
|
-
-
|
|
54
|
-
- Key parameters/props: [list with brief descriptions]
|
|
46
|
+
- Key params: [relevant parameters]
|
|
55
47
|
|
|
56
|
-
|
|
48
|
+
**[Topic 2]**:
|
|
57
49
|
```
|
|
58
|
-
[
|
|
50
|
+
[Code example]
|
|
59
51
|
```
|
|
60
52
|
- Purpose: [what it does]
|
|
61
|
-
-
|
|
62
|
-
|
|
63
|
-
### Implementation Notes
|
|
64
|
-
|
|
65
|
-
- Key patterns discovered: [list]
|
|
66
|
-
- Required setup steps: [list]
|
|
67
|
-
- Important gotchas or warnings: [list]
|
|
68
|
-
|
|
69
|
-
### Missing Information
|
|
70
|
-
|
|
71
|
-
- Topics needing web search: [list if any]
|
|
72
|
-
- Areas requiring more research: [list if any]
|
|
73
|
-
|
|
74
|
-
## Execution Rules
|
|
53
|
+
- Usage: [when/how to use]
|
|
75
54
|
|
|
76
|
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
- **Cost conscious**: Limit Exa calls to 2-3 maximum
|
|
55
|
+
**Implementation Notes**:
|
|
56
|
+
- Key patterns: [list]
|
|
57
|
+
- Required setup: [list]
|
|
58
|
+
- Gotchas: [list]
|
|
81
59
|
|
|
82
|
-
|
|
60
|
+
**Gaps**: [Topics needing further research, if any]
|
|
61
|
+
</output_format>
|
|
83
62
|
|
|
84
|
-
|
|
63
|
+
<priority>
|
|
64
|
+
Relevance > Completeness. Extract what's needed for the specific implementation task, not everything available.
|
|
65
|
+
</priority>
|
|
@@ -1,46 +1,42 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: websearch
|
|
3
3
|
description: Use this agent when you need to make a quick web search.
|
|
4
|
-
color: yellow
|
|
5
4
|
tools: WebSearch, WebFetch
|
|
6
|
-
model:
|
|
5
|
+
model: sonnet
|
|
7
6
|
---
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
- Prioritize
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
## Priority
|
|
45
|
-
|
|
46
|
-
Accuracy > Speed. Get the right answer quickly.
|
|
8
|
+
<role>
|
|
9
|
+
Rapid web search specialist. Find accurate, up-to-date information fast using targeted queries and authoritative sources.
|
|
10
|
+
</role>
|
|
11
|
+
|
|
12
|
+
<workflow>
|
|
13
|
+
1. **Search** — Use `WebSearch` with precise, specific keywords
|
|
14
|
+
2. **Fetch** — Use `WebFetch` on the most relevant results (max 2-3 fetches)
|
|
15
|
+
3. **Synthesize** — Extract and distill key information concisely
|
|
16
|
+
</workflow>
|
|
17
|
+
|
|
18
|
+
<constraints>
|
|
19
|
+
- NEVER create files of any kind
|
|
20
|
+
- ALWAYS output findings directly in your response
|
|
21
|
+
- Prioritize authoritative sources: official docs, reputable publications, verified sources
|
|
22
|
+
- Use specific keywords over vague terms
|
|
23
|
+
- Skip redundant or low-quality results
|
|
24
|
+
- Prefer recent information when time-sensitivity matters
|
|
25
|
+
</constraints>
|
|
26
|
+
|
|
27
|
+
<output_format>
|
|
28
|
+
**Summary**: Clear, concise answer to the query in 1-3 sentences.
|
|
29
|
+
|
|
30
|
+
**Key Points**:
|
|
31
|
+
- Most important finding
|
|
32
|
+
- Second important finding
|
|
33
|
+
- Additional relevant details (if any)
|
|
34
|
+
|
|
35
|
+
**Sources**:
|
|
36
|
+
1. [Title](URL) — Brief relevance note
|
|
37
|
+
2. [Title](URL) — Brief relevance note
|
|
38
|
+
</output_format>
|
|
39
|
+
|
|
40
|
+
<priority>
|
|
41
|
+
Accuracy > Speed. Get the right answer quickly. When uncertain, verify across multiple sources before responding.
|
|
42
|
+
</priority>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fix-on-my-computer
|
|
3
|
+
description: Setup wizard - verify bun, install deps, run tests, fix until ALL pass
|
|
4
|
+
allowed-tools: Bash, Read, Edit, Write, Glob, Grep
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Setup Wizard
|
|
8
|
+
|
|
9
|
+
Make this scripts repository work PERFECTLY on this machine.
|
|
10
|
+
|
|
11
|
+
Relentless setup wizard. Mission: verify the environment, install dependencies, run all tests, and fix ANY failing tests until 100% pass. NEVER give up until every single test is green.
|
|
12
|
+
|
|
13
|
+
## Context
|
|
14
|
+
|
|
15
|
+
Current OS: !`uname -s`
|
|
16
|
+
Current directory: !`pwd`
|
|
17
|
+
Bun version: !`bun --version 2>&1 || echo "NOT_INSTALLED"`
|
|
18
|
+
|
|
19
|
+
## Process
|
|
20
|
+
|
|
21
|
+
### Phase 1: Environment Check
|
|
22
|
+
|
|
23
|
+
1. Verify Bun is installed (`bun --version`)
|
|
24
|
+
- If NOT installed → STOP and tell user: "Install Bun from https://bun.sh"
|
|
25
|
+
2. Verify in correct directory (must have package.json with "test" script)
|
|
26
|
+
3. Check OS: macOS/Linux (full support), Windows (needs WSL)
|
|
27
|
+
|
|
28
|
+
### Phase 2: Install Dependencies
|
|
29
|
+
|
|
30
|
+
4. Run `bun install`
|
|
31
|
+
- If fails: Delete `bun.lockb` and retry
|
|
32
|
+
- If still fails: Report specific error to user
|
|
33
|
+
|
|
34
|
+
### Phase 3: Run Tests
|
|
35
|
+
|
|
36
|
+
5. Run `bun run test`
|
|
37
|
+
6. Record output - note which tests pass/fail
|
|
38
|
+
|
|
39
|
+
### Phase 4: Fix Loop (NEVER STOP UNTIL GREEN)
|
|
40
|
+
|
|
41
|
+
7. While ANY tests fail:
|
|
42
|
+
- Analyze the error message
|
|
43
|
+
- Identify root cause:
|
|
44
|
+
- Missing dependency → `bun install <package>`
|
|
45
|
+
- Wrong import path → Fix the import
|
|
46
|
+
- Cross-platform issue → Use `path.join()`, `os.homedir()`
|
|
47
|
+
- Missing credentials → Check `~/.claude/.credentials.json`
|
|
48
|
+
- File not found → Verify path exists
|
|
49
|
+
- Type error → Fix TypeScript
|
|
50
|
+
- Apply minimal fix
|
|
51
|
+
- Re-run `bun run test`
|
|
52
|
+
- **REPEAT until 100% green**
|
|
53
|
+
|
|
54
|
+
### Phase 5: Final Verification
|
|
55
|
+
|
|
56
|
+
8. Run `bun run test` one final time
|
|
57
|
+
9. Run `bun run lint` (fix if needed)
|
|
58
|
+
|
|
59
|
+
### Phase 6: Victory Report
|
|
60
|
+
|
|
61
|
+
10. Report to user:
|
|
62
|
+
- Total tests passed
|
|
63
|
+
- Fixes applied (list each one)
|
|
64
|
+
- Status: READY TO USE
|
|
65
|
+
|
|
66
|
+
## Testing Commands
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
bun install
|
|
70
|
+
bun run test
|
|
71
|
+
bun run lint
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Success Criteria
|
|
75
|
+
|
|
76
|
+
Before declaring success:
|
|
77
|
+
- `bun run test` exits with code 0
|
|
78
|
+
- ALL 186+ tests pass
|
|
79
|
+
- No lint errors
|
|
80
|
+
- All package.json scripts work
|
|
81
|
+
- Repository is READY TO USE
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
# Scripts - Project Memory
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Lightweight script bundle for Claude Code utilities.
|
|
4
4
|
|
|
5
5
|
## Structure
|
|
6
6
|
|
|
7
7
|
```
|
|
8
8
|
scripts/
|
|
9
9
|
├── statusline/ # Custom statusline for Claude Code
|
|
10
|
-
└── package.json # Root package
|
|
10
|
+
└── package.json # Root package with all scripts
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Commands
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
16
|
bun run test # Run statusline tests
|
|
17
|
-
bun run lint # Lint
|
|
17
|
+
bun run lint # Lint scripts
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
### Per-Package Commands
|
|
@@ -25,7 +25,13 @@ bun run lint # Lint
|
|
|
25
25
|
|
|
26
26
|
## Cross-Platform Support
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
All packages support macOS, Linux, and Windows (via WSL):
|
|
29
29
|
- Use `path.join()` instead of string concatenation
|
|
30
30
|
- Use `os.homedir()` instead of `process.env.HOME`
|
|
31
31
|
- Use `path.sep` or regex `[/\\]` for path splitting
|
|
32
|
+
|
|
33
|
+
## Shared Dependencies
|
|
34
|
+
|
|
35
|
+
- `picocolors` - Terminal colors
|
|
36
|
+
- `@biomejs/biome` - Linting/formatting
|
|
37
|
+
- `bun:test` - Testing
|
|
Binary file
|
|
@@ -1,32 +1,24 @@
|
|
|
1
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
|
-
"devDependencies": {
|
|
26
|
-
"@biomejs/biome": "^2.3.2",
|
|
27
|
-
"@types/bun": "latest"
|
|
28
|
-
},
|
|
29
|
-
"peerDependencies": {
|
|
30
|
-
"typescript": "^5.0.0"
|
|
31
|
-
}
|
|
2
|
+
"name": "scripts",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"test": "bun test statusline",
|
|
6
|
+
"statusline:start": "bun statusline/src/index.ts",
|
|
7
|
+
"statusline:test": "bun test statusline",
|
|
8
|
+
"statusline:test-fixtures": "bun statusline/test-with-fixtures.ts",
|
|
9
|
+
"statusline:config": "bun statusline/src/commands/interactive-config.ts",
|
|
10
|
+
"statusline:lint": "biome check --write statusline",
|
|
11
|
+
"lint": "biome check --write .",
|
|
12
|
+
"format": "biome format --write ."
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"picocolors": "^1.1.1"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@biomejs/biome": "^2.3.2",
|
|
19
|
+
"@types/bun": "latest"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"typescript": "^5.0.0"
|
|
23
|
+
}
|
|
32
24
|
}
|