让你的 CLI 适合 Agent 使用
提供结构化 Manifest、稳定机器输出、明确命令边界和可复现证据,让编程 Agent 更容易正确调用你的工具。
Agent 需要清楚的操作合同
Agent 不会像熟悉产品的人一样补全隐含上下文。它需要准确安装、无交互认证、稳定输出、可区分的错误和明确的写操作。
发布一个最小 Manifest
Manifest 不是营销介绍,而是 Agent 和工具目录可以读取的操作数据。先覆盖最常用的安装、输出、认证和代表性命令。
每个命令单独记录风险;来源必须指向官方文档、官方仓库、安装说明或发布页。不要把尚未执行的内容写成 verified。
clifinder.manifest.json
{
"schemaVersion": 1,
"name": "example-cli",
"command": "example",
"installation": [{ "manager": "brew", "command": "brew install example" }],
"output": { "structured": true, "formats": ["json"], "flags": ["--json"] },
"authentication": { "headless": true, "secretEnv": ["EXAMPLE_TOKEN"] },
"commands": [
{ "command": "example inspect --json", "risk": "R0", "requiresConfirmation": false },
{ "command": "example apply", "risk": "R2", "requiresConfirmation": true }
],
"sources": ["https://example.com/docs/cli"]
}提交前的维护者检查单
提交官方来源与使用背景
提交工具名、官方文档或仓库,以及你希望检查的 Agent 工作流。我们不会因为提交就把条目标成 Verified。