smart-learn: Command for Claude Code

.claude/commands/smart-review.md

smart-review is a command for Claude Code from HYH926/smart-learn. It costs 39 tokens per session (738 once invoked), scanned A, original, MIT.

A read-only command for reviewing topics already saved in a Markdown learning library. It creates review cards and optional self-test questions.

In plain words
What is it for?
Use it to choose a saved topic, review its main points, revisit older weak areas, answer an optional question, and view related notes or mind maps.
Why use it?
It brings back key ideas and marked weak points without repeating the full learning process or changing study records.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is HYH926/smart-learn's own configuration. It tells Claude Code how to work on smart-learn itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything smart-learn configures →

Reuse

Borrowing it

Nothing to install: this file belongs to HYH926/smart-learn. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/HYH926/smart-learn/main/.claude/commands/smart-review.md
Clone the repo
git clone --depth 1 https://github.com/HYH926/smart-learn

Made for: Claude Code.

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 smart-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/hyh926/smart-learn/smart-review.svg)](https://agentmods.dev/commands/hyh926/smart-learn/smart-review)
Your own site
<a href="https://agentmods.dev/commands/hyh926/smart-learn/smart-review"><img src="https://agentmods.dev/badge/commands/hyh926/smart-learn/smart-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 738 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.00039 $0.00738
Opus 5 $0.00019 $0.00369
Sonnet 5 $0.00008 $0.00148
Haiku 4.5 $0.00004 $0.00074

Measured 7d ago against content hash c964a052f391, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

smart-review 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 7d ago.

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.

.claude/commands/smart-review.md · 62 lines

What it actually says

启动快速复习模式。用户想复习的主题是:$ARGUMENTS

如果用户未指定主题

  1. 用 Glob 列出 knowledge_store/**/*.mdknowledge_store/**/*_思维导图.md
  2. 提取所有已学主题名,以列表呈现给用户选择
  3. 用户选择后进入复习

复习流程(只读,不修改任何学习记录)

第1步:精华速览

knowledge_store/{主题}.mdknowledge_store/{主题slug}.md,提取核心公式+三个关键点+一句话类比,以卡片格式呈现:

📇 {主题} — 复习卡片
━━━━━━━━━━━━━━━━━━━━
🎯 {核心公式}
🔑 {关键点1} | {关键点2} | {关键点3}
🏗️ {一句话类比}
🏷️ {关键词}

如果笔记不存在,从完整学习报告的"步骤5"部分提取。

第2步:薄弱点回顾(间隔复习优先)

从笔记中提取 ⚠️ 薄弱点列表。解析每条薄弱点的 (首次标记:YYYY-MM-DD) 时间戳。

按"最久未复习"排序(距今天数 = 优先级):

⚠️ 薄弱点回顾(按紧急度排序)

🕐 30天前 — 联合索引最左前缀(首次标记:2026-05-10)
🕐 15天前 — RESTful适用边界(首次标记:2026-05-25)
🕑 7天前  — CAP定理混淆(首次标记:2026-06-03)

逐条展示。对每条:

  • 先让用户尝试用自己的话解释(主动回忆效应)
  • 然后给出正确理解
  • 确认用户理解后,更新该薄弱点的时间戳为今天("复习过")
  • 不评分,纯回顾

第3步:可选自测

询问用户:"要做一道薄弱点自测题吗?"

  • 如果"是" → 从薄弱概念中选 1-2 个出题(单选题或简答),点评但不记录
  • 如果"否" → 展示思维导图路径,结束

第4步:收尾

告知用户:

  • 📝 完整笔记:knowledge_store/{主题}.md
  • 🧠 思维导图:knowledge_store/{主题}_思维导图.md(可在 VSCode 中打开渲染)
  • ⏱️ 复习时间:记录当前时间

约束

  • 这是纯复习模式,不走五步学习流程
  • 如果找不到该主题的笔记,告知用户并列出所有可用主题
  • 如果知识库为空,告知用户"还没有学习记录,用 /smart-learn 开始学习吧"
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. 7d ago First seen · 62 lines · 39 tokens per session scan A c964a052f391

Subscribe to this mod's changes

smart-review is a command published in the GitHub repository HYH926/smart-learn (21 stars, last pushed 2mo ago), licensed MIT. It adds 39 tokens to every session and 738 once invoked, about $0.0002 per session on Opus 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-08-30.