Community编程与开发github.com

x0c/agent-friendly-cli

新建、改造或评审命令行工具(CLI)及其配套 Skill 时使用,尤其是供 AI Agent 稳定调用、同时也要给人正常使用的 CLI。覆盖命令面设计、非交互模式、JSON 输出契约、退出码分层、dry-run、幂等、鉴权安全、CLI/脚本/Skill/Agent 职责分层、事务式编排、风险授权、终态验证和验收方法。

agent-friendly-cli 是什么?

agent-friendly-cli is a Claude Code agent skill that 新建、改造或评审命令行工具(CLI)及其配套 Skill 时使用,尤其是供 AI Agent 稳定调用、同时也要给人正常使用的 CLI。覆盖命令面设计、非交互模式、JSON 输出契约、退出码分层、dry-run、幂等、鉴权安全、CLI/脚本/Skill/Agent 职责分层、事务式编排、风险授权、终态验证和验收方法。.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/x0c/agent-friendly-cli-skill/tree/main

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

agent-friendly-cli 是做什么的?

Use when designing, refactoring, or reviewing CLI tools and their accompanying Skills, especially those meant to be reliably invoked by AI agents while remaining usable by humans. Covers command surface design, non-interactive mode, JSON output contracts, exit code hierarchy, dry-run, idempotency, authentication security, responsibility layering of CLI/script/Skill/Agent, transactional orchestration, risk authorization, end-state verification, and acceptance methods.

相关技能