More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Solidity Contract Check

    1

    This skill finds those and nine other Solidity mistakes before you deploy, and tells you how to fix each one.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Solidity Contract Check

    Solidity Contract Check

    Example session with this skill installed

    Check this project with solidity-contract-check.

    • Read your context and instructions
    • Compiled the solidity contract check

    $ python3 scripts/check_solidity.py examples/risky
    BLOCK src/EtherBank.sol:26 SC05 STATE_WRITTEN_AFTER_EXTERNAL_CALL
    (bool ok, ) = msg.sender.call{value: amount}("");
    Why: A public or external function sends ETH or makes a low-level call (.call{value: ...}(...), .call(...), the old .call.value(...)(), Address.sendValue or functionCallWithValue) and writes a state variable after it, with no nonReentrant modifier. The receiving contract can call back in before the state is updated and repeat the withdrawal (reentrancy, SWC-107, the bug behind The DAO hack).
    Safer: Follow checks-effects-interactions: update balances and other state before the call. Add OpenZeppelin ReentrancyGuard (nonReentrant) to functions that move value, or use pull payments.

    BLOCK src/EtherBank.sol:41 SC01 TX_ORIGIN_AUTH
    BLOCK src/WalletProxy.sol:12 SC04 UNPROTECTED_INITIALIZER_OR_UPGRADE
    BLOCK src/WalletProxy.sol:18 SC02 DELEGATECALL_TO_CALLER_ADDRESS
    BLOCK src/WalletProxy.sol:30 SC03 UNPROTECTED_SELFDESTRUCT
    REVIEW src/EtherBank.sol:2 SC11 FLOATING_PRAGMA
    REVIEW src/EtherBank.sol:37 SC12 UNCHECKED_CALL_RESULT
    REVIEW src/LegacyToken.sol:2 SC11 FLOATING_PRAGMA
    REVIEW src/LegacyToken.sol:2 SC14 OLD_COMPILER_UNCHECKED_MATH
    REVIEW src/LegacyToken.sol:22 SC15 ADMIN_FUNCTION_WITHOUT_ACCESS_CONTROL
    REVIEW src/LegacyToken.sol:37 SC16 ECRECOVER_WITHOUT_ZERO_CHECK
    REVIEW src/Lottery.sol:25 SC15 ADMIN_FUNCTION_WITHOUT_ACCESS_CONTROL
    REVIEW src/Lottery.sol:32 SC13 BLOCK_VALUES_AS_RANDOMNESS

    (Each finding also has Why and Safer lines, as in the first one.)
    Verdict: BLOCK. Checked 5 files, 5 with Solidity content.
    This is a static check of file text. NOT FLAGGED is not a guarantee.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    One (bool ok, ) = msg.sender.call{value: amount}("") placed before balances[msg.sender] = 0, or one initialize() without the initializer modifier, is enough for someone to drain or take over a contract. This skill finds those and nine other Solidity mistakes before you deploy, and tells you how to fix each one. It is not a substitute for a smart contract audit: use it to catch known mistakes early, before an auditor looks at the code.

    Your agent runs a scanner on your .sol files. It skips comments, tests, scripts, mocks and dependencies (node_modules, Foundry lib/, Remix .deps), splits each contract into functions, reads their visibility and modifiers, knows the state variables, and follows parameters into delegatecall. It does not flag ordinary OpenZeppelin patterns: Ownable and AccessControl modifiers, ReentrancyGuard nonReentrant, checks-effects-interactions, SafeERC20, Initializable with initializer, ECDSA.recover and Solidity 0.8 checked math. It never compiles, deploys or runs anything. It returns BLOCK, REVIEW, or NOT FLAGGED, with the file, line, reason, and a safer approach.

    What it checks

    BLOCK

    • SC01: tx.origin used to authorize (require(tx.origin == owner), admins[tx.origin])
    • SC02: delegatecall to an address from the function's parameters or msg.sender, with no access control
    • SC03: selfdestruct that anyone can call
    • SC04: initialize functions without initializer or another guard, and UUPS _authorizeUpgrade without access control
    • SC05: state written after an ETH transfer or low-level call, without nonReentrant (reentrancy)

    REVIEW

    • SC11: floating pragmas (^0.8.20, >=0.8.0) in files with a deployable contract
    • SC12: ignored results of call, delegatecall, staticcall and send
    • SC13: winners, indexes and outcomes picked from block.prevrandao, block.timestamp or blockhash, also through a local variable (time arithmetic such as % 1 weeks is not reported)
    • SC14: compilers before 0.8.0 without SafeMath (silent overflow)
    • SC15: mint, set..., pause, upgrade, sweep and withdraw-all functions without onlyOwner, onlyRole or a msg.sender check
    • SC16: ecrecover without a check against address(0)

    What's included

    • The scanner (Python 3.9+, standard library only)
    • A rules guide with the reason and safer approach for each rule
    • A risky and a safe example Foundry project, and the real report the scanner produces on the risky one

    Limits It reads code as text, not with the Solidity compiler. Inheritance from other files is judged by modifier names, and internal calls, storage pointers, assembly (apart from delegatecall), cross-function and read-only reentrancy, token callbacks, oracle manipulation, front-running and business logic are not checked. It is not a substitute for a smart contract audit. NOT FLAGGED is not a guarantee.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Web3 & Crypto.

    Static check of Solidity text. Inheritance across files, internal calls, assembly and business logic are not analyzed. Not a substitute for a smart contract audit. NOT FLAGGED is not a guarantee.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    Permissions

    Terminal / Shell
    Read Files

    Runs one local Python script in the terminal. It reads your project's files, writes nothing, and makes no network calls. The example Foundry project contains deliberately unsafe sample contracts, with no real addresses or keys, for the scanner to find. They are never compiled, deployed or run.

    Listed5 days ago

    What's inside

    Frequently Asked Questions

    No. The script reads local files only and makes no network calls.

    No. It only reports. Your agent changes files only if you ask it to.

    Any agent that supports SKILL.md skills and can run a terminal command, such as Claude Code. It needs Python 3.9 or newer and nothing else.

    No. It is a static check for common mistakes in .sol files. It never compiles, deploys or calls a contract, and it is not a substitute for an audit.

    BLOCK: fix it before you ship. REVIEW: check it before release. NOT FLAGGED: no rule matched. It is a static check, so NOT FLAGGED is not a guarantee.

    New in Web3 & Crypto