script-the-deterministic-work

script-the-deterministic-work is a skill for Claude Code from melodic-software/claude-code-plugins. It costs 141 tokens per session (2,697 once invoked), scanned A, original, MIT.

A workflow for giving mechanical tasks—such as counting, sorting, comparing, matching, or arithmetic—to scripts or tools.

In plain words
What is it for?
Use it when a coding task contains repeatable transformations, file sweeps, diffs, calculations, or other deterministic work.
Why use it?
Manual handling of these tasks can introduce silent mistakes. The script produces the result, which can then be checked and interpreted.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the discipline plugin — 18 skills shipped together

Good fit Use it when a coding task contains repeatable transformations, file sweeps, diffs, calculations, or other deterministic work.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
Claude Code
/plugin install discipline

Made for: Claude Code.

Or install discipline, the plugin that ships this one along with the rest of its 18 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for script-the-deterministic-work

README.md
[![agentmods](https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/script-the-deterministic-work/github.svg)](https://agentmods.dev/skills/melodic-software/claude-code-plugins/script-the-deterministic-work)
Your own site
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/script-the-deterministic-work"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/script-the-deterministic-work/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for script-the-deterministic-work

Your own site · 80×15
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/script-the-deterministic-work"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/script-the-deterministic-work.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,697 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00141 $0.02697
Opus 5.5 $0.00056 $0.01079
Sonnet 5.5 $0.00028 $0.00539
Haiku 4.5 $0.00014 $0.00270

Measured 5d ago against content hash f1b4621c9953, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

script-the-deterministic-work scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/discipline/skills/script-the-deterministic-work/SKILL.md · 205 lines

How it starts

The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Script the deterministic work

A drift corrector for the discipline of offloading deterministic sub-work to a script instead of performing it in your head. The shared method (re-anchor, audit the work in flight, correct forward, report) lives in ${CLAUDE_PLUGIN_ROOT}/context/re-anchor-audit-correct.md. Read it; this file adds only what is specific to scripting deterministic work.

The discipline this re-anchors

When a sub-task is purely deterministic (its answer follows mechanically from its input with no judgment in the middle), write a script (or invoke a tool) that produces the answer, run it, read the output, and reason only after, over that output. Counting, diffing, sorting, transforming, matching, sweeping across files, and arithmetic are the recurring shapes. A hand-tallied count or an eyeballed diff carries a silent error the script would not.

The boundary of what to script is not "anything tedious". It is set by which enforcement tier the sub-work belongs to.

The tier vocabulary, a standards convention owns this

The source of truth for the tier distinction is the consuming organization's enforceability-tiers convention, which classifies work by who can decide it. Resolve it per the method doc's ladder, the consumer's own instruction layer first, then that standards convention, then the portable baseline below, and re-anchor the distinction rather than restating the doc's criteria:

  • Deterministic, the answer is pass/fail, exact, or countable with no judgment. Script it, run it, reason over the output.
  • Detect-then-judge, a mechanical pass narrows the candidates, but the verdict needs meaning or context. Script only the detect half; the judgment stays with the model. A script's flag is a candidate, never the ruling.
  • Reasoning-only. Meaning, intent, fit, abstraction quality. Never script it. A script here dresses a judgment call as a computed fact.

When the consuming project declares no such convention, re-anchor that same three-tier shape as the portable baseline.

Read the full file on GitHub · 205 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · -24 lines f1b4621c9953
  2. 8d ago Changed · +74 lines · +24 tokens per session 5cd9fff42664
  3. 17d ago Changed 0ccb1561c2c3
  4. 22d ago Changed · -73 tokens per session b5afb4bb2c0b
  5. 27d ago Changed e9266e614ea5
  6. 1mo ago First seen · 155 lines · 190 tokens per session scan A b909d3cb1a51

Subscribe to this mod's changes

script-the-deterministic-work is a skill published in the GitHub repository melodic-software/claude-code-plugins (26 stars, last pushed today), licensed MIT. It adds 141 tokens to every session and 2,697 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.