Deepcode Self Refer logo

Deepcode Self Refer

OrganizationPopular
lessweb
deepcode-self-refer

Answers questions about Deep Code CLI itself — including features, configuration options, slash commands, Skills, MCP integration, permissions, notifications, session persistence, and troubleshooting. Use this when users ask how to configure or use Deep Code, how to set up an MCP server, configure notifications (such as Slack/Feishu), manage permissions, view available skills, understand slash commands, configure thinking mode, etc.

Overview

Publisherlessweb
Repositorydeepcode-cli
Skill namedeepcode-self-refer
Stars
2.2K
Forks
215
Bundled files
10
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 10 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by lessweb on GitHub. Read the source before you install it.

Installation

Install the Deepcode Self Refer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/lessweb/deepcode-cli.git /tmp/deepcode-cli
mkdir -p .claude/skills
cp -r /tmp/deepcode-cli/packages/core/templates/skills/bundled/deepcode-self-refer .claude/skills/deepcode-self-refer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Deepcode Self Refer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Deepcode Self Refer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Deepcode Self Refer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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):

TopicDocumentKey contents
Overview, features, quick startreferences/README.mdInstallation, slash commands, keyboard shortcuts, supported models, FAQ
Configuration & settingsreferences/configuration.mdsettings.json fields, config hierarchy, env vars, thinking mode, reasoning effort, webSearchTool, enabledSkills
MCP setup & usagereferences/mcp.mdMCP server config format, GitHub/Playwright/Filesystem examples, tool naming (mcp__<name>__<tool>), troubleshooting
Permissionsreferences/permission.mdPermission scopes (12 types), allow/deny/ask/defaultMode config, priority rules, persistence
Notificationsreferences/notify.mdNotify script path, injected env vars, Slack/Feishu/iTerm2/macOS/Linux/Windows examples
Session persistencereferences/session-persistence.mdStorage 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 references references/permission.md).

Step 4: Handle common request patterns

"列出/查看可用的 skills":

  • Treat /skills as 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 under dist/bundled/<folder>/SKILL.md.
  • Read each candidate SKILL.md frontmatter to get the resolved name and description; the folder name is only a fallback.
  • De-duplicate by resolved name, keeping the highest-priority root from the order above.
  • Apply enabledSkills from settings.json: if enabledSkills["<name>"] === false, do not list that skill as available.
  • Clearly separate discoverable skills from other concepts:
    • Discoverable skills are selectable through /skills and 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.md in one of the scan roots.
    • Slash commands such as /skills, /mcp, and /undo are commands, not skills.
  • Mention that /skills can be used to verify the result and enabledSkills can enable/disable specific skills by name.

"配置 MCP":

  • Read references/mcp.md for the MCP format and examples
  • Ask the user for any required credentials (e.g., GitHub token)
  • Provide the exact mcpServers JSON block to add to settings.json
  • Mention using /mcp to verify the setup afterwards

"如何配置/修改 <设置项>":

  • Read references/configuration.md
  • Explain which settings.json field 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 as bundled:deepcode-self-refer/SKILL.md.
  • In a source checkout, check templates/skills/bundled/*/SKILL.md; in a packaged install, check dist/bundled/*/SKILL.md.
  • 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.
  • Use /skills slash command in the Deep Code CLI to list all available skills
  • Use enabledSkills in settings.json to 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.json or project-level .deepcode/settings.json):
json
{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    }
  }
}
  • If merging with existing config, add the "playwright" entry into the existing mcpServers object
  • After saving, use /mcp in 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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Deepcode Self Refer AI skill do?

Answers questions about Deep Code CLI itself — including features, configuration options, slash commands, Skills, MCP integration, permissions, notifications, session persistence, and troubleshooting. Use this when users ask how to configure or use Deep Code, how to set up an MCP server, configure notifications (such as Slack/Feishu), manage permissions, view available skills, understand slash commands, configure thinking mode, etc.

Why use Deepcode Self Refer on TypingMind?

Because you install it once and use it with any model. Deepcode Self Refer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Deepcode Self Refer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/lessweb/deepcode-cli/tree/main/packages/core/templates/skills/bundled/deepcode-self-refer. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Deepcode Self Refer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Deepcode Self Refer?

As many as you like. As long as a model supports skills, you can use Deepcode Self Refer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Deepcode Self Refer AI skill free?

Yes. It is published on GitHub by lessweb under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇