Skills
Prototype agent batch migrations on 2–3 files, then run unattended with restricted tools
Treat large code migrations as batch workflows, not artisanal one-offs: pipe the first 2–3 files through the agent (`head -3 tasks.txt | while read file; do claude -p ... "$file"; done`), refine the prompt against those results, then run the full list unattended with an explicit allowlist (`claude --allowedTools "Read,Edit,Grep"`). Constraining tools on the unattended pass bounds blast radius, and prototyping first turns prompt errors into a one-time fixed cost instead of a per-file failure.
Source
↳ Follow the thread