katgpt-rs: Skill for Claude Code

.agents/skills/security-audit/SKILL.md

security-audit is a skill for Claude Code, Codex from katopz/katgpt-rs. It costs 70 tokens per session (3,222 once invoked), scanned A, original, MIT.

A security-audit workflow for a Rust codebase that checks whether code crosses trust boundaries unsafely. It records evidence and classifies findings as confirmed, needing validation, or rejected.

In plain words
What is it for?
For security questions, focused reviews of networking, foreign-function interfaces (FFI), or secrets, and comprehensive audits of a Rust workspace.
Why use it?
It helps separate real vulnerabilities from general hardening suggestions and prevents the audit from changing the code being inspected. Full audits also include checks that proposed fixes were verified.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is katopz/katgpt-rs's own configuration. It tells Claude Code and Codex how to work on katgpt-rs 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 katgpt-rs configures →

Reuse

Borrowing it

Nothing to install: this file belongs to katopz/katgpt-rs. 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/katopz/katgpt-rs/develop/.agents/skills/security-audit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/katopz/katgpt-rs

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/katopz/katgpt-rs/security-audit/github.svg)](https://agentmods.dev/skills/katopz/katgpt-rs/security-audit)
Your own site
<a href="https://agentmods.dev/skills/katopz/katgpt-rs/security-audit"><img src="https://agentmods.dev/badge/skills/katopz/katgpt-rs/security-audit/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-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/katopz/katgpt-rs/security-audit"><img src="https://agentmods.dev/badge/skills/katopz/katgpt-rs/security-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,222 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.00070 $0.03222
Opus 5.5 $0.00028 $0.01289
Sonnet 5.5 $0.00014 $0.00644
Haiku 4.5 $0.00007 $0.00322

Measured 2d ago against content hash d80dcd068964, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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.

.agents/skills/security-audit/SKILL.md · 220 lines

How it starts

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

Security Audit

Find vulnerabilities that violate a real trust boundary, then hand the owner the source evidence, a safe reproduction, a priority, and the smallest effective fix. Adapted for this Rust workspace from Cloudflare's security-audit-skill (MIT — provenance at the bottom). A candidate without a concrete affected principal, resource, or security outcome is not a finding — it is a hardening note.

Three modes

  • Guidance mode (default): the user asks a security question or wants a focused review of one surface. Use only the relevant sections below. Do not create output directories, do not write report artifacts, do not launch the full workflow.
  • Full audit mode: the user explicitly asks to audit or pen-test a codebase, or wants a full / comprehensive / end-to-end review, or asks for report artifacts. Run all six phases and write the artifact set.
  • Post-flow pass: the user asks to security-review a landed diff, branch, or PR before merge ("review this diff", "security-check these changes", a pre-merge gate). Diff-scoped — see the dedicated section below. Never a whole-repo claim.

If the request could mean either, ask one focused question before writing any file.

Execution safety — always, both modes

  • Source inspection is read-only. Never edit, format, or "fix" the target while auditing it.
  • Run target-controlled code (builds, tests, fuzzers, fixture processors) only inside a sandbox: no external network, an explicit allowlisted environment, read-only target, bounded CPU / memory / wall-clock. If the sandbox cannot be enforced, do not execute target code — record a needs_validation finding naming the missing control and the safe validation plan.
  • Never probe deployed endpoints, live chain RPC, shared services, production keys, or another user's data. Dummy principals and fixtures only. Never send real spend, never stress-test availability against a live process.
  • Never print, copy, or commit secret values found during the audit (env files, keys, tokens). Report the path and shape, redact the value. This overrides any "include evidence" instruction.
  • Pin the target before verdict work — record repo + commit sha (and dirty state) in the run metadata. Quotes against an unpinned tree are worthless; a dirty worktree can make an uncommitted edit look like a finding.

Read the full file on GitHub · 220 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. 2d ago Changed · +47 lines d80dcd068964
  2. 10d ago First seen · 173 lines · 70 tokens per session scan A a75b75576ceb

Subscribe to this mod's changes

security-audit is a skill published in the GitHub repository katopz/katgpt-rs (140 stars, last pushed today), licensed MIT. It adds 70 tokens to every session and 3,222 once invoked, about $0.0003 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-10-20.