Writing Skills That Work
Writing skills that work
Section titled “Writing skills that work”The failure mode of generated skills is vague filler: “handle errors appropriately” helps no one. Write from scar tissue, not imagination.
Start from real expertise
Section titled “Start from real expertise”Source material that works: your last ten code-review comments, a runbook, an incident report, the corrections you gave the agent yesterday. Do the task with the agent once, then write down what you had to correct.
Spend context like money
Section titled “Spend context like money”- The test for every line: “Would the agent get this wrong without this?” No → delete.
- Defaults, not menus: “use pdfplumber” beats a survey of five PDF libraries.
- One coherent unit per skill: query-and-format is one skill; adding database administration makes it two.
Execute, then revise (once)
Section titled “Execute, then revise (once)”Run the skill on a real task and read the trace, not just the output:
- The agent wanders → instructions too vague
- It ignores a section → cut the section
- It pauses on choices → you offered a menu where a default belonged
One execute-revise pass improves a skill more than any amount of upfront authoring.
Exercises
Section titled “Exercises”- Trigger tuning. Write a deliberately vague description (“Helps with documents”), watch it fail to trigger, then fix it with concrete trigger words. Keep both versions for your team’s notes.
- Subagent execution (stretch). Add
context: forkto a task-style skill and compare behavior: when does isolating work from conversation history help?