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/ingpoc/SKILLS/tree/main/determinism
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.
scroll-storyteller
Use when creating interactive scroll-based storytelling experiences with mouse-following spotlight effects, animated SVG art, and the Anthropic design language. Load for explainer pages, product showcases, visual narratives, or any content needing immersive scroll storytelling with organic shapes and smooth animations. Supports GSAP-powered or lightweight CSS-only animations.
enforcement
Use when implementing hooks that BLOCK invalid actions, creating quality gates for state transitions, or enforcing tested:true verification. Load when designing enforcement mechanisms. Uses exit code 2 to block, JSON permissionDecision:deny, or updatedInput modification. Rules are instructions; hooks are enforcement.
async-programming-skill
This skill provides async/await patterns and best practices for concurrent programming
postgresql-skill
This skill provides PostgreSQL-specific patterns for database design, optimization, and transaction management
token-efficient
Use when processing 50+ items, analyzing CSV/log files, executing code in sandbox, or searching for tools. Load for data processing tasks. Achieves 98%+ token savings via in-sandbox execution, progressive disclosure, and pagination. Supports heredocs for multi-line bash.
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Didn't find tool you were looking for?