Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add keep-starknet-strange/starknet-agentic --skill cairo-auditorgit clone --depth 1 https://github.com/keep-starknet-strange/starknet-agenticWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/keep-starknet-strange/starknet-agentic/cairo-auditor)<a href="https://agentmods.dev/skills/keep-starknet-strange/starknet-agentic/cairo-auditor"><img src="https://agentmods.dev/badge/skills/keep-starknet-strange/starknet-agentic/cairo-auditor/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/keep-starknet-strange/starknet-agentic/cairo-auditor"><img src="https://agentmods.dev/badge/skills/keep-starknet-strange/starknet-agentic/cairo-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 5 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high System Prompt Leakage · line 450 Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.Fix: Remove any instructions that reveal, print, or output system prompts or internal rules. System instructions should never be exposed to end users.
- medium Data Exfiltration · line 106 Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
- medium Privilege Escalation · line 153 Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
- medium Privilege Escalation · line 160 Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
- medium Privilege Escalation · line 173 Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.06786 |
| Opus 5 | $0.00023 | $0.03393 |
| Sonnet 5 | $0.00009 | $0.01357 |
| Haiku 4.5 | $0.00005 | $0.00679 |
Grade A, and why
cairo-auditor scanned grade A with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootlowPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- Otherwise create one with `mktemp -d "${TMPDIR:-/tmp}/cairo-auditor.XXXXXX"` and `chmod 700`. Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- `command -v curl` must succeed, and How it starts
The opening of the file, as written. The whole thing — 460 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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
- Deep flow: workflows/deep.md
- Structured findings: references/structured-findings.md
- Report schema: references/report-formatting.md
Starknet.js Examples
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-scope file discovery produced zero files | Re-run with explicit filenames and verify exclude rules did not hide target contracts. |
CAUD-002 |
Preflight scan failed or unavailable | Run python3 "{skill_root}/scripts/quality/audit_local_repo.py" manually and attach output to the audit context. |
CAUD-003 |
Agent bundle generation failed | Rebuild {workdir}/cairo-audit-agent-*-bundle.md and confirm each bundle has non-zero line count. |
CAUD-004 |
Conflicting findings across agents | Keep the highest-confidence root cause, then request a focused re-run on the disputed file. |
CAUD-005 |
Report includes only low-confidence items | Re-run deep mode with the host-specific cairo-auditor entrypoint (for example, /starknet-agentic-skills:cairo-auditor deep in Claude Code) and add deterministic checks from Semgrep/audit findings. |
CAUD-006 |
Deep mode requested but specialist agents unavailable | Re-run in an environment with Agent tool support. Where fail-closed enforcement is enabled, --allow-degraded explicitly permits fallback. |
CAUD-007 |
Deep mode host capability preflight failed | For hosts with preflight enforcement enabled, surface remediation and stop before findings unless --allow-degraded is explicitly present. |
CAUD-008 |
Agent transport instability or stalled specialist completion | Retry failed/stalled specialists once. In hosts with deep-mode enforcement enabled, unresolved specialist outages are treated as fail-closed unless explicitly degraded. |
CAUD-009 |
Strict-model requirement could not be satisfied | Re-run on a host that supports required models, or omit --strict-models to allow documented fallback. |
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .claude-plugin/plugin.json 628 B
- agents/adversarial.md 3.6 KB
- agents/openai.yaml 314 B
- agents/vector-scan.md 3.8 KB
- assets/cairo-auditor-report-preview.svg 7.2 KB
- README.md 23 KB
- references/attack-vectors/attack-vectors-1.md 11 KB
- references/attack-vectors/attack-vectors-2.md 11 KB
- references/attack-vectors/attack-vectors-3.md 10 KB
- references/attack-vectors/attack-vectors-4.md 12 KB
- references/audit-findings/cairo-security-gap-diff.md 2.8 KB
- references/audit-findings/README.md 321 B
- references/audit-findings/source-cairo-security-import.md 86 KB
- references/checklists/release-gate.md 410 B
- references/finding.schema.json 2.6 KB
- references/judging.md 3.2 KB
- references/README.md 508 B
- references/report-formatting.md 11 KB
- references/semgrep/README.md 1015 B
- references/semgrep/rules/access-upgrade.yaml 5.7 KB
- references/semgrep/rules/external-calls.yaml 5.8 KB
- references/semgrep/rules/math-economic.yaml 5.2 KB
- references/semgrep/rules/storage-trust.yaml 5.4 KB
- references/structured-findings.md 2.2 KB
- references/threat-intel-sources.md 1.8 KB
- references/vulnerability-db/AA-SELF-CALL-SESSION.md 950 B
- references/vulnerability-db/CEI-VIOLATION-ERC1155.md 987 B
- references/vulnerability-db/COMMENTED-OUT-ACCESS-CONTROL.md 730 B
- references/vulnerability-db/CONSTRUCTOR-DEAD-PARAM.md 924 B
- references/vulnerability-db/CRITICAL-ADDRESS-INIT-WITHOUT-NONZERO-GUARD.md 931 B
- references/vulnerability-db/FEES-RECIPIENT-ZERO-DOS.md 936 B
- references/vulnerability-db/IMMEDIATE-UPGRADE-WITHOUT-TIMELOCK.md 1005 B
- references/vulnerability-db/INCORRECT-LIST-REMOVAL.md 2.4 KB
- references/vulnerability-db/IRREVOCABLE-ADMIN.md 1.0 KB
- references/vulnerability-db/MISSING-FEE-BOUNDS.md 1.1 KB
- references/vulnerability-db/NO-ACCESS-CONTROL-MUTATION.md 983 B
- references/vulnerability-db/ONE-SHOT-REGISTRATION.md 1.2 KB
- references/vulnerability-db/OVERLY-RESTRICTIVE-VALIDATION.md 820 B
- references/vulnerability-db/PRECISION-LOSS.md 995 B
- references/vulnerability-db/README.md 2.0 KB
- references/vulnerability-db/SHUTDOWN-OVERRIDE-PRECEDENCE.md 993 B
- references/vulnerability-db/SILENT-NO-OP.md 783 B
- references/vulnerability-db/STALE-SNAPSHOT-READ.md 806 B
- references/vulnerability-db/STALE-STATE-WRITE.md 862 B
- references/vulnerability-db/SYSCALL-SELECTOR-FALLBACK-ASSUMPTION.md 937 B
- references/vulnerability-db/UNBOUNDED-LOOP.md 770 B
- references/vulnerability-db/UNCHECKED-FEE-BOUND.md 1017 B
- references/vulnerability-db/UNEXPECTED-ACCESS-CONTROL.md 843 B
- references/vulnerability-db/UNPROTECTED-INITIALIZER.md 823 B
- references/vulnerability-db/UNSAFE-ADMIN-TRANSFER.md 900 B
- references/vulnerability-db/UNSAFE-TYPE-CONVERSION.md 761 B
- references/vulnerability-db/UNVALIDATED-ORACLE-PRICES.md 859 B
- references/vulnerability-db/UPGRADE-CLASS-HASH-WITHOUT-NONZERO-GUARD.md 853 B
- references/vulnerability-db/WRONG-PARAMETER-USAGE.md 715 B
- scripts/doctor.sh 3.3 KB runs code
- scripts/quality/audit_local_repo.py 16 KB runs code
- scripts/quality/deep_integrity.py 9.4 KB runs code
- scripts/quality/detector_bridge.py 5.9 KB runs code
- scripts/quality/structured_report.py 24 KB runs code
- scripts/quality/surface_map.py 8.7 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 460 lines · 47 tokens per session scan A 220d4e18c4ae
cairo-auditor is a skill published in the GitHub repository keep-starknet-strange/starknet-agentic (80 stars, last pushed 2d ago), licensed MIT. It adds 47 tokens to every session and 6,786 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
Cairo — StarkNet Smart Contract Reference
Use when writing Cairo smart contracts for StarkNet, looking up syntax and types, defining storage and events, generating contract templates, or reviewing test patterns.
evm
Read-only EVM client: wallets, tokens, gas across 8 chains.
hyperliquid
Hyperliquid market data, account history, trade review.
solana
Query Solana wallets, tokens, txs, and NFTs in USD.
analyzing-ethereum-smart-contract-vulnerabilities
Perform static and symbolic analysis of Solidity smart contracts using Slither and Mythril to detect reentrancy, integer overflow, access control, and other vulnerability classes before deployment to Ethereum mainnet.
mpp-agent
Pay HTTP 402 APIs via Machine Payments Protocol (MPP).