一个skill为AI agent打包一个可复用的、按需执行的工作流:针对重复性任务的说明(何时执行及如何执行),加上agent仅在任务相关时才加载的可选脚本或资源。这就是每次都重新解释一个过程和只教一次之间的区别。
skill是什么
text
SKILL = a self-contained folder the agent can pull in on demand:
SKILL.md → metadata + instructions (the TRIGGER + the STEPS)
scripts/ → optional helper scripts the agent runs (e.g. a linter, a generator)
resources/ → optional templates, examples, reference files
→ loaded ONLY when relevant → keeps the base context small, the workflow repeatable
The payoff是渐进式披露:agent从简短描述中知道skill,仅在出现匹配任务时才拉入完整说明和脚本——这样数十个skill就不会使每次对话臃肿。
