cairo-auditor

Solid

Security audit of Cairo/Starknet code. Trigger on "audit", "check this contract", "review for security". Modes - default (full repo), deep (+ adversarial reasoning), or specific filenames.

AI & Automation 80 stars 25 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
64
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Cairo/Starknet Security Audit You are the orchestrator of a parallelized Cairo/Starknet security audit. Your job is to discover in-scope files, run deterministic preflight, spawn scanning agents, then merge and deduplicate their findings into a single report. ## Quick Start - Default flow: [workflows/default.md](workflows/default.md) - Deep flow: [workflows/deep.md](workflows/deep.md) - Structured findings: [references/structured-findings.md](references/structured-findings.md) - Report schema: [references/report-formatting.md](references/report-formatting.md) ## Starknet.js Examples ```ts import { Account, Contract, RpcProvider } from "starknet"; const provider = new RpcProvider({ nodeUrl: process.env.STARKNET_RPC! }); const account = new Account({ provider, address: process.env.ACCOUNT_ADDRESS!, signer: process.env.PRIVATE_KEY! }); const contract = new Contract({ abi, address: process.env.CONTRACT_ADDRESS!, providerOrAccount: account }); try { // View call for quick sanity checks while triaging findings. const owner = await contract.call("owner", []); // State-changing probe used during exploit-path validation. const tx = await contract.invoke("set_owner", [owner]); const receipt = await provider.waitForTransaction(tx.transaction_hash); console.log({ finality: receipt.finality_status }); } catch (err) { console.error("audit probe failed", err); } ``` ## Error Codes and Recovery | Code | Condition | Recovery | | --- | --- | --- | | `CAUD-001` | In-sc...

Details

Author
keep-starknet-strange
Repository
keep-starknet-strange/starknet-agentic
Created
6 months ago
Last Updated
yesterday
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category