/htd-ai-augmented-education:mark-memory-spansfrom AI 辅助教育
从纯文本中提取语义记忆要点,保存为不重叠的文本 span 并用「」标记输出;支持新增、删除和调整 span,用于标记背诵重点、提取记忆要点或制作挖空文本。
Ships in AI 辅助教育. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
输入一段纯文本。Agent 判断语义记忆要点,脚本保存 JSON、生成用「」标记的 Markdown,并支持后续编辑。
Agent 在提交 span 前阅读 references/span-examples.md 的正反案例;脚本负责可确定的区间、挖空和主干校验,学科语义边界由 Agent 判断。
Agent 先根据输入语义判断:要背诵的古诗文默认使用 classical_recitation,其他内容使用 key_points。脚本按逗号、分号、句号、问号、叹号和换行列出古诗文分句;顿号留在分句内部。Agent 只选择需要练习的分句编号,脚本将编号扩展为整个分句正文的 span,分隔标点和分句边缘的引号留在原位。古诗文模式豁免下述普通模式的单句密度和剩余主干要求,但不允许只挖空分句中的个别字词。
utils/references/术语表.txt 是两个记忆 Skill 共用的术语表,每行一个中文或英文术语。普通模式中,脚本先给出完整术语候选,再校验 Agent 选择、edit 与 verify 的区间边界;术语是否作为考点仍按语义判断。运行时的词表快照保存在本次 logs/mark-memory-spans/runs/<run-id>/,恢复和验证使用快照。用「分液漏斗」「萃取」……。「span」 必须在挖空结果中对应一个 ____ 占位符;挖空文本必须由脚本依据已验证 spans 重新生成。「span」 与一个且仅一个按顺序生成的 ____ 占位符对应。key_points;古诗文整分句边界规则优先。runtime/.venv/Scripts/python.exe skills/mark-memory-spans/scripts/cli.py start --root . --input request.json
runtime/.venv/Scripts/python.exe skills/mark-memory-spans/scripts/cli.py resume --root . --run-id <run-id> --input agent-response.json
runtime/.venv/Scripts/python.exe skills/mark-memory-spans/scripts/cli.py edit --root . --input edit-request.json
runtime/.venv/Scripts/python.exe skills/mark-memory-spans/scripts/cli.py deliver --root . --run-id <run-id>
runtime/.venv/Scripts/python.exe skills/mark-memory-spans/scripts/cli.py status --root . --run-id <run-id>
runtime/.venv/Scripts/python.exe skills/mark-memory-spans/scripts/cli.py verify --root . --run-id <run-id>
start 和 resume 使用可恢复状态机;edit 按当前 span 集合顺序应用新增、删除和调整操作。编辑古诗文时须在编辑请求中传入 mode: "classical_recitation",脚本会拒绝半句区间。调整后区间长度为 0 时自动删除。deliver 读取已验证的 result.md 并将人类可读版本输出到对话。输出沿用现有 JSON 字段、「」 和 ____;古诗文的“主干保留”在 Markdown 中显示“不适用”。
prepared → validating_request → normalizing_text → extracting_candidates → building_generation_packet → paused_agent_selection → validating_agent_response → validating_mode → [validating_clause_selection] → validating_cloze_quality → validating_cloze_alignment → rendering_outputs → verifying_outputs → completed。方括号阶段仅用于古诗文。普通模式继续检查标题误标、单句密度和剩余主干;古诗文模式检查完整分句区间。validating_cloze_alignment 仍逐项检查标记 span 与纯文本 ____ 占位符;检查失败进入 paused_quality_review,补交 Agent 响应后可恢复到 validating_agent_response。
输入、Agent 响应、挖空质量或源文本哈希不一致时进入对应暂停或错误路径。日志写入 logs/mark-memory-spans/runs/<run-id>/,产物写入 outputs/mark-memory-spans/runs/<run-id>/。
references/request.schema.json:提取请求。references/agent-response.schema.json:Agent 判断模式;普通模式提交 span 与挖空判断,古诗文模式只提交选中的分句编号。references/edit-request.schema.json:编辑请求和源文本哈希。references/output.schema.json:正式结果。references/span-examples.md:按主题分表的正反案例,每行包含学段、主题、原文、正面、挖空、正面原因、负面和负面原因。references/general-span-examples.json:古诗文、相邻 span、固定短语、政治和历史案例的结构化源数据。references/geography-span-examples.json:地理正面/负面案例的结构化源数据。references/physics-span-examples.json:物理正面/负面案例的结构化源数据。references/math-span-examples.json:数学公式、条件结论和解题步骤的正面/负面案例源数据。references/chemistry-span-examples.json:化学正面/负面案例的结构化源数据。references/biology-span-examples.json:生物正面/负面案例的结构化源数据。references/literature-span-examples.json:文学常识与名著正面/负面案例的结构化源数据。utils/references/cloze-inference-rules.json:可确定的“答案—原因判据”映射,由共用挖空质量脚本检查。utils/references/术语表.txt:每行一个中文或英文术语,原文命中时作为不可从中间切开的完整单元。参考案例 Markdown 由共享 Python 脚本根据结构化数据生成。masked 不需要在案例 JSON 中重复保存,由脚本从正面 span 推导;古诗文案例使用 mode: "classical_recitation" 校验整分句边界。追加案例时在对应 JSON 的 examples 中增加一项,再运行以下命令重建全部表格:
runtime/.venv/Scripts/python.exe utils/scripts/render_span_examples.py `
--source skills/mark-memory-spans/references/general-span-examples.json `
--source skills/mark-memory-spans/references/geography-span-examples.json `
--source skills/mark-memory-spans/references/physics-span-examples.json `
--source skills/mark-memory-spans/references/chemistry-span-examples.json `
--source skills/mark-memory-spans/references/biology-span-examples.json `
--source skills/mark-memory-spans/references/literature-span-examples.json `
--source skills/mark-memory-spans/references/math-span-examples.json `
--target skills/mark-memory-spans/references/span-examples.md
scenario_examples:
- id: mark-memory-points
user_request: "请标出这段知识中适合挖空记忆的要点"
when_to_call: "用户提供纯文本并要求提取、标记或修改记忆要点时"
invocation: "start → resume → deliver → verify"
expected_output: "返回带「」标记的 Markdown、包含源文本 SHA-256 的 span JSON,以及挖空后的主干检查结果"
功能调用、配置和运行协议的补充说明见 使用与协议补充。
references/agent-response.schema.json (opens in a new tab)references/biology-span-examples.json (opens in a new tab)references/chemistry-span-examples.json (opens in a new tab)references/edit-request.schema.json (opens in a new tab)references/general-span-examples.json (opens in a new tab)references/geography-span-examples.json (opens in a new tab)references/literature-span-examples.json (opens in a new tab)references/math-span-examples.json (opens in a new tab)references/output.schema.json (opens in a new tab)references/physics-span-examples.json (opens in a new tab)references/request.schema.json (opens in a new tab)references/span-examples.md (opens in a new tab)references/usage-details.md (opens in a new tab)scripts/cli.py (opens in a new tab)templates/result.template.md (opens in a new tab)tests/test_classical_recitation.py (opens in a new tab)tests/test_geography_examples.py (opens in a new tab)tests/test_literature_examples.py (opens in a new tab)tests/test_math_examples.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (hytidellegend/ai-aug-edu) — no native marketplace selected
npx claudepluginhub p/hytidellegend-htd-ai-augmented-education19 skills in this plugin
/build-curriculum-navigation从项目内一个或多个 Markdown 资料生成知识点依赖图、背景诊断和评分后的候选学习顺序。开始或继续 interactive-tutor 前必须调用;已有有效导航用 verify 校验,资料或目标变化时增量维护。/build-mnemonic-keywords为初高中及其他需要背诵的一句知识生成关键词、联想记忆场景和 Image 2、Image 2.5 或豆包可用的生图提示词,并在用户确认后调用 /imagegen。用户要求背诵、记忆口诀、联想记忆、场景化记忆或把记忆法画成图时使用。/build-word-entry从单词或 UTF-8 词表采集 Cambridge、Oxford、Longman 和 Thesaurus.com 证据,生成可恢复、可校验的英语词条 JSON,并发现批次内候选关系。用户要求建立词汇星图词条、批量处理词表、维护项目拼写关系或恢复词条生成时使用。/convert-copy-to-transcript将 UTF-8 Markdown、纯文本文件或直接文案确定性转换为可朗读逐字稿;脚本生成语义候选、预览、差异报告与确认回执,Agent 仅填写候选读法。/create-dialogue-podcast将 UTF-8 书面内容生成两人一问一答的播客;归档原文、筛选学习清单与习题,调用问答逐字稿转换和双音色 TTS,直接交付 TXT 与 MP3。用户要求文章转播客、课程讲义转双人问答音频时使用。/en-writing-master英语作文工具箱,支持按作文工具写作、批改、润色和创建新工具。当用户提出英语作文、作文评分、逐句修改、作文润色或添加写作规则时使用。Other plugins' skills for the same job