When should you use it?
- A tool server eats context on every call
- The vendor ships a decent command line
- Your agent keeps rediscovering the same commands
Not for: Tools with no CLI; Cases where you need server-side notifications
What do you need, and what do you get?
You need
- Installed CLI
- A coding agent that can run commands
You get
- Markdown skill files per command group
- A small plugin the agent loads on demand
How does it work, step by step?
- Install the CLIAuthenticate it once on the machine where the agent runs.
- Crawl the helpHave the agent run help for every command and subcommand.
- Write skill filesSave each group of commands with usage and examples as markdown.
- Load on demandPackage them as a plugin or skill so only relevant files enter context.
- Keep MCP where it fitsRetain servers for prototyping and long jobs that benefit from notifications.
The prompt
Our own prompt, inspired by ex1fm3ta on Hacker News and written to work in Claude Code. Values in lime are placeholders.
Fill in the blanks (optional; the copied prompt uses your values)
Generate skill files for the {cli_name} command line.
Run the top-level help, then help for each command and subcommand. For each command group write a markdown file with purpose, syntax, flags and one example. Do not run any command other than help. Finish with an index file listing every group.Inspired by ex1fm3ta on Hacker News: Hacker News comment on swapping heavy MCP servers for CLI skills. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.
What can go wrong?
- Help text can be out of date; spot-check commands before relying on them.
- A CLI logged in as you can do anything you can; scope its token.
Our take
This is a practical cost fix. Many tool servers load long schemas into every conversation even when you need one field, and a well-documented CLI already describes itself through help pages. Turning that help into skills cuts context without losing power. ex1fm3ta's fix is one any heavy tool user can copy. Install and authenticate the vendor's CLI once, have the agent run help for every command and subcommand, and save each group with usage and examples as a markdown skill that only loads when relevant. The agent keeps the same abilities while each conversation carries far less context. Help text can be outdated, so spot-check commands before relying on them. A CLI logged in as you can do anything you can, so scope its token as tightly as the tool allows. Keep MCP servers where they still help, such as prototyping or long jobs that benefit from notifications. Tools with no command line will not benefit, and some vendors' CLIs are thin enough that the gain is small.
Where the time goes back: The agent stops spending tokens on tool discovery and goes straight to the right command.
FAQ
Is MCP bad?
Where are his plugins?
Source and credit
Inspired by ex1fm3ta on Hacker News. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.
- Inspired by
- Hacker News comment on swapping heavy MCP servers for CLI skills
- Creator
- ex1fm3ta on Hacker News
- Published on
- Hacker News
- Original date
- Sep 21, 2026
- License
- Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
- Originally for
- Claude Code
- AI dry run
- Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails. - Verified
- Oct 24, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.
Are you the creator? Claim or correct this page.