catpilot-security-core

catpilot-security-core is a skill for Claude Code from catpilotai/catpilot-ai-guardrails. It costs 128 tokens per session (4,920 once invoked), scanned C, original, MIT.

A set of always-on security checks for AI coding agents. It covers cloud and database changes, destructive commands, Docker builds, secrets, software dependencies, personal data, and secure coding.

In plain words
What is it for?
Use it to review agent actions and code for security risks, prevent accidental destructive changes, and guide fixes for reported problems.
Why use it?
It helps catch risky actions or sensitive data before an agent writes files, reviews changes, or runs commands. The guidance applies across programming languages and frameworks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the catpilot-guardrails plugin — 25 skills shipped together

Good fit Use it to review agent actions and code for security risks, prevent accidental destructive changes, and guide fixes for reported problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/catpilotai/catpilot-ai-guardrails/catpilot-security-core
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add catpilotai/catpilot-ai-guardrails --skill catpilot-security-core
Clone the repo
git clone --depth 1 https://github.com/catpilotai/catpilot-ai-guardrails

Made for: Claude Code.

Or install catpilot-guardrails, the plugin that ships this one along with the rest of its 25 skills.

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 catpilot-security-core

README.md
[![agentmods](https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/catpilot-security-core/github.svg)](https://agentmods.dev/skills/catpilotai/catpilot-ai-guardrails/catpilot-security-core)
Your own site
<a href="https://agentmods.dev/skills/catpilotai/catpilot-ai-guardrails/catpilot-security-core"><img src="https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/catpilot-security-core/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 catpilot-security-core

Your own site · 80×15
<a href="https://agentmods.dev/skills/catpilotai/catpilot-ai-guardrails/catpilot-security-core"><img src="https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/catpilot-security-core.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,920 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 4 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 7 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.00128 $0.04920
Opus 5.5 $0.00051 $0.01968
Sonnet 5.5 $0.00026 $0.00984
Haiku 4.5 $0.00013 $0.00492

Measured 1mo ago against content hash d68540526680, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

catpilot-security-core scanned grade C with 4 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/cloud-cli-safety/env_patch.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Piping `~/.ssh`, `~/.aws`, or an `env` dump into a network request, or untrusted content into `sudo bash`/`sudo sh`.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- Replace `curl | bash`-style pipe-to-shell installs with download, hash-verify, inspect, then run; prefer the project's package-manager distribution.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- `rm -rf`/`find ... -delete` against an unset or unguarded variable, or any path outside the project directory.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

**Applies when:** Every code generation, file write, file edit, and diff review, and any shell command with inline credentials, environment-variable assignments, or `curl -H` headers.
skills/catpilot-security-core/SKILL.md · 272 lines

How it starts

The opening of the file, as written. The whole thing — 272 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Catpilot Security Core

Catpilot's universal security baseline for AI coding agents, intended to apply on every file write, diff review, and shell command the agent is about to run, regardless of language or framework, whenever the host has loaded this skill. It is advice the agent reads: installing this bundle is not activation, and an instruction the agent has read is not an enforced control. The repository's protection contract explains the difference between advice, coaching, and enforcement.

This file is deliberately short. Each component below names its reference file, states when it applies, and lists the rules that always hold. Do not answer from this file alone: before acting in a component's area (a cloud command that changes infrastructure, a database migration or data change, a Dockerfile, a dependency change, anything that handles a secret or real personal data, or code in the language-baseline patterns), read the named reference file with your file-reading tool and follow it. The examples, the remediation steps, and the detection patterns live there, and so do the facts that decide whether a command is safe. Component IDs match the catpilot-components entry in the frontmatter and the bundle.components list in catpilot.json next to this file, so a finding can be mapped back to a specific source skill (and to its severity, version, and control mappings).

This bundle is generated deterministically from src/skills/core/<id>/SKILL.md by tools/bundle.py in the catpilotai/catpilot-ai-guardrails repository. Edits to this file or to the reference files are overwritten on the next bundle. To change behavior, edit the corresponding source skill and rebuild.


cloud-cli-safety

Before acting in this area, read references/cloud-cli-safety.md in this skill's directory; the rules below are the minimum, not the whole component.

Applies when: Before invoking a mutating az, aws, gcloud/gsutil, kubectl, helm, or terraform command, or a custom deploy wrapper (./deploy.sh, make deploy), especially against production-heuristic targets.

Read the full file on GitHub · 272 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. 1mo ago Changed d68540526680
  2. 1mo ago Changed · -3,392 lines scan E → C 13709349067f
  3. 1mo ago Changed · +16 lines · +18 tokens per session 84e0ca745805
  4. 2mo ago First seen · 3,648 lines · 110 tokens per session scan E 90c01b5ab0d6

Subscribe to this mod's changes

catpilot-security-core is a skill published in the GitHub repository catpilotai/catpilot-ai-guardrails (2 stars, last pushed 8d ago), licensed MIT. It adds 128 tokens to every session and 4,920 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it C with 4 findings (asks for root, downloads and executes remote code, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

catpilot-security-core compared with skills from other repositories

catpilot-security-core next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
catpilot-security-corecatpilotai/catpilot-ai-guardrailsSkill28d agoMITC128Claude Code
dcf-modelNousResearch/hermes-agentSkill262ktodayMITA14Claude Code, Codex
baoyu-article-illustratorNousResearch/hermes-agentSkill262ktodayMITA18Claude Code, Codex
flash-attentionNousResearch/hermes-agentSkill262ktodayMITA14Claude Code, Codex
subagent-driven-developmentNousResearch/hermes-agentSkill262ktodayMITA17Claude Code, Codex
mcporterNousResearch/hermes-agentSkill262ktodayMITA16Claude Code, Codex
mem0-vercel-ai-sdkmem0ai/mem0Skill69kyesterdayApache-2.0A146Claude Code, Codex