with one click
typst-edit-consistency
在编辑 Typst 数学笔记时,保持符号、风格、格式完全一致的原则
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
在编辑 Typst 数学笔记时,保持符号、风格、格式完全一致的原则
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
根据用户说明生成物理/数学教学插图的 AI 绘图提示词。涵盖模型示意图、函数曲线图等,支持多面板组合布局。
跨文件代码审查,检查 Typst 代码的一致性、可维护性和内容职责原则遵循情况
扫描 Typst 文件中的标签(如 <def:limit-of-sequence-of-sets>),在 Appendix 的 Glossary 节中生成字母索引。
审查数学证明的逻辑完整性、符号一致性和推理严密性
本技能文件规定了 `TypstTemplate/math-notes.typ` 模板的使用方式和所有可用组件。
本技能文件规定了如何编译验证 Typst 文件,确保修改后的笔记可以正确生成 PDF。
| name | typst-edit-consistency |
| description | 在编辑 Typst 数学笔记时,保持符号、风格、格式完全一致的原则 |
| user_invocable | false |
当用户要求修改 Typst 数学笔记内容时,必须严格遵守以下原则:
规则:文档中已有的符号体系必须完全保留,不得更改。
案例分析:在 Analyse Réelle/initial.typ 中,用户原有内容使用:
$S$$cal(S)$$A, B, A_i$这些符号在文档后续内容中广泛使用(如 Measurable Space 使用 (X, cal(S)),Measure 使用 cal(S) 等)。
错误示范:
// ❌ 错误:将 S 改为 X,将 cal(S) 改为 cal(R),将 A 改为 E
Let $X$ be a non-empty set. A non-empty collection $cal(R)$ of subsets of $X$...
for any $E_1, E_2 in cal(R)$...
正确做法:
// ✅ 正确:完全保留原有符号
Let $S$ be a non-empty set. A non-empty collection $cal(S)$ of subsets of $S$...
for any $A, B in cal(S)$...
规则:保留原有的排版格式和写作风格。
需要保留的元素:
+ 开头的列表项// 开头的中文注释Obviously, ... 的总结句式案例分析:
// 原有风格
#definition(name: "Algebra of Sets")[
Let $S$ be a non-empty set. A non-empty collection $cal(S)$ of subsets of $S$...
+ $S subset cal(S)$;
+ If $A in cal(S)$, then $S backslash A in cal(S)$;
]
Obviously, an algebra of sets is closed under finite unions and finite intersections.
规则:用户要求修改时,通常是在原有基础上扩展或修正,而不是完全重写。
正确做法:
规则:编辑前必须检查文档的上下文,确保符号与后续内容兼容。
检查清单:
规则:仔细阅读用户的修改要求,理解其真实意图。
案例分析:
当发现错误时:
本技能由 AI 助手在编辑 Typst 文件时自动遵循,不需要用户显式触发。
typst-compile:编译验证 Typst 文件typst-writing-conventions:Typst 写作规范code-reviewer:跨文件代码审查