aiblueprint-cli 1.4.58 → 1.4.60

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 (180) hide show
  1. package/README.md +19 -36
  2. package/agents-config/agents/action.md +1 -1
  3. package/agents-config/agents/explore-codebase.md +53 -53
  4. package/agents-config/agents/explore-docs.md +50 -69
  5. package/agents-config/agents/websearch.md +36 -40
  6. package/agents-config/claude-config/scripts/.claude/skills/fix-on-my-computer/SKILL.md +81 -0
  7. package/agents-config/claude-config/scripts/CLAUDE.md +10 -4
  8. package/agents-config/claude-config/scripts/bun.lockb +0 -0
  9. package/agents-config/claude-config/scripts/package.json +22 -30
  10. package/agents-config/claude-config/scripts/statusline/CLAUDE.md +37 -155
  11. package/agents-config/claude-config/scripts/statusline/README.md +18 -94
  12. package/agents-config/claude-config/scripts/statusline/defaults.json +13 -10
  13. package/agents-config/claude-config/scripts/statusline/fixtures/mock-transcript.jsonl +4 -4
  14. package/agents-config/claude-config/scripts/statusline/fixtures/test-input.json +4 -4
  15. package/agents-config/claude-config/scripts/statusline/src/commands/interactive-config.ts +403 -0
  16. package/agents-config/claude-config/scripts/statusline/src/index.ts +33 -82
  17. package/agents-config/claude-config/scripts/statusline/src/lib/config-types.ts +7 -1
  18. package/agents-config/claude-config/scripts/statusline/src/lib/formatters.ts +40 -0
  19. package/agents-config/claude-config/scripts/statusline/src/lib/presets.ts +13 -13
  20. package/agents-config/claude-config/scripts/statusline/src/lib/render-pure.ts +24 -5
  21. package/agents-config/claude-config/scripts/statusline/statusline.config.free.json +79 -0
  22. package/agents-config/claude-config/scripts/statusline/statusline.config.json +77 -77
  23. package/agents-config/commands/prompts/create-vitejs-app.md +272 -0
  24. package/agents-config/commands/prompts/nextjs-add-prisma-db.md +136 -0
  25. package/agents-config/commands/prompts/nextjs-setup-better-auth.md +173 -0
  26. package/agents-config/commands/prompts/nextjs-setup-project.md +200 -0
  27. package/agents-config/commands/prompts/prompt.md +55 -0
  28. package/agents-config/commands/prompts/saas-challenge-idea.md +135 -0
  29. package/agents-config/commands/prompts/saas-create-architecture.md +242 -0
  30. package/agents-config/commands/prompts/saas-create-headline.md +132 -0
  31. package/agents-config/commands/prompts/saas-create-landing-copywritting.md +267 -0
  32. package/agents-config/commands/prompts/saas-create-legals-docs.md +176 -0
  33. package/agents-config/commands/prompts/saas-create-logos.md +240 -0
  34. package/agents-config/commands/prompts/saas-create-prd.md +195 -0
  35. package/agents-config/commands/prompts/saas-create-tasks.md +240 -0
  36. package/agents-config/commands/prompts/saas-define-pricing.md +293 -0
  37. package/agents-config/commands/prompts/saas-find-domain-name.md +190 -0
  38. package/agents-config/commands/prompts/saas-implement-landing-page.md +257 -0
  39. package/agents-config/commands/prompts/setup-tmux.md +160 -0
  40. package/agents-config/commands/prompts/tools.md +148 -0
  41. package/agents-config/scripts/.claude/skills/fix-on-my-computer/SKILL.md +81 -0
  42. package/agents-config/scripts/CLAUDE.md +37 -0
  43. package/agents-config/scripts/biome.json +37 -0
  44. package/agents-config/scripts/bun.lockb +0 -0
  45. package/agents-config/scripts/package.json +24 -0
  46. package/agents-config/scripts/statusline/CLAUDE.md +87 -0
  47. package/agents-config/scripts/statusline/README.md +117 -0
  48. package/agents-config/scripts/statusline/__tests__/context.test.ts +229 -0
  49. package/agents-config/scripts/statusline/__tests__/formatters.test.ts +108 -0
  50. package/agents-config/scripts/statusline/__tests__/statusline.test.ts +309 -0
  51. package/agents-config/scripts/statusline/defaults.json +82 -0
  52. package/agents-config/scripts/statusline/fixtures/mock-transcript.jsonl +4 -0
  53. package/agents-config/scripts/statusline/fixtures/test-input.json +35 -0
  54. package/agents-config/scripts/statusline/src/commands/interactive-config.ts +403 -0
  55. package/agents-config/scripts/statusline/src/index.ts +141 -0
  56. package/agents-config/scripts/statusline/src/lib/config-types.ts +110 -0
  57. package/agents-config/scripts/statusline/src/lib/config.ts +21 -0
  58. package/agents-config/scripts/statusline/src/lib/context.ts +103 -0
  59. package/agents-config/scripts/statusline/src/lib/formatters.ts +426 -0
  60. package/agents-config/scripts/statusline/src/lib/git.ts +100 -0
  61. package/agents-config/scripts/statusline/src/lib/menu-factories.ts +224 -0
  62. package/agents-config/scripts/statusline/src/lib/presets.ts +177 -0
  63. package/agents-config/scripts/statusline/src/lib/render-pure.ts +516 -0
  64. package/agents-config/scripts/statusline/src/lib/types.ts +36 -0
  65. package/agents-config/scripts/statusline/src/lib/utils.ts +15 -0
  66. package/agents-config/scripts/statusline/statusline.config.free.json +79 -0
  67. package/agents-config/scripts/statusline/statusline.config.json +79 -0
  68. package/agents-config/scripts/statusline/test-with-fixtures.ts +37 -0
  69. package/agents-config/scripts/statusline/test.ts +20 -0
  70. package/agents-config/scripts/statusline/tsconfig.json +27 -0
  71. package/agents-config/scripts/tsconfig.json +27 -0
  72. package/agents-config/skills/{subagent-creator → agents-managers}/SKILL.md +47 -47
  73. package/agents-config/skills/{subagent-creator/references/subagents.md → agents-managers/references/agents.md} +45 -45
  74. package/agents-config/skills/{subagent-creator → agents-managers}/references/context-management.md +20 -20
  75. package/agents-config/skills/{subagent-creator → agents-managers}/references/debugging-agents.md +27 -27
  76. package/agents-config/skills/{subagent-creator → agents-managers}/references/error-handling-and-recovery.md +19 -19
  77. package/agents-config/skills/{subagent-creator → agents-managers}/references/evaluation-and-testing.md +29 -29
  78. package/agents-config/skills/{subagent-creator → agents-managers}/references/orchestration-patterns.md +5 -5
  79. package/agents-config/skills/{subagent-creator/references/writing-subagent-prompts.md → agents-managers/references/writing-agent-prompts.md} +23 -23
  80. package/agents-config/skills/codex-environment/SKILL.md +2 -0
  81. package/agents-config/skills/commit/SKILL.md +2 -0
  82. package/agents-config/skills/create-pr/SKILL.md +2 -0
  83. package/agents-config/skills/environments-manager/SKILL.md +271 -0
  84. package/agents-config/skills/environments-manager/examples/claude/.worktreeinclude +3 -0
  85. package/agents-config/skills/environments-manager/examples/claude/commands/dev.md +5 -0
  86. package/agents-config/skills/environments-manager/examples/claude/commands/lint.md +5 -0
  87. package/agents-config/skills/environments-manager/examples/claude/commands/test.md +5 -0
  88. package/agents-config/skills/environments-manager/examples/claude/commands/typecheck.md +5 -0
  89. package/agents-config/skills/environments-manager/examples/claude/settings.json +24 -0
  90. package/agents-config/skills/environments-manager/examples/codex/environments/environment.toml +29 -0
  91. package/agents-config/skills/environments-manager/examples/cursor/worktrees.json +3 -0
  92. package/agents-config/skills/environments-manager/examples/scripts/claude-worktree-create.sh +96 -0
  93. package/agents-config/skills/environments-manager/examples/scripts/claude-worktree-remove.sh +66 -0
  94. package/agents-config/skills/environments-manager/examples/scripts/dev.sh +15 -0
  95. package/agents-config/skills/environments-manager/examples/scripts/worktree-down.sh +22 -0
  96. package/agents-config/skills/environments-manager/examples/scripts/worktree-up.sh +50 -0
  97. package/agents-config/skills/environments-manager/references/claude.md +156 -0
  98. package/agents-config/skills/environments-manager/references/codex.md +97 -0
  99. package/agents-config/skills/environments-manager/references/cursor.md +88 -0
  100. package/agents-config/skills/fix-pr-comments/SKILL.md +2 -0
  101. package/agents-config/skills/grill-me/SKILL.md +10 -0
  102. package/agents-config/skills/merge/SKILL.md +2 -0
  103. package/agents-config/skills/rules-manager/SKILL.md +191 -0
  104. package/agents-config/skills/rules-manager/references/agents-vs-claude.md +66 -0
  105. package/agents-config/skills/rules-manager/references/examples.md +117 -0
  106. package/agents-config/skills/skill-manager/SKILL.md +83 -0
  107. package/agents-config/skills/skill-manager/references/claude-code.md +81 -0
  108. package/agents-config/skills/skill-manager/references/codex.md +288 -0
  109. package/agents-config/skills/skill-manager/references/cursor.md +125 -0
  110. package/agents-config/skills/ultrathink/SKILL.md +2 -0
  111. package/dist/cli.js +618 -182
  112. package/package.json +1 -1
  113. package/agents-config/claude-config/scripts/statusline/data/.gitignore +0 -8
  114. package/agents-config/claude-config/scripts/statusline/data/.gitkeep +0 -0
  115. package/agents-config/claude-config/scripts/statusline/docs/ARCHITECTURE.md +0 -166
  116. package/agents-config/claude-config/scripts/statusline/src/tests/spend-v2.test.ts +0 -306
  117. package/agents-config/skills/apex/SKILL.md +0 -261
  118. package/agents-config/skills/apex/scripts/setup-templates.sh +0 -100
  119. package/agents-config/skills/apex/scripts/update-progress.sh +0 -80
  120. package/agents-config/skills/apex/steps/step-00-init.md +0 -267
  121. package/agents-config/skills/apex/steps/step-00b-branch.md +0 -126
  122. package/agents-config/skills/apex/steps/step-00b-economy.md +0 -244
  123. package/agents-config/skills/apex/steps/step-00b-interactive.md +0 -153
  124. package/agents-config/skills/apex/steps/step-01-analyze.md +0 -361
  125. package/agents-config/skills/apex/steps/step-02-plan.md +0 -264
  126. package/agents-config/skills/apex/steps/step-03-execute.md +0 -239
  127. package/agents-config/skills/apex/steps/step-04-validate.md +0 -251
  128. package/agents-config/skills/apex/templates/00-context.md +0 -43
  129. package/agents-config/skills/apex/templates/01-analyze.md +0 -10
  130. package/agents-config/skills/apex/templates/02-plan.md +0 -10
  131. package/agents-config/skills/apex/templates/03-execute.md +0 -10
  132. package/agents-config/skills/apex/templates/04-validate.md +0 -10
  133. package/agents-config/skills/apex/templates/README.md +0 -176
  134. package/agents-config/skills/apex/templates/step-complete.md +0 -7
  135. package/agents-config/skills/claude-memory/SKILL.md +0 -293
  136. package/agents-config/skills/claude-memory/references/comprehensive-example.md +0 -175
  137. package/agents-config/skills/claude-memory/references/optimize-guide.md +0 -300
  138. package/agents-config/skills/claude-memory/references/project-patterns.md +0 -334
  139. package/agents-config/skills/claude-memory/references/prompting-techniques.md +0 -411
  140. package/agents-config/skills/claude-memory/references/rules-directory-guide.md +0 -298
  141. package/agents-config/skills/claude-memory/references/section-templates.md +0 -347
  142. package/agents-config/skills/fix-errors/SKILL.md +0 -61
  143. package/agents-config/skills/fix-grammar/SKILL.md +0 -59
  144. package/agents-config/skills/ralph-loop/SKILL.md +0 -117
  145. package/agents-config/skills/ralph-loop/scripts/setup.sh +0 -278
  146. package/agents-config/skills/ralph-loop/steps/step-00-init.md +0 -215
  147. package/agents-config/skills/ralph-loop/steps/step-01-interactive-prd.md +0 -366
  148. package/agents-config/skills/ralph-loop/steps/step-02-create-stories.md +0 -273
  149. package/agents-config/skills/ralph-loop/steps/step-03-finish.md +0 -245
  150. package/agents-config/skills/skill-creator/LICENSE.txt +0 -202
  151. package/agents-config/skills/skill-creator/SKILL.md +0 -421
  152. package/agents-config/skills/skill-creator/package.json +0 -5
  153. package/agents-config/skills/skill-creator/references/output-patterns.md +0 -82
  154. package/agents-config/skills/skill-creator/references/progressive-disclosure-patterns.md +0 -374
  155. package/agents-config/skills/skill-creator/references/prompting-integration.md +0 -363
  156. package/agents-config/skills/skill-creator/references/real-world-examples.md +0 -513
  157. package/agents-config/skills/skill-creator/references/script-patterns.md +0 -385
  158. package/agents-config/skills/skill-creator/references/workflows.md +0 -28
  159. package/agents-config/skills/skill-creator/references/xml-tag-guide.md +0 -606
  160. package/agents-config/skills/skill-creator/scripts/init-skill.ts +0 -214
  161. package/agents-config/skills/skill-creator/scripts/package-skill.ts +0 -146
  162. package/agents-config/skills/skill-creator/scripts/validate.ts +0 -138
  163. package/agents-config/skills/workflow-apex-free/SKILL.md +0 -261
  164. package/agents-config/skills/workflow-apex-free/scripts/setup-templates.sh +0 -100
  165. package/agents-config/skills/workflow-apex-free/scripts/update-progress.sh +0 -80
  166. package/agents-config/skills/workflow-apex-free/steps/step-00-init.md +0 -267
  167. package/agents-config/skills/workflow-apex-free/steps/step-00b-branch.md +0 -126
  168. package/agents-config/skills/workflow-apex-free/steps/step-00b-economy.md +0 -244
  169. package/agents-config/skills/workflow-apex-free/steps/step-00b-interactive.md +0 -153
  170. package/agents-config/skills/workflow-apex-free/steps/step-01-analyze.md +0 -361
  171. package/agents-config/skills/workflow-apex-free/steps/step-02-plan.md +0 -264
  172. package/agents-config/skills/workflow-apex-free/steps/step-03-execute.md +0 -239
  173. package/agents-config/skills/workflow-apex-free/steps/step-04-validate.md +0 -251
  174. package/agents-config/skills/workflow-apex-free/templates/00-context.md +0 -43
  175. package/agents-config/skills/workflow-apex-free/templates/01-analyze.md +0 -10
  176. package/agents-config/skills/workflow-apex-free/templates/02-plan.md +0 -10
  177. package/agents-config/skills/workflow-apex-free/templates/03-execute.md +0 -10
  178. package/agents-config/skills/workflow-apex-free/templates/04-validate.md +0 -10
  179. package/agents-config/skills/workflow-apex-free/templates/README.md +0 -176
  180. 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, intelligent statusline, and workflow automation.
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, cost tracking, and token usage display
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 for spending reports and usage stats
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 Scripts
56
+ ### Statusline
57
57
 
58
- Run utility scripts from anywhere:
58
+ Install a lightweight Claude Code statusline:
59
59
 
60
60
  ```bash
61
- # List available scripts
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
@@ -90,6 +73,9 @@ npx aiblueprint-cli@latest agents add commands commit
90
73
 
91
74
  # Create symlinks between tools
92
75
  npx aiblueprint-cli@latest agents symlink
76
+
77
+ # Centralize skills and agents in ~/.agents
78
+ npx aiblueprint-cli@latest agents unify
93
79
  ```
94
80
 
95
81
  ## 📚 What You Get
@@ -103,8 +89,7 @@ npx aiblueprint-cli@latest agents symlink
103
89
  ### Custom Statusline
104
90
 
105
91
  - Git branch, changes, and repository info
106
- - Session costs and daily limits via ccusage
107
- - Real-time token usage tracking
92
+ - Session context and duration
108
93
  - Colored visual indicators
109
94
 
110
95
  ### Commands (16 Available)
@@ -121,7 +106,7 @@ npx aiblueprint-cli@latest agents symlink
121
106
  - `cleanup-context` - Memory optimization
122
107
 
123
108
  **Utilities:**
124
- - `claude-memory` - CLAUDE.md management
109
+ - `rules-manager` - AGENTS.md and `.agents/rules/` management
125
110
  - `watch-ci` - Automated CI monitoring
126
111
  - `epct` - Explore-Plan-Code-Test methodology
127
112
 
@@ -145,8 +130,8 @@ Install individual skills directly into `~/.claude/skills/`:
145
130
  npx skills add Melvynx/aiblueprint --skill ultrathink
146
131
 
147
132
  # Install multiple skills
148
- npx skills add Melvynx/aiblueprint --skill claude-memory
149
- npx skills add Melvynx/aiblueprint --skill fix-errors
133
+ npx skills add Melvynx/aiblueprint --skill rules-manager
134
+ npx skills add Melvynx/aiblueprint --skill skill-manager
150
135
  ```
151
136
 
152
137
  **Available skills:**
@@ -157,16 +142,14 @@ npx skills add Melvynx/aiblueprint --skill fix-errors
157
142
  | `create-pr` | Auto-generated pull requests |
158
143
  | `fix-pr-comments` | Resolve PR review comments |
159
144
  | `merge` | Context-aware branch merging |
160
- | `claude-memory` | CLAUDE.md and .claude/rules management |
161
145
  | `prompt-creator` | Expert prompt engineering |
162
- | `skill-creator` | Guide for creating Claude Code skills |
163
- | `subagent-creator` | Guide for building subagents |
164
- | `ralph-loop` | Autonomous AI coding loop |
165
- | `fix-errors` | Fix ESLint and TypeScript errors |
166
- | `fix-grammar` | Fix grammar and spelling |
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 |
167
151
  | `oneshot` | Ultra-fast feature implementation |
168
152
  | `ultrathink` | Deep thinking mode for elegant solutions |
169
- | `apex-free` | APEX methodology (Analyze-Plan-Execute-eXamine) |
170
153
 
171
154
  ## 💎 Premium
172
155
 
@@ -204,7 +187,7 @@ bun run test-local
204
187
 
205
188
  - Node.js 16+ or Bun
206
189
  - Claude Code installed
207
- - Optional: `bun`, `ccusage`, `gh CLI`
190
+ - Optional: `bun`, `gh CLI`
208
191
 
209
192
  ## 🤝 Contributing
210
193
 
@@ -2,7 +2,7 @@
2
2
  name: action
3
3
  description: Conditional action executor - performs actions only when specific conditions are met
4
4
  color: purple
5
- model: haiku
5
+ model: sonnet
6
6
  ---
7
7
 
8
8
  Batch conditional executor. Handle ≤5 tasks. VERIFY INDEPENDENTLY before each action.
@@ -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
- color: yellow
5
- model: haiku
4
+ model: sonnet
6
5
  ---
7
6
 
8
- You are a codebase exploration specialist. Your only job is to find and present ALL relevant code and logic for the requested feature.
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
- ## Search Strategy
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
- 1. Start with broad searches using `Grep` to find entry points
13
- 2. Use parallel searches for multiple related keywords
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 that might be reused
26
-
27
- ## Output Format
28
-
29
- **CRITICAL**: Output all findings directly in your response. NEVER create markdown files.
30
-
31
- ### Relevant Files Found
32
-
33
- For each file:
34
-
35
- ```
36
- Path: /full/path/to/file.ext
37
- Purpose: [One line description]
38
- Key Code:
39
- - Lines X-Y: [Actual code or logic description]
40
- - Line Z: [Function/class definition]
41
- Related to: [How it connects to the feature]
42
- ```
43
-
44
- ### Code Patterns & Conventions
45
-
46
- - List discovered patterns (naming, structure, frameworks)
47
- - Note existing approaches that should be followed
48
-
49
- ### Dependencies & Connections
50
-
51
- - Import relationships between files
52
- - External libraries used
53
- - API integrations found
54
-
55
- ### Missing Information
56
-
57
- - Libraries needing documentation: [list]
58
- - External services to research: [list]
59
-
60
- Focus on discovering and documenting existing code. Be thorough - include everything that might be relevant. Output everything directly in your response.
61
-
62
- ## Exa MCP
63
-
64
- - You can use Exa web search for quick search
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
- color: yellow
5
- model: haiku
4
+ model: sonnet
6
5
  ---
7
6
 
8
- You are a documentation research specialist. Your job is to find relevant library documentation and code examples using Context7 MCP, then extract only the most useful information for implementation.
9
-
10
- ## Research Strategy
11
-
12
- 1. **Resolve Library ID**: Use `mcp__context7__resolve-library-id` with library name
13
- 2. **Fetch Documentation**: Use `mcp__context7__get-library-docs` with:
14
- - The Context7-compatible library ID from step 1
15
- - Specific topic if provided (e.g., "routing", "authentication", "hooks")
16
- - Token limit: 5000-10000 tokens (adjust based on complexity)
17
- 3. **Extract Key Information**: Focus on implementation patterns, not theory
18
-
19
- ## Cost Awareness
20
-
21
- **CRITICAL**: Minimize expensive MCP calls
22
- - Context7: Primary tool (reasonable cost)
23
- - Exa MCP (`mcp__exa__get_code_context_exa`): Use ONLY if Context7 lacks info (0.05$ per call)
24
- - Maximum 2-3 Exa calls total if absolutely needed
25
- - Prefer Context7 over Exa whenever possible
26
-
27
- ## What to Extract
28
-
29
- From documentation, gather:
30
- - **Setup/Installation**: Required dependencies, configuration
31
- - **Core APIs**: Functions, methods, props that match the task
32
- - **Code Examples**: Actual usage patterns (copy relevant snippets)
33
- - **Common Patterns**: How the library is typically used
34
- - **Configuration**: Required settings or environment setup
35
- - **Integration Points**: How it connects with other tools
36
-
37
- ## Output Format
38
-
39
- **CRITICAL**: Output findings directly. NEVER create markdown files.
40
-
41
- ### Library Information
42
- - Name: [library name]
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
- [Actual code example or API signature]
43
+ [Code example or API signature]
51
44
  ```
52
45
  - Purpose: [what it does]
53
- - Usage: [when to use it]
54
- - Key parameters/props: [list with brief descriptions]
46
+ - Key params: [relevant parameters]
55
47
 
56
- #### [Feature/Topic 2]
48
+ **[Topic 2]**:
57
49
  ```
58
- [Actual code example]
50
+ [Code example]
59
51
  ```
60
52
  - Purpose: [what it does]
61
- - Related to task: [how it applies]
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
- - **Context7 first**: Always try Context7 before considering Exa
77
- - **Be selective**: Extract only task-relevant info, not entire docs
78
- - **Include examples**: Code snippets are more valuable than descriptions
79
- - **Stay focused**: Match documentation to the specific task prompt
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
- ## Priority
60
+ **Gaps**: [Topics needing further research, if any]
61
+ </output_format>
83
62
 
84
- Relevance > Completeness. Extract what's needed for implementation, not everything available.
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: haiku
5
+ model: sonnet
7
6
  ---
8
7
 
9
- You are a rapid web search specialist. Find accurate information fast.
10
-
11
- ## Workflow
12
-
13
- 1. **Search**: Use `WebSearch` with precise keywords
14
- 2. **Fetch**: Use `WebFetch` for most relevant results
15
- 3. **Summarize**: Extract key information concisely
16
-
17
- ## Search Best Practices
18
-
19
- - Focus on authoritative sources (official docs, trusted sites)
20
- - Skip redundant information
21
- - Use specific keywords rather than vague terms
22
- - Prioritize recent information when relevant
23
-
24
- ## Output Format
25
-
26
- **CRITICAL**: Output all findings directly in your response. NEVER create markdown files.
27
-
28
- <summary>
29
- [Clear, concise answer to the query]
30
- </summary>
31
-
32
- <key-points>
33
- [Most important fact]
34
- [Second important fact]
35
- • [Additional relevant info]
36
- </key-points>
37
-
38
- <sources>
39
- 1. [Title](URL) - Brief description
40
- 2. [Title](URL) - What it contains
41
- 3. [Title](URL) - Why it's relevant
42
- </sources>
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
- Houses the statusline script for Claude Code.
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
- The statusline supports macOS, Linux, and Windows (via WSL):
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
@@ -1,32 +1,24 @@
1
1
  {
2
- "name": "scripts",
3
- "type": "module",
4
- "scripts": {
5
- "test": "bun test statusline",
6
- "statusline:start": "bun statusline/src/index.ts",
7
- "statusline:test-fixtures": "bun statusline/test-with-fixtures.ts",
8
- "statusline:test": "bun test statusline",
9
- "statusline:spend:today": "bun statusline/src/lib/features/spend/commands/spend-today.ts",
10
- "statusline:spend:month": "bun statusline/src/lib/features/spend/commands/spend-month.ts",
11
- "statusline:spend:project": "bun statusline/src/lib/features/spend/commands/spend-project.ts",
12
- "statusline:migrate": "bun statusline/src/lib/features/spend/commands/migrate-to-sqlite.ts",
13
- "statusline:weekly": "bun statusline/src/lib/features/limits/commands/weekly-analysis.ts",
14
- "statusline:lint": "biome check --write statusline",
15
- "lint": "biome check --write .",
16
- "format": "biome format --write ."
17
- },
18
- "dependencies": {
19
- "@ai-sdk/anthropic": "^3.0.6",
20
- "ai": "^6.0.11",
21
- "picocolors": "^1.1.1",
22
- "table": "^6.9.0",
23
- "zod": "^4.3.5"
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
  }