Skip to content

Offload brittle math, regex, checksums, and AST transforms from LLM prose into bundled CLI scripts

Never ask an LLM to count tokens, reconcile 400 CSV rows, or compute SHA-256 hashes in tokens when a 25-line Python helper hits 100% accuracy in 40ms.

Copy the prompt and paste it into the AI assistant you already use.

How to split work cleanly between LLM reasoning and deterministic code

  1. 01

    Move anything 100%-specifiable as an algorithm into scripts/

    Date arithmetic, cron validation, CIDR subnet math, CSV aggregations, and schema linting belong in deterministic code—never prompt prose.

  2. 02

    Keep ambiguous classification and synthesis in the LLM

    Use the model for intent mapping, messy unstructured prose interpretation, hypothesis generation, and summarizing script results.

  3. 03

    Make helper scripts idempotent and dry-run friendly

    Support '--dry-run' and '--json' flags so agents inspect planned mutations safely before committing file changes.

  4. 04

    Pin zero-network stdlib dependencies whenever possible

    Python 3 standard library scripts (json, csv, sqlite3, re, ast, pathlib) run instantaneously everywhere with zero install failures.

Questions and answers

How much do bundled helper scripts improve benchmark scores?

Across SkillMarket categories—from PDF reconciliation to monorepo refactoring—hybrid script-backed skills outperform pure-prose skills by +14% to +31% accuracy.

Should helper scripts print human tables or compact JSON?

Compact JSON or TSV with explicit error keys parses cleanly in minimal tokens and lets the agent format clean Markdown for the user.

What if the user's machine doesn't have Node or Python installed?

Declare runtime requirements ('requires: python3 >= 3.10') in frontmatter compatibility metadata so registries warn before installation.