command-code 1.92.0 → 1.93.1

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 (92) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/package.json +1 -1
  3. package/vsix/commandcode-vscode.vsix +0 -0
  4. package/dist/bundled/agent-browser/SKILL.md +0 -73
  5. package/dist/bundled/command-code-knowledge/SKILL.md +0 -68
  6. package/dist/bundled/command-code-knowledge/live-models.ts +0 -284
  7. package/dist/bundled/command-code-knowledge/reference/byok.md +0 -389
  8. package/dist/bundled/command-code-knowledge/reference/custom-agents.md +0 -341
  9. package/dist/bundled/command-code-knowledge/reference/custom-slash-commands.md +0 -423
  10. package/dist/bundled/command-code-knowledge/reference/headless.md +0 -381
  11. package/dist/bundled/command-code-knowledge/reference/hooks.md +0 -1107
  12. package/dist/bundled/command-code-knowledge/reference/mcp.md +0 -636
  13. package/dist/bundled/command-code-knowledge/reference/memory.md +0 -137
  14. package/dist/bundled/command-code-knowledge/reference/models.md +0 -145
  15. package/dist/bundled/command-code-knowledge/reference/permissions.md +0 -486
  16. package/dist/bundled/command-code-knowledge/reference/plan-mode.md +0 -283
  17. package/dist/bundled/command-code-knowledge/reference/plans.md +0 -16
  18. package/dist/bundled/command-code-knowledge/reference/product-help.md +0 -490
  19. package/dist/bundled/command-code-knowledge/reference/sessions.md +0 -377
  20. package/dist/bundled/command-code-knowledge/reference/skills.md +0 -1009
  21. package/dist/bundled/command-code-knowledge/reference/tools.md +0 -522
  22. package/dist/bundled/config/SKILL.md +0 -18
  23. package/dist/bundled/config/references/permissions.md +0 -27
  24. package/dist/bundled/config/references/settings.md +0 -49
  25. package/dist/bundled/design/SKILL.md +0 -441
  26. package/dist/bundled/design/references/accessibility.md +0 -404
  27. package/dist/bundled/design/references/border.md +0 -161
  28. package/dist/bundled/design/references/button.md +0 -192
  29. package/dist/bundled/design/references/checkup.md +0 -162
  30. package/dist/bundled/design/references/color.md +0 -245
  31. package/dist/bundled/design/references/create.md +0 -291
  32. package/dist/bundled/design/references/design-html.md +0 -227
  33. package/dist/bundled/design/references/deslop.md +0 -283
  34. package/dist/bundled/design/references/finish.md +0 -156
  35. package/dist/bundled/design/references/interaction.md +0 -186
  36. package/dist/bundled/design/references/layout.md +0 -216
  37. package/dist/bundled/design/references/media.md +0 -112
  38. package/dist/bundled/design/references/motion.md +0 -237
  39. package/dist/bundled/design/references/redesign.md +0 -197
  40. package/dist/bundled/design/references/refine.md +0 -193
  41. package/dist/bundled/design/references/relayout.md +0 -207
  42. package/dist/bundled/design/references/report-html.md +0 -235
  43. package/dist/bundled/design/references/responsive.md +0 -233
  44. package/dist/bundled/design/references/review.md +0 -164
  45. package/dist/bundled/design/references/setup.md +0 -119
  46. package/dist/bundled/design/references/severity.md +0 -111
  47. package/dist/bundled/design/references/shadow.md +0 -164
  48. package/dist/bundled/design/references/smell.md +0 -211
  49. package/dist/bundled/design/references/style-3d.md +0 -23
  50. package/dist/bundled/design/references/style-bento.md +0 -21
  51. package/dist/bundled/design/references/style-editorial.md +0 -23
  52. package/dist/bundled/design/references/style-futuristic.md +0 -21
  53. package/dist/bundled/design/references/style-glassmorphism.md +0 -52
  54. package/dist/bundled/design/references/style-maximalism.md +0 -20
  55. package/dist/bundled/design/references/style-minimalism.md +0 -21
  56. package/dist/bundled/design/references/style-neo-brutalism.md +0 -21
  57. package/dist/bundled/design/references/style-retro-futurism.md +0 -21
  58. package/dist/bundled/design/references/style-swiss.md +0 -20
  59. package/dist/bundled/design/references/style.md +0 -77
  60. package/dist/bundled/design/references/surface.md +0 -163
  61. package/dist/bundled/design/references/system.md +0 -73
  62. package/dist/bundled/design/references/typeset.md +0 -210
  63. package/dist/bundled/design/references/variants.md +0 -193
  64. package/dist/bundled/design/references/voice.md +0 -184
  65. package/dist/bundled/design/references/writing.md +0 -174
  66. package/dist/bundled/loop/SKILL.md +0 -16
  67. package/dist/bundled/mod-builder/SKILL.md +0 -135
  68. package/dist/bundled/mod-builder/examples/block-dangerous-commands.ts +0 -41
  69. package/dist/bundled/mod-builder/examples/custom-entry-renderer.ts +0 -32
  70. package/dist/bundled/mod-builder/examples/custom-tool.ts +0 -53
  71. package/dist/bundled/mod-builder/examples/flags-and-options.ts +0 -29
  72. package/dist/bundled/mod-builder/examples/input-shortcuts.ts +0 -41
  73. package/dist/bundled/mod-builder/examples/kitchen-sink.ts +0 -129
  74. package/dist/bundled/mod-builder/examples/lifecycle-hooks.ts +0 -64
  75. package/dist/bundled/mod-builder/examples/model-router.ts +0 -43
  76. package/dist/bundled/mod-builder/examples/observe-events.ts +0 -30
  77. package/dist/bundled/mod-builder/examples/pane-and-buttons.ts +0 -60
  78. package/dist/bundled/mod-builder/examples/pane-form.ts +0 -68
  79. package/dist/bundled/mod-builder/examples/permission-policy.ts +0 -34
  80. package/dist/bundled/mod-builder/examples/redact-secrets.ts +0 -46
  81. package/dist/bundled/mod-builder/examples/slash-command.ts +0 -33
  82. package/dist/bundled/mod-builder/examples/spinner-count.ts +0 -47
  83. package/dist/bundled/mod-builder/examples/stream-filter.ts +0 -70
  84. package/dist/bundled/mod-builder/reference/api.md +0 -140
  85. package/dist/bundled/mod-builder/reference/hooks-and-events.md +0 -347
  86. package/dist/bundled/mod-builder/reference/overview.md +0 -271
  87. package/dist/bundled/mod-builder/reference/packaging.md +0 -187
  88. package/dist/bundled/mod-builder/reference/ui.md +0 -253
  89. package/dist/bundled/mod-builder/reference/verify.md +0 -67
  90. package/dist/bundled/skill-builder/SKILL.md +0 -104
  91. package/dist/cli.mjs +0 -16
  92. package/dist/index.mjs +0 -2
@@ -1,1009 +0,0 @@
1
- <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
-
3
- # Agent Skills
4
-
5
- Command Code supports Agent Skills - a lightweight, open standard for extending AI agents with specialized knowledge and workflows.
6
-
7
- ---
8
-
9
- ## What are Agent Skills?
10
-
11
- Agent Skills are modular, self-contained instruction sets that teach Command Code how to perform specific tasks. Each skill is a folder containing a `skill.md` file with metadata and step-by-step guidance.
12
-
13
- Think of skills as expert playbooks that Command Code can reference when needed. Instead of explaining the same process repeatedly, you define it once in a skill, and Command Code automatically applies it when needed.
14
-
15
- ---
16
-
17
- ## How skills work
18
-
19
- Skills use **progressive disclosure** to manage context efficiently:
20
-
21
- 1. **Discovery**: Command Code loads only the name, description, and file path of each skill at startup.
22
- 2. **Activation**: When a task matches a skill or invoked directly with `/skill-name`, Command Code reads its full `SKILL.md` instructions.
23
- 3. **Execution**: Command Code follows the instructions, optionally loading referenced files as needed.
24
-
25
- This keeps Command Code fast while giving access to more context on demand.
26
-
27
- ---
28
-
29
- ## Quickstart
30
-
31
- Let's create your first user-level and project-level skill.
32
-
33
- ### User-level skill
34
-
35
- **Create a global code review skill**
36
- ```bash
37
- mkdir -p ~/.commandcode/skills/code-review
38
- cat > ~/.commandcode/skills/code-review/SKILL.md << 'EOF'
39
- ---
40
- name: code-review
41
- description: Perform thorough code reviews checking for bugs, security issues, and best practices
42
- ---
43
-
44
- # Code Review Checklist
45
-
46
- When reviewing code, check:
47
-
48
- ## Security
49
-
50
- - [ ] No hardcoded credentials or API keys
51
- - [ ] Input validation on all user data
52
- - [ ] Proper authentication and authorization
53
-
54
- ## Code Quality
55
-
56
- - [ ] Clear, descriptive variable names
57
- - [ ] Functions do one thing well
58
- - [ ] No code duplication
59
- - [ ] Edge cases handled
60
-
61
- ## Performance
62
-
63
- - [ ] No unnecessary loops or operations
64
- - [ ] Efficient data structures
65
- - [ ] Database queries optimized
66
-
67
- ## Testing
68
-
69
- - [ ] Unit tests cover main functionality
70
- - [ ] Edge cases tested
71
- - [ ] Error conditions tested
72
-
73
- EOF
74
- ```
75
-
76
- ### Project-level skill
77
-
78
- **Create a project-specific API skill**
79
-
80
- ```bash
81
- mkdir -p .commandcode/skills/api-guidelines
82
- cat > .commandcode/skills/api-guidelines/SKILL.md << 'EOF'
83
- ---
84
- name: api-guidelines
85
- description: API design patterns and conventions for this project
86
- ---
87
-
88
- # API Guidelines
89
-
90
- ## Endpoint naming
91
- - Use plural nouns: `/users`, `/posts`
92
- - Use kebab-case: `/user-profiles`
93
- - Version in URL: `/v1/users`
94
-
95
- ## Response format
96
- \```json
97
- {
98
- "data": { ... },
99
- "meta": { "count": 10, "page": 1 }
100
- }
101
- \```
102
-
103
- ## Error handling
104
- - 400: Bad request (validation errors)
105
- - 401: Unauthorized
106
- - 403: Forbidden
107
- - 404: Not found
108
- - 500: Server error
109
- EOF
110
- ```
111
-
112
- ### Using `.agents/skills/` instead
113
-
114
- If you already have skills in `.agents/skills/`, Command Code picks them up automatically. No migration needed.
115
-
116
- `.commandcode/skills/` takes priority on name conflicts. Skills from `.agents/` show a `[.agents]` badge in the `/skills` UI.
117
-
118
- ---
119
-
120
- ## Storage locations
121
-
122
- Command Code fully implements the [Agent Skills open standard](https://agentskills.io) with two storage locations:
123
-
124
- ### User-level skills (global)
125
-
126
- Stored in `~/.commandcode/skills/` and available across **all your projects**.
127
-
128
- Perfect for:
129
-
130
- - General development workflows
131
- - Exploratory workflows
132
- - Cross-project best practices
133
-
134
- ### Project-level skills (local)
135
-
136
- Stored in `.commandcode/skills/` within your project and **only available in that project**.
137
-
138
- Perfect for:
139
-
140
- - Project-specific patterns
141
- - Team conventions
142
- - Architecture guidelines
143
- - Domain-specific workflows
144
-
145
- Learn more about how to create user-level and project-level skills in the [Create skills](#create-skills) section below.
146
-
147
- ### `.agents/skills/` compatibility
148
-
149
- Command Code also discovers skills from `.agents/skills/` (project) and `~/.agents/skills/` (user). If another tool already stores your skills under `.agents/`, they load automatically and show a `[.agents]` badge in the `/skills` menu.
150
-
151
- **Priority:** `.commandcode/skills/` wins on name conflicts. If the same skill exists in both, the `.commandcode/` version is used and the `.agents/` version is skipped. See [Selection priority](#selection-priority) for the full four-way order.
152
-
153
- **Discovery:** Command Code walks up to 10 directory levels from your working directory to find `.agents/skills/`, stopping at your home directory. This keeps `~/.agents/skills/` from being picked up as a project-level source.
154
-
155
- ### Extra locations
156
-
157
- Beyond the standard directories, you can point Command Code at any skills folder - a directory of skills, or a single skill directory containing `SKILL.md`.
158
-
159
- **In settings** - add a `skills` array to `settings.json` (user-global `~/.commandcode/settings.json`, project `.commandcode/settings.json`, or `.commandcode/settings.local.json`):
160
-
161
- ```json theme={null}
162
- {
163
- "skills": [
164
- "~/team/shared-skills",
165
- "./vendor/skills",
166
- "/opt/company/skills"
167
- ]
168
- }
169
- ```
170
-
171
- `~/` expands to your home directory; relative paths resolve against the project root (the git root, or the working directory outside a repo). Settings layers overwrite the array whole - the highest layer that defines `skills` wins. This is also the way to load a skills folder kept outside the standard locations like `~/.commandcode/skills` - a shared team drive, or a folder maintained for another Agent-Skills tool.
172
-
173
- **At launch** - the `--skill` flag adds a location for one session and is repeatable; `--no-skills` skips discovery entirely (paths given via `--skill` still load):
174
-
175
- ```bash theme={null}
176
- cmd --skill ./my-skill --skill ~/team/shared-skills
177
- cmd --no-skills # run with no skills at all
178
- cmd --no-skills --skill ./only-this # run with exactly one skill
179
- ```
180
-
181
- ### Nested skill folders
182
-
183
- Discovery is recursive: a location may group skills under intermediate directories, and each skill is still the directory that directly contains `SKILL.md`.
184
-
185
- ```text theme={null}
186
- .commandcode/skills/
187
- ├── docs/
188
- │ ├── changelog-writer/
189
- │ │ └── SKILL.md
190
- │ └── release-notes/
191
- │ └── SKILL.md
192
- └── code-review/
193
- └── SKILL.md
194
- ```
195
-
196
- The `name` field still matches the skill's own directory (`changelog-writer`), not the grouping folder. A skill's own subfolders (`scripts/`, `references/`, `assets/`) are never scanned for more skills.
197
-
198
- ### Selection priority
199
-
200
- Skills, custom commands, and built-ins all share the same `/` menu. Skill locations are checked in this order:
201
-
202
- 1. `.commandcode/skills/` (project)
203
- 2. `.agents/skills/` (project)
204
- 3. `~/.commandcode/skills/` (user)
205
- 4. `~/.agents/skills/` (user)
206
- 5. Extra locations (`--skill` flags first, then settings `skills` entries)
207
- 6. Bundled skills that ship with Command Code
208
-
209
- Put simply: project-level always trumps user-level, and within the same level `.commandcode/` is favored over `.agents/`.
210
-
211
- Command Code includes several ready-to-use skills. For example, `/skill-builder` creates and validates a new skill, `/design` provides a UI workflow, and [`/loop`](https://commandcode.ai/docs/background-tasks#scheduled-tasks-and-loops) runs a task now and schedules later iterations. A project or user skill with the same name can override a bundled skill through the normal precedence rules.
212
-
213
- When two locations provide the same skill name, the higher-precedence copy wins and every shadowed copy is reported as a **Duplicate names** warning in the `/skills` issues view and `cmd skills list --debug` - a shadowed skill is never dropped silently.
214
-
215
- **What happens on a collision.** When a skill name matches a built-in or a custom command:
216
-
217
- - Typing `/<name>` always resolves to the higher-precedence owner - the skill is not invoked.
218
- - Run the skill as `/skill:<name>` instead. The `skill:` namespace skips the precedence ladder entirely and can only ever resolve to a skill, so it works for every skill, shadowed or not. Typing `/skill:` on its own lists all of them.
219
- - The skill still appears in the `/` menu with a `[skill]` badge and a ` - shadowed by /<owner>, runs as /skill:<name>` note, and selecting that row inserts the namespaced form. Command Code prefers visibility with a marker over silently dropping the row.
220
-
221
- ---
222
-
223
- ## Browse and use skills
224
-
225
- Use the `/skills` slash command to view all your skills:
226
-
227
- **Open skills menu**
228
- ```bash
229
- # In Command Code session
230
- /skills
231
- ```
232
-
233
- This opens an interactive menu showing:
234
-
235
- - All user-level skills with `(user)` label
236
- - All project-level skills with `(project)` label
237
- - Skills from `.agents/skills/` (user or project) show a dim `[.agents]` badge
238
- - Use **arrow keys** to navigate
239
- - Press **Enter** to open any skill in your editor (or toggle it - see [Enable or disable skills](#enable-or-disable-skills))
240
- - Press **Esc** to close and return to your session
241
-
242
- Every installed skill is also surfaced as a first-class slash command in the `/` menu. If you install a skill named `pr-desc`, you will see `/pr-desc`, sorted after built-ins and any custom commands in the slash menu.
243
-
244
- If a skill name collides with a built-in or a custom command, the skill still appears in the `/` menu with a `[skill]` badge and a ` - shadowed by /<owner>` note. Typing `/<name>` always resolves to the higher-precedence owner, not the skill - use `/skill:<name>` to run the skill itself. See [Selection priority](#selection-priority) above for the full order.
245
-
246
- ---
247
-
248
- ## Invoking a skill
249
-
250
- Command Code supports three ways to use a skill in a conversation. Pick whichever matches the task at hand.
251
-
252
- ### 1. Exact slash invocation
253
-
254
- Type `/skill-name` at the start of your prompt to run that skill for the current turn:
255
-
256
- ```bash
257
- # In Command Code session
258
- /pr-desc update the description based on new changes
259
- ```
260
-
261
- Every skill also answers to the namespaced form `/skill:<name>`, which never
262
- resolves to anything but a skill:
263
-
264
- ```bash
265
- # In Command Code session
266
- /skill:changelog # the changelog skill, not the built-in /changelog
267
- /skill changelog # same thing, space instead of colon
268
- /skill: # browse every skill in the menu
269
- ```
270
-
271
- Reach for it when a skill's name is taken by a built-in or custom command - see
272
- [What happens on a collision](#selection-priority).
273
-
274
- ### 2. Inline slash reference
275
-
276
- Drop `/skill-name` anywhere inside a longer prompt to pin that skill without losing your natural phrasing. You can mix multiple skills in a single prompt:
277
-
278
- ```bash
279
- # In Command Code session
280
- Please follow /code-conv when writing the new module and /pr when opening the review PR.
281
- ```
282
-
283
- ### 3. Inferred suggestion
284
-
285
- Command Code scans your prompt and suggests a matching skill when one clearly fits. Ordinary prompts keep working exactly like before - inferred suggestions just help you discover what is available.
286
-
287
- ---
288
-
289
- ## Create skills
290
-
291
- The fastest way to create a skill is to ask Command Code to build it for you. The bundled `skill-builder` skill walks the agent through scoping the job, picking a valid name and location, writing spec-compliant frontmatter, and verifying the result loads - just describe the workflow you want captured, or invoke `/skill-builder` directly.
292
-
293
- ### User-level skills
294
-
295
- User-level skills are available across **all your projects**.
296
-
297
- **Location:** `~/.commandcode/skills/`
298
-
299
- **Create a user skill**
300
- ```bash
301
- # Create the directory
302
- mkdir -p ~/.commandcode/skills/my-skill
303
-
304
- # Create the SKILL.md file
305
-
306
- cat > ~/.commandcode/skills/my-skill/SKILL.md << 'EOF'
307
-
308
- ---
309
- name: my-skill
310
- description: What this skill does and when to use it
311
- ---
312
-
313
- # My Skill
314
-
315
- Instructions for Claude...
316
- EOF
317
- ```
318
-
319
- **Use cases:**
320
-
321
- - Personal coding preferences
322
- - General development workflows
323
- - Cross-project best practices
324
- - Your own code style guidelines
325
-
326
- **Example:**
327
-
328
- **Code review skill**
329
-
330
- ```bash
331
- mkdir -p ~/.commandcode/skills/code-review
332
- cat > ~/.commandcode/skills/code-review/SKILL.md << 'EOF'
333
- ---
334
- name: code-review
335
- description: Perform thorough code reviews checking for bugs, security issues, and best practices
336
- ---
337
-
338
- # Code Review Checklist
339
-
340
- ## Security
341
- - [ ] No hardcoded credentials or API keys
342
- - [ ] Input validation on all user data
343
- - [ ] Proper authentication and authorization
344
-
345
- ## Code Quality
346
- - [ ] Clear, descriptive variable names
347
- - [ ] Functions do one thing well
348
- - [ ] No code duplication
349
-
350
- ## Performance
351
- - [ ] No unnecessary loops
352
- - [ ] Efficient data structures
353
- - [ ] Optimized queries
354
-
355
- ## Testing
356
- - [ ] Unit tests cover main functionality
357
- - [ ] Edge cases tested
358
- - [ ] Error conditions handled
359
- EOF
360
- ```
361
-
362
- ### Project-level skills
363
-
364
- Project-level skills are available only in **that specific project**.
365
-
366
- **Location:** `.commandcode/skills/` (in your project root)
367
-
368
- **Create a project skill**
369
- ```bash
370
- # Create the directory
371
- mkdir -p .commandcode/skills/my-skill
372
-
373
- # Create the SKILL.md file
374
-
375
- cat > .commandcode/skills/my-skill/SKILL.md << 'EOF'
376
- ---
377
- name: my-skill
378
- description: What this skill does and when to use it
379
- ---
380
-
381
- # My Skill
382
-
383
- Instructions for Claude...
384
- EOF
385
- ```
386
-
387
- **Use cases:**
388
-
389
- - Project-specific patterns
390
- - Team conventions
391
- - Architecture guidelines
392
- - Domain-specific workflows
393
-
394
- **Example:**
395
-
396
- **API guidelines skill**
397
- ```bash
398
- mkdir -p .commandcode/skills/api-guidelines
399
- cat > .commandcode/skills/api-guidelines/SKILL.md << 'EOF'
400
- ---
401
- name: api-guidelines
402
- description: API design patterns and conventions for this project
403
- ---
404
-
405
- # API Guidelines
406
-
407
- ## Endpoint naming
408
- - Use plural nouns: `/users`, `/posts`
409
- - Use kebab-case: `/user-profiles`
410
- - Version in URL: `/v1/users`
411
-
412
- ## Response format
413
- Always return JSON with this structure:
414
- \```json
415
- {
416
- "data": { ... },
417
- "meta": { "count": 10, "page": 1 },
418
- "errors": []
419
- }
420
- \```
421
-
422
- ## Error codes
423
- - 400: Bad request (validation errors)
424
- - 401: Unauthorized (missing/invalid token)
425
- - 403: Forbidden (insufficient permissions)
426
- - 404: Not found
427
- - 500: Server error
428
-
429
- ## Authentication
430
- All endpoints require Bearer token in Authorization header except:
431
- - POST /v1/auth/login
432
- - POST /v1/auth/register
433
- EOF
434
- ```
435
-
436
- You can also install community skills directly from GitHub without manually creating files - see [`cmd skills add`](#cmd-skills-add) in the command reference.
437
-
438
- ---
439
-
440
- ## Edit skills
441
-
442
- You can edit using the `/skills` command.
443
-
444
- 1. Type `/skills` in Command Code
445
- 2. Navigate to the skill you want to edit
446
- 3. Press Enter
447
-
448
- This opens the `SKILL.md` file in your default editor (configured via `$EDITOR` environment variable).
449
-
450
- ### Manual editing
451
-
452
- You can also edit skills directly via the following paths:
453
-
454
- **Edit a skill**
455
- ```bash
456
- # Edit user-level skill
457
- code ~/.commandcode/skills/my-skill/SKILL.md
458
-
459
- # Edit project-level skill
460
- code .commandcode/skills/my-skill/SKILL.md
461
-
462
- # Edit a skill from .agents/ (if you use that convention)
463
- code .agents/skills/my-skill/SKILL.md
464
- ```
465
-
466
- After editing, the changes are immediately applied and ready to use. No restart is required.
467
-
468
- ### Setting up your editor
469
-
470
- The `/skills` command uses your `$EDITOR` environment variable to open files. See [setting up your editor](https://commandcode.ai/docs/interactive-mode#setting-up-your-editor) for setup instructions.
471
-
472
- ---
473
-
474
- ## Enable or disable skills
475
-
476
- Toggle a skill on or off without deleting it. Disabled skills are hidden from the model and won't be invoked.
477
-
478
- In the `/skills` picker, highlight a skill and press **Enter** to toggle it.
479
-
480
- ### Where the setting lives
481
-
482
- Disabled skills are tracked under the `disabledSkills` key in a `settings.json` file. Command Code looks for settings.json in the following paths:
483
-
484
- | **Scope** | **Config file** | **Applies to** |
485
- | --------- | --------------- | ----------------- |
486
- | User | `~/.commandcode/settings.json` | Across all projects |
487
- | Project | `.commandcode/settings.json` | Anyone using the project |
488
-
489
- The shape is the same in both settings files:
490
-
491
- ```json theme={null}
492
- {
493
- "disabledSkills": ["blogster", "r0"]
494
- }
495
- ```
496
-
497
- To disable a skill across every project on your machine, edit `~/.commandcode/settings.json` directly. The next session will pick it up.
498
-
499
- ---
500
-
501
- ## Organizing skills
502
-
503
- You can organize your skills using the following best practices:
504
-
505
- ### Single skill per directory
506
-
507
- Each skill must be in its own directory:
508
-
509
- ```text theme={null}
510
- .commandcode/skills/
511
- ├── code-review/
512
- │ └── SKILL.md
513
- ├── api-guidelines/
514
- │ └── SKILL.md
515
- └── testing-patterns/
516
- └── SKILL.md
517
- ```
518
-
519
- Skills can also be grouped under intermediate folders - see [Nested skill folders](#nested-skill-folders).
520
-
521
- ### Adding supporting files
522
-
523
- Skills can include additional files:
524
-
525
- ```text theme={null}
526
- my-skill/
527
- ├── SKILL.md # Required
528
- ├── scripts/ # Executable code
529
- │ ├── process.py
530
- │ └── validate.sh
531
- ├── references/ # Additional docs
532
- │ ├── API_REFERENCE.md
533
- │ └── EXAMPLES.md
534
- └── assets/ # Templates, resources
535
- ├── template.json
536
- └── schema.sql
537
- ```
538
-
539
- Reference these files in your `SKILL.md`:
540
-
541
- ```markdown theme={null}
542
- See [API Reference](references/API_REFERENCE.md) for details.
543
-
544
- Run the validation script:
545
- \```bash
546
- scripts/validate.sh
547
- \```
548
- ```
549
-
550
- ---
551
-
552
- ## Naming conventions
553
-
554
- ### Skill names
555
-
556
- * Use lowercase letters, numbers, and hyphens only
557
- * Max 64 characters
558
- * Must not start or end with hyphen
559
- * No consecutive hyphens
560
-
561
- **Good names:**
562
-
563
- ```
564
- code-review
565
- api-guidelines
566
- testing-patterns
567
- commit-messages
568
- ```
569
-
570
- **Bad names:**
571
-
572
- ```
573
- CodeReview # uppercase not allowed
574
- code_review # underscores not allowed
575
- -code-review # cannot start with hyphen
576
- code--review # consecutive hyphens
577
- ```
578
-
579
- ### Directory names
580
-
581
- The directory name must match the skill `name` field:
582
-
583
- ```text theme={null}
584
- code-review/ # Directory name
585
- └── SKILL.md # Must have: name: code-review
586
- ```
587
-
588
- ---
589
-
590
- ## Skills specification
591
-
592
- Every `SKILL.md` file should start with the frontmatter block followed by the markdown instructions in the body.
593
-
594
- ### Frontmatter (required)
595
-
596
- ```md
597
- ---
598
- name: skill-name
599
- description: A description of what this skill does and when to use it.
600
- ---
601
- ```
602
-
603
- You can add the following optional fields to the frontmatter as needed:
604
-
605
- ```md
606
- ---
607
- name: pdf-processing
608
- description: Extract text and tables from PDF files, fill forms, merge documents.
609
- license: Apache-2.0
610
- compatibility: Requires pdfplumber and PyPDF2 packages
611
- metadata:
612
- author: example-org
613
- version: "1.0"
614
- allowed-tools: Read Bash(python:*)
615
- ---
616
- ```
617
-
618
- | Field | Required | Constraints |
619
- | --------------- | -------- | ----------------------------------------------------------------------------------------------------------------- |
620
- | `name` | Yes | Max 64 characters. Lowercase letters, numbers, and hyphens-separated only. Should not start or end with a hyphen. |
621
- | `description` | Yes | Max 1024 characters. Describes what the skill does and when to use it. |
622
- | `license` | No | License name or reference to a bundled license file. |
623
- | `compatibility` | No | Max 500 characters. Describes environment requirements (packages, system tools, network access, etc.). |
624
- | `metadata` | No | Arbitrary key-value mapping for additional metadata (author, version, etc.). |
625
- | `allowed-tools` | No | Space-delimited list (or YAML array) of pre-approved tools the skill may use. (Experimental) |
626
-
627
- Command Code also honors these extension fields. Several mirror the Agent Skills / Claude Code frontmatter so a skill authored for another agent loads unchanged; tools that don't recognize a field ignore it safely:
628
-
629
- | Field | Required | Behavior |
630
- | -------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------- |
631
- | `argument-hint` | No | Shown next to the skill in the `/` menu so you know what arguments it expects (e.g. `argument-hint: "<branch> [--draft]"`). |
632
- | `when_to_use` | No | Extra trigger context (trigger phrases, example requests) appended to the description in the model-facing catalog, so auto-invocation matches on it too. |
633
- | `disable-model-invocation` | No | When `true`, the skill is hidden from the model entirely - it never appears in the skill catalog and can't be auto-loaded. Only an explicit `/skill-name` invocation runs it. Use for destructive or highly contextual workflows. |
634
- | `user-invocable` | No | When `false`, the skill stays model-invocable but is hidden from the `/` menu. Use for background knowledge that isn't a command you'd run by hand. |
635
- | `disallowed-tools` | No | Space-delimited list (or YAML array) of tools the skill should not use. Parsed and surfaced alongside `allowed-tools`. |
636
- | `arguments` | No | Ordered names for positional arguments (`arguments: issue branch`), enabling `$issue` / `$branch` placeholders in the body. |
637
- | `model` | No | Pin a model for the skill's work. |
638
- | `effort` | No | Reasoning-effort hint for the skill's work (`low`, `medium`, `high`, `xhigh`, `max`, or `inherit`). |
639
-
640
- ### Body content
641
-
642
- The markdown body that follows the frontmatter contains the skill instructions. There are no format restrictions. Write whatever helps Command Code perform the task effectively.
643
-
644
- Recommended sections:
645
-
646
- * **When to use this skill**: Clear triggers for activation
647
- * **Step-by-step instructions**: Detailed guidance
648
- * **Examples**: Input/output examples
649
- * **Common edge cases**: Known pitfalls and solutions
650
-
651
- Keep your main `SKILL.md` under 500 lines. Move detailed reference material to separate files in `references/`.
652
-
653
- ### Arguments and context substitution
654
-
655
- When you invoke a skill with `/skill-name <args>`, Command Code substitutes these placeholders in the body before the model sees it:
656
-
657
- | Placeholder | Expands to |
658
- | ----------- | ---------- |
659
- | `$ARGUMENTS` | All arguments as a single string. If the body has no placeholder, non-empty arguments are appended as an `ARGUMENTS: …` footer. |
660
- | `$ARGUMENTS[N]` / `${N}` | The Nth argument, 0-indexed (`$ARGUMENTS[0]` / `${0}` is the first). |
661
- | `$name` | A [declared named argument](#skills-specification). With `arguments: issue branch`, `$issue` is the first argument and `$branch` the second. Only declared names are replaced. |
662
- | `${COMMANDCODE_SKILL_DIR}` | Absolute path to the skill's own directory - use it to reference bundled `scripts/` or `references/` regardless of the working directory. |
663
- | `${COMMANDCODE_PROJECT_DIR}` | The project root (git root, otherwise the current directory). |
664
- | `${COMMANDCODE_SESSION_ID}` | The current session id, when available. |
665
- | `${COMMANDCODE_EFFORT}` | The active reasoning-effort level, when available. |
666
-
667
- The `${CLAUDE_SKILL_DIR}`, `${CLAUDE_PROJECT_DIR}`, `${CLAUDE_SESSION_ID}`, and `${CLAUDE_EFFORT}` aliases resolve to the same values, so a skill written for Claude Code works unchanged. Only these known tokens are substituted - any other `${...}` (for example a literal `${HOME}`) is left untouched.
668
-
669
- All placeholders substitute in a single pass and arguments are inserted literally: argument text that itself looks like a placeholder (`$ARGUMENTS`, `$$`, a declared `$name`) lands as-is and is never expanded again.
670
-
671
- ### Dynamic context injection
672
-
673
- A skill body can run shell commands and inline their output before the body reaches the model, so the model reads live data instead of a command. Two forms are recognized:
674
-
675
- * **Inline** - `` !`git status --short` `` runs a single command. The `!` is only honored at the start of a line or directly after whitespace, so `KEY=!`cmd`` stays literal.
676
- * **Fenced** - a ` ```! ` code block runs a multi-line script:
677
-
678
- ````md
679
- ```!
680
- node --version
681
- git rev-parse --short HEAD
682
- ```
683
- ````
684
-
685
- Each placeholder is replaced with the command's output, once, left to right - output is never re-scanned for more placeholders. Commands run from the project directory, with the `COMMANDCODE_SKILL_DIR` / `COMMANDCODE_PROJECT_DIR` (and `CLAUDE_*` alias) values exported to their environment.
686
-
687
- To turn this off - so opening a skill never shells out - set `disableSkillShellExecution: true` in `settings.json`. Every placeholder is then replaced with `[shell command execution disabled by policy]` instead of running.
688
-
689
- ### Optional directories
690
-
691
- Your skill folder can also include these optional subdirectories to organize related files:
692
-
693
- #### `scripts/`
694
-
695
- Contains executable code that agents can run. Scripts should:
696
-
697
- * Be self-contained or clearly document dependencies
698
- * Include helpful error messages
699
- * Handle edge cases gracefully
700
-
701
- ```text
702
- my-skill/
703
- ├── SKILL.md
704
- └── scripts/
705
- ├── extract.py
706
- └── process.sh
707
- ```
708
-
709
- #### `references/`
710
-
711
- Contains additional documentation that agents can read when needed:
712
-
713
- ```text
714
- my-skill/
715
- ├── SKILL.md
716
- └── references/
717
- ├── API_REFERENCE.md
718
- ├── FORMS.md
719
- └── TROUBLESHOOTING.md
720
- ```
721
-
722
- Keep individual reference files focused. Command Code loads these on demand, so smaller files mean less context usage.
723
-
724
- #### `assets/`
725
-
726
- Contains static resources:
727
-
728
- ```text
729
- my-skill/
730
- ├── SKILL.md
731
- └── assets/
732
- ├── template.json
733
- ├── diagram.png
734
- └── schema.sql
735
- ```
736
-
737
- ---
738
-
739
- ## Command reference
740
-
741
- Complete reference for all `cmd skills` commands. Install, list, and remove agent skills.
742
-
743
- | Command | Description |
744
- | ------- | ----------- |
745
- | [`cmd skills add`](#cmd-skills-add) | Install a skill from a GitHub repository |
746
- | [`cmd skills list`](#cmd-skills-list) | List all installed skills |
747
- | [`cmd skills remove`](#cmd-skills-remove) | Remove an installed skill |
748
-
749
- ### cmd skills add
750
-
751
- Install a skill from a GitHub repository into your project or global skills directory.
752
-
753
- **cmd skills add**
754
- ```bash
755
- cmd skills add <owner/repo> [options]
756
- ```
757
-
758
- **Options**
759
-
760
- | Option | Short | Description |
761
- | ------ | ----- | ----------- |
762
- | `--global` | `-g` | Install to global skills (`~/.commandcode/skills/`) |
763
- | `--force` | `-f` | Overwrite if skill already exists |
764
- | `--skill <name>` | `-s` | Pick a specific skill from a multi-skill repo |
765
-
766
- **Examples**
767
-
768
- **Single-skill repo**
769
- ```bash
770
- cmd skills add acme/my-skills
771
- ```
772
-
773
- **Specific path in repo**
774
- ```bash
775
- cmd skills add acme/skills/path/to/skill
776
- ```
777
-
778
- **Pick one skill from a multi-skill repo**
779
- ```bash
780
- cmd skills add acme/multi-skills -s my-skill
781
- ```
782
-
783
- **Specific branch**
784
- ```bash
785
- cmd skills add acme/repo@branch
786
- ```
787
-
788
- **Install globally**
789
- ```bash
790
- cmd skills add acme/repo --global
791
- ```
792
-
793
- **Install from community**
794
- ```bash
795
- cmd skills add https://github.com/remotion-dev/skills --skill remotion-best-practices
796
- ```
797
-
798
- **Install locations**
799
-
800
- | Flag | Location | Availability |
801
- | ---- | -------- | ------------ |
802
- | _(default)_ | `.commandcode/skills/<skill-name>/` | Current project only |
803
- | `--global` | `~/.commandcode/skills/<skill-name>/` | All projects on your machine |
804
-
805
- **Multi-skill repos.** When a repo contains multiple skills and `--skill` is not specified, Command Code shows an interactive prompt to select which skills to install.
806
-
807
- **Name collisions.** Skill names share the `/` menu with built-in commands (`/clear`, `/help`, `/share`, `/rewind`, …) and with the custom commands in `.commandcode/commands/`. Built-ins and custom commands take precedence - typing `/<name>` resolves to the owner, not to the skill.
808
-
809
- If you install a skill whose name collides with one of those, `cmd skills add` still completes normally - nothing blocks the install. The skill then appears in the `/` menu with a `[skill]` badge and a `shadowed by /<owner>` note, and runs as `/skill:<name>`, while a plain `/<name>` continues to route to the higher-precedence owner. See [Selection priority](#selection-priority) for the full order.
810
-
811
- ### cmd skills list
812
-
813
- List all installed skills, grouped by location.
814
-
815
- **cmd skills list**
816
- ```bash
817
- cmd skills list
818
- ```
819
-
820
- **Options**
821
-
822
- | Option | Description |
823
- | ------ | ----------- |
824
- | `--debug` | Show every skill that failed to load, grouped by error category |
825
-
826
- **Output**
827
-
828
- Shows all installed skills split into **Project** and **Global** sections:
829
-
830
- **Example output**
831
- ```sh
832
- Skills (3 installed)
833
-
834
- Project (1)
835
- remotion-best-practices · Best practices for building Remotion video...
836
-
837
- Global (2)
838
- frontend-design · Guidelines for building accessible, responsive UIs
839
- code-review · Comprehensive code review checklist for security and q...
840
- ```
841
-
842
- If any skills failed to load, a quiet hint appears under the listing:
843
-
844
- **With skipped skills**
845
- ```sh
846
- 5 skills skipped · run with --debug to see issues
847
- ```
848
-
849
- Re-run with `--debug` to see the grouped report. Each row is categorized and tagged with the path and the one-line reason:
850
-
851
- **cmd skills list --debug**
852
- ```bash
853
- cmd skills list --debug
854
- ```
855
-
856
- If no skills are installed, the command shows where it looked and how to install one:
857
-
858
- **Empty output**
859
- ```sh
860
- No skills installed.
861
-
862
- Looking in:
863
- ~/.commandcode/skills/ (global)
864
- .commandcode/skills/ (project)
865
- ~/.agents/skills/ (global, .agents)
866
- .agents/skills/ (project, .agents)
867
-
868
- Install a skill: cmd skills add <owner/repo>
869
- ```
870
-
871
- ### cmd skills remove
872
-
873
- Remove an installed skill by name. Prompts for confirmation before deleting.
874
-
875
- **cmd skills remove**
876
- ```bash
877
- cmd skills remove <skill-name> [options]
878
- ```
879
-
880
- **Options**
881
-
882
- | Option | Short | Description |
883
- | ------ | ----- | ----------- |
884
- | `--global` | `-g` | Remove from global skills (`~/.commandcode/skills/`) |
885
- | `--yes` | `-y` | Skip the confirmation prompt |
886
-
887
- **Examples**
888
-
889
- **Remove from project**
890
- ```bash
891
- cmd skills remove remotion-best-practices
892
- ```
893
-
894
- **Remove from global**
895
- ```bash
896
- cmd skills remove frontend-design --global
897
- ```
898
-
899
- **Skip confirmation**
900
- ```bash
901
- cmd skills remove my-skill --yes
902
- ```
903
-
904
- **Skill name rules.** Skill names must use lowercase letters, numbers, and hyphens only - no path separators, dots, or uppercase.
905
-
906
- ---
907
-
908
- ## Best practices
909
-
910
- Follow these best practices to create effective and maintainable skills.
911
-
912
- ### Writing effective descriptions
913
-
914
- Good descriptions help Command Code know when to use a skill:
915
-
916
- **Specific and keyword-rich:**
917
-
918
- ```md
919
- description: Extract text and tables from PDF files using pdfplumber. Use when user mentions PDFs, pdf files, document extraction, or needs to read PDF content.
920
- ```
921
-
922
- **Too vague:**
923
-
924
- ```md
925
- description: PDF tools
926
- ```
927
-
928
- ### Keep skills focused
929
-
930
- Each skill should do one thing well:
931
-
932
- **Focused:**
933
-
934
- - `code-review` - Code review checklist
935
- - `commit-messages` - Commit message format
936
- - `testing-patterns` - Testing conventions
937
-
938
- **Too broad:**
939
-
940
- - `development` - All development tasks
941
-
942
- ### Pick a name that does not collide
943
-
944
- Skill names share the `/` menu with built-in commands like `/clear`, `/help`, `/share`, and `/rewind`, and with any custom commands you define in `.commandcode/commands/`. Those take precedence - typing `/<name>` routes to the owner and the skill renders with a `shadowed by` note next to its `[skill]` badge.
945
-
946
- Prefer task-oriented names that are unlikely to overlap:
947
-
948
- **Safe:** `pr-desc`, `api-guidelines`, `release-notes`, `code-review`
949
-
950
- **Risky:** `clear`, `help`, `share`, `rewind` - these are built-in.
951
-
952
- ### Use progressive disclosure
953
-
954
- Keep `SKILL.md` concise. Move detailed content to `references/`, for example:
955
-
956
- ```markdown theme={null}
957
- # API Guidelines
958
-
959
- Quick reference of our API patterns.
960
-
961
- For complete documentation, see:
962
- - [Authentication details](references/AUTH.md)
963
- - [Error handling guide](references/ERRORS.md)
964
- - [Versioning strategy](references/VERSIONING.md)
965
- ```
966
-
967
- ### Version control
968
-
969
- Track your skills in Git:
970
-
971
- **Git tracking**
972
- ```bash
973
- # Add skills to git
974
- git add .commandcode/skills/
975
-
976
- # Commit
977
- git commit -m "Add API guidelines skill"
978
-
979
- # Share with team
980
- git push
981
- ```
982
-
983
- Don't ignore `.commandcode/skills/` - these should be shared with your team.
984
-
985
- ---
986
-
987
- ## Standard compliance
988
-
989
- Command Code fully implements the [Agent Skills open standard](https://agentskills.io). Skills you create are:
990
-
991
- * **Portable**: Work with any agent that supports the standard
992
- * **Versionable**: Track changes with Git
993
- * **Shareable**: Publish for your team or community
994
- * **Auditable**: Plain text files anyone can read
995
-
996
- Validation follows the standard strictly - including the rule that a skill's `name` must match its directory name. Skills that break a rule are skipped with a categorized warning (visible in `/skills` and `cmd skills list --debug`) rather than failing the session, and a missing or empty `description` always prevents loading. Command Code's extension fields (`argument-hint`, `disable-model-invocation`, `model`) live alongside the standard fields and are ignored by other implementations; unknown frontmatter fields from other tools are ignored in turn.
997
-
998
- ---
999
-
1000
- ## Skills vs Taste
1001
-
1002
- Skills are explicit, authored playbooks you write and share; [Taste](https://commandcode.ai/docs/taste) is the implicit, continuously-learned profile of your preferences. See the full guide at [commandcode.ai/blog/taste-skills-rules](https://commandcode.ai/blog/taste-skills-rules).
1003
-
1004
- ---
1005
-
1006
- ## Next steps
1007
-
1008
- - [Set up your taste profile](https://commandcode.ai/docs/taste) to pair learned preferences with authored skills
1009
- - Join our [Discord community](https://commandcode.ai/discord) for support