/dsh-deeptutor:deeptutorfrom dsh-deeptutor
Combines DeepTutor personal knowledge bases (RAG) with web sources to generate learning content, self-test questions, and study plans. Archives notes to a notebook. Works with local and remote DeepTutor deployments.
Ships in dsh-deeptutor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Combines the user's personal knowledge bases (RAG retrieval) with authoritative web sources to produce learning content, self-test questions, and study plans, then archives notes to a DeepTutor notebook.
This skill is agent-agnostic. Use the first driver that exists in your environment; the action, not the tool, is what matters.
The deeptutor_* tools (preferred). dsh registers them through the
dsh-deeptutor bundle; Claude Code and pi get the same four tools from the
dsh-deeptutor package's MCP server. The names differ per host:
deeptutor_run, deeptutor_kb, deeptutor_note, deeptutor_climcp__deeptutor__deeptutor_run and so on (the server is registered as
deeptutor with deferred exposure, so the tools may need tool_search
once per session before they can be called directly)mcp__plugin_dsh-deeptutor_deeptutor__deeptutor_run and so onAny other MCP client gets bare deeptutor_* names, whether it starts the
server from scripts/mcp-launch.mjs or npx -y -p dsh-deeptutor dsh-deeptutor-mcp.
The plain CLI. deeptutor <args> locally, or
ssh <DEEPTUTOR_SSH_HOST> <DEEPTUTOR_REMOTE_BIN> <args> for a remote
deployment. On Windows run it from PowerShell, not Git Bash: MSYS rewrites
/home/... env values into Windows paths.
| Tool | Use it for |
|---|---|
deeptutor_run | one learning turn: explanation, questions, research, mastery path, … |
deeptutor_kb | list / search / info of knowledge bases |
deeptutor_note | archive a Markdown note into a notebook (find-or-create, file upload) |
deeptutor_cli | everything else the CLI offers: deeptutor <args> behind safety tiers |
Nothing is hardcoded in this skill; all server parameters come from environment variables that every agent inherits at startup. Deployment mode adapts automatically:
# Remote deployment (DeepTutor on a server, driven over SSH)
export DEEPTUTOR_SSH_HOST="tencent-cloud" # SSH host alias (set = remote mode)
export DEEPTUTOR_REMOTE_BIN="/home/ubuntu/my-deeptutor/.venv/bin/deeptutor"
export DEEPTUTOR_REMOTE_HOME="/home/ubuntu/my-deeptutor"
# Local deployment: leave DEEPTUTOR_SSH_HOST unset
# export DEEPTUTOR_LOCAL_BIN="deeptutor" # local CLI path (default: deeptutor on PATH)
deeptutor serve never needs to be reachable: every call runs the CLI.
Changing servers only changes env vars, never this skill.
DeepTutor's command set, capabilities and tools change between releases and between deployments (1.7+ ships them as optional modules). This skill deliberately lists only the core workflow. For anything else, ask the CLI and use only what it shows; never invent commands or flags:
| To learn | Call |
|---|---|
| top-level commands | deeptutor_cli args=["--help"] |
| one command's subcommands/flags | deeptutor_cli args=["kb","--help"], ["kb","search","--help"] |
| capabilities ready on this host | deeptutor_cli args=["module","list"] (JSON; capabilities of modules with ready: true) |
| tools a turn can enable | deeptutor_cli args=["plugin","list"], details via ["plugin","info","<name>"] |
| knowledge bases | deeptutor_kb action=list |
deeptutor_run also tells you the available capabilities when you pick one
that is not ready. If a needed capability or command does not exist, say so to
the user instead of guessing.
deeptutor_cli)--help; verbs list, show, info, search,
state, status, list-*; doctor; run.kb create, kb add, notebook add-md, module enable, …). Set
confirm=true only after the user explicitly asked for that change;
never proactively, never to "try it".delete, remove*, clear, uninstall,
rollback, login, …) and interactive or long-running commands (chat,
start, stop, serve, init). The tool refuses them; tell the user the
exact command to run in their own terminal.With the plain CLI driver the same rules apply; you enforce them yourself.
web_search for authoritative sources: official docs (learn.microsoft.com, …), official blogs, trusted tutorials. Keep the links.deeptutor_kb action=list, then deeptutor_kb action=search kb=<kb> query="<topic>".deeptutor_run capability=deep_solve prompt="<topic>" kbs=[<kb>] tools=[rag, web_search] language=zh
(CLI: deeptutor run deep_solve "<topic>" --kb <kb> --tool rag --tool web_search --language zh --format json)
Record the returned session_id and reuse it for every follow-up turn so
DeepTutor keeps the context (history, knowledge bases, tools).
Continue with the same session_id: details, code examples, pitfalls,
differences vs. authoritative sources.
deeptutor_run capability=deep_question prompt="<topic essentials>" session_id=<same> config={num_questions: 5} kbs=[<kb>] language=zh
Combine the three sources into a structured Markdown plan: goals and prerequisites; core concepts (marked personal KB / authoritative link); phased schedule (concept → authoritative reading → KB review → exercises); quiz and acceptance criteria; references.
Pass html to deeptutor_run and the answer is rendered to a self-contained
page (dark/light toggle, TOC, collapsible quiz answers, print-friendly) with
the html-doc converter, plus the .md source next to it:
deeptutor_run capability=deep_solve prompt=<topic> kbs=[...] tools=[rag, web_search]
html="<absolute path, e.g. /home/me/study/<topic>/knowledge.html>" html_title="<主题> · 知识点" language=zh
html must be an absolute path. A tool has no workspace root (dsh hands it
only the agent identity, and an MCP server has no session), so a relative path
cannot be resolved against your working directory — it is rejected instead of
silently landing under the host process cwd. Prefix it with your working
directory explicitly.
The converter and its template are resolved in this order, and the tool result
prints which layer won (converter: / template: lines):
HTML_DOC_SCRIPT / HTML_DOC_TEMPLATE env vars (explicit override; a
set-but-missing path is an error),<DSH_HOME>/skills/html-doc/ (DSH_HOME defaults to
~/.dsh) — edit the template there to customise the page, no plugin edit
needed,To render other Markdown, use the html-doc skill's converter
(node <html-doc skill dir>/scripts/md-to-html.js <in.md> --out <out.html> --title "<t>" --toc,
plus --template <file> to pick a specific template).
Tell the user the file paths.
deeptutor_note notebook=<name> title="<t>" type=solve content=<markdown>
(creates the notebook if missing).
deep_research can take minutes: pass timeout 900+ or split the task.max_chars (default 30000); ask to continue for more.deeptutor_run covers the common flags; CLI-only flags such as
--notebook-ref / --history-ref go through deeptutor_cli args=["run", …].What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
rag, knowledge-base, study-plan, self-test, learning-assistant, notebook
2 skills in this plugin
npx claudepluginhub tecfancy/dsh-deeptutor --plugin dsh-deeptutorOther plugins' skills for the same job