← 返回 Skill 列表
extension
分类: 开发与工程API Key 暂未确认

determinism

在使用代码而不是LLM判断来验证结果、通过哈希版本化提示或确保可重现的代理行为时使用。对于任何关键验证都要加载。脚本返回布尔类型的退出代码,而不是主观评估。提示使用带有SHA256验证的语义化版本控制。

person作者: jakexiaohubgithub

Determinism

Turn a repeated judgment into an executable contract.

Procedure

  1. Name the exact input, expected invariant, and authoritative readback.
  2. Use the simplest deterministic mechanism: parser, schema, fixture, checksum, query, or narrow test.
  3. Return a meaningful exit status: 0 for satisfied, nonzero for a specific failure class.
  4. Keep diagnostics compact and stable enough for another script or agent to consume.
  5. Version prompts or generated contracts when their semantics affect the result; record a hash when drift must be detected.
  6. Prove both a passing case and a deliberately failing case.

Boundary

  • determinism designs the assertion or integrity mechanism.
  • verify selects and runs the repository's declared gates.
  • testing skills construct broader behavioral test suites.

References