Agent skill
determinism
Use when verifying outcomes with code instead of LLM judgment, versioning prompts with hashes, or ensuring reproducible agent behavior. Load for any critical verification. Scripts return boolean exit codes, not subjective assessments. Prompts use semantic versioning with SHA256 validation.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/determinism-ingpoc-skills-2
SKILL.md
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 |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?