ChainSec — Security skill for Claude Code
ChainSec is a multi-chain smart-contract security audit skill pack for AI coding agents like Claude Code, OpenCode, Codex, Antigravity, Hermes, etc. It has one shared audit engine and one pack per.
How to install ChainSec
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open usmananwar11/ChainSec and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What ChainSec does
ChainSec is a multi-chain smart-contract security audit skill pack for AI coding agents like Claude Code, OpenCode, Codex, Antigravity, Hermes, etc. It has one shared audit engine and one pack per chain.
Alternatives in Security
- /web3 Audit — Smart contract security audit using the 10-bug-class methodology 927 ★
- Bountyforge — All-round bug bounty skill for Claude Code parallelized agents for smart contract audits (EVM, Move, Solana, T 399 ★
- Airsec — Find Security Issues in your code by using coding CLIs like Claude, Codex & CommandCode 162 ★
README
ChainSec
Multi-chain smart-contract security audits for AI coding agents (Claude Code, OpenCode, Codex, Antigravity, and other tools that load Agent Skills from a folder).
One audit engine, one pack per chain. Solidity, Starknet Cairo (preview) and Stellar Soroban (preview) today.
What it does
`chainsec-audit` runs a fixed pipeline against your repository:
- Preflight — checks the chain's required/optional tools and stops or degrades gracefully.
- Fact extraction — compiler-based facts via
forge build(Solidity). Regex mode applies whenforge buildfails or there is nofoundry.toml(e.g. Hardhat-only projects);forgeis still required. Soroban: a source parser builds the facts, and a time-limitedcargo checkrecords whether the project compiles. - Deterministic risk scoring — ranks files by risk from the extracted facts.
- Recon — protocol summary, actors, invariants, known issues.
- Detection — an unrestricted Pass 1 sweep, then four parallel lenses (A access/state, B value/economic, C external, D edge/math), a consensus merge, and a Pass 3 "what's missing" sweep.
- Rescan — a further pass over the merged candidates.
- Per-unit deep dives — one focused pass per cluster of units (skipped with
--quick). - State-inconsistency analysis — cross-function/cross-transaction state bugs (skipped with
--quick). - Verification — kill gates A–H plus the Impact Premise, applied to every candidate.
- Code-enforced validation —
scripts/validate-findings.pychecks the verdicts against the finding schema before anything is reported. - Report — a markdown report and a
findings.jsonper chain, merged across chains.
Supported chains
| Chain | Status |
|---|---|
| Solidity | Supported |
| Cairo (Starknet) | Preview: Cairo 1+, benchmark in progress |
| Soroban (Stellar) | Preview: soroban-sdk ≥ 20; smoke test and contest benchmark pending (details) |
Related Skills
Bitcursor Crypto Coding Client
Chain Preflight: smart-contract safety for AI coding agents. Solidity and Anchor rules plus a pre-deploy hook
Apartment Studio
Local-first 2D/3D floor plan & renovation planner with Smart Layout Audit, wall elevations, 4 renovation stage
AncientVoid
The last coding tool you will install — local-first, vendor-neutral command center for coding agents (Claude C
Trailwarden
Local audit trail for coding agents on macOS: Claude Code, Codex, Gemini CLI, opencode, Cursor, GitHub Copilot
POC Or It Didnt Happen Web3
A Web3-only security thinking framework that supercharges any coding agent (Claude Code / Codex / opencode / D
Mizan
Local-first multi-agent control plane & 4-tool stdio SQLite FTS5 MCP hub for Claude Code, Codex, Cursor, OpenC
Related Agents
Paf Reviewer
Runs one phone-a-friend relay or review command in the background and reports back a receipt plus the findings
Agent Of Empires
Claude Code, OpenCode, Mistral Vibe, Codex CLI, Gemini CLI Coding Agent Terminal Session manager via tmux and
Developer Overview
code-container (container) creates isolated Docker environments for AI coding harnesses (Claude Code, OpenCode