local-cli-safety

local-cli-safety is a skill for Claude Code, Codex from catpilotai/catpilot-ai-guardrails. It costs 126 tokens per session (4,201 once invoked), scanned A, original, MIT.

A safety guard for local command-line work. It blocks commands that could irreversibly delete files, rewrite shared Git history, expose local services, weaken credential permissions, or send credentials elsewhere.

In plain words
What is it for?
Screening risky filesystem, Git, network-binding, permission, and credential-related commands before they run on a developer or CI machine.
Why use it?
A developer computer may contain production access, SSH keys, and private configuration, so one careless command can cause damage beyond the current project.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions Codex; built for openclaw.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash /tmp/install.sh # then run.

Good fit Screening risky filesystem, Git, network-binding, permission, and credential-related commands before they run on a developer or CI machine.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/catpilotai/catpilot-ai-guardrails
agentmods
npx agentmods add skills/catpilotai/catpilot-ai-guardrails/local-cli-safety

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for local-cli-safety

README.md
[![agentmods](https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/local-cli-safety/github.svg)](https://agentmods.dev/skills/catpilotai/catpilot-ai-guardrails/local-cli-safety)
Your own site
<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.

agentmods 80×15 button for local-cli-safety

Your own site · 80×15
<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>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,201 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 6 Sept 2026 📄 Read the review
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 12d ago against content hash a213ddebb8b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

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.

src/skills/core/local-cli-safety/SKILL.md · 425 lines

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 -rf against an empty or unset variable wipes the parent directory. There is no git reset for the filesystem.
  • git push --force against main rewrites history other developers have already pulled. Their next pull is a merge conflict against a history that no longer exists.
  • chmod 777 on 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.0 on 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, or env into curl exfiltrates 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, or dd command targeting paths outside the current project directory, or paths interpolated from a variable.
  • chmod or chown with -R, with mode 777/755 against home directories, or against any path under ~/.ssh, ~/.aws, ~/.openclaw, ~/.config/gcloud, ~/.kube, ~/.gnupg, or ~/.docker.
  • Any git command that rewrites history: push --force, push -f, reset --hard, clean -fd, commit --amend followed by a force push, rebase followed 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 ~/.config content into a network request (curl, wget, httpie, nc, xh).
  • Any sudo invocation outside the documented bootstrap of a developer environment.

Read the full file on GitHub · 425 lines

Changes

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.

  1. 12d ago First seen · 425 lines · 126 tokens per session scan F a213ddebb8b0

Subscribe to this mod's changes

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.

Related

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.

prowler-cloud/prowler · 33 tokens

gh-auth-isolation

Safely manage multiple GitHub identities (EMU + personal) in agent workflows.

github/gh-aw · 20 tokens

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.

rpamis/comet · 72 tokens

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.

zeenie-ai/OpenCompany · 51 tokens

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".

Mathews-Tom/armory · 67 tokens

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…

LilMGenius/paperthin · 70 tokens