← ClaudeAtlas

throwaway-scriptslisted

For repetitive or bulk work that a short script can do in one shot, write the script, run it, and delete it, instead of grinding through many manual tool calls. Use this WHENEVER a task scales with N: renaming or transforming many files, extracting or reshaping data, bulk edits across a pattern, generating boilerplate, or any mechanical loop. Doing it by hand burns tokens and turns; a script does it deterministically and cheaply. Check which runtimes the system actually has (bun or node, python, powershell, bash), pick one that is present, write the smallest script that works, run it, verify, then clean it up.
TheArmagan/skills · ★ 1 · Data & Documents · score 64
Install: claude install-skill TheArmagan/skills
# Throwaway scripts Some work is mechanical and scales with N: rename 200 files, pull a field out of 50 JSON blobs, rewrite every import path, generate a table from a list. Doing that through one tool call per item is slow and burns a lot of tokens for something a five-line script would finish in one run. When the task is a loop, write the loop. The rule: if a job is repetitive, deterministic, and scales with N, prefer a short script over N manual steps. Write it just in time, run it, and remove it when done. ## When to script - The same operation repeats over many files, rows, or items. - The work is mechanical: no per-item judgment, just a transform or a count. - A script expresses it more cheaply than the equivalent pile of tool calls. - You need a deterministic, repeatable result (a sweep you can rerun and trust). ## When not to - A one-off small edit. Just make the edit. - A task that needs human judgment on each item. - Something a dedicated tool already does cleanly (a search, a single find-and-replace). Do not script what the right tool handles in one call. This is `use-your-skills` and the right-tool judgment applied to scripting. ## Pick a runtime that exists Do not assume. Check what the system actually has, then choose, just in time: - JavaScript or TypeScript: `bun` if present (fast, no install), otherwise `node`. - `python` for data wrangling and text. - `powershell` on Windows, `bash` on Unix, for filesystem and glue work. Match the language to th