Skip to content
Back to skills

cli2skill

ASecurity

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.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 22, 2026
ai-agentspythonbashgitapi

Works with

  • claude code
  • cli
  • api
  • mcp

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 13 files and shows the line behind each finding

Scanned October 22, 2026

npx -y skills add 2233admin/cli2skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of cli2skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for cli2skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/2233admin-cli2skill/badge)](https://www.skillsdirectory.com/skills/2233admin-cli2skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cli2skill
description: 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.
---

# 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 <executable> --name <skill-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 <executable>
```

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

Files in this skill

  • ARTICLE.md7 KB
  • CONTRIBUTING.md1.3 KB
  • SKILL.md1.9 KB
  • assets/banner.svg3.9 KB
  • cli2skill/__init__.py75 B
  • cli2skill/doctor.py9.8 KB
  • cli2skill/generator.py2.9 KB
  • cli2skill/main.py5.7 KB
  • cli2skill/mcp2skill.py5.6 KB
  • cli2skill/parser.py6.8 KB
  • examples/github-cli.md2 KB
  • examples/memu.md916 B
  • pyproject.toml585 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.