agentleFS
gurinderugurinderu/craft/skills/audit/SKILL.md

audit

Skill1 starsChanged 41 days agoMITView on GitHub

Audit a whole project in any language — every git-tracked file of the checkout as it stands, not a diff — through the `craft:audit` workflow (`craft audit start | submit | status`): each file to its profile (Rust, Nix, SQL, general), batches of whole files under a byte budget, every Medium-and-above finding verified, one report with a verdict. No sampling: what the budget did not buy or what failed is counted unread (unread.txt), the verdict INCOMPLETE, and run= reads just that. Posts nothing to a PR or issues; findings go to addressing-findings. Needs Claude Code's Workflow tool (not in Codex, OpenCode or a subagent): main session only. Use for code no diff review ever read — a release, a repository taken over, a part of a project (path=). Triggers: audit the repo, full audit, audit the whole project, audit this codebase, аудит проекта. Not for a diff or a PR (the review workflow); Miri, cargo-audit, semver or unused crates of a Rust crate stay with rust-audit for now.

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use delight, teach-impeccable and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • HK-hubSkill

    delight

    Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful. Use when the user asks to add polish, personality, animations, micro-interactions, delight, or make an interface feel fun or memorable.

    Also in 32 projects that use this

  • HK-hubSkill

    teach-impeccable

    One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

    Also in 20 projects that use this

  • zwy123zwySkill

    normalize

    将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。

    Also in 19 projects that use this

  • ww-w-aiSkill

    qa-phase

    Run QA tests at various levels (L1-L5) for features under PDCA management. Integrates with MCP tools to execute structured test plans.

    Also in 3 projects that use this

  • SkillPilotCHSkill

    level-up

    Eine Automatisierung pro Woche finden, scopen, shippen. Output landet als proposed-Eintrag in cadence.md mit konkreten Implementations-Schritten.

    Also in 13 projects that use this

  • +7 more from HK-hub

The file

Files
SKILL.md

audit — the whole project, as it stands

A review reads a diff; the audit reads the code. It asks the craft binary to list the repository's git-tracked files (or those under the paths you give), hands each to the language profile the review would (Rust, Nix, SQL, or the general lenses for any other language), cuts each profile's files into batches of whole files, and runs each lens that judges code as it stands over each batch. Every finding at Medium and above is verified before it counts; Low and Info are held apart, unverified. Severity is held by the finding's harm alone — there is no "outside the diff" here: every finding is about the code as it is.

When to use

  • The whole project, or a part of it, was never read by a review — a repository you take over, code before a release, a module nobody has looked at in a long time.
  • Any language: one audit covers every profile the project's files fall under, in one run.
  • Not for a change: a branch or a PR goes to the craft:review workflow, which reads the diff and builds on earlier rounds.
  • Not yet for the Rust-only dimensions — Miri, cargo-audit/deny/geiger, semver, unused crates, the build matrix, inter-crate contracts: those stay with the craft:rust-audit workflow until the audit carries them. Run both when you need both.

Launch

The main session launches the craft:audit workflow: it needs Claude Code's Workflow tool, which a subagent, Codex and OpenCode do not have. Its arguments, all optional:

ArgumentWhat it does
pathOne path from the repository root, or a list (path=["src","lib"]): only the tracked files under them. Literal, no glob, no ... A path that holds no tracked file is refused, so a typo never reads as a clean audit. Absent: the whole project.
batchBytesThe bytes of whole files one lens agent reads at most (default 150000); a larger file is read alone.
lensAgentsThe lens agents one pass buys at most, in order. Absent: one of each lens over each batch. The rest is counted unread, never sampled away.
repoThe absolute path of the checkout to audit; default the session's.
runThe absolute path of a run directory, alone: goes on with that audit (see below).
craftBin, craftRootA local craft build and plugin root, for working on craft itself.

An argument it does not take, a start argument beside run, or a budget that is not a positive whole number is refused before anything runs. On a large project, set lensAgents to what you are willing to spend on one pass: the audit reads what it bought, names the rest, and the next pass reads it.

Reading the result

The workflow returns an ## Audit block — the verdict, the absolute path of report.md, and the counts: unread (files no answered lens read), unjudged (findings whose verifier died) and unverifiedLow (Low and Info findings held apart). Read the report from its file; never ask the workflow to copy it. Beside it, in the run directory:

  • report.md — the findings by severity, the ## Verdict block, and per profile the lenses the audit did not run.
  • unread.txt — the files left unread, one a line, present only when there are any.
  • unverified.md — the Low and Info findings no verifier checked.

The verdict is Block on a confirmed Critical or High, Warning on a confirmed Medium, Approve otherwise — and INCOMPLETE in place of Approve (or beside a red verdict) while any file is unread or any finding unjudged. An INCOMPLETE audit is not a clean one: say so, and go on with it.

Going on with a run

Launch craft:audit with run=<the run directory> and nothing else. It does what the run needs:

  • a run stopped on the account's usage limit, or interrupted, goes on where it stood;
  • a finished pass that left files unread or findings unjudged opens a new pass over just those;
  • a finished pass whose record did not land files it again.

Each finished pass files one run record of the whole audit at that point.

The findings

The audit posts nothing — no PR comment, no issue. To work its findings, load craft:addressing-findings and hand it report.md as the triage's report. There is no PR, so leave pr and prBase out: no audit finding belongs to a PR, and whether each accepted one becomes an issue or a fix in a branch of its own is decided there, with you.

Once the workflow run has ended (completed, failed or stopped — not while you may still resume it), fold its real cost into the records it filed: sh "<this skill's base directory>/../../integrations/shared/craft-cli.sh" runs enrich-cost --run-id <wf_…>, with the run id the Workflow completion names. Best-effort: if it fails, say so in one line and go on. If the workflow fails with at workflow.js:<line>:<column>, that place is in the bundled engine: node "<this skill's base directory>/../../integrations/shared/engine-source-map.mjs" audit workflow.js:<line>:<column> gives it in the plugin's source.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.