Commit bcac5a5
docs(command-development): document bash
## Summary
- Document the `!`command`` syntax required for bash pre-execution in
actual command files
- Explain that pre-execution happens before Claude sees the command
- Clarify why skill examples intentionally omit `!` (would execute when
loaded into context)
- Update reference file examples to use correct `!` prefix for
copy-paste use
## Problem
Fixes #46
The command-development skill didn't document the `!` prefix syntax
required for bash pre-execution in actual command files. Users following
the examples would write `\`git status\`` instead of `!\`git status\``,
resulting in non-functional commands.
## Solution
1. Added "Syntax: The `!` Prefix" section to SKILL.md explaining:
- The exact `!`command`` syntax
- How pre-execution works (before Claude sees the prompt)
- Example showing input and expanded output
2. Added "Why Skill Examples Omit `!`" section explaining the
intentional omission in skill documentation
3. Updated all bash examples in `plugin-features-reference.md` to use
the `!` prefix, since users copy these into actual command files
### Alternatives Considered
- Adding HTML comments to examples: Less visible, easily overlooked
- Creating separate "for copying" examples: Would duplicate content
## Changes
- `plugins/plugin-dev/skills/command-development/SKILL.md`: Added 40
lines documenting the `!` prefix syntax
-
`plugins/plugin-dev/skills/command-development/references/plugin-features-reference.md`:
Updated 21 bash examples to use `!` prefix
## Testing
- [x] Markdown linting passes
- [x] Documentation is clear and complete
- [x] Examples show correct syntax for actual command files
---
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude <noreply@anthropic.com>! prefix for pre-execution syntax (#55)1 parent 12b328a commit bcac5a5
3 files changed
Lines changed: 69 additions & 300 deletions
File tree
- plugins/plugin-dev/skills/command-development
- references
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
337 | 377 | | |
338 | 378 | | |
339 | 379 | | |
340 | 380 | | |
341 | 381 | | |
342 | 382 | | |
343 | 383 | | |
344 | | - | |
| 384 | + | |
345 | 385 | | |
346 | 386 | | |
347 | 387 | | |
| |||
0 commit comments