suwappubot: Command for Claude Code

.claude/commands/audit.md

audit is a command for Claude Code from 0xSoftBoi/suwappubot. It costs 47 tokens per session (746 once invoked), scanned A, original, Apache-2.0.

An attacker-minded security review for selected files, focused on authentication and financial data flows. It follows requests from routes through services to the database and records confirmed findings as they are verified.

In plain words
What is it for?
It helps audit specified files or patterns for attack classes such as authentication bypass, replay, double-spend, IDOR, SSRF, secret exposure, and fee-math errors.
Why use it?
It helps uncover real authorization, replay, double-spending, object-access, request-forgery, secret-exposure, and fee-calculation problems without producing an unfocused review of the whole project.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is 0xSoftBoi/suwappubot's own configuration. It tells Claude Code how to work on suwappubot itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything suwappubot configures →

Reuse

Borrowing it

Nothing to install: this file belongs to 0xSoftBoi/suwappubot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/0xSoftBoi/suwappubot/main/.claude/commands/audit.md
Clone the repo
git clone --depth 1 https://github.com/0xSoftBoi/suwappubot

Made for: Claude Code.

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 audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/0xsoftboi/suwappubot/audit.svg)](https://agentmods.dev/commands/0xsoftboi/suwappubot/audit)
Your own site
<a href="https://agentmods.dev/commands/0xsoftboi/suwappubot/audit"><img src="https://agentmods.dev/badge/commands/0xsoftboi/suwappubot/audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 746 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.00047 $0.00746
Opus 5 $0.00023 $0.00373
Sonnet 5 $0.00009 $0.00149
Haiku 4.5 $0.00005 $0.00075

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

Security

Grade A, and why

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 8d 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.

.claude/commands/audit.md · 55 lines

How it starts

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

Security Audit Skill

Runs the deep, adversarial review you commission by hand — but with the two habits that keep it from dying at a spend/output limit: scope tightly and stream findings as you confirm them.

Optional args: target files/globs and an optional attack class (auth-bypass, replay, double-spend, idor, ssrf, secret-exposure, fee-math). If no target given, ask for candidate files — do NOT "audit everything."

Ground rules (why this skill exists)

  • Never batch findings for the end. Append each confirmed finding to findings.json the moment you verify it. Spend limits repeatedly killed audits that saved the JSON for last and lost the whole deliverable.
  • Keep each response compact (< ~500 output tokens). One finding at a time is fine.
  • Real bug vs false positive must be stated explicitly for each item.
  • This is a money-path / auth review — trace data flow from route → service → DB, not just single files.

Step 0 — Scope + init the sink

TARGETS="$ARGUMENTS"            # files/globs passed to /audit
[ -z "$TARGETS" ] && echo "No target — ask user for candidate files, then stop." && exit 0
[ -f findings.json ] || echo '[]' > findings.json
echo "Auditing: $TARGETS"

Step 1 — Route by attack class

For each target, trace at minimum:

  • Auth/authz: who can call this? Is the caller's identity re-derived from a trusted source or trusted from client input? IDOR on any id param?
  • Money-path: balance reads vs writes — any TOCTOU / double-spend race? Idempotency on payment/withdraw/redeem? Replay of a signed request?
  • Input: SSRF on any outbound URL, injection into DB/shell, unvalidated amounts (negative, overflow, precision).
  • Secrets: keys/tokens logged, returned in responses, or committed.

Step 2 — Confirm, then append IMMEDIATELY

For each confirmed finding, append one object and report it in one short message:

python3 - <<'PY'
import json
f = json.load(open("findings.json"))
f.append({
  "severity": "critical|high|medium|low",
  "location": "path/to/file.py:123",
  "attack_class": "double-spend",
  "real_or_fp": "real",           # or "false-positive" with reasoning
  "exploit": "one-line attacker path",
  "fix": "one-line remediation",
})
json.dump(f, open("findings.json","w"), indent=2)
print("appended:", f[-1]["location"])
PY

Read the full file on GitHub · 55 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. 8d ago First seen · 55 lines · 47 tokens per session scan A c78b7ddf59ac

Subscribe to this mod's changes

audit is a command published in the GitHub repository 0xSoftBoi/suwappubot (3 stars, last pushed today), licensed Apache-2.0. It adds 47 tokens to every session and 746 once invoked, about $0.0002 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-30.