Skip to content

Commit b9117ec

Browse files
committed
feat: update templates/skills/bundled/deepcode-self-refer/SKILL.md
1 parent cb35887 commit b9117ec

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

  • templates/skills/bundled/deepcode-self-refer

templates/skills/bundled/deepcode-self-refer/SKILL.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,23 @@ Use the `Read` tool to read the appropriate document(s) from the list above. All
5858
### Step 4: Handle common request patterns
5959

6060
**"列出/查看可用的 skills":**
61-
- Explain the skill scanning paths from references/README.md (`./.deepcode/skills/`, `./.agents/skills/`, `~/.deepcode/skills/`, `~/.agents/skills/`, and bundled built-in skills)
62-
- Explain that `/skills` slash command lists available skills
63-
- Mention `enabledSkills` in `settings.json` for enabling/disabling specific skills
61+
- Treat `/skills` as the canonical UI for listing currently available skills.
62+
- If answering directly, do not infer the list only from loaded skill prompts or from project/user directories. Enumerate all discovery roots:
63+
1. `./.deepcode/skills/<folder>/SKILL.md`
64+
2. `./.agents/skills/<folder>/SKILL.md`
65+
3. `~/.deepcode/skills/<folder>/SKILL.md`
66+
4. `~/.agents/skills/<folder>/SKILL.md`
67+
5. bundled built-in skills as `bundled:<folder>/SKILL.md`
68+
- For a source checkout, bundled skills live under `templates/skills/bundled/<folder>/SKILL.md`. For a packaged install, bundled skills may live under `dist/bundled/<folder>/SKILL.md`.
69+
- Read each candidate `SKILL.md` frontmatter to get the resolved `name` and `description`; the folder name is only a fallback.
70+
- De-duplicate by resolved `name`, keeping the highest-priority root from the order above.
71+
- Apply `enabledSkills` from `settings.json`: if `enabledSkills["<name>"] === false`, do not list that skill as available.
72+
- Clearly separate discoverable skills from other concepts:
73+
- Discoverable skills are selectable through `/skills` and come from the roots above.
74+
- Bundled skills are discoverable skills shipped with Deep Code, such as `bundled:deepcode-self-refer/SKILL.md`.
75+
- Default prompt templates or always-injected guidance are not necessarily discoverable skills unless they also exist as `*/SKILL.md` in one of the scan roots.
76+
- Slash commands such as `/skills`, `/mcp`, and `/undo` are commands, not skills.
77+
- Mention that `/skills` can be used to verify the result and `enabledSkills` can enable/disable specific skills by name.
6478

6579
**"配置 <X> MCP":**
6680
- Read `references/mcp.md` for the MCP format and examples
@@ -90,9 +104,11 @@ Use the `Read` tool to read the appropriate document(s) from the list above. All
90104

91105
### Example 1: "列出可用的skills"
92106

93-
Read references/README.md, locate the Skills section. Answer:
107+
Read references/README.md, locate the Skills section, then enumerate all scan roots including bundled skills. Answer:
94108

95109
- Skills are discovered from: `./.deepcode/skills/`, `./.agents/skills/`, `~/.deepcode/skills/`, `~/.agents/skills/`, and bundled built-in skills such as `bundled:deepcode-self-refer/SKILL.md`.
110+
- In a source checkout, check `templates/skills/bundled/*/SKILL.md`; in a packaged install, check `dist/bundled/*/SKILL.md`.
111+
- Built-in bundled skills may include `deepcode-self-refer`, `plan`, `skill-digester`, and `skill-writer`; verify the actual list by scanning the bundled root because it can change between versions.
96112
- Use `/skills` slash command in the Deep Code CLI to list all available skills
97113
- Use `enabledSkills` in `settings.json` to enable/disable skills by name
98114

0 commit comments

Comments
 (0)