security-check

security-check is a skill for Claude Code from pitimon/8-habit-ai-dev. It costs 51 tokens per session (1,120 once invoked), scanned A, original, MIT.

A focused security review for code changes, covering secrets, user input, login and permission checks, dependencies, and common web risks such as the OWASP Top 10. The OWASP Top 10 is a widely used list of major web application security risks.

In plain words
What is it for?
Use it to review changed files for authentication and authorization mistakes, hardcoded secrets, injection risks, vulnerable dependencies, and other security issues.
Why use it?
It keeps security concerns from being lost inside a general code review. The checks look for problems such as exposed credentials, unprotected endpoints, unsafe input handling, and unauthorized data access.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the 8-habit-ai-dev plugin — 24 skills, 2 agents, 1 hook shipped together

Install

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.

Claude Code
/plugin marketplace add pitimon/8-habit-ai-dev
Claude Code
/plugin install 8-habit-ai-dev

Made for: Claude Code.

Or install 8-habit-ai-dev, the plugin that ships this one along with the rest of its 24 skills, 2 agents, 1 hook.

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/pitimon/8-habit-ai-dev/security-check.svg)](https://agentmods.dev/skills/pitimon/8-habit-ai-dev/security-check)
Your own site
<a href="https://agentmods.dev/skills/pitimon/8-habit-ai-dev/security-check"><img src="https://agentmods.dev/badge/skills/pitimon/8-habit-ai-dev/security-check.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,120 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00051 $0.01120
Opus 5 $0.00026 $0.00560
Sonnet 5 $0.00010 $0.00224
Haiku 4.5 $0.00005 $0.00112

Measured 6d ago against content hash 29a0323ee1d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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.

plugin/skills/security-check/SKILL.md · 105 lines

How it starts

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

Security Check (ตรวจความปลอดภัย)

Habit: H1 — Be Proactive | Anti-pattern: Bundling security into general code review where it competes for attention

Why a Separate Skill

Cognitive load research confirms: reviewing for 5 concerns simultaneously degrades all of them. Security deserves its own focused lens — the Security Champions model (Shopify, Atlassian) outperforms bundled review.

Process

  1. Get the scope: git diff --name-only or the files/directory specified.

  2. Auth & Access Control (CRITICAL):

    • New endpoints require auth (unless explicitly public)
    • Access control uses role/permission checks, not just "is logged in"
    • No privilege escalation paths (user A accessing user B's data)
    • Verify: search for auth middleware and protect guards in changed files
  3. Secrets & Credentials (CRITICAL):

    • No hardcoded keys, tokens, or credentials in source code
    • Secrets loaded from environment variables
    • No secrets in comments, logs, or error messages
    • Verify: use Grep tool to search for secret patterns in changed files
  4. Input Handling (HIGH):

    • All user input validated (type, length, format)
    • Database queries use parameterized statements (no string interpolation)
    • HTML output escaped (XSS prevention)
    • File uploads validated (type, size, content)
    • Verify: search for innerHTML, dangerouslySetInnerHTML, exec(), eval()
  5. Data Protection (HIGH):

    • Sensitive data not logged (credentials, PII)
    • API responses don't over-expose data (no SELECT *)
    • Error messages don't leak internal details or stack traces
    • Verify: search for debug print statements in production code paths
  6. Infrastructure (MEDIUM):

    • HTTPS enforced for external communication
    • CORS configured restrictively (not wildcard)
    • Rate limiting on auth endpoints
    • Content security policy headers configured
    • Alerting/email templates, SMTP settings, webhooks, notification links, Docker/Kubernetes/Compose/Swarm config, and env/secret interpolation do not expose secrets or widen runtime access
    • Verify mounted config paths, rendered templates, and live source-of-truth when config can drift from repo state

Read the full file on GitHub · 105 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. 6d ago First seen · 105 lines · 51 tokens per session scan A 29a0323ee1d8

Subscribe to this mod's changes

security-check is a skill published in the GitHub repository pitimon/8-habit-ai-dev (3 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 1,120 once invoked, about $0.0003 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.