self-audit

self-audit is a skill for Claude Code, Codex from richfrem/agent-plugins-skills. It costs 76 tokens per session (780 once invoked), scanned A, original, MIT.

A regression test for a plugin analyzer. It runs the analyzer on itself and on prepared test plugins to check whether its results remain correct.

In plain words
What is it for?
Use it after changing the analyzer to check its security findings and structural checks against known test cases.
Why use it?
It helps catch changes that make the analyzer produce inconsistent or unexpected findings.

Skill for Claude CodeCodex

Part of the agent-scaffolders plugin — 33 skills, 2 plugins shipped together

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/richfrem/agent-plugins-skills/self-audit
Any agent
npx skills add richfrem/agent-plugins-skills --skill self-audit
Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills

Made for: Claude Code, Codex.

Or install agent-scaffolders, the plugin that ships this one along with the rest of its 33 skills, 2 plugins.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/self-audit.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/self-audit)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/self-audit"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/self-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 780 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 $0.00076 $0.00780
Opus 5 $0.00038 $0.00390
Sonnet 5 $0.00015 $0.00156
Haiku 4.5 $0.00008 $0.00078

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

Security

Grade A, and why

self-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 yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/assert_audit.py, scripts/inventory_plugin.py), 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.

plugins/agent-scaffolders/skills/self-audit/SKILL.md · 87 lines

How it starts

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

Dependencies

This skill requires Python 3.8+ and standard library only. No external packages needed.

To install this skill's dependencies:

pip-compile ./requirements.in
pip install -r ./requirements.txt

See ./requirements.txt for the dependency lockfile (currently empty — standard library only).


Self-Audit: Analyze the Analyzer

Run the analyze-plugin skill against the agent-scaffolders itself and the test fixtures. This is a regression smoke test that verifies the analyzer produces consistent, expected results.

Execution Steps

  1. Run inventory on self (security scanning is on by default):

    python ./scripts/inventory_plugin.py --path . --format json
    
  2. Run scanner against test fixtures:

    python ./scripts/inventory_plugin.py --path ./tests/gold-standard-plugin --format json
    python ./scripts/inventory_plugin.py --path ./tests/flawed-plugin --format json
    
  3. Validate deterministic scanner results:

    Self-analysis scanner must confirm:

    • security_flags = [] (zero security findings in the analyzer itself)
    • issues = [] (zero structural violations)

    Gold-standard fixture scanner must confirm:

    • security_flags = [] (zero security findings)
    • issues = [] (zero structural violations)
    • warnings = [] (zero missing components)

    Flawed fixture scanner must confirm:

    • security_flags count ≥ 4 (network calls + env access; obfuscated credential is LLM-only)
    • issues count ≥ 1 (bash script violation)
    • warnings count ≥ 2 (missing acceptance criteria + references)
    • See ./README.md for the full expected findings manifest

    To run assertions programmatically:

    python ./scripts/assert_audit.py --fixture flawed --json-output <path-to-scan-output.json>
    
  4. Run the full 6-phase analysis on each fixture:

    • tests/gold-standard-plugin/ — should score maturity ≥ L2, zero Critical, at least 2 patterns identified
    • tests/flawed-plugin/ — LLM must additionally detect: missing README file tree, missing plugin manifest

Read the full file on GitHub · 87 lines

Files

What ships with it

7 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. yesterday First seen · 87 lines · 76 tokens per session scan A d99cc9e8980b

Subscribe to this mod's changes

self-audit is a skill published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed yesterday), licensed MIT. It adds 76 tokens to every session and 780 once invoked, about $0.0004 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-09-03.

Related

Other skills, from other repositories

agent-tester

Agent skill for tester - invoke with $agent-tester.

ruvnet/ruflo · 15 tokens

neuron-test-engineer

Write tests for Neuron AI agents, RAG systems, workflows, and tools using the built-in testing utilities. Use this skill when the user mentions testing agents, writing unit tests, mocking AI providers, testing tool execution, verifying RAG retrieval, testing workflow behavior, or creating test cases for Neuron AI…

neuron-core/neuron-ai · 94 tokens

test-gen

Generate and verify tests — happy path, edge cases, error paths — using the project's own framework and patterns.

SethGammon/Citadel · 24 tokens

kapso-whatsapp

How to interact with Kapso WhatsApp from the swarm — read inbound webhook payloads (text AND media), fetch message history, send free-form messages within the 24h session window (and template messages outside it), mark-as-read, show the typing indicator, send reactions, download media, verify webhook signatures, and…

desplega-ai/agent-swarm · 156 tokens

composio

Use Composio from Agent Swarm through the agent-swarm x composio CLI route, the swarmx MCP tool, or a registered ctx.api.composio script connection. Trigger when a task needs connected third-party app tools such as Gmail, Google Calendar, Google Docs, Google Drive, GitHub, Slack, Notion, or HubSpot through Tool Router…

desplega-ai/agent-swarm · 128 tokens

attio-interaction

Generic Attio CRM REST API v2 recipes for querying records, upserting companies/people/deals, writing notes/tasks/comments, managing lists, and handling webhooks.

desplega-ai/agent-swarm · 39 tokens