cli-anything by hkuds/cli-anything
npx skills add https://github.com/hkuds/cli-anything --skill cli-anything当用户希望 Codex 充当 CLI-Anything 构建器时,请使用此技能。
如果此技能是在 CLI-Anything 仓库内部使用的,请在实施前阅读 ../cli-anything-plugin/HARNESS.md。该文件是完整的方法论权威来源。如果无法获取该文件,请遵循以下简化的规则。
接受以下任一输入:
./gimp 或 /path/to/software如果需要,可以从克隆后的本地目录名派生软件名称。
当用户需要一个新的工具套件时使用。
生成以下结构:
<software>/
└── agent-harness/
├── <SOFTWARE>.md
├── setup.py
└── cli_anything/
└── <software>/
├── README.md
├── __init__.py
├── __main__.py
├── <software>_cli.py
├── core/
├── utils/
└── tests/
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
实现一个有状态的 Click CLI,包含:
--json 机器可读输出当工具套件已存在时使用。
首先清点当前的命令和测试,然后对照目标软件进行差距分析。优先考虑:
除非用户明确要求进行破坏性更改,否则不要移除现有命令。
在编写测试之前先规划测试。同时保留:
test_core.py 用于单元测试覆盖test_full_e2e.py 用于工作流和后端验证如果可能,应通过子进程使用 cli-anything-<software> 来测试已安装的命令,而不仅仅是模块导入。
检查工具套件是否:
cli_anything.<software> 命名空间包布局setup.py 入口点优先使用真实的软件后端,而非重新实现。尽可能将实际的可执行文件或脚本接口封装在 utils/<software>_backend.py 中。仅当项目明确要求或不存在可行的原生后端时,才使用合成的重新实现。
find_namespace_packages(include=["cli_anything.*"])cli_anything/ 作为命名空间包,没有顶层的 __init__.pyconsole_scripts 暴露 cli-anything-<software>TEST.md,然后编写测试,最后运行测试。pip install -e . 验证本地安装。在报告进度或最终结果时,请包含:
每周安装次数
432
仓库
GitHub 星标数
21.8K
首次出现
12 天前
安全审计
安装于
codex419
opencode419
gemini-cli418
kimi-cli418
github-copilot418
cursor418
Use this skill when the user wants Codex to act like the CLI-Anything builder.
If this skill is being used from inside the CLI-Anything repository, read ../cli-anything-plugin/HARNESS.md before implementation. That file is the full methodology source of truth. If it is not available, follow the condensed rules below.
Accept either:
./gimp or /path/to/softwareDerive the software name from the local directory name after cloning if needed.
Use when the user wants a new harness.
Produce this structure:
<software>/
└── agent-harness/
├── <SOFTWARE>.md
├── setup.py
└── cli_anything/
└── <software>/
├── README.md
├── __init__.py
├── __main__.py
├── <software>_cli.py
├── core/
├── utils/
└── tests/
Implement a stateful Click CLI with:
--json machine-readable outputUse when the harness already exists.
First inventory current commands and tests, then do gap analysis against the target software. Prefer:
Do not remove existing commands unless the user explicitly asks for a breaking change.
Plan tests before writing them. Keep both:
test_core.py for unit coveragetest_full_e2e.py for workflow and backend validationWhen possible, test the installed command via subprocess using cli-anything-<software> rather than only module imports.
Check that the harness:
cli_anything.<software> namespace package layoutsetup.py entry pointPrefer the real software backend over reimplementation. Wrap the actual executable or scripting interface in utils/<software>_backend.py when possible. Use synthetic reimplementation only when the project explicitly requires it or no viable native backend exists.
find_namespace_packages(include=["cli_anything.*"])cli_anything/ as a namespace package without a top-level __init__.pycli-anything-<software> through console_scriptsTEST.md, then tests, then run them.pip install -e .When reporting progress or final results, include:
Weekly Installs
432
Repository
GitHub Stars
21.8K
First Seen
12 days ago
Security Audits
Gen Agent Trust HubWarnSocketPassSnykWarn
Installed on
codex419
opencode419
gemini-cli418
kimi-cli418
github-copilot418
cursor418
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
138,300 周安装
wacli - WhatsApp 命令行工具:安全发送消息、搜索历史记录与同步管理
372 周安装
React Native Reanimated + Skia 动画性能优化指南:提升帧率与流畅度
373 周安装
React前端开发指南:Suspense数据获取、懒加载与性能优化最佳实践
373 周安装
Lark Mail CLI 使用指南:邮件管理、安全规则与自动化工作流
7,100 周安装
OpenAPI 转 TypeScript 工具 - 自动生成 API 接口与类型守卫
563 周安装
Rust Unsafe代码检查器 - 安全使用Unsafe Rust的完整指南与最佳实践
566 周安装