技巧精选

Simon Willison:让 --help 输出同时作为 agent 技能

@shanselman I've been making sure my regular --help output can double as a skill, so you can just te...

精选理由

Simon Willison 教你把普通 --help 输出变成 agent 技能,shot-scraper 就是个例子,省掉额外写技能文件的麻烦。

AI 摘要

Simon Willison 分享了他的做法:将 shot-scraper 工具的 --help 输出设计成可复用为 agent 技能,这样用户只需告诉 agent “run shot-scraper video --help”,agent 就能自动获取所有参数和用法。这种方法利用了现有的 CLI 文档结构,无需额外编写技能描述。该技巧适用于任何支持 --help 的命令行工具,能显著降低 agent 工具集成的开发成本。

原文 · Simon Willison

@shanselman I've been making sure my regular --help output can double as a skill, so you can just te...

@shanselman I've been making sure my regular --help output can double as a skill, so you can just tell an agent "run shot-scraper video --help" and it will get everything it needs to know to use a tool simonwillison.net/2026/Jun/30/sh… 💬 8 🔄 5 ❤️ 42 👀 7923 📊 15 ⚡