写一个智能体能用的 SKILL.md,并先测试它
Original title: Write a SKILL.md your agent uses, and test it first
The title and summary in the selected language are awaiting translation.
作者提出 SKILL.md 只有在 description 与用户提问匹配时才会被加载,正文决定加载后发生什么,因此值得信任的前提是先用真实输入跑一遍并读回结果。他建议把规则写成可校验的形式,并在一个更强和一个更弱的模型上分别测试,且测试要能失败。
What makes an agent pick up a SKILL.md, how to keep its rules checkable, and how to test it on a stronger and a weaker model, with a check that can fail.
A SKILL.md gets used when its description matches what the person asked, and it is worth trusting only after you have run it on real inputs and read what came back. Everything else follows from those two facts. The description decides whether the file is loaded at all. The body decides what happens once it is. The test decides whether you know either of those things or just hope.
Source: DEV Community · Claude Code · dev.to