aiblueprint-cli 1.4.11 → 1.4.13

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 (55) hide show
  1. package/claude-code-config/scripts/.claude/commands/fix-on-my-computer.md +87 -0
  2. package/claude-code-config/scripts/command-validator/CLAUDE.md +112 -0
  3. package/claude-code-config/scripts/command-validator/src/__tests__/validator.test.ts +62 -111
  4. package/claude-code-config/scripts/command-validator/src/cli.ts +5 -3
  5. package/claude-code-config/scripts/command-validator/src/lib/security-rules.ts +3 -4
  6. package/claude-code-config/scripts/command-validator/src/lib/types.ts +1 -0
  7. package/claude-code-config/scripts/command-validator/src/lib/validator.ts +47 -317
  8. package/claude-code-config/scripts/statusline/CLAUDE.md +29 -7
  9. package/claude-code-config/scripts/statusline/README.md +89 -1
  10. package/claude-code-config/scripts/statusline/defaults.json +75 -0
  11. package/claude-code-config/scripts/statusline/src/index.ts +101 -24
  12. package/claude-code-config/scripts/statusline/src/lib/config-types.ts +100 -0
  13. package/claude-code-config/scripts/statusline/src/lib/config.ts +21 -0
  14. package/claude-code-config/scripts/statusline/src/lib/context.ts +32 -11
  15. package/claude-code-config/scripts/statusline/src/lib/formatters.ts +360 -22
  16. package/claude-code-config/scripts/statusline/src/lib/git.ts +100 -0
  17. package/claude-code-config/scripts/statusline/src/lib/render-pure.ts +177 -0
  18. package/claude-code-config/scripts/statusline/src/lib/types.ts +11 -0
  19. package/claude-code-config/scripts/statusline/statusline.config.json +93 -0
  20. package/claude-code-config/skills/claude-memory/SKILL.md +689 -0
  21. package/claude-code-config/skills/claude-memory/references/comprehensive-example.md +175 -0
  22. package/claude-code-config/skills/claude-memory/references/project-patterns.md +334 -0
  23. package/claude-code-config/skills/claude-memory/references/prompting-techniques.md +411 -0
  24. package/claude-code-config/skills/claude-memory/references/section-templates.md +347 -0
  25. package/claude-code-config/skills/create-slash-commands/SKILL.md +1110 -0
  26. package/claude-code-config/skills/create-slash-commands/references/arguments.md +273 -0
  27. package/claude-code-config/skills/create-slash-commands/references/patterns.md +947 -0
  28. package/claude-code-config/skills/create-slash-commands/references/prompt-examples.md +656 -0
  29. package/claude-code-config/skills/create-slash-commands/references/tool-restrictions.md +389 -0
  30. package/claude-code-config/skills/create-subagents/SKILL.md +425 -0
  31. package/claude-code-config/skills/create-subagents/references/context-management.md +567 -0
  32. package/claude-code-config/skills/create-subagents/references/debugging-agents.md +714 -0
  33. package/claude-code-config/skills/create-subagents/references/error-handling-and-recovery.md +502 -0
  34. package/claude-code-config/skills/create-subagents/references/evaluation-and-testing.md +374 -0
  35. package/claude-code-config/skills/create-subagents/references/orchestration-patterns.md +591 -0
  36. package/claude-code-config/skills/create-subagents/references/subagents.md +599 -0
  37. package/claude-code-config/skills/create-subagents/references/writing-subagent-prompts.md +513 -0
  38. package/dist/cli.js +20 -3
  39. package/package.json +1 -1
  40. package/claude-code-config/commands/apex.md +0 -109
  41. package/claude-code-config/commands/tasks/run-task.md +0 -220
  42. package/claude-code-config/commands/utils/watch-ci.md +0 -47
  43. package/claude-code-config/scripts/command-validator/biome.json +0 -29
  44. package/claude-code-config/scripts/command-validator/bun.lockb +0 -0
  45. package/claude-code-config/scripts/command-validator/package.json +0 -27
  46. package/claude-code-config/scripts/command-validator/vitest.config.ts +0 -7
  47. package/claude-code-config/scripts/hook-post-file.ts +0 -162
  48. package/claude-code-config/scripts/statusline/biome.json +0 -34
  49. package/claude-code-config/scripts/statusline/bun.lockb +0 -0
  50. package/claude-code-config/scripts/statusline/fixtures/test-input.json +0 -25
  51. package/claude-code-config/scripts/statusline/package.json +0 -19
  52. package/claude-code-config/scripts/statusline/statusline.config.ts +0 -25
  53. package/claude-code-config/scripts/statusline/test.ts +0 -20
  54. package/claude-code-config/scripts/validate-command.js +0 -712
  55. package/claude-code-config/scripts/validate-command.readme.md +0 -283
@@ -0,0 +1,273 @@
1
+ # Arguments Reference
2
+
3
+ Official documentation examples for using arguments in slash commands.
4
+
5
+ ## #$ARGUMENTS - All Arguments
6
+
7
+ **Source**: Official Claude Code documentation
8
+
9
+ Captures all arguments as a single concatenated string.
10
+
11
+ ### Basic Example
12
+
13
+ **Command file**: `.claude/commands/fix-issue.md`
14
+
15
+ ```markdown
16
+ ---
17
+ description: Fix issue following coding standards
18
+ ---
19
+
20
+ Fix issue #$ARGUMENTS following our coding standards
21
+ ```
22
+
23
+ **Usage**:
24
+
25
+ ```
26
+ /fix-issue 123 high-priority
27
+ ```
28
+
29
+ **Claude receives**:
30
+
31
+ ```
32
+ Fix issue #123 high-priority following our coding standards
33
+ ```
34
+
35
+ ### Multi-Step Workflow Example
36
+
37
+ **Command file**: `.claude/commands/fix-issue.md`
38
+
39
+ ```markdown
40
+ ---
41
+ description: Fix issue following coding standards
42
+ ---
43
+
44
+ Fix issue #$ARGUMENTS. Follow these steps:
45
+
46
+ 1. Understand the issue described in the ticket
47
+ 2. Locate the relevant code in our codebase
48
+ 3. Implement a solution that addresses the root cause
49
+ 4. Add appropriate tests
50
+ 5. Prepare a concise PR description
51
+ ```
52
+
53
+ **Usage**:
54
+
55
+ ```
56
+ /fix-issue 456
57
+ ```
58
+
59
+ **Claude receives the full prompt** with "456" replacing #$ARGUMENTS.
60
+
61
+ ## Positional Arguments - $1, $2, $3
62
+
63
+ **Source**: Official Claude Code documentation
64
+
65
+ Access specific arguments individually.
66
+
67
+ ### Example
68
+
69
+ **Command file**: `.claude/commands/review-pr.md`
70
+
71
+ ```markdown
72
+ ---
73
+ description: Review PR with priority and assignee
74
+ ---
75
+
76
+ Review PR #$1 with priority $2 and assign to $3
77
+ ```
78
+
79
+ **Usage**:
80
+
81
+ ```
82
+ /review-pr 456 high alice
83
+ ```
84
+
85
+ **Claude receives**:
86
+
87
+ ```
88
+ Review PR #456 with priority high and assign to alice
89
+ ```
90
+
91
+ - `$1` becomes `456`
92
+ - `$2` becomes `high`
93
+ - `$3` becomes `alice`
94
+
95
+ ## Argument Patterns from Official Docs
96
+
97
+ ### Pattern 1: File Reference with Argument
98
+
99
+ **Command**:
100
+
101
+ ```markdown
102
+ ---
103
+ description: Optimize code performance
104
+ ---
105
+
106
+ Analyze the performance of this code and suggest three specific optimizations:
107
+
108
+ @ #$ARGUMENTS
109
+ ```
110
+
111
+ **Usage**:
112
+
113
+ ```
114
+ /optimize src/utils/helpers.js
115
+ ```
116
+
117
+ References the file specified in the argument.
118
+
119
+ ### Pattern 2: Issue Tracking
120
+
121
+ **Command**:
122
+
123
+ ```markdown
124
+ ---
125
+ description: Find and fix issue
126
+ ---
127
+
128
+ Find and fix issue #$ARGUMENTS.
129
+
130
+ Follow these steps:
131
+
132
+ 1. Understand the issue described in the ticket
133
+ 2. Locate the relevant code in our codebase
134
+ 3. Implement a solution that addresses the root cause
135
+ 4. Add appropriate tests
136
+ 5. Prepare a concise PR description
137
+ ```
138
+
139
+ **Usage**:
140
+
141
+ ```
142
+ /fix-issue 789
143
+ ```
144
+
145
+ ### Pattern 3: Code Review with Context
146
+
147
+ **Command**:
148
+
149
+ ```markdown
150
+ ---
151
+ description: Review PR with context
152
+ ---
153
+
154
+ Review PR #$1 with priority $2 and assign to $3
155
+
156
+ Context from git:
157
+
158
+ - Changes: ! `gh pr diff $1`
159
+ - Status: ! `gh pr view $1 --json state`
160
+ ```
161
+
162
+ **Usage**:
163
+
164
+ ```
165
+ /review-pr 123 critical bob
166
+ ```
167
+
168
+ Combines positional arguments with dynamic bash execution.
169
+
170
+ ## Best Practices
171
+
172
+ ### Use #$ARGUMENTS for Simple Commands
173
+
174
+ When you just need to pass a value through:
175
+
176
+ ```markdown
177
+ Fix issue #$ARGUMENTS
178
+ Optimize @ #$ARGUMENTS
179
+ Summarize #$ARGUMENTS
180
+ ```
181
+
182
+ ### Use Positional Arguments for Structure
183
+
184
+ When different arguments have different meanings:
185
+
186
+ ```markdown
187
+ Review PR #$1 with priority $2 and assign to $3
188
+ Deploy $1 to $2 environment with tag $3
189
+ ```
190
+
191
+ ### Provide Clear Descriptions
192
+
193
+ Help users understand what arguments are expected:
194
+
195
+ ```yaml
196
+ # Good
197
+ description: Fix issue following coding standards (usage: /fix-issue <issue-number>)
198
+
199
+ # Better - if using argument-hint field
200
+ description: Fix issue following coding standards
201
+ argument-hint: <issue-number> [priority]
202
+ ```
203
+
204
+ ## Empty Arguments
205
+
206
+ Commands work with or without arguments:
207
+
208
+ **Command**:
209
+
210
+ ```markdown
211
+ ---
212
+ description: Analyze code for issues
213
+ ---
214
+
215
+ Analyze this code for issues: #$ARGUMENTS
216
+
217
+ If no specific file provided, analyze the current context.
218
+ ```
219
+
220
+ **Usage 1**: `/analyze src/app.js`
221
+ **Usage 2**: `/analyze` (analyzes current conversation context)
222
+
223
+ ## Combining with Other Features
224
+
225
+ ### Arguments + Dynamic Context
226
+
227
+ ```markdown
228
+ ---
229
+ description: Review changes for issue
230
+ ---
231
+
232
+ Issue #$ARGUMENTS
233
+
234
+ Recent changes:
235
+
236
+ - Status: ! `git status`
237
+ - Diff: ! `git diff`
238
+
239
+ Review the changes related to this issue.
240
+ ```
241
+
242
+ ### Arguments + File References
243
+
244
+ ```markdown
245
+ ---
246
+ description: Compare files
247
+ ---
248
+
249
+ Compare @ $1 with @ $2 and highlight key differences.
250
+ ```
251
+
252
+ **Usage**: `/compare src/old.js src/new.js`
253
+
254
+ ### Arguments + Tool Restrictions
255
+
256
+ ```markdown
257
+ ---
258
+ description: Commit changes for issue
259
+ allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*)
260
+ ---
261
+
262
+ Create commit for issue #$ARGUMENTS
263
+
264
+ Status: ! `git status`
265
+ Changes: ! `git diff HEAD`
266
+ ```
267
+
268
+ ## Notes
269
+
270
+ - Arguments are whitespace-separated by default
271
+ - Quote arguments containing spaces: `/command "argument with spaces"`
272
+ - Arguments are passed as-is (no special parsing)
273
+ - Empty arguments are replaced with empty string