Skip to content
Back to skills

Ai Audit

ASecurity

Score a repo against 8 generic practices (independent review, tests tied to intent, enforced rules, static checks, shared knowledge, small changes, CI, human gate) and list AGENTS.md rules whose `until` date has passed. Read-only. Use for "audita este repo", "cómo vamos con las prácticas de IA", "revisa las reglas vencidas", "ai-audit", "audit this repo", "which rules expired", or as the monthly check.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentspythonrailsgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add sebabottero/ai-setup --skill ai-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ai Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ai Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sebabottero-ai-audit/badge)](https://www.skillsdirectory.com/skills/sebabottero-ai-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ai-audit
description: Score a repo against 8 generic practices (independent review, tests tied to intent, enforced rules, static checks, shared knowledge, small changes, CI, human gate) and list AGENTS.md rules whose `until` date has passed. Read-only. Use for "audita este repo", "cómo vamos con las prácticas de IA", "revisa las reglas vencidas", "ai-audit", "audit this repo", "which rules expired", or as the monthly check.
---

# ai-audit

Read-only scorecard for one repo. It prints to stdout and writes nothing in the repo.

## Run

```
python3 -I {{AI_SETUP}}/core/skills/ai-audit/audit.py <repo> [--today YYYY-MM-DD] [--projects-dir DIR] [--dev-root DIR]
```

| Option | Default | Use |
|---|---|---|
| `--today` | the current date | Date to compare `until` dates with |
| `--projects-dir` | `~/.claude/projects` | Where the session logs live (practice 1) |
| `--dev-root` | env `AI_AUDIT_DEV_ROOT`, else `~/Dev` | Folder with `reviews/<repo>/` and `handoffs/*/criteria.md` |

Redirect the output if you want to keep it (for example into `<dev root>/reviews/`), never into the repo. It does not fix anything.

## Read the scorecard

Columns: `#`, `Practice`, `Score`, `Evidence`. The same 8 practices always appear in this order:

| # | Practice | Looks at |
|---|---|---|
| 1 | Independent review | sessions that called `sub-review` vs all sessions; review reports |
| 2 | Tests tied to intent | a `criteria.md` and test files named after criteria |
| 3 | Enforced rules | `AGENTS.md` rules marked `E:` or `(until YYYY-MM-DD)` |
| 4 | Real static checks | a linter configured and installed; disable comments for a tool that is missing |
| 5 | Shared knowledge | `docs/decisions/*.md` and `AGENTS.md` |
| 6 | Small changes | commits above 400 changed lines |
| 7 | CI covers what matters | `.github/workflows/*` runs tests and e2e |
| 8 | Human gate | first-parent commits on the default branch that came through a PR |

- Score is 1 to 5, or `n/a` when the data is missing (no session logs, no git). `n/a` is not a failure: the evidence column says why.
- Evidence cites `file:line` where a line exists, otherwise a count or a path.
- Scores are heuristics, a conversation starter, not a grade. Read the evidence before acting on a number.
- Rules past their date are listed under the table as `expired: test it or delete it - AGENTS.md:<line>: <rule>`. Turn each one into a test (`E:` rule) or delete it.
- A malformed date (`until 2026-13-45`) is listed as `invalid date: AGENTS.md:<line>: <rule>` and counted in the evidence, never ignored.
- Session logs are matched by the repo folder name as the tail of the project folder; in a git worktree the main repo's name is matched too.

## After the audit

Pick the one or two lowest scores with real evidence and propose a fix as a separate change. A repeated mistake becomes an `E:` rule with a test, or a template change in `core/skills/repo-guardrails/templates/` (see `meta-setup`).

Files in this skill

  • SKILL.md2.9 KB
  • audit.py15.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.