sc-audit

sc-audit is a skill for Claude Code from OneDro1d/dark-factory. It costs 102 tokens per session (1,995 once invoked), scanned A, original, Apache-2.0.

A security review method for smart contracts: programs that manage rules and assets on a blockchain. It examines Solidity, Vyper, and Rust/Anchor contracts for exploitable flaws.

In plain words
What is it for?
Use it to audit contracts, review pull requests, investigate reentrancy and access-control issues, and assess attacks involving transaction ordering, economics, or price oracles.
Why use it?
Smart-contract bugs can let attackers bypass permissions, withdraw assets, manipulate prices, or interfere with execution. This method provides a structured way to look for those risks.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to audit contracts, review pull requests, investigate reentrancy and access-control issues, and assess attacks involving transaction ordering, economics, or price oracles.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/onedro1d/dark-factory/sc-audit
Install

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.

Any agent
npx skills add OneDro1d/dark-factory --skill sc-audit
Clone the repo
git clone --depth 1 https://github.com/OneDro1d/dark-factory

Made for: Claude Code.

Wrote 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.

agentmods badge for sc-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/onedro1d/dark-factory/sc-audit/github.svg)](https://agentmods.dev/skills/onedro1d/dark-factory/sc-audit)
Your own site
<a href="https://agentmods.dev/skills/onedro1d/dark-factory/sc-audit"><img src="https://agentmods.dev/badge/skills/onedro1d/dark-factory/sc-audit/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.

agentmods 80×15 button for sc-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/onedro1d/dark-factory/sc-audit"><img src="https://agentmods.dev/badge/skills/onedro1d/dark-factory/sc-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,995 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00102 $0.01995
Opus 5.5 $0.00041 $0.00798
Sonnet 5.5 $0.00020 $0.00399
Haiku 4.5 $0.00010 $0.00199

Measured 3mo ago against content hash c857a4399de5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sc-audit scanned grade A with 0 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 3mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/sc-audit/SKILL.md · 212 lines

How it starts

The opening of the file, as written. The whole thing — 212 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a Smart Contract Security Auditor. Be skeptical, methodical, and evidence-driven. Optimize for finding real exploitable issues and communicating them clearly with actionable fixes.

Treat $ARGUMENTS as the audit scope (files, modules, or PR). If unclear, infer likely scope and state assumptions.

Audit Methodology (Tight Loop)

  1. Detect Stack & Layout — do this before scoping, not after.

    Framework Indicators
    Foundry foundry.toml, src/, forge
    Hardhat hardhat.config.js/ts, contracts/
    Truffle truffle-config.js, migrations/
    Anchor (Rust) Anchor.toml, programs/
    Vyper .vy files

    The rest of this skill's tooling section assumes Foundry. That assumption is usually right and occasionally wrong, and when it is wrong every later command fails for a reason that looks like a broken repo rather than a wrong toolchain. Detect first, then read the tooling section as the Foundry case rather than the only case.

  2. Scope & Assumptions

    • In-scope contracts, deployment model, privileged actors, upgradeability, dependencies.
    • Threat model: attacker capabilities, trust boundaries, external integrations (oracles, bridges, tokens).
  3. Architecture Pass

    • Identify assets, invariants, entrypoints, admin powers, upgrade paths, pausing, emergency controls.
  4. Attack Surface Mapping

    • External/public functions, callbacks (ERC777/721 hooks), receive/fallback, delegatecalls, external protocols.
  5. Deep Dives by Category

    • Access control, accounting, auth/signatures, reentrancy, oracle manipulation, MEV, DoS/griefing, upgrade safety.
  6. Exploit Confirmation

    • For each suspected issue: build a minimal PoC scenario, transaction sequence, and expected outcome.
  7. Fix Validation

    • Review patch correctness; ensure it doesn't introduce new issues; add regression tests.
  8. Report

    • Concise executive summary + prioritized findings with reproduction and remediation.

Read the full file on GitHub · 212 lines

Files

What ships with it

4 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.

Changes

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.

  1. 3mo ago First seen · 212 lines · 102 tokens per session scan A c857a4399de5

Subscribe to this mod's changes

sc-audit is a skill published in the GitHub repository OneDro1d/dark-factory (3 stars, last pushed 2d ago), licensed Apache-2.0. It adds 102 tokens to every session and 1,995 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

sc-audit compared with skills from other repositories

sc-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sc-auditOneDro1d/dark-factorySkill32d agoApache-2.0A102Claude Code
signature-replayPurpleAILAB/DecepticonSkill6.9k11d agoApache-2.0A31Claude Code, Codex
official-sui-skillsMystenLabs/suiSkill7.8ktodayApache-2.0A116Claude Code, Codex
bridgealsk1992/CloddsBotSkill3.1k17d agoMITA13Claude Code, Codex
onchainkitalsk1992/CloddsBotSkill3.1k17d agoMITA24Claude Code, Codex
marginfialsk1992/CloddsBotSkill3.1k17d agoMITA11Claude Code, Codex
devtools-event-clientTanStack/devtoolsSkill519todayMITA79Claude Code, Codex