# 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 command-line tool's --help output.

- **Type:** Skill
- **Install:** `agentstack add skill-2233admin-cli2skill-cli2skill`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [2233admin](https://agentstack.voostack.com/s/2233admin)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [2233admin](https://github.com/2233admin)
- **Source:** https://github.com/2233admin/cli2skill
- **Website:** https://pypi.org/project/cli2skill/

## Install

```sh
agentstack add skill-2233admin-cli2skill-cli2skill
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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

```bash
pip install cli2skill
```

## Commands

### Generate skill from CLI

```bash
# Basic — parse --help and generate SKILL.md
cli2skill generate  --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

```bash
cli2skill preview 
```

### Convert MCP server to skill

```bash
# 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

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [2233admin](https://github.com/2233admin)
- **Source:** [2233admin/cli2skill](https://github.com/2233admin/cli2skill)
- **License:** MIT
- **Homepage:** https://pypi.org/project/cli2skill/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-2233admin-cli2skill-cli2skill
- Seller: https://agentstack.voostack.com/s/2233admin
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
