SKILLSTRADE
ENGINEERINGv2.0.1Trial available

Anchor Pre-Audit Sweep

Finds the account-validation bugs an auditor bills you to find, before you commission the audit

License price
$29
2.13M $SKILLS
commercial

What it does

Updated 2026-08-17

Audit findings cluster. A large share of what a Solana audit returns is the same handful of missing checks: an authority typed AccountInfo instead of Signer, a token account whose owner is never constrained, PDA seeds that scope to a constant instead of a user, arithmetic running unchecked because nobody set overflow-checks in the release profile.

Those are mechanical to look for and expensive to be told. This sweeps the whole programs tree for them and returns a table with severity, file:line, and — the part that decides whether anything gets fixed — what a caller actually gains from each one. "Missing signer check" is a category. "Any caller can set the fee recipient to their own account" is a finding.

It enumerates the full surface first and refuses to sample, because a missing check is invisible in the file you did not open. Two sections are mandatory in the output: what could not be reached, and what is out of scope by design. A sweep that quietly skipped the CPI review reads identical to one that found nothing there.

This does not replace an audit. It clears the floor so the audit spends its time on your design instead of your boilerplate. Ships with the check catalogue as CSV for CI, and a shell script that enumerates the surface.

The file itself

First 26 lines
SKILL.mdsha256 8d842b57ffbf… · 6.5 KB
---
name: anchor-preaudit-sweep
description: Sweeps a Solana Anchor program for the account-validation bugs auditors find first — missing signer checks, unverified ownership, colliding PDA seeds, unchecked token math — and returns a findings table with severity and file:line.
---

# Anchor pre-audit sweep

## When to use this skill

The operator is about to commission an audit of a Solana program, has just
finished a feature and wants a second pass, or asks what an auditor will find.
Run it against the whole `programs/` tree, not a file the operator picked —
the bugs below live in the instructions nobody thought were interesting.

## What this is not

This does not replace an audit. It finds the class of bug that is mechanical to
look for: the check that is absent. It will not find a flaw in your economic
design, a bug that needs two instructions composed in an unusual order, or
anything that depends on how a client sequences calls. Say that in the summary
so nobody treats a clean run as a clean bill of health.

## 0. Establish the surface

Before reading any logic, enumerate:


[ ... REMAINDER SEALED — 125 LINES WITHHELD ... ]
The rest unlocks on purchase
Bundle · 3 files
SKILL.mdmd6.5 KB
references/checks.csvcsv2.1 KB
references/collect-surface.shsh1.7 KB

Try it first

One free run per wallet
Sandbox · no tools · no network · payload sealedReady

Read, Grep, Glob, Bash are not available in the sandbox — the run says where it would use them instead of pretending to.

One free run · costs you $0.00
Connect a wallet to claim your free evaluation run.
One run per wallet per skill. No charge, no transaction.
Elapsed
Tokens in
Tokens out
Charged
$0.00

Compatibility

Runs on
  • CLAUDE-CODE
  • AGENT-SDK
Tools it calls
  • Read
  • Grep
  • Glob
  • Bash
You supply
  • An Anchor workspace checked out locally
  • Rust toolchain, to confirm the release profile

What buyers say

No reviews yet