DeepTutor knowledge-base

Manage DeepTutor knowledge bases — list, create, search, add documents, delete.

install
source · Clone the upstream repo
git clone https://github.com/HKUDS/DeepTutor
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/HKUDS/DeepTutor "$T" && mkdir -p ~/.claude/skills && cp -r "$T/deeptutor/tutorbot/skills/knowledge-base" ~/.claude/skills/hkuds-deeptutor-knowledge-base && rm -rf "$T"
manifest: deeptutor/tutorbot/skills/knowledge-base/SKILL.md
source content

Knowledge Base Management

Use the

exec
tool to manage DeepTutor knowledge bases via CLI.

When to Use

  • User asks about their knowledge bases or study materials
  • User wants to create, search, or manage a knowledge base
  • User needs to add documents to an existing KB

Commands

List all knowledge bases

deeptutor kb list --format json

--format json
outputs machine-readable JSON instead of a Rich table.

Get info about a knowledge base

deeptutor kb info <kb_name>

Create a knowledge base

deeptutor kb create <kb_name> --doc /path/to/file.pdf
deeptutor kb create <kb_name> --docs-dir /path/to/directory/

Add documents to existing KB

deeptutor kb add <kb_name> --doc /path/to/new_file.pdf

Search a knowledge base

deeptutor kb search <kb_name> "<query>" --format json

Set a default knowledge base

deeptutor kb set-default <kb_name>

Delete a knowledge base

deeptutor kb delete <kb_name> --force

Tips

  • Use
    kb list
    first to see what's available before searching.
  • The
    rag
    tool can also search KBs directly within the conversation — use it for quick lookups.
  • KB creation from large PDFs can take a few minutes.
  • Always confirm with the user before deleting a knowledge base.