Skills
A skill is a reusable set of instructions the agent loads only when a task matches it. Only a one-line catalog entry sits in the agent's context all the time; the full text is fetched on demand with the use_skill tool, so skills cost almost nothing until used.
Availability
| Where | Status |
|---|---|
| The 3 built-in skills | Available in every workspace |
Skills in <project>/.ccd/skills/ |
Read when the project folder is on the machine CCD itself runs on (self-hosted installs and the main workspace). Skills inside a repository that lives only on a dedicated node are not read yet. Use Instruction files for those. |
Skills in ~/.ccd/skills/ |
Machine-level. Managed by whoever runs the CCD server. |
Built-in skills
| Name | What it does |
|---|---|
review-changes |
Reviews the uncommitted diff for bugs, risky changes and missing tests. Reports path:line - problem - fix. |
debug-failing-test |
A step-by-step workflow to find and fix the root cause of a failing test. |
write-commit-message |
Drafts a concise conventional commit message from the staged changes. |
List what is visible to a project:
curl -H "X-API-Key: $CCD_API_KEY" "$CCD_URL/api/dev/skills?project_id=$PID"
Writing a skill
Create .ccd/skills/<name>/SKILL.md, or a single .ccd/skills/<name>.md file:
---
name: release-notes
description: Draft release notes from the commits since the last tag
triggers: release notes, changelog, what changed
---
1. Run `git describe --tags --abbrev=0` to find the last tag.
2. Run `git log <tag>..HEAD --oneline`.
3. Group the commits into Added, Changed and Fixed.
4. Output markdown. Do not edit any file unless asked.
Rules:
- name: lowercase letters, digits,
.,_,-; starts with a letter or digit; at most 64 characters. If the frontmatter has no name, the file or folder name is used. - description: one line. Shown in the catalog, clipped to 200 characters. Without it, the first non-empty line of the body is used.
- triggers: optional, separated by commas or semicolons. They help the agent decide when to load the skill.
- Frontmatter is flat
key: valuelines. Nested YAML is not parsed. - The body is clipped at 20,000 characters.
- The catalog shows at most 40 skills.
Search order
The first skill with a given name wins, so a project skill overrides a machine one:
<project>/.ccd/skills/~/.ccd/skills/~/.claude/skills/(read for compatibility)- The built-in skills
Skills versus the other options
- A rule that applies to every session: put it in
CCD.md. - A procedure for one kind of task: a skill.
- A prompt you type often: a custom command.
- A separate worker with its own role: a subagent.