ZeKaiNie

Examprep Agent — Development skill for Claude Code

Development community

ExamPrep Agent: an open-source study agent that teaches only from your own slides, homework and past exams, cites every page, and remembers what you got wrong.

How to install Examprep Agent

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ZeKaiNie/examprep-agent and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Examprep Agent does

ExamPrep Agent: an open-source study agent that teaches only from your own slides, homework and past exams, cites every page, and remembers what you got wrong. 靠谱:每句话都能翻到原文那一页。

Alternatives in Development

  • Frenemy — I got tired of copy pasting between Claude and Codex, so I made them talk to each other 78 ★
  • Claude Reforge — Persistent memory and learning for Claude Code — remembers errors, solutions, and patterns across sessions 74 ★
  • Citation Verifier — Round-trip every citation and quoted phrase in a legal output against the source document 72 ★

README

ExamPrep Agent

靠谱:只讲你资料里有的,每句话都能翻到原文那一页。

The study agent that cites every page, quizzes you with real exam questions, and remembers what you got wrong.

[![CI](https://github.com/ZeKaiNie/examprep-agent/actions/workflows/ci.yml/badge.svg)](https://github.com/ZeKaiNie/examprep-agent/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

**状态:P1 地基、P2 资料引擎、P3 学习闭环(命令行、本机服务端、Web 界面)已完成;下一步是长期学习(FSRS 复习、错题回炉、掌握度)。**

uv sync
uv run examprep ingest samples/zh-data-structures      # 导入:章节、题目(含答案配对)、配图、证据块
uv run examprep search zh-data-structures 循环队列 判满  # 检索,带文件和页码
export DEEPSEEK_API_KEY=sk-...                          # 或 OPENAI / ANTHROPIC / GEMINI 的 Key,或本地 Ollama
uv run examprep study zh-data-structures               # 开始学:讲解 → 检查 → 练习 → 判分 → 小结
uv run examprep serve                                  # 本机网页服务 http://127.0.0.1:8765(接口说明见 /docs)

网页界面(需要 Node 20.19+):先构建一次,`examprep serve` 就会在同一个地址提供界面——课程列表与导入、流式讲解、点讲解里的出处在右侧打开原文并高亮那一段、进度面板与上下文压缩:

cd web && npm install && npm run build   # 构建到 packages/app/src/examprep/web/
uv run examprep serve                    # 打开 http://127.0.0.1:8765
# 改前端时:另开终端 cd web && npm run dev,打开 http://localhost:5173(/api 自动转给 8765)

`examprep serve` 默认只允许本机访问:拒绝 Host 不是本机地址的请求,也拒绝其他网站借浏览器发来的请求。同一门课同一时间只能在一个地方学(命令行窗口或网页),另一边会提示“正在另一个窗口或网页里学习”。

学习时直接说“继续”“考考我”“没懂”“给个提示”“看答案”“跳到第 3 章”“进度”,或者直接提问。 讲解里的出处(文件 + 页码)由系统根据证据编号生成,模型写不出不存在的页码;资料里没有的问题会直接回答“资料里没有讲到”。

讲解、判分、核对默认都开启模型的思考模式(`high`),因为讲解里的例子要算对、判分要准。想更快、更省,可以在数据目录的 `config.toml` 里用 `[reasoning]` 按角色调整(`off` / `low` / `medium` / `high`),或者只调这一次学习的讲解:`uv run examprep study zh-data-structures --reasoning low`。

对话太长时会自动压缩上下文(默认开启,超过模型窗口的 70% 或 6 万 token 时触发),学习时说“压缩上下文”也能随时手动压缩;学习进度、错题和小结存在数据库里,压缩不会丢。在 `config.toml` 的 `[compaction]` 里可以调整阈值或关闭自动压缩,也可以用 `--no-auto-compact` 只关这一次。

ExamPrep Agent 从 [Exam Cram Coach Skill](https://github.com/ZeKaiNie/universal-examprep-skill) 演进而来,是一个独立的开源学习 Agent。

它要