Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add fakoli/fakoli-plugins/plugin install cli-to-pluginWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/fakoli/fakoli-plugins/cli-to-plugin)<a href="https://agentmods.dev/commands/fakoli/fakoli-plugins/cli-to-plugin"><img src="https://agentmods.dev/badge/commands/fakoli/fakoli-plugins/cli-to-plugin/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/fakoli/fakoli-plugins/cli-to-plugin"><img src="https://agentmods.dev/badge/commands/fakoli/fakoli-plugins/cli-to-plugin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00012 | $0.04102 |
| Opus 5.5 | $0.00005 | $0.01641 |
| Sonnet 5.5 | $0.00002 | $0.00820 |
| Haiku 4.5 | $0.00001 | $0.00410 |
Grade A, and why
cli-to-plugin scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 445 lines — stays where its author put it; the contents beside it link to each section on GitHub.
cli-to-plugin
Convert a CLI tool into a Claude Code plugin by walking its --help tree, generating one
skill per command group, and (optionally) proposing workflow meta-skills for the user to
curate.
Full spec in the marketplace repository: docs/specs/2026-05-24-cli-to-plugin.md
Argument parsing
Parse the invocation before doing anything else:
<cli-name>— required; the binary to introspect (e.g.,gh,kubectl)--out <path>— destination directory for the generated plugin; default:./plugins/<cli-name>--override <path>— YAML override file; optional--from-tree <path>— load a pre-captured help-tree JSON instead of running discovery--no-meta-skills— skip Steps 5, 6, and 7 entirely--regen— hint that regeneration is expected (triggers the regeneration flow automatically without prompting twice)--max-depth <n>— max recursion depth fordiscover.py(default3); forwarded as--max-depthto the script--max-commands <n>— halt discovery if the walked command count exceeds this (default500); forwarded as--max-commandsto the script
Treat unrecognised flags as an error: halt and print usage.
Pre-Step-0 — Override file validation
If --override <path> is set, verify the file exists and parses as YAML before running any other step. This runs regardless of --from-tree, so a broken override file fails fast.
test -f "$OVERRIDE_PATH" || { echo "HALT: override file not found: $OVERRIDE_PATH"; exit 1; }
uv run --with pyyaml -c "import yaml, sys; yaml.safe_load(open(sys.argv[1]))" -- "$OVERRIDE_PATH"
Passing the path via sys.argv rather than interpolating it inside the Python string protects against paths containing single quotes (e.g., /tmp/it's-here.yaml).
On failure: halt with the parse error.
Step 0 — Regeneration guard
Skip this step entirely when --out does not exist or is empty.
When --out exists and is non-empty:
- If
--regenwas passed: setREGEN_MODE=diff-mergeautomatically and skip the prompt. Proceed to Step 1. - If
--regenwas NOT passed: ask the user:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 445 lines · 12 tokens per session scan E 95fb07607feb
cli-to-plugin is a command published in the GitHub repository fakoli/fakoli-plugins (4 stars, last pushed yesterday), licensed MIT. It adds 12 tokens to every session and 4,102 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
cli-to-plugin compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cli-to-pluginfakoli/fakoli-plugins | Command | 4 | yesterday | MIT | A | 12 | Claude Code |
| psalmMarcel-Bich/marcel-bich-claude-marketplace | Command | 12 | yesterday | MIT | A | 10 | Claude Code |
| versioningMarcel-Bich/marcel-bich-claude-marketplace | Command | 12 | yesterday | MIT | A | 13 | Claude Code |
| watchMarcel-Bich/marcel-bich-claude-marketplace | Command | 12 | yesterday | MIT | A | 11 | Claude Code |
| updateMarcel-Bich/marcel-bich-claude-marketplace | Command | 12 | yesterday | MIT | A | 5 | Claude Code |
| spawnMarcel-Bich/marcel-bich-claude-marketplace | Command | 12 | yesterday | MIT | A | 11 | Claude Code |
| explainMarcel-Bich/marcel-bich-claude-marketplace | Command | 12 | yesterday | MIT | A | 16 | Claude Code |