aidex-audit

aidex-audit is a skill for Claude Code from yacb2/aidex. It costs 189 tokens per session (4,713 once invoked), scanned A, original, MIT.

An audit workflow for reviewing a feature, user flow, or module for problems and improvement opportunities. It can cover user experience, security, performance, accessibility, bugs, and gaps.

In plain words
What is it for?
Use it to start or validate an audit, review existing audit results, retest open findings, or update the audit method. It organizes findings under the project’s .context/audits/ convention.
Why use it?
It gives findings a consistent place and process instead of leaving issues in scattered notes. It also supports checking previously reported findings and moving confirmed work into the project backlog.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions subagents; names the AskUserQuestion tool.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is ([`../aidex-conventions/references/workflow-core.md`](../aidex-conventions/references/workflow-core.md)).

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/yacb2/aidex
agentmods
npx agentmods add skills/yacb2/aidex/aidex-audit

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/yacb2/aidex/aidex-audit.svg)](https://agentmods.dev/skills/yacb2/aidex/aidex-audit)
Your own site
<a href="https://agentmods.dev/skills/yacb2/aidex/aidex-audit"><img src="https://agentmods.dev/badge/skills/yacb2/aidex/aidex-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 189 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,713 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.1 $0.00189 $0.04713
Opus 5 $0.00095 $0.02357
Sonnet 5 $0.00038 $0.00943
Haiku 4.5 $0.00019 $0.00471

Measured yesterday against content hash 7ece36f365c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

aidex-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 34 executable files (assets/workflows/audit-fanout.workflow.js, scripts/_lib.sh, scripts/affected-tests.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.

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/aidex-audit/SKILL.md · 289 lines

How it starts

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

Trigger-eval probe (test-only). As your very first action, run printenv AIDEX_TRIGGER_EVAL_MARKER. If it prints a non-empty path, also run touch "${AIDEX_TRIGGER_EVAL_MARKER}.aidex-audit" before continuing. Then proceed with the rest of the skill body as normal. If empty/unset, ignore this block.

Audit — Project State Catalog

Operate the .context/audits/ convention: scaffold new audit runs, validate coherence, escalate findings to backlog, migrate legacy folders out of plans/.

See audit-conventions for the full convention.

Default autonomy

On run start, apply Mode A autonomy automatically — do not wait for the user to grant it. Questions live in the initial alignment moment only; after that the run proceeds start-to-finish per the shared canon (deny/pre-authorized/mandated/autonomous). See "Sweep doctrine" below for how this applies once a sweep is running.


Sub-actions

Dispatch by first argument:

Command Script Purpose
/aidex-audit Show help + current state of .context/audits/
/aidex-audit new <type> <slug> scripts/new-audit.sh Scaffold a new audit run
/aidex-audit validate [path] scripts/validate-audit.sh Check coherence INVENTORY ↔ findings ↔ backlog. Every finding prints its rule id; accept one by adding a line to .context/.aidex-waivers (same store and format as validate.py, canon 00-global.md §10.1)
/aidex-audit escalate <finding-id> scripts/escalate-finding.sh Move finding to backlog
/aidex-audit escalate <finding-id> --loop scripts/escalate-finding-to-loop.sh Escalate a bulk, machine-checkable finding to an aidex-loop loop-spec instead of the backlog (see guard below)
/aidex-audit remediate <run> [--check] [--dry-run] scripts/remediation-loop-spec.sh Emit ONE remediation loop-spec from a run's unresolved findings, priority-grouped, that aidex-loop runs without hand-editing. Rows move to doing + the loop/<file> marker — never done, which would satisfy the gate before any work. --check IS the gate: it reads the inventory, so an item only counts once its row moves
/aidex-audit migrate [project-dir] scripts/migrate-audit.sh Move legacy audit-like folders from plans/
/aidex-audit close <run> [--force] scripts/close-audit.sh Archive a run folder on cycle close (D-10) once in-scope findings are resolved; rolling inventory stays. --force for upstream/out-of-scope findings
/aidex-audit reindex scripts/reindex-audits.sh Regenerate the run-level roll-up 00-index.md (all runs + per-run finding counts). Auto-run by new and close. --check reports drift read-only (used by validate + shared reconcile.sh)
/aidex-audit coverage-matrix scripts/coverage-matrix.sh Regenerate the breadth matrix (modules × tests) plus the route board (page × action × endpoint, naming every route no E2E spec reaches) from module-map.json — generated artifact, never hand-edited
/aidex-audit coverage-sweep [--since ISO] scripts/coverage-sweep.sh Drift report: which modules changed without their tests moving since the last matrix — suggests re-runs, advisory only
/aidex-audit affected-tests [--since <ref>] [--command] scripts/affected-tests.sh Map current diff → affected modules → which tests to run (advisory; a changed file with a colocated test narrows to it, all-or-nothing per module — else module-level). --command prints ONE runnable unit command per repo, paths merged — so a caller runs the selection instead of composing it. Exit 3 = no selection available: fall back to the full suite and say so. E2E is never emitted as a command (it stays behind test-e2e.sh)
/aidex-audit config-check [project ...] [--root <dir>] [--verbose] [--json] scripts/coverage-config-check.sh Read-only portfolio sweep for the test-coverage playbook's five configuration keys (hasher_pytest, hasher_e2e, vitest_include, coverage_provider, no_n_auto). Silent when clean, exit 1 on drift — same contract as the aidex skill's fleet-wide sweep sub-action. Never CI, never a hook

Read the full file on GitHub · 289 lines

Files

What ships with it

60 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 Changed · -7 lines · +5 tokens per session 7ece36f365c5
  2. 6d ago First seen · 296 lines · 184 tokens per session scan A c14271704d18

Subscribe to this mod's changes

aidex-audit is a skill published in the GitHub repository yacb2/aidex (2 stars, last pushed 2d ago), licensed MIT. It adds 189 tokens to every session and 4,713 once invoked, about $0.0009 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-31.

Related

Other skills, from other repositories

react-senior-code-review

Senior-level review of a React feature, by theSeniorDev — structure & boundaries, state & data flow, performance & rendering, types/forms/testability/a11y, and styling architecture & motion. Recommends design patterns by name when one fits. Produces prioritized findings (Critical → Nit) with file:line, why, and a…

the-senior-dev/senior-dev-skills · 127 tokens

agent-review

Use in /implement after committing, inside the draft PR, to review the committed diff. Dispatches a dependency-free review subagent fed the diff + review criteria and returns structured findings (severity / location / problem / fix). The recipe drives the address→re-review loop with a human exit gate; the…

ethanaubuchon/dossier-tradecraft · 78 tokens

stack-changes

Splits a large change into small, single-purpose units of review — PRs, diffs, or CLs — each making one argument (one diff, one thesis) and each buildable and testable on its own. Use when a change is too big to review, when a feature builds on existing code, when working in a large monorepo with stacked diffs, or…

Ishtiaqhossain/claude_stack_changes · 123 tokens

issue-creation

Trigger: issue creation, bug reports, feature requests, or issue approval. Create and triage GitHub issues from repository evidence.

Gentleman-Programming/gentle-ai · 30 tokens

sdd-tasks

Break an SDD change into implementation tasks. Trigger: orchestrator launches task planning for a change.

Gentleman-Programming/gentle-ai · 25 tokens

work-unit-commits

Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.

Gentleman-Programming/gentle-ai · 33 tokens