patronum
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePatronum Skill
Patronum 技能
Use this skill to solve Patronum usage questions quickly and consistently.
Target Patronum v2.x by default.
使用本技能可快速、一致地解决Patronum的使用问题。默认针对Patronum v2.x版本。
Workflow
工作流程
- Classify request:
- : choose one or several operators for a task.
operator-choice - : explain signature, overloads, and return value.
api-explain - : combine multiple operators into one flow.
compose - : use
debugand scope-aware debugging notes.debug - : map legacy forms to modern usage.
migration
- Load references progressively:
- Start with .
references/operator-matrix.md - Add for task-to-solution mapping.
references/recipes.md - Add for caveats and anti-patterns.
references/pitfalls.md - Add when legacy forms appear.
references/migration-notes.md
- Build answer contract:
- Start with decision: selected operator(s) and why.
- Provide minimal practical snippet.
- Add caveats (imports, overload differences, behavior traps).
- For uncertain versions, explicitly state v2 assumption and show migration note.
- 对请求进行分类:
- :为任务选择一个或多个操作符。
operator-choice - :解释签名、重载及返回值。
api-explain - :将多个操作符组合为一个流。
compose - :使用
debug及作用域相关的调试说明。debug - :将旧版用法映射为现代用法。
migration
- 逐步加载参考资料:
- 从开始。
references/operator-matrix.md - 若需任务到解决方案的映射,添加。
references/recipes.md - 若需注意事项和反模式,添加。
references/pitfalls.md - 当出现旧版用法时,添加。
references/migration-notes.md
- 构建回答框架:
- 开头给出决策:选中的操作符及原因。
- 提供简洁实用的代码片段。
- 添加注意事项(导入方式、重载差异、行为陷阱)。
- 若版本不确定,明确说明基于v2的假设并给出迁移说明。
Defaults
默认规则
- Prefer Patronum v2.x shorthand where available.
- Prefer concise examples with explicit imports.
- Keep examples deterministic and composable with Effector primitives.
- Prefer imports when clarity matters.
patronum/<operator-kebab-name>
- 优先使用Patronum v2.x可用的简写形式。
- 优先使用带有显式导入的简洁示例。
- 示例需具备确定性,且可与Effector原语组合使用。
- 当需要清晰性时,优先使用的导入方式。
patronum/<operator-kebab-name>
Guardrails
约束规则
- Do not suggest outdated signatures as default.
- Do not invent operators outside the official list.
- Do not hide behavior differences between overloads.
- Do not skip edge cases for ,
pending,condition,interval, andtime.debug
- 不要将过时的签名作为默认建议。
- 不要发明官方列表之外的操作符。
- 不要隐藏不同重载间的行为差异。
- 不要忽略、
pending、condition、interval和time的边缘情况。debug
Output Template
输出模板
Use this structure in answers:
- : one-line reason.
Use <operator> - : minimal code block.
Example - : version or overload notes.
Caveats
回答时使用以下结构:
- :一行说明理由。
使用<操作符> - :简洁的代码块。
示例 - :版本或重载相关说明。
注意事项