security-audit

security-audit is a skill for Claude Code, Codex from momentmaker/kaijutsu. It costs 167 tokens per session (1,561 once invoked), scanned A, original, MIT.

A security review process that examines code for weaknesses in access control, data movement, attacks, dependencies, and supply-chain risks. It reports findings using severity levels similar to the Common Vulnerability Scoring System.

In plain words
What is it for?
It helps audit pull requests, local branch differences, or selected files for issues such as injection, unauthorized access, data exposure, vulnerable dependencies, and unsafe trust boundaries.
Why use it?
It brings several focused checks together so security problems are less likely to be missed in a code change or set of files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; mentions Codex.

Good fit It helps audit pull requests, local branch differences, or selected files for…

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/momentmaker/kaijutsu/security-audit.svg)](https://agentmods.dev/skills/momentmaker/kaijutsu/security-audit)
Your own site
<a href="https://agentmods.dev/skills/momentmaker/kaijutsu/security-audit"><img src="https://agentmods.dev/badge/skills/momentmaker/kaijutsu/security-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 167 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,561 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.00167 $0.01561
Opus 5 $0.00084 $0.00781
Sonnet 5 $0.00033 $0.00312
Haiku 4.5 $0.00017 $0.00156

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

Security

Grade A, and why

security-audit 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/run.sh), 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.

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.

skills/core/security-audit/SKILL.md · 123 lines

How it starts

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

security-audit

Adversarial multi-agent security review. Different from pr-review's broad code review — security-audit's three lenses are explicitly InfoSec-shaped, the severity vocab is CVSS-aligned, and the output is a threat model rather than a code-review findings list.

How agents collaborate

Lens Agent Looks for
Auth + data flow claude Trust boundaries, identity propagation, authorization vs authentication, data flow to sinks
Injection + priv-esc codex SQL/command/XSS injection, path traversal, SSRF, race conditions, crypto misuse
Dependency + supply-chain antigravity Known CVEs, version drift, transitive trust, license compatibility

Severity vocab (CVSS-aligned):

  • critical — RCE, auth bypass, privilege escalation
  • high — data breach, integrity violation
  • medium — DoS, info disclosure, weak boundaries
  • low — defense-in-depth gap, timing leak
  • informational — worth noting but no exploitable path

Two input modes

# Diff mode — audit a PR
jutsu swarm security-audit --pr 42

# Diff mode — audit a local branch (no PR yet)
jutsu swarm security-audit --diff-from-branch origin/main

# Files mode — audit specific paths
jutsu swarm security-audit cmd/server/auth.go

# Files mode — audit a directory (multi-file concatenated)
jutsu swarm security-audit cmd/server/

# --quick to override the default --full mode
jutsu swarm security-audit --pr 42 --mode quick

# Iterate cheap on synth prompt
jutsu swarm security-audit --replay <key>

The two modes are mutually exclusive — passing --pr AND positional file paths errors with a "pick one" hint.

--full defaults ON

Unlike other presets, security-audit runs --full mode (with Pass-2 round-robin debate) by default. Security findings have asymmetric cost: false-positives erode user trust faster than missed issues. The debate round filters false-positives by having each agent critique its peers.

Override to --mode quick only when you're doing a fast first-pass scan.

Read the full file on GitHub · 123 lines

Files

What ships with it

8 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. 6d ago First seen · 123 lines · 167 tokens per session scan A ec6bbe444c73

Subscribe to this mod's changes

security-audit is a skill published in the GitHub repository momentmaker/kaijutsu (3 stars, last pushed 2mo ago), licensed MIT. It adds 167 tokens to every session and 1,561 once invoked, about $0.0008 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.