determinism
4
总安装量
4
周安装量
#51508
全站排名
安装命令
npx skills add https://github.com/ingpoc/skills --skill determinism
Agent 安装分布
opencode
4
gemini-cli
4
codex
4
antigravity
3
windsurf
3
claude-code
3
Skill 文档
Determinism
Reproducible outcomes through code verification and prompt versioning.
Core Principle
“Claude can run scripts without loading either the script or the PDF into context. And because code is deterministic, this workflow is consistent and repeatable.” – Anthropic Engineering
Instructions
- Replace LLM judgment with script verification
- Version prompts with semantic versioning
- Hash-validate critical prompts:
scripts/validate-prompt.sh - Use exit codes (0 = pass, 1 = fail), not text
LLM Judgment vs Code Verification
| Task | LLM (Bad) | Code (Good) |
|---|---|---|
| Tests passed? | “The tests appear to pass” | pytest; echo $? â 0 or 1 |
| Valid JSON? | “This looks like valid JSON” | python -c "json.load(f)" |
| Server running? | “The server should be up” | curl -s localhost/health |
References
| File | Load When |
|---|---|
| references/code-verification.md | Writing verification scripts |
| references/prompt-versioning.md | Versioning/hashing prompts |