deeptutor-knowledge-bases

deeptutor-knowledge-bases is a skill for Claude Code from HKUDS/DeepTutor. It costs 77 tokens per session (682 once invoked), scanned A, original, Apache-2.0.

A guide for building DeepTutor knowledge bases from documents or folders. It uses embeddings, which turn text into searchable numerical representations, so DeepTutor can retrieve relevant material when answering questions.

In plain words
What is it for?
Use it to configure embeddings, create and update knowledge bases, search them, evaluate retrieval, and use them in chat or research features.
Why use it?
It provides the steps and checks needed to make document-based answers work. It also helps measure retrieval quality with a set of questions and answers before relying on a knowledge base.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the deeptutor plugin — 3 skills shipped together

Good fit Use it to configure embeddings, create and update knowledge bases, search them, evaluate retrieval, and use them in chat or research features.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hkuds/deeptutor/deeptutor-knowledge-bases
About the project

DeepTutor is a personalized tutoring system that uses AI agents and learning resources to support ongoing, interactive study. Learners use it for activities such as reading, research, guided courses, and building mastery paths. The catalogue entries provide skills and instructions for working with DeepTutor.

HKUDS/DeepTutor · 65,609 stars · on GitHub · arxiv.org

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HKUDS/DeepTutor --skill deeptutor-knowledge-bases
Clone the repo
git clone --depth 1 https://github.com/HKUDS/DeepTutor

Made for: Claude Code.

Or install deeptutor, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deeptutor-knowledge-bases

README.md
[![agentmods](https://agentmods.dev/badge/skills/hkuds/deeptutor/deeptutor-knowledge-bases/github.svg)](https://agentmods.dev/skills/hkuds/deeptutor/deeptutor-knowledge-bases)
Your own site
<a href="https://agentmods.dev/skills/hkuds/deeptutor/deeptutor-knowledge-bases"><img src="https://agentmods.dev/badge/skills/hkuds/deeptutor/deeptutor-knowledge-bases/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deeptutor-knowledge-bases

Your own site · 80×15
<a href="https://agentmods.dev/skills/hkuds/deeptutor/deeptutor-knowledge-bases"><img src="https://agentmods.dev/badge/skills/hkuds/deeptutor/deeptutor-knowledge-bases.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 682 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.00682
Opus 5.5 $0.00031 $0.00273
Sonnet 5.5 $0.00015 $0.00136
Haiku 4.5 $0.00008 $0.00068

Measured yesterday against content hash 144d8ee728d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

deeptutor-knowledge-bases scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/deeptutor/skills/deeptutor-knowledge-bases/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DeepTutor knowledge bases

References: SKILL.md (Knowledge Bases), docs-for-dev/AGENT_SETUP.md (embedding setup), docs-for-dev/KNOWLEDGE_MIGRATION.md, docs-for-dev/INDEXING_RECOVERY.md.

Prerequisites

The knowledge and parsing modules must be ready (deeptutor module list) and an embedding model configured:

{
  "embedding": {
    "provider": "openai",
    "model": "text-embedding-3-small",
    "api_key_env": "DEEPTUTOR_SETUP_EMBEDDING_KEY",
    "dimension": 1536
  }
}
deeptutor config apply embedding.json --check && deeptutor config apply embedding.json

Embedding base_url, when needed, is the full endpoint (e.g. https://api.openai.com/v1/embeddings). doctor --online only probes the LLM, so test embedding by ingesting and searching a small, user-approved document. Changing an existing KB's embedding model or dimension means a rebuild; plan it with the user.

Build and maintain

deeptutor kb create physics --doc ch1.pdf --doc ch2.pdf
deeptutor kb create papers --docs-dir ./papers
deeptutor kb add physics --doc ch3.pdf
deeptutor kb list --format json
deeptutor kb info physics
deeptutor kb set-default physics
deeptutor kb delete physics --force       # irreversible; confirm first

Search and evaluate

deeptutor kb search physics "Newton's third law" --mode hybrid --format json
deeptutor kb eval physics --dataset qa.jsonl --top-k 5 --mode hybrid --save report.json

qa.jsonl lines look like {"query": "...", "gold": ["..."]}; the report gives Recall@k, Precision@k, nDCG@k, MRR, MAP and Hit@k per case and averaged. Use it before and after changing chunking or embedding models.

Use in chat and capabilities

deeptutor run chat "Explain Newton's third law" --kb physics
deeptutor chat --kb physics --tool web_search
deeptutor run deep_solve "Solve x^2 = 4" --kb textbook
deeptutor run deep_research "Attention mechanisms" --kb papers --config mode=report --config depth=standard
deeptutor run deep_question "Thermodynamics" --kb physics --config num_questions=5

Read the full file on GitHub · 78 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 78 lines · 77 tokens per session scan A 144d8ee728d1

Subscribe to this mod's changes

deeptutor-knowledge-bases is a skill published in the GitHub repository HKUDS/DeepTutor (65,609 stars, last pushed yesterday), licensed Apache-2.0. It adds 77 tokens to every session and 682 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-04.

Related

deeptutor-knowledge-bases compared with skills from other repositories

deeptutor-knowledge-bases next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deeptutor-knowledge-basesHKUDS/DeepTutorSkill66kyesterdayApache-2.0A77Claude Code
documentation-searchcaipe-io/ai-platform-engineeringSkill455yesterdayApache-2.0A46Claude Code, Codex
retrieval-advisorbonigarcia/context-engineeringSkill198yesterdayApache-2.0A120Claude Code
retrieval-workflowJetXu-LLM/DocMasonSkill151yesterdayApache-2.0A18Claude Code, Codex
ciel-knowledge-and-memoryjxoesneon/CielSkill11mo agoApache-2.0A26Claude Code, Codex
embeddingsruvnet/rufloSkill83kyesterdayMITA62Claude Code
llm-app-patternsdavila7/claude-code-templatesSkill35kyesterdayMITA54Claude Code, Codex