Vocabulary Anti-Forgetting
Daily vocabulary review using spaced repetition. Selects 10 words per session and presents each with full details: English, Chinese translation, usage notes, and synonyms. No quiz.
Trigger
Activate when user says: 单词复习 / 复习 / review / 开始复习 / 背单词 / 单词练习
Session Flow
CODEBLOCK0
Step 1 — Load Data
Vocabulary bank: Read asset/vocabulary_bank.md from this skill.
Review history: Read memory/vocab_history.md from current agent workspace (create if absent).
Review history format:
# Vocabulary Review History
| Word | Review Count | Last Review | Next Review | Interval (days) |
|------|--------------|-------------|-------------|-----------------|
| resilience | 2 | 2026-03-25 | 2026-04-01 | 7 |
Step 2 — Select 10 Words
- 1. From review history, find words where
Next Review <= today → these are due words (sorted by Next Review ascending) - If due words < 10: fill remaining slots from vocabulary bank words not yet in review history (take in order from the bank, starting from lowest entry number)
- Pick exactly 10 words total
Step 3 — Present Words
Output each word as a card. Present all 10 in a single reply:
CODEBLOCK2
Step 4 — Save Session Record
4a — Update review history
For each of the 10 reviewed words, upsert a row in memory/vocab_history.md:
| Review Count (after session) | Next Review Interval |
|---|
| 1 | 3 days |
| 2 |
7 days |
| 3 | 14 days |
| 4 | 30 days |
| ≥ 5 | 60 days |
Update fields: Review Count += 1, Last Review = today, Next Review = today + interval, INLINECODE13
4b — Append to session log
Append to memory/vocab_sessions.md (create if absent):
CODEBLOCK3
Memory Files Reference
| File | Purpose |
|---|
| INLINECODE15 | Per-word spaced repetition tracking |
| INLINECODE16 |
Session log (date, words reviewed) |
Both files are relative to the current working directory (not the skill directory).
Rules
- - Always read files before writing to avoid overwriting existing content
- The vocabulary bank path is absolute: INLINECODE17
- For phrases/idioms in the bank (e.g. "take the high road"), treat the full phrase as the vocabulary item
- If a word/phrase has a type hint in the bank (e.g. "devour v"), use it; otherwise infer from context
- Use your knowledge to provide Chinese meanings, usage examples, and synonyms — the bank lists only the English entries
- If
memory/ directory does not exist in cwd, create it before writing - Usage example must include both English sentence and Chinese translation
- Synonyms should be 3–5 closely related words or phrases
词汇抗遗忘
使用间隔重复法进行每日词汇复习。每次选择10个单词,并完整呈现每个单词的详细信息:英文、中文翻译、用法说明和近义词。不含测验。
触发条件
当用户说以下内容时激活:单词复习 / 复习 / review / 开始复习 / 背单词 / 单词练习
会话流程
- 1. 加载词汇库 + 复习记录
- 选择10个单词(间隔重复逻辑)
- 完整呈现全部10个单词的详细信息
- 将会话记录保存到记忆
步骤1 — 加载数据
词汇库: 读取本技能的 asset/vocabulary_bank.md。
复习记录: 读取当前智能体工作空间的 memory/vocab_history.md(若不存在则创建)。
复习记录格式:
markdown
词汇复习记录
| 单词 | 复习次数 | 上次复习 | 下次复习 | 间隔(天) |
|---|
| resilience | 2 | 2026-03-25 | 2026-04-01 | 7 |
步骤2 — 选择10个单词
- 1. 从复习记录中,找出 下次复习 <= 今天 的单词 → 这些是待复习单词(按下次复习日期升序排列)
- 如果待复习单词不足10个:从词汇库中尚未出现在复习记录中的单词中补足剩余名额(按词汇库顺序,从编号最小的条目开始选取)
- 总共选取恰好10个单词
步骤3 — 呈现单词
每个单词以卡片形式输出。在单次回复中呈现全部10个单词:
📚 今日复习单词(10个)— YYYY-MM-DD
1. resilience n.
🇨🇳 中文: 韧性;恢复力
📖 用法:
She showed remarkable resilience in the face of adversity.
(她在逆境中展现出非凡的韧性。)
🔗 近义词: tenacity, perseverance, fortitude, grit
2. take the high road 短语
🇨🇳 中文: 采取高姿态;走正道;以德报怨
📖 用法:
Even when criticized unfairly, she chose to take the high road and remained professional.
(即使受到不公平的批评,她仍选择以大局为重,保持专业。)
🔗 近义词: rise above it, turn the other cheek, be the bigger person
...(卡片3–10)...
✅ 今日复习完成!下次复习:[最近一次下次复习的日期]
步骤4 — 保存会话记录
4a — 更新复习记录
对于复习过的10个单词中的每一个,在 memory/vocab_history.md 中更新或插入一行:
7天 |
| 3 | 14天 |
| 4 | 30天 |
| ≥ 5 | 60天 |
更新字段:复习次数 += 1,上次复习 = 今天,下次复习 = 今天 + 间隔,间隔 = 新间隔
4b — 追加到会话日志
追加到 memory/vocab_sessions.md(若不存在则创建):
markdown
会话:YYYY-MM-DD
复习单词: word1, word2, word3, word4, word5, word6, word7, word8, word9, word10
记忆文件参考
| 文件 | 用途 |
|---|
| memory/vocabhistory.md | 每个单词的间隔重复追踪 |
| memory/vocabsessions.md |
会话日志(日期、复习单词) |
两个文件均相对于当前工作目录(而非技能目录)。
规则
- - 在写入之前始终先读取文件,以避免覆盖现有内容
- 词汇库路径为绝对路径:/Users/hushenglang/Development/workspace/2026/claude-skills/vocabulary-anti-forgetting/asset/vocabulary_bank.md
- 对于词汇库中的短语/习语(例如take the high road),将整个短语视为词汇条目
- 如果词汇库中的单词/短语有类型提示(例如devour v),则使用该提示;否则根据上下文推断
- 利用你的知识提供中文含义、用法示例和近义词——词汇库仅列出英文条目
- 如果当前工作目录中不存在 memory/ 目录,则在写入前创建它
- 用法示例必须同时包含英文句子和中文翻译
- 近义词应为3–5个密切相关的单词或短语