← Back to library

Map CLI help output into skills to cut MCP token use

ex1fm3ta on Hacker News installed Jira and GitLab CLIs after MCP tool servers burned tokens, had Claude run help recursively, and saved every command into markdown files that became two small open skills, cutting token use while keeping the same capabilities.

  • OutcomeReplace token-hungry tool servers with lightweight skill files generated by having a coding agent crawl a command line tool's help pages.
  • SetupUnder an hour
  • LevelIntermediate
  • Creditex1fm3ta on Hacker News
View original
Works with
Claude Code

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 24, 2026

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?

  1. Install the CLIAuthenticate it once on the machine where the agent runs.
  2. Crawl the helpHave the agent run help for every command and subcommand.
  3. Write skill filesSave each group of commands with usage and examples as markdown.
  4. Load on demandPackage them as a plugin or skill so only relevant files enter context.
  5. 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)

Prompt1 variable
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?
No. The author keeps it for prototypes, sampling and progress notifications.
Where are his plugins?
He says both are open source on his profile.

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.

More in IT & Security

All 82 IT & Security playbooks →

Related playbooks

IT & SecuritySkill✓ AI dry run

Find repeat fixes and good habits in your team's PRs

Have Claude Code look across a chosen window of commits and pull request review comments for the same fix or review note coming up again and again, suggest turning the top ones into a project rule or skill you write in your own words, and list good practices already in the repo that other teams could copy.

Credit: anthropics

Under an hour
IT & SecurityWorkflow✓ AI dry run

Hunt flaky tests overnight from CI pass-rate history

Let a coding agent watch your CI history, rank the flakiest tests, try to reproduce and fix them overnight, and leave pull requests for daytime review.

Credit: SeanAnderson on Hacker News

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Review your agents' past sessions for security slips

Have Claude read finished agent sessions against what each agent was allowed to do, and get a ranked list of the ones a person should look at.

Credit: Anthropic

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Hands-free voice loop for a coding agent

Add on-device voice input and spoken replies to your coding agent, with a tap to interrupt, so you can steer it while cooking or cleaning.

Credit: yberreby on Hacker News

An afternoon+