security-check

A security review process for uncommitted code changes, based on a checklist of common software security mistakes.

In plain words
What is it for?
It reviews changed files for issues such as unsafe network requests, injection, unsafe command execution, exposed secrets or personal data, and risky dependencies.
Why use it?
It helps find and fix security problems before code is committed or shared in a pull request.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/aarora79/claude-code-usage-analyzer/security-check
Any agent
npx skills add aarora79/claude-code-usage-analyzer --skill security-check
Clone the repo
git clone --depth 1 https://github.com/aarora79/claude-code-usage-analyzer

Made for: Claude Code, Codex.

Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,544 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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 $0.00096 $0.01544
Opus 5 $0.00048 $0.00772
Sonnet 5 $0.00019 $0.00309
Haiku 4.5 $0.00010 $0.00154

Measured 2d ago against content hash f107b2e4feb1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

security-check scanned grade B with 1 finding 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 2d 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.

Harvests environment variablesmediumData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

- **Secret / PII leakage (R3, #7):** reports, logs, and committed example data record counts/costs/model ids, never file paths that reveal project names, credentials, or prompt content. `--debug` logging must not dump se

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

.claude/skills/security-check/SKILL.md · 90 lines

How it starts

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

Security Check Skill (Cipher)

Run a focused security review over the repository's pending changes, adopting the Cipher security-engineer persona, and fix any security problems found before code is committed.

This skill is the security gate referenced by CLAUDE.md. It MUST be run:

  • Before any commit on any branch.
  • Before opening or updating a PR.
  • Whenever a new enhancement, feature, or refactor is added — both before writing security-sensitive code (to know the rules) and after implementing it (to catch regressions).

Reference material (read first)

Two bundled files define the review:

  1. personas/security-engineer.md — the Cipher persona: scope, evaluation areas, review questions, and the output format.
  2. personas/security-patterns.md — the catalog of security anti-patterns and the Review Checklist. This is the substantive source of truth for what counts as a defect.

Read security-patterns.md before reviewing. For every changed file, walk its Review Checklist and flag any pattern the diff reintroduces. Treat a matched anti-pattern as a blocker until it is justified or fixed.

What this repository is

This is a command-line usage-and-cost analysis tool for Claude Code. It shells out to the ccusage CLI (via npx) to gather usage data, downloads a pricing table from LiteLLM over HTTPS, computes statistics, and writes JSON/Markdown/Quarto reports plus charts. There is no web server, no authentication surface, and no database.

So the dominant security surface here is narrow but real: spawning a subprocess (npx ccusage), fetching a remote URL, parsing untrusted JSON from both, and writing reports that could leak data. The classic web-auth patterns (broken access control, CSRF, token boundaries) do not apply unless a change adds an HTTP surface; the day-to-day risk lives in subprocess safety, SSRF/URL handling, untrusted-input parsing, and log/report hygiene.

Read the full file on GitHub · 90 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 90 lines · 96 tokens per session scan B f107b2e4feb1

Subscribe to this mod's changes

security-check is a skill published in the GitHub repository aarora79/claude-code-usage-analyzer (5 stars, last pushed 1mo ago), licensed MIT. It adds 96 tokens to every session and 1,544 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.