deepcode-self-refer – skill Lập trình cho agent AI
Trả lời câu hỏi về chính Deep Code CLI, bao gồm tính năng, tùy chọn cấu hình, lệnh slash, Skills, tích hợp MCP, quyền truy cập, thông báo, lưu trữ phiên và xử lý sự cố. Dùng khi người dùng hỏi cách cấu hình hoặc sử dụng Deep Code, cách thiết lập máy chủ MCP, cấu hình thông báo (chẳng hạn
Cài skill deepcode-self-refer bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/deepcode-self-refer-b5d1a.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /deepcode-self-refer – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/deepcode-self-refer-b5d1a.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $deepcode-self-refer – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/deepcode-self-refer-b5d1a.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /deepcode-self-refer – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/deepcode-self-refer-b5d1a.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /deepcode-self-refer – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Deep Code Self-Refer
This Skill helps you answer user questions about Deep Code CLI itself by consulting the reference documentation bundled with this Skill. All docs live in the references/ subdirectory — always refer to them for authoritative answers.
When to use this Skill
Use this Skill when the user asks any question about Deep Code itself, such as:
- "列出可用的 skills"
- "如何配置 MCP?"
- "给当前项目配置 playwright mcp"
- "怎么启用搜索功能?"
- "支持哪些模型?"
- "如何配置思考模式?"
- "怎么设置权限?"
- "任务完成后怎么发通知?"
- "支持哪些斜杠命令?"
- "会话历史保存在哪里?"
- "/undo 是怎么工作的?"
- "Deep Code 和 VSCode 插件怎么配合?"
- Any other question about Deep Code CLI's features, configuration, or usage.
Instructions
Step 1: Identify the topic
Map the user's question to the appropriate document(s):
| Topic | Document | Key contents |
| ----------------------------------- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| Overview, features, quick start | references/README.md | Installation, slash commands, keyboard shortcuts, supported models, FAQ |
| Configuration & settings | references/configuration.md | settings.json fields, config hierarchy, env vars, thinking mode, reasoning effort, webSearchTool, enabledSkills |
| MCP setup & usage | references/mcp.md | MCP server config format, GitHub/Playwright/Filesystem examples, tool naming (mcp__<name>__<tool>), troubleshooting |
| Permissions | references/permission.md | Permission scopes (12 types), allow/deny/ask/defaultMode config, priority rules, persistence |
| Notifications | references/notify.md | Notify script path, injected env vars, Slack/Feishu/iTerm2/macOS/Linux/Windows examples |
| Session persistence | references/session-persistence.md | Storage paths, JSONL format, session index, compaction, /undo mechanics, code snapshots |
Step 2: Read the relevant document(s)
Use the Read tool to read the appropriate document(s) from the list above. All paths are relative to this Skill's loaded root directory, where the references/ subdirectory lives.
- If the question spans multiple topics, read multiple documents.
- If a document doesn't exist in the user's preferred language (e.g., Chinese), try the other language variant (e.g.,
references/configuration_en.md). - When answering from references/README.md, focus on the relevant sections.
Step 3: Answer with precision
- Quote the doc directly for config examples, JSON snippets, or command syntax.
- Don't guess — if the answer isn't in the docs, say so and suggest checking GitHub Issues.
- Provide copy-paste-ready configurations when the user asks to set something up (e.g., MCP servers, notify scripts, permissions).
- Mention related docs when appropriate (e.g., MCP setup references
references/mcp.md, the permissions section referencesreferences/permission.md).
Step 4: Handle common request patterns
"列出/查看可用的 skills":
- Treat
/skillsas the canonical UI for listing currently available skills. - If answering directly, do not infer the list only from loaded skill prompts or from project/user directories. Enumerate all discovery roots:
1. ./.deepcode/skills/<folder>/SKILL.md
2. ./.agents/skills/<folder>/SKILL.md
3. ~/.deepcode/skills/<folder>/SKILL.md
4. ~/.agents/skills/<folder>/SKILL.md
5. bundled built-in skills as bundled:<folder>/SKILL.md
- For a source checkout, bundled skills live under
templates/skills/bundled/<folder>/SKILL.md. For a packaged install, bundled skills may live underdist/bundled/<folder>/SKILL.md. - Read each candidate
SKILL.mdfrontmatter to get the resolvednameanddescription; the folder name is only a fallback. - De-duplicate by resolved
name, keeping the highest-priority root from the order above. - Apply
enabledSkillsfromsettings.json: ifenabledSkills["<name>"] === false, do not list that skill as available. - Clearly separate discoverable skills from other concepts:
- Discoverable skills are selectable through
/skillsand come from the roots above. - Bundled skills are discoverable skills shipped with Deep Code, such as
bundled:deepcode-self-refer/SKILL.md. - Default prompt templates or always-injected guidance are not necessarily discoverable skills unless they also exist as
*/SKILL.mdin one of the scan roots. - Slash commands such as
/skills,/mcp, and/undoare commands, not skills. - Mention that
/skillscan be used to verify the result andenabledSkillscan enable/disable specific skills by name.
"配置 <X> MCP":
- Read
references/mcp.mdfor the MCP format and examples - Ask the user for any required credentials (e.g., GitHub token)
- Provide the exact
mcpServersJSON block to add tosettings.json - Mention using
/mcpto verify the setup afterwards
"如何配置/修改 <设置项>":
- Read
references/configuration.md - Explain which
settings.jsonfield controls the setting - Clarify user-level (
~/.deepcode/settings.json) vs project-level (.deepcode/settings.json) - Provide the exact JSON snippet
"<斜杠命令> 是做什么的?":
- Read the slash command table from references/README.md
- Provide a brief explanation with any additional context from relevant docs
Best practices
1. Always consult the docs first — never answer from memory alone; the docs are the source of truth.
2. Provide copy-paste-ready JSON — users want to copy config blocks directly into their settings.json.
3. Be specific about file paths — always specify whether it's ~/.deepcode/settings.json or .deepcode/settings.json.
4. Mention /mcp verification — after any MCP configuration change, remind users to use /mcp to verify.
5. Acknowledge both Chinese and English docs — the project has docs in both languages (references/xxx.md for Chinese, references/xxx_en.md for English).
Examples
Example 1: "列出可用的skills"
Read references/README.md, locate the Skills section, then enumerate all scan roots including bundled skills. Answer:
- Skills are discovered from:
./.deepcode/skills/,./.agents/skills/,~/.deepcode/skills/,~/.agents/skills/, and bundled built-in skills such asbundled:deepcode-self-refer/SKILL.md. - In a source checkout, check
templates/skills/bundled/*/SKILL.md; in a packaged install, checkdist/bundled/*/SKILL.md. - Built-in bundled skills may include
deepcode-self-refer,plan,skill-digester, andskill-writer; verify the actual list by scanning the bundled root because it can change between versions. - Use
/skillsslash command in the Deep Code CLI to list all available skills - Use
enabledSkillsinsettings.jsonto enable/disable skills by name
Example 2: "给当前项目配置playwright mcp"
Read references/mcp.md, locate the Playwright example. Answer:
- Add to
settings.json(user-level~/.deepcode/settings.jsonor project-level.deepcode/settings.json):
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest"]
}
}
}- If merging with existing config, add the
"playwright"entry into the existingmcpServersobject - After saving, use
/mcpin Deep Code to verify the server is running
Example 3: "怎么设置通知到Slack?"
Read references/notify.md, locate the Slack section. Answer with the script + config.
Example 4: "如何只允许AI读写当前目录?"
Read references/permission.md, locate the strict mode example. Provide the exact JSON.
Skill liên quan
- api-noauth-hunt – Dùng khi một API có thể để lộ dữ liệu hoặc thao tác đặc quyền mà không cần xác thực.
- algorithmic-art – Tạo nghệ thuật thuật toán bằng p5.js với tính ngẫu nhiên có seed và khám phá tham số…
- 3d-web-experience – Dùng khi xây dựng hoặc gỡ lỗi cảnh 3D trên web, product configurator hoặc portfolio với…
- aas-review-stack – Rà soát manifest stack AAS, xem trước kế hoạch và bằng chứng lựa chọn trong Workbench mà…
- ab-test-setup – Dùng khi thiết kế A/B test hoặc split test: xác định giả thuyết, nhóm kiểm soát và biến…
- ab-testing – Khi người dùng muốn lên kế hoạch, thiết kế hoặc triển khai A/B test hoặc thí nghiệm…
- angular-migration – Di chuyển từ AngularJS sang Angular bằng chế độ hybrid, viết lại component dần dần và…
- access-lifecycle – Dùng khi chuẩn bị hoặc thực hiện đợt rà soát quyền truy cập người dùng, kiểm tra người…