claude-skills-cli 0.0.3 → 0.0.4

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.
@@ -0,0 +1,431 @@
1
+ # CLI Feedback - Real-World Usage Patterns
2
+
3
+ Real feedback from Claude agents using `claude-skills-cli` in production.
4
+
5
+ **Source**: Real usage creating 3 production skills in ~15 minutes
6
+ **CLI Version**: 0.0.3+
7
+ **Date**: 2025-10-20
8
+ **Last Updated**: 2025-10-20
9
+
10
+ ---
11
+
12
+ ## ✅ UPDATE: High & Medium Priority Items IMPLEMENTED
13
+
14
+ All high-priority friction points and medium-priority features have been implemented:
15
+
16
+ - ✅ Minimal scaffolding by default (no empty dirs/files to clean up)
17
+ - ✅ `--with-examples` flag for opt-in example files
18
+ - ✅ Improved comma warning logic (allows concise technical lists)
19
+ - ✅ HTML comments excluded from line count
20
+ - ✅ New `stats` command for multi-skill overview
21
+
22
+ **Result**: The CLI now achieves **S-tier** status for Claude's workflow! 🎯
23
+
24
+ ---
25
+
26
+ ## ✅ What Works Great
27
+
28
+ ### 1. Clear, Simple Commands
29
+
30
+ The API is intuitive and exactly what you need:
31
+
32
+ ```bash
33
+ npx claude-skills init --name skill-name --description "Description"
34
+ npx claude-skills validate .claude/skills/skill-name
35
+ npx claude-skills package .claude/skills/skill-name
36
+ ```
37
+
38
+ No unnecessary complexity.
39
+
40
+ ### 2. Excellent Validation Feedback ⭐
41
+
42
+ The validation output is **fantastic**:
43
+
44
+ ```
45
+ 📊 Progressive Disclosure Stats:
46
+ Level 1 (Metadata - Always Loaded):
47
+ Description: 127 chars, ~18 tokens ✅ Optimal
48
+
49
+ Level 2 (SKILL.md Body - Loaded when triggered):
50
+ Lines: 76 (target: ~50, max: ~150) ✅ Good
51
+ Words: 258 (recommended: <1000, max: <5000) ✅ Excellent
52
+ ```
53
+
54
+ **Why this is great:**
55
+
56
+ - Clear visual feedback with emojis
57
+ - Specific recommendations ("~50 lines", "<1000 words")
58
+ - Shows actual vs. target values
59
+ - Actionable suggestions
60
+
61
+ ### 3. Progressive Disclosure Guidance
62
+
63
+ The template includes helpful comments explaining the 3-level system:
64
+
65
+ - Level 1: Metadata (always loaded)
66
+ - Level 2: SKILL.md body (loaded when triggered)
67
+ - Level 3: references/ (loaded as needed)
68
+
69
+ This educational aspect is brilliant for first-time users.
70
+
71
+ ### 4. Next Steps Messaging
72
+
73
+ After `init`, the CLI tells you exactly what to do next:
74
+
75
+ ```
76
+ Next steps:
77
+ 1. Edit .claude/skills/auth-patterns/SKILL.md with your skill instructions
78
+ 2. Add detailed documentation to references/
79
+ 3. Add executable scripts to scripts/
80
+ 4. Remove example files you don't need
81
+
82
+ Validate with: claude-skills validate .claude/skills/auth-patterns
83
+ ```
84
+
85
+ ---
86
+
87
+ ## 🐛 Known Issues & Workarounds
88
+
89
+ ### ✅ Issue 1: Empty Directories Created by Default (FIXED)
90
+
91
+ **Problem**: Every `init` creates `assets/` and `scripts/` directories, which are often empty and unused.
92
+
93
+ **Status**: ✅ **FIXED** - Now only creates `references/` by default
94
+
95
+ **New behavior:**
96
+
97
+ - Default: Creates only `SKILL.md`, `README.md`, and `references/`
98
+ - With `--with-examples`: Creates full scaffolding including `assets/`, `scripts/`, and example files
99
+
100
+ ```bash
101
+ # Minimal (default)
102
+ npx claude-skills init --name my-skill --description "..."
103
+
104
+ # With examples
105
+ npx claude-skills init --name my-skill --description "..." --with-examples
106
+ ```
107
+
108
+ ### ✅ Issue 2: Template Files Need Deletion (FIXED)
109
+
110
+ **Problem**: Template creates example reference files that need to be removed:
111
+
112
+ - `references/detailed-guide.md`
113
+ - References to non-existent examples
114
+
115
+ **Status**: ✅ **FIXED** - Example files only created with `--with-examples` flag
116
+
117
+ **New behavior:**
118
+
119
+ - Default: No example files created
120
+ - With `--with-examples`: Creates `detailed-guide.md` and `example.js`
121
+
122
+ ### ✅ Issue 3: Description Comma Warning Not Always Relevant (FIXED)
123
+
124
+ **Problem**: Validation warns about commas in descriptions, but for technical skills, lists are often necessary:
125
+
126
+ ```
127
+ ⚠️ Description contains long lists (5 commas)
128
+ → Move detailed lists to Level 2 (SKILL.md body) or Level 3 (references/)
129
+ ```
130
+
131
+ **Example description**:
132
+
133
+ > "DaisyUI v5 design system. Use for backgrounds, borders, text sizes, opacity, semantic colors, and spacing."
134
+
135
+ This is concise (106 chars) but gets flagged for 5 commas. The alternative would be vague: "DaisyUI v5 design system for UI styling" - less useful.
136
+
137
+ **Status**: ✅ **FIXED** - Now only warns if BOTH conditions met: >150 chars AND ≥5 commas
138
+
139
+ **New behavior:**
140
+
141
+ - Concise technical lists (like the example above) no longer trigger warnings
142
+ - Only warns when description is both long AND list-heavy
143
+
144
+ ### Issue 4: Python Script Reference in Template
145
+
146
+ **Problem**: Old template included:
147
+
148
+ ```markdown
149
+ ## Scripts
150
+
151
+ - `scripts/example.js` - [What this script does]
152
+ ```
153
+
154
+ This assumes JavaScript/Node.js, but many skills don't need scripts at all (especially documentation-based patterns).
155
+
156
+ **Status**: Fixed in latest version - scripts section removed from template
157
+
158
+ ---
159
+
160
+ ## 💡 Requested Features
161
+
162
+ ### ✅ 1. Minimal Scaffolding (IMPLEMENTED)
163
+
164
+ **Requested syntax:**
165
+
166
+ ```bash
167
+ npx claude-skills init --name my-skill --description "..." --minimal
168
+ ```
169
+
170
+ **Status**: ✅ **IMPLEMENTED** - Minimal is now the default behavior
171
+
172
+ **Implementation:**
173
+
174
+ - Default creates only: `SKILL.md`, `README.md`, `references/`
175
+ - Use `--with-examples` for full scaffolding with example files
176
+ - No cleanup needed for typical workflows
177
+
178
+ ### ✅ 2. `stats` Command (IMPLEMENTED)
179
+
180
+ **Requested syntax:**
181
+
182
+ ```bash
183
+ npx claude-skills stats .claude/skills/
184
+ ```
185
+
186
+ **Status**: ✅ **IMPLEMENTED**
187
+
188
+ **Example output:**
189
+
190
+ ```
191
+ 📊 Skills Overview
192
+ ============================================================
193
+ 3 skills found:
194
+
195
+ auth-patterns (✅ valid)
196
+ Description: 127 chars (optimal)
197
+ Body: 76 lines, 258 words (excellent)
198
+ References: 3 files (20.8 KB)
199
+
200
+ styling-patterns (⚠️ warnings)
201
+ Description: 106 chars (optimal)
202
+ Body: 85 lines, 284 words (good)
203
+ References: 1 file (11.2 KB)
204
+ 2 warnings
205
+
206
+ form-patterns (✅ valid)
207
+ Description: 114 chars (optimal)
208
+ Body: 102 lines, 264 words (good)
209
+ References: 1 file (8.0 KB)
210
+
211
+ Summary:
212
+ Valid: 3
213
+ With warnings: 1
214
+ ```
215
+
216
+ ### 3. Validation Auto-fix Suggestions
217
+
218
+ **Requested**: When validation fails, suggest specific fixes:
219
+
220
+ ```
221
+ ❌ Errors:
222
+ ❌ Referenced file not found: references/common-mistakes.md
223
+ → Linked from: [references/common-mistakes.md]
224
+
225
+ 💡 Quick fix:
226
+ touch .claude/skills/styling-patterns/references/common-mistakes.md
227
+
228
+ Or remove the broken link:
229
+ Remove line 84 in SKILL.md
230
+ ```
231
+
232
+ **Status**: Under consideration
233
+
234
+ ---
235
+
236
+ ## 📈 Real Usage Results
237
+
238
+ Created 3 production-ready skills:
239
+
240
+ 1. **auth-patterns** (76 lines, 258 words) ✅
241
+ - Better-auth integration patterns
242
+ - 3 reference files
243
+
244
+ 2. **styling-patterns** (85 lines, 284 words) ✅
245
+ - DaisyUI v5 design system
246
+ - 1 reference file (comprehensive guide)
247
+
248
+ 3. **form-patterns** (102 lines, 264 words) ✅
249
+ - DaisyUI v5 form patterns
250
+ - 1 reference file
251
+
252
+ **Total time**: ~15 minutes (including docs research and writing)
253
+
254
+ **Friction points**:
255
+
256
+ - Deleting empty `assets/` and `scripts/` dirs: 6 times
257
+ - Removing template reference files: 3 times
258
+ - Adjusting descriptions to avoid comma warnings: 2 times
259
+
260
+ ---
261
+
262
+ ## 🌟 Overall Assessment
263
+
264
+ **Grade: A-**
265
+
266
+ The CLI is excellent for its core purpose. The validation feedback is world-class, and the progressive disclosure guidance is valuable.
267
+
268
+ **Main issues**:
269
+
270
+ 1. Unnecessary scaffolding (empty dirs, template files)
271
+ 2. Some validation warnings too strict/not contextual
272
+
273
+ **Would recommend**: Yes, absolutely. With minor tweaks, this would be S-tier.
274
+
275
+ **Best feature**: The detailed, actionable validation output. It teaches you best practices while validating.
276
+
277
+ **Biggest win**: Going from idea to validated skill in ~5 minutes.
278
+
279
+ ---
280
+
281
+ ## 🔧 Priority Fixes
282
+
283
+ **High Priority** (blocking efficient workflow):
284
+
285
+ 1. ✅ **DONE** - Don't create empty `assets/` and `scripts/` directories by default
286
+ 2. ✅ **DONE** - Don't create template reference files (use `--with-examples` flag for opt-in)
287
+ 3. ✅ **DONE** - Improve description comma warning logic (now requires >150 chars AND ≥5 commas)
288
+ 4. ✅ **DONE** - Remove script section from minimal template
289
+
290
+ **Medium Priority** (valuable additions):
291
+
292
+ 5. ✅ **DONE** - Minimal scaffolding by default (was `--minimal` flag, now default behavior)
293
+ 6. ✅ **DONE** - Don't count HTML comments in line count validation
294
+ 7. ✅ **DONE** - Add `stats` command for multi-skill overview
295
+
296
+ **Low Priority** (nice to have):
297
+
298
+ 8. ⏳ Interactive init mode
299
+ 9. ⏳ `format` command
300
+ 10. ⏳ Auto-fix suggestions in validation errors
301
+
302
+ ---
303
+
304
+ ## 💬 Quotes from Usage
305
+
306
+ > "The validation output is _fantastic_ - clear, visual, actionable."
307
+
308
+ > "Going from idea to validated skill in ~5 minutes is the biggest win."
309
+
310
+ > "The CLI teaches you best practices while you use it."
311
+
312
+ > "Would be perfect with just the cleanup friction points fixed."
313
+
314
+ ---
315
+
316
+ ## Example Usage Session
317
+
318
+ ### Current Workflow
319
+
320
+ ```bash
321
+ # 1. Init new skill
322
+ $ npx claude-skills init --name auth-patterns \
323
+ --description "Better-auth integration"
324
+ ✅ Skill created at: .claude/skills/auth-patterns
325
+
326
+ # 2. Manual cleanup (pain point)
327
+ $ rm -rf .claude/skills/auth-patterns/assets
328
+ $ rm -rf .claude/skills/auth-patterns/scripts
329
+
330
+ # 3. Edit SKILL.md and add reference docs
331
+ $ vim .claude/skills/auth-patterns/SKILL.md
332
+ $ cp docs/auth-usage.md .claude/skills/auth-patterns/references/
333
+
334
+ # 4. Validate
335
+ $ npx claude-skills validate .claude/skills/auth-patterns
336
+ ✅ Skill is valid (with warnings)
337
+
338
+ # 5. Package
339
+ $ npx claude-skills package .claude/skills/auth-patterns
340
+ ✅ Package created: dist/auth-patterns.zip
341
+ ```
342
+
343
+ ### ✅ Ideal Workflow (NOW IMPLEMENTED)
344
+
345
+ ```bash
346
+ # New workflow - no cleanup needed!
347
+ $ npx claude-skills init --name auth-patterns \
348
+ --description "Better-auth integration"
349
+ ✅ Skill created at: .claude/skills/auth-patterns
350
+
351
+ $ vim .claude/skills/auth-patterns/SKILL.md
352
+
353
+ $ npx claude-skills validate .claude/skills/auth-patterns
354
+ ✅ Skill is valid! All checks passed.
355
+
356
+ $ npx claude-skills stats .claude/skills
357
+ 📊 3 skills found
358
+ Summary:
359
+ Valid: 3
360
+ ```
361
+
362
+ ---
363
+
364
+ ## Tips for Claude Agents
365
+
366
+ Based on real usage:
367
+
368
+ ### 1. Always Validate Early and Often
369
+
370
+ Don't wait until the end. Validate as you write:
371
+
372
+ ```bash
373
+ # After writing description
374
+ npx claude-skills validate .claude/skills/my-skill
375
+
376
+ # After adding content
377
+ npx claude-skills validate .claude/skills/my-skill
378
+
379
+ # Before packaging
380
+ npx claude-skills validate .claude/skills/my-skill
381
+ ```
382
+
383
+ ### 2. Use `--with-examples` When Learning
384
+
385
+ If you want to see example files:
386
+
387
+ ```bash
388
+ npx claude-skills init --name my-skill \
389
+ --description "..." \
390
+ --with-examples
391
+ ```
392
+
393
+ This creates example references and scripts to learn from.
394
+
395
+ ### 3. Technical Lists in Descriptions Are Fine
396
+
397
+ Concise technical lists won't trigger warnings:
398
+
399
+ ```yaml
400
+ # ✅ This is fine (106 chars, 5 commas)
401
+ description: DaisyUI v5 design system. Use for backgrounds, borders, text, colors, spacing.
402
+
403
+ # ⚠️ This would warn (>150 chars + ≥5 commas)
404
+ description: A very long description that goes on and on with lots of details about backgrounds, borders, text styling, semantic colors, spacing utilities, and more features...
405
+ ```
406
+
407
+ ### 4. Aim for "Excellent" Ratings
408
+
409
+ Target the validation "Excellent" thresholds:
410
+
411
+ - Description: <200 chars
412
+ - Lines: ~50
413
+ - Words: <1000
414
+ - Code blocks: 1-2
415
+
416
+ ### 5. Use References Liberally
417
+
418
+ When in doubt, move content to `references/`:
419
+
420
+ - Complete schemas
421
+ - Multiple examples
422
+ - API documentation
423
+ - Detailed workflows
424
+
425
+ ---
426
+
427
+ ## Resources
428
+
429
+ - Main CLI: [README.md](../../../README.md)
430
+ - Complete reference: [cli-reference.md](cli-reference.md)
431
+ - Anthropic guidance: [anthropic-resources.md](anthropic-resources.md)