Skip to content
Back to skills

Audit

ASecurity

Audit a whole repository and say what to fix first - map the code, its entry points and data flows, then rank bugs, security holes, data-loss paths, load problems, untested risky logic and code that can be cut, most important first, with a single verdict on where to start. Use when the user says "audit this repo", "what's wrong with this codebase", "where should I start", "health check", "what would break in production", when adopting an existing repository, or before a first release.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgosecurity

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add mohamedbechirkefi/mandatum --skill audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Audit?

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

Security grade badge for Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mohamedbechirkefi-audit/badge)](https://www.skillsdirectory.com/skills/mohamedbechirkefi-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: audit
description: Audit a whole repository and say what to fix first - map the code, its entry points and data flows, then rank bugs, security holes, data-loss paths, load problems, untested risky logic and code that can be cut, most important first, with a single verdict on where to start. Use when the user says "audit this repo", "what's wrong with this codebase", "where should I start", "health check", "what would break in production", when adopting an existing repository, or before a first release.
argument-hint: "[path; default: the whole repository]"
---

# Audit a repository

Scope: $ARGUMENTS (default: every tracked file).

An audit is a review of everything at once, so the risk is breadth without depth: fifty
shallow notes and nothing that would actually page anyone. Map first, then go deep where
the map says it matters.

## 1. Map

- Build the code graph: `mandatum graph build`. Read `.mandatum/graph/GRAPH.md` for the
  hubs (what everything flows through) and the subsystems. If a Graphify graph is
  present (`graphify-out/`), use it as well: it covers more languages and documents.
- Find the entry points: command-line mains, HTTP routes, scheduled jobs, message
  handlers, exported library functions.
- Trace how data moves: where input enters, where it is validated, where it is stored,
  where it leaves.
- State the expected load in one line (users, rows, requests, file sizes), from the
  README, the charter or the configuration. If nothing says, say so and assume small.

## 2. Go deep where the map points

Spend most of the time on the hubs, the entry points and the paths that touch stored
data, money, permissions or user input. Apply the checks of `/mandatum:review` there:
correctness, breakage between modules, security, data loss, real load, missing tests,
code to cut. Run the tests and the linters the project already has, and report what they
say.

## 3. Rank and report

Write the findings to `.mandatum/sheets/audit-<date>.md` and summarise them in the reply.

- **Must fix:** wrong results, data loss, security holes, crashes on input the project
  really receives.
- **Should fix:** risky logic without tests, load problems at the expected scale,
  fragile coupling between subsystems.
- **Nice to have:** code to cut, simplifications, naming.

Each finding: `file:line`, what the code does, what goes wrong and when, the smallest
fix, and what happens if it is left. Count only what you read; never estimate the number
of problems in code you did not open.

End with **one verdict**: the single finding to fix first, and why that one. Then list
what the audit did not cover.

Fixes are not part of the audit. Each one goes through `/mandatum:build` with its own
check, and a finding that needs the owner (a release, a deletion, a cost) goes to the
gate ledger.

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.