You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: templates/skills/bundled/deepcode-self-refer/SKILL.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,9 +58,23 @@ Use the `Read` tool to read the appropriate document(s) from the list above. All
58
58
### Step 4: Handle common request patterns
59
59
60
60
**"列出/查看可用的 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.
64
78
65
79
**"配置 <X> MCP":**
66
80
- 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
90
104
91
105
### Example 1: "列出可用的skills"
92
106
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:
94
108
95
109
- 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.
96
112
- Use `/skills` slash command in the Deep Code CLI to list all available skills
97
113
- Use `enabledSkills` in `settings.json` to enable/disable skills by name
0 commit comments