Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/catpilotai/catpilot-ai-guardrailsnpx agentmods add skills/catpilotai/catpilot-ai-guardrails/local-cli-safetyWrote 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/skills/catpilotai/catpilot-ai-guardrails/local-cli-safety)<a href="https://agentmods.dev/skills/catpilotai/catpilot-ai-guardrails/local-cli-safety"><img src="https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/local-cli-safety/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/skills/catpilotai/catpilot-ai-guardrails/local-cli-safety"><img src="https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/local-cli-safety.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.00126 | $0.04201 |
| Opus 5 | $0.00063 | $0.02100 |
| Sonnet 5 | $0.00025 | $0.00840 |
| Haiku 4.5 | $0.00013 | $0.00420 |
Grade A, and why
local-cli-safety 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 12d 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 — 425 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Why
Local CLIs operate on the developer's machine — but a developer machine holds production credentials, SSH keys for every paired host, the agent's own configuration, and an SSH/VPN connection into the organization's network. A destructive command run "locally" can have production blast radius even when no production system is named in the command itself.
The failures this skill blocks share a common shape: a single command that cannot be undone by the next command.
rm -rfagainst an empty or unset variable wipes the parent directory. There is nogit resetfor the filesystem.git push --forceagainstmainrewrites history other developers have already pulled. Their next pull is a merge conflict against a history that no longer exists.chmod 777on a credential directory leaves every other process on the machine able to read it — including anything an attacker drops via a separate vector.- A service bound to
0.0.0.0on a developer laptop is reachable from every network the laptop joins. On a coffee-shop Wi-Fi, that is every device on the local network. - Piping
~/.ssh/id_rsa,~/.aws/credentials, orenvintocurlexfiltrates credentials in one line. The model can be tricked into doing this if it interprets a vague instruction ("send this debug info to the support endpoint") too literally.
This skill applies the same query-then-modify protocol used elsewhere in the bundle: inspect first, show the user what is about to happen, and prefer the reversible form of the command.
When to apply
Apply this skill before the agent runs, recommends, or commits any of the following:
- Any
rm,find ... -delete,find ... -exec rm,shred, orddcommand targeting paths outside the current project directory, or paths interpolated from a variable. chmodorchownwith-R, with mode777/755against home directories, or against any path under~/.ssh,~/.aws,~/.openclaw,~/.config/gcloud,~/.kube,~/.gnupg, or~/.docker.- Any
gitcommand that rewrites history:push --force,push -f,reset --hard,clean -fd,commit --amendfollowed by a force push,rebasefollowed by a force push,filter-branch,filter-repo, branch deletion (branch -D,push --delete). - Any command that starts a network service:
python -m http.server,npm start,next dev,flask run,uvicorn,gunicorn,openclaw gateway run,ngrok,cloudflared tunnel,ssh -R. - Any command piping a credential path, environment dump, or
~/.configcontent into a network request (curl,wget,httpie,nc,xh). - Any
sudoinvocation outside the documented bootstrap of a developer environment.
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.
- 12d ago First seen · 425 lines · 126 tokens per session scan F a213ddebb8b0
local-cli-safety is a skill published in the GitHub repository catpilotai/catpilot-ai-guardrails (2 stars, last pushed today), licensed MIT. It adds 126 tokens to every session and 4,201 once invoked, about $0.0006 per session on Opus 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.
Other skills, from other repositories
prowler-commit
Creates professional git commits following conventional-commits format. Trigger: When creating commits, after completing code changes, when user asks to commit.
gh-auth-isolation
Safely manage multiple GitHub identities (EMU + personal) in agent workflows.
comet-github
A routing guide for Comet-related GitHub work. It directs requests about pull requests, issues, CI failures, ideas, and fixes to the appropriate review or implementation process.
github-skill
Work with GitHub via the gh CLI — clone repositories, create/list/merge pull requests, create/list issues, and run any other gh command (API calls, workflow runs, releases, repo administration). List operations return parsed JSON.
changelog-composer
Generates structured changelogs and release notes from git history and PRs, classifying breaking changes, features, fixes, performance, docs. Triggers on: "generate changelog", "write release notes", "what changed since", "prepare release", "release notes for", "diff since tag".
re0-merge
Review and land an external contribution the way this suite does: gate it against the thesis, land it with the author's credit intact, complete a new skill rather than merging it raw, then approve, credit, and explain before closing. Use when reviewing a pull request, as any collaborator or maintainer, not only the…