PAIAudit

PAIAudit is a skill for Claude Code from CarbeneAI/Forge. It costs 89 tokens per session (987 once invoked), scanned A, original, MIT.

A read-only security auditor for Claude Code settings, connected servers, skills, agents, hooks, and file permissions. It also compares the current setup with earlier audits.

In plain words
What is it for?
Use it for quick checks, full Markdown audit reports, and week-over-week security change reports.
Why use it?
It helps reveal risky permissions, exposed configuration, changed external skills, and unexpected additions to the development environment.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions Claude Code; built for gstack.

Good fit Use it for quick checks, full Markdown audit reports, and week-over-week security change reports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/carbeneai/forge/paiaudit
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 CarbeneAI/Forge --skill paiaudit
Clone the repo
git clone --depth 1 https://github.com/CarbeneAI/Forge

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 PAIAudit

README.md
[![agentmods](https://agentmods.dev/badge/skills/carbeneai/forge/paiaudit/github.svg)](https://agentmods.dev/skills/carbeneai/forge/paiaudit)
Your own site
<a href="https://agentmods.dev/skills/carbeneai/forge/paiaudit"><img src="https://agentmods.dev/badge/skills/carbeneai/forge/paiaudit/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 PAIAudit

Your own site · 80×15
<a href="https://agentmods.dev/skills/carbeneai/forge/paiaudit"><img src="https://agentmods.dev/badge/skills/carbeneai/forge/paiaudit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 987 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00089 $0.00987
Opus 5.5 $0.00036 $0.00395
Sonnet 5.5 $0.00018 $0.00197
Haiku 4.5 $0.00009 $0.00099

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

Security

Grade A, and why

PAIAudit scanned grade A with 1 finding 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 2mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (tools/audit-summary.ts, tools/audit.ts, tools/weekly-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.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

| **Settings** | `~/.claude/settings.json` + `settings.local.json` — hooks, permissions, env |

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

.claude/skills/PAIAudit/SKILL.md · 90 lines

How it starts

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

PAIAudit

Read-only audit of the PAI Claude Code surface. Catches risky configs, drift in symlinked external skills, and changes week-over-week.

What It Checks

Area Check
Settings ~/.claude/settings.json + settings.local.json — hooks, permissions, env
MCP servers ~/.claude.json — server list, command paths, token presence (count, never values)
Skill supply chain All symlinks in ~/.claude/skills/ — target repo + commit SHA, drift since last run
Agents ~/.claude/agents/*.md — flag broad tool access (*, Bash, Write on sensitive agents)
Hooks Scripts wired in settings — existence, permissions, owner
File permissions ~/.claude.json should be 0600 (holds API tokens)
Delta Diff vs last audit — new skills, new MCPs, settings changes, SHA drift

Modes

Mode Trigger Output
Quick audit-summary.ts One-line summary for Telegram daily report
Full audit.ts Full markdown report → ~/.claude/audit-history/YYYY-MM-DD.md + Obsidian
Diff audit.ts --diff Compare current state to previous audit, surface only changes

Tools

Tool Purpose
tools/audit.ts Full audit — markdown report with all findings
tools/audit-summary.ts Quick check — single status line, exit code reflects severity

Usage

# Full audit (saves to audit-history + prints markdown)
bun ~/.claude/skills/PAIAudit/tools/audit.ts

# Quick summary line (used by TelegramStatus)
bun ~/.claude/skills/PAIAudit/tools/audit-summary.ts

# Diff against last week's audit
bun ~/.claude/skills/PAIAudit/tools/audit.ts --diff

Severity

  • CRITICAL — exposed secrets, world-writable config, broken file perms on tokens
  • HIGH — unpinned external skill repos, agents with full * access, unknown MCP servers
  • MEDIUM — symlink target drifted since last audit, new agents/skills added
  • LOW — settings file warnings, cosmetic config issues
  • INFO — counts and inventory snapshot

Read the full file on GitHub · 90 lines

Files

What ships with it

3 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. 2mo ago First seen · 90 lines · 89 tokens per session scan A a9177d96bece

Subscribe to this mod's changes

PAIAudit is a skill published in the GitHub repository CarbeneAI/Forge (9 stars, last pushed 1mo ago), licensed MIT. It adds 89 tokens to every session and 987 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

PAIAudit compared with skills from other repositories

PAIAudit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
PAIAuditCarbeneAI/ForgeSkill91mo agoMITA89Claude Code
building-vulnerability-dashboard-with-defectdojo26zl/cybersec-toolkitSkill1135d agoMITA77Claude Code
panguardpanguard-ai/panguard-aiSkill695d agoMITA30Claude Code, Codex
usap-cisojaskaranhundal/usap-skillsSkill71mo agoApache-2.0A66Claude Code
security-vulnerability-audityu-iskw/skill-inspectorSkill229d agoApache-2.0A39Claude Code
hunt-api-misconfigZyrexnn/CybermesSkill1.1k14d agoApache-2.0A207Claude Code
hunt-aspnetZyrexnn/CybermesSkill1.1k14d agoApache-2.0A98Claude Code