agent-prompt-audit

agent-prompt-audit is a skill for Codex from avibe-bot/avibe. It costs 105 tokens per session (2,607 once invoked), scanned A, original, MIT.

A guide for auditing the text that controls AI-agent behaviour across prompts, project rules, skills, delegation instructions, and task messages.

In plain words
What is it for?
Use it to investigate agent runs, trace problems to specific instructions, and propose evidence-based prompt changes.
Why use it?
It helps identify which instruction caused an agent's observed behaviour instead of changing prompts based only on guesswork.

Skill for Codex

Written for Codex: reads $CODEX_HOME. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Good fit Use it to investigate agent runs, trace problems to specific instructions, and propose evidence-based prompt changes.

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

Made for: 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 agent-prompt-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/avibe-bot/avibe/agent-prompt-audit/github.svg)](https://agentmods.dev/skills/avibe-bot/avibe/agent-prompt-audit)
Your own site
<a href="https://agentmods.dev/skills/avibe-bot/avibe/agent-prompt-audit"><img src="https://agentmods.dev/badge/skills/avibe-bot/avibe/agent-prompt-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 agent-prompt-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/avibe-bot/avibe/agent-prompt-audit"><img src="https://agentmods.dev/badge/skills/avibe-bot/avibe/agent-prompt-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,607 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.00105 $0.02607
Opus 5.5 $0.00042 $0.01043
Sonnet 5.5 $0.00021 $0.00521
Haiku 4.5 $0.00011 $0.00261

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

Security

Grade A, and why

agent-prompt-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 4d 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.

skills/agent-prompt-audit/SKILL.md · 175 lines

How it starts

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

Agent Prompt Audit

An Agent's behavior comes from every piece of text that reaches it over its lifecycle, not just its system prompt. The audit's job is to find which text causes the behavior the user sees, on the backend and model that actually ran it, and to propose the smallest change that fixes it. Judge each instruction by what it does to behavior, not by its length: sometimes the fix is adding a missing reason or exit, and a clean surface is a valid result.

Deliver a report of findings — each with its evidence, confidence, and a concrete proposed change — and apply changes only when asked.

Core ideas

Evidence over reading. What Agents actually did beats what the text seems to say. Start from real runs and user corrections ("you stopped", "why didn't you report", "don't ask me that"), trace each symptom to the line that caused it or the missing line that would have prevented it, and use git blame to learn what incident a rule was written for and whether it still happens. A finding without evidence or documented model behavior is a flag, not a fix.

Context is kept; constraints must earn their place. Facts only the author knows — environment, contracts, ownership, quality bar, the reason behind a rule — are what prompts are for. Behavioral constraints are what go stale. Keep exact scripts where one sequence is safe (destructive commands, auth, merge gates, key custody), prohibitions against failures that still reproduce, and the scope bounds that make autonomy safe.

Say intent and reason, not pressure or method. Caps, MUST/NEVER, and emphasis without a reason make current models rigid; step scripts for judgment work and strategy coaching usually do worse than the model's own plan; fixed formats, word caps, and "don't narrate" rules produce silence or starved answers. Fossils — named-model workarounds, incident numbers as authority, "now/no longer" phrasing, one session's stumble made permanent — should become the current rule they stand for.

Read the full file on GitHub · 175 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. 4d ago Changed e837120ee133
  2. 20d ago First seen · 175 lines · 105 tokens per session scan A c5a6fcdc344e

Subscribe to this mod's changes

agent-prompt-audit is a skill published in the GitHub repository avibe-bot/avibe (625 stars, last pushed today), licensed MIT. It adds 105 tokens to every session and 2,607 once invoked, about $0.0004 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-09-26.