بنقرة واحدة
glossary-indexer
扫描 Typst 文件中的标签(如 <def:limit-of-sequence-of-sets>),在 Appendix 的 Glossary 节中生成字母索引。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
扫描 Typst 文件中的标签(如 <def:limit-of-sequence-of-sets>),在 Appendix 的 Glossary 节中生成字母索引。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
根据用户说明生成物理/数学教学插图的 AI 绘图提示词。涵盖模型示意图、函数曲线图等,支持多面板组合布局。
跨文件代码审查,检查 Typst 代码的一致性、可维护性和内容职责原则遵循情况
审查数学证明的逻辑完整性、符号一致性和推理严密性
本技能文件规定了 `TypstTemplate/math-notes.typ` 模板的使用方式和所有可用组件。
本技能文件规定了如何编译验证 Typst 文件,确保修改后的笔记可以正确生成 PDF。
在编辑 Typst 数学笔记时,保持符号、风格、格式完全一致的原则
| name | glossary-indexer |
| description | 扫描 Typst 文件中的标签(如 <def:limit-of-sequence-of-sets>),在 Appendix 的 Glossary 节中生成字母索引。 |
| user_invocable | true |
/glossary-indexer <subject-initial.typ>
Given a Typst file path (e.g. 1.Analyse/Analyse Réelle/chapters/LebesgueIntegration.typ), perform the following steps:
Search the file for all labels matching the pattern:
<[a-z]+:[a-z][a-z0-9-]*>
Examples: <def:continuation>, <def:limit-of-sequence-of-sets>, <thm:open-set-construction>
Use grep (POSIX) / findstr (Windows) to extract all unique labels.
Split each label into:
: (e.g. def, thm, lem, cor, prop, ex, note): (e.g. limit-of-sequence-of-sets)- with limit-of-sequence-of-sets → Limit of a Sequence of SetsGroup entries by the first letter of the Display Name (uppercase A-Z).
For each letter group, sort entries alphabetically.
Generate the following structure at the end of the file:
#part("Appendix")
= Glossary
== A
- *#link(<def:...>)[Display Name]*
- *#link(<thm:...>)[Display Name]*
== B
- ...
Rules:
== <Letter> for each letter heading- *#link(<tag>)[Display Name]* for each entry (bullet + link)#part("Appendix") and the end of file before inserting the new oneCompile the file after insertion:
typst compile "<subject>/initial.typ" "<subject>/initial.pdf" --root .