Originally written in French. Translated by AI — the meaning has been preserved, not the prose.
Main idea
Converting JSON to CSV, renumbering an index, copying a frontmatter across, sorting a list: these operations have a single result, deducible from their inputs. Handed to the model, they go out through the most expensive channel — generation — and throw in a variability nobody needed. Handed to a script, they cost zero tokens and run in milliseconds.
On competitor_analyze, two steps moved to Python — writing the frontmatter and computing the index delta — removed 111,000 units from consumption, without changing any of the deliverables produced.
The dividing criterion isn't the difficulty of the task but the presence of a judgment: if the result follows from the inputs, there is nothing to have decided.
Layer added by "Graphify without AI: turning a wiki into a navigable graph for zero tokens" (2026-10-20). The same split holds for building a knowledge graph. A tool like Graphify has an AI read every file to infer the relations; on a wiki where those relations are already written and explained in every note, that reading has nothing to decide. A 160-line, dependency-free script builds the graph of a thousand notes in 0.2 seconds for zero tokens — and it is more faithful than the model, which would have rediscovered the links with variation from one run to the next.
Why it matters
This gives a rule for carving up a skill's design: every step asks what it expects from the model, and a step that expects no arbitration has no business being addressed to it.
The gain isn't only economic, either: what a script produces is reproducible, what a model produces is only approximately so.
Nuances and limits
Writing and maintaining the script has a cost, invisible in a token report. For a one-off transformation that will never be replayed, going through the model remains cheaper than going through development.
And some transformations look deterministic right up to the first malformed piece of data — the model absorbs the irregularity where the script stops.
Open questions
- Who notices that a judgment has slipped into a step classed as mechanical, since its result keeps the same shape?