The Right Way to Write an Agent Skill

https://x.com/karpathy/status/1617979122625712128?embedable=trueAt some point in the last year, I noticed I had stopped writing bash scripts. It wasn't an explicit decision I made; it just happened organically as the small automations I used to script became skills instead. The deterministic parts still end up as commands, but now they sit inside a procedure that an agent executes. A skill is a procedure an agent follows, so I write it as if I were writing code, but in English. The file a reviewer reads is exactly what the agent executes, with nothing compiled in between. I encoded this approach in the writing-skills skill that we published in the Agent Skills Marketplace. This post covers
…