security-check

security-check is a skill for Claude Code from Abilityai/abilities. It costs 32 tokens per session (1,644 once invoked), scanned A, original, MIT.

A pre-commit check for secrets and other sensitive data in staged or modified files.

In plain words
What is it for?
It examines the Git diff for staged changes, or modified files when nothing is staged, and checks the changed content.
Why use it?
It can catch API keys, passwords, credentials, personally identifiable information, or similar data before they enter a commit.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the dev-methodology plugin — 18 skills, 3 agents shipped together

Good fit It examines the Git diff for staged changes, or modified files when nothing is staged, and checks the changed content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abilityai/abilities/security-check
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 Abilityai/abilities --skill security-check
Clone the repo
git clone --depth 1 https://github.com/Abilityai/abilities

Made for: Claude Code.

Or install dev-methodology, the plugin that ships this one along with the rest of its 18 skills, 3 agents.

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 security-check

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/abilityai/abilities/security-check"><img src="https://agentmods.dev/badge/skills/abilityai/abilities/security-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,644 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.
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.00032 $0.01644
Opus 5.5 $0.00013 $0.00658
Sonnet 5.5 $0.00006 $0.00329
Haiku 4.5 $0.00003 $0.00164

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

Security

Grade A, and why

security-check 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 1mo 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.

plugins/dev-methodology/skills/security-check/SKILL.md · 144 lines

How it starts

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

Pre-Commit Security Check

ℹ️ First, set expectations: before anything else, print one short line with this skill's version and its most recent change — the top entry of metadata.changelog above — e.g. security-check vX.Y — recent: <summary>. Then proceed.

Validate that staged changes don't contain sensitive information before committing.

State Dependencies

Source Location Read Write Description
Git Staged git diff --cached ✅ Staged changes
Git Modified git diff HEAD ✅ Unstaged changes

Step 1: Determine Files to Check

# Check if there are staged files
STAGED=$(git diff --cached --name-only 2>/dev/null)

if [ -n "$STAGED" ]; then
  echo "=== Checking STAGED files ==="
  echo "$STAGED"
  DIFF_CMD="git diff --cached -U0"
  FILES_CMD="git diff --cached --name-only"
else
  echo "=== No staged files. Checking all MODIFIED files ==="
  FILES=$(git diff --name-only HEAD 2>/dev/null)
  if [ -z "$FILES" ]; then
    echo "No modified files to check."
    exit 0
  fi
  echo "$FILES"
  DIFF_CMD="git diff -U0 HEAD"
  FILES_CMD="git diff --name-only HEAD"
fi

Step 2: Run Security Checks

Check 1: API Keys and Tokens (CRITICAL)

git diff --cached -U0 2>/dev/null | grep -E 'sk-[a-zA-Z0-9]{20,}' | grep -v 'skip\|sketch\|skill'
git diff --cached -U0 2>/dev/null | grep -E '(ghp_[a-zA-Z0-9]{36}|gho_[a-zA-Z0-9]{36}|github_pat_[a-zA-Z0-9_]{22,})'
git diff --cached -U0 2>/dev/null | grep -E 'xox[baprs]-[a-zA-Z0-9-]{10,}'
git diff --cached -U0 2>/dev/null | grep -E '(AIza[a-zA-Z0-9_-]{35}|ya29\.[a-zA-Z0-9_-]{50,})'
git diff --cached -U0 2>/dev/null | grep -E 'AKIA[A-Z0-9]{16}'

Check 2: Email Addresses (HIGH)

git diff --cached -U0 2>/dev/null | grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}' | grep -vE '(example\.(com|org|net)|placeholder|test@|user@|noreply@|nobody@|admin@localhost|root@localhost|@users\.noreply\.github\.com)'

Read the full file on GitHub · 144 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 First seen · 144 lines · 32 tokens per session scan A 719807c2aaac

Subscribe to this mod's changes

security-check is a skill published in the GitHub repository Abilityai/abilities (12 stars, last pushed 3d ago), licensed MIT. It adds 32 tokens to every session and 1,644 once invoked, about $0.0001 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-09-07.