Should Agent Skills scripts be prewritten or generated on the fly?
dotey · x · 2026-09-08
A discussion of two approaches to Scripts in Agent Skills: prewriting scripts versus only providing instructions and letting the agent generate them at runtime.
On-the-fly generation is flexible—agents already dynamically write Python scripts in tool calls without Skills—but costs more tokens, is slower, and less stable, often needing repeated debugging and missing edge cases.
So scripts are usually prewritten, with the agent just passing parameters for stable results. Example: a Markdown-to-HTML skill written on the fly is barely usable, while a prewritten one handles styling and edge cases reliably.
More from coding & agent
- Agents automate the boring high-leverage work — and veterans benefit most — sloppenheimer · 2026-09-08
- GPT-6 Astra one-shots a full PCB design, stunning indie hardware devs — bronzeagepapi · 2026-09-08
- Coding subsidies are huge: $200 plans deliver $8K–$14K of tokens, and devs hedge — leebase65 · 2026-09-08
- Devs team up with Matt Shumer to build an open-world NYC game with AI — ChrisGPT · 2026-09-08
- Dev lets agents own the frontend as AI-built site nears launch, Hermes integration done — RileyRalmuto · 2026-09-08
- The context management setting is hidden and Codex-only, not available via API — brandon_galang · 2026-09-08