← 返回 Skills 市场
98
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install cli2skill
功能描述
Turn any CLI or MCP server into an Agent Skill. Use when you want to replace an MCP server with a zero-overhead CLI skill, or generate a skill from any comma...
使用说明 (SKILL.md)
cli2skill
Convert CLI tools and MCP servers into Agent Skills (markdown files) that any AI coding agent can use. Zero runtime overhead — no persistent processes, no memory leaks.
Prerequisites
pip install cli2skill
Commands
Generate skill from CLI
# Basic — parse --help and generate SKILL.md
cli2skill generate \x3Cexecutable> --name \x3Cskill-name> -o ~/.claude/skills/
# Custom executable path
cli2skill generate "python my_tool.py" --name my-tool \
--exe-path "python /full/path/my_tool.py" -o ~/.claude/skills/
# From saved help text
cli2skill generate mytool --help-file help_output.txt -o ~/.claude/skills/
# Skip subcommand parsing (faster, top-level only)
cli2skill generate gh --name github-cli --no-subcommands -o ~/.claude/skills/
Preview parsed metadata
cli2skill preview \x3Cexecutable>
Convert MCP server to skill
# From command
cli2skill mcp npx some-mcp-server --name my-mcp -o ~/.claude/skills/
# From Claude Code settings.json
cli2skill mcp --config ~/.claude/settings.json --server my-server --name my-mcp -o ~/.claude/skills/
# With env vars
cli2skill mcp npx tavily-mcp --name tavily --env API_KEY=xxx -o ~/.claude/skills/
When to use
- You have an MCP server that's just "call -> return result" with no persistent state — replace it with a CLI skill to eliminate process leaks
- You want to give your agent access to any CLI tool without writing a skill by hand
- You're migrating away from MCP servers that accumulate zombie processes
When NOT to use
- MCP servers that need persistent browser sessions, streaming notifications, or multi-client shared state — those genuinely need MCP
安全使用建议
This tool is coherent and appears to do what it says, but it executes arbitrary local commands and can read a user-provided Claude Code settings.json and environment variables when asked. Before running: (1) avoid pointing it at untrusted or unknown MCP servers/commands — they will be executed; (2) inspect any settings.json you pass in for embedded secrets or remote commands; (3) prefer using --help-file or a saved help output when you only need parsing (to avoid executing binaries); (4) avoid passing secrets via --env unless necessary, and do this in a controlled environment (container or limited user account) if possible; (5) review generated SKILL.md files before dropping them into your agent skills directory. If you need additional assurance, run the tool in a sandbox or review the specific command(s) it will execute.
功能分析
Type: OpenClaw Skill
Name: cli2skill
Version: 1.0.1
The cli2skill bundle provides a utility to convert CLI tools and MCP servers into Agent Skills by executing them and parsing their output. The core risk lies in cli2skill/parser.py and cli2skill/mcp2skill.py, which use subprocess to execute arbitrary commands provided as arguments (e.g., running 'executable --help' or starting an MCP server). While this is necessary for the tool's stated purpose, it grants an AI agent a high-risk primitive for command execution. Furthermore, the tool can read sensitive configuration files such as ~/.claude/settings.json to extract environment variables and server commands, which could be abused to access secrets if the agent is misdirected.
能力评估
Purpose & Capability
Name/description (convert CLIs/MCP servers into Agent Skills) matches the code and SKILL.md. The code implements help-parsing, skill generation, and an MCP handshake/extraction flow; those actions are necessary for the stated functionality.
Instruction Scope
Runtime instructions and examples are consistent with the tool. Important behaviour to note: the tool runs arbitrary executables to capture --help and to query subcommands, and when using the mcp flow it spawns the provided MCP command, sends JSON-RPC messages, and reads its stdout. The SKILL.md also documents reading a Claude Code settings.json (user-supplied path). These actions are expected for the stated purpose but give the tool the ability to execute arbitrary local commands and to read a user-provided config file.
Install Mechanism
No install spec in the registry entry (instruction-only), and README suggests standard pip/pipx install. There are no remote downloads or opaque installers declared in the registry metadata. This is low-risk as packaged code is present in the bundle for review.
Credentials
The skill declares no required environment variables, which matches the registry metadata. However, the MCP extraction flow will merge provided env entries with os.environ and will expand ${VAR} references from a settings.json; this is appropriate for connecting to configured MCP servers but means the tool can read environment variables when asked to (via config or --env) and will expose them to spawned subprocesses. That capability is proportionate to the feature but is sensitive — secrets in settings.json or in environment will be visible to launched processes and may appear in outputs.
Persistence & Privilege
always:false and no persistent background services. The tool spawns processes on demand and communicates with them; it attempts to kill on timeout. It does not modify other skills or system-wide agent configuration. No elevated or permanent privileges are requested.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install cli2skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/cli2skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Add clawhub install to Quick Start section
v1.0.0
Turn any CLI or MCP server into an Agent Skill. Zero MCP overhead, zero persistent processes.
元数据
常见问题
cli2skill 是什么?
Turn any CLI or MCP server into an Agent Skill. Use when you want to replace an MCP server with a zero-overhead CLI skill, or generate a skill from any comma... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 98 次。
如何安装 cli2skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install cli2skill」即可一键安装,无需额外配置。
cli2skill 是免费的吗?
是的,cli2skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
cli2skill 支持哪些平台?
cli2skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 cli2skill?
由 2233admin(@2233admin)开发并维护,当前版本 v1.0.1。
推荐 Skills