Skip to content
Skill

Chain construct smart contract

Builds and reproduces exploit proof-of-concepts for smart contract vulnerabilities

Chain construct smart contract is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
227
Last commit
License
MIT
Listing updated

Similar skills

About Chain construct smart contract

This skill guides an agent through turning a confirmed on-chain vulnerability hypothesis into a passing proof-of-concept. It covers EVM primitives such as reentrancy, flash-loan manipulation, delegatecall overwrites and proxy upgrade bypasses, and Solana primitives such as CPI privilege escalation, account substitution and arithmetic overflow.

The workflow starts by identifying the first externally callable function or instruction the attacker controls, then selects a matching primitive and writes an attacker contract or crafted instruction sequence. The agent is asked to add explicit assertions on the final state so that a passing test demonstrates real impact, and to document the entry point, numbered steps, impact and preconditions as evidence.

The skill expects a Solidity or Rust smart contract codebase and uses native host tools: Forge for EVM tests, including fork testing with a block number, and LiteSVM, Trident or cargo-fuzz for Solana. It also explains how to handle multi-block chains with time and block advancement, and it excludes attacks that depend on compromised admin keys.

When your agent uses it

Use when you have a confirmed on-chain vulnerability hypothesis and must demonstrate it with a passing proof-of-concept — author an attacker contract or crafted instruction sequence for an EVM reentrancy, flash-loan, delegatecall-overwrite, or proxy-upgrade primitive (or a Solana CPI-privilege, account-substitution, or overflow primitive) and reproduce it under Forge, LiteSVM, or Trident.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (6 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/chain-construct-smart-contract to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/chain-construct-smart-contract &&
cp -R "$tmp/.agents/skills/chain-construct-smart-contract" ~/.claude/skills/chain-construct-smart-contract &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/chain-construct-smart-contract inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/chain-construct-smart-contract to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/chain-construct-smart-contract &&
cp -R "$tmp/.agents/skills/chain-construct-smart-contract" ~/.agents/skills/chain-construct-smart-contract &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/chain-construct-smart-contract inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/chain-construct-smart-contract to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/chain-construct-smart-contract &&
cp -R "$tmp/.agents/skills/chain-construct-smart-contract" ~/.cursor/skills/chain-construct-smart-contract &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/chain-construct-smart-contract inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/chain-construct-smart-contract

Or copy the folder to ~/.gemini/skills/chain-construct-smart-contract yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/chain-construct-smart-contract:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/chain-construct-smart-contract &&
cp -R "$tmp/.agents/skills/chain-construct-smart-contract" ~/.copilot/skills/chain-construct-smart-contract &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/chain-construct-smart-contract inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git

Then copy claude-vibe-squad/.agents/skills/chain-construct-smart-contract into your agent's skills folder as chain-construct-smart-contract. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

EVM exploit primitives
Scaffolds for reentrancy, flash-loan, delegatecall-overwrite and proxy-upgrade attack contracts.
Solana exploit primitives
Guidance for CPI privilege escalation, account substitution and token overflow chains.
Forge reproduction tests
Runs attacker contracts under Forge with verbose traces and optional mainnet fork blocks.
Solana test harnesses
Uses LiteSVM, Trident and cargo-fuzz to reproduce instruction-level exploits.
State-based impact gating
Requires assertions on final state so a passing test shows a real demonstrated impact.
Chain documentation
Structures findings as entry point, numbered steps, impact and preconditions.

Good for

  • Reproduce a suspected reentrancy bug in a Solidity vault with a Forge test
  • Write a flash-loan attacker contract that manipulates an oracle price
  • Test whether an unprotected delegatecall lets an attacker overwrite the owner slot
  • Check a Solana instruction for CPI signer-seed abuse using LiteSVM
  • Document an exploit chain with preconditions and a fork block number

Chain construct smart contract FAQ

What tools does Chain construct smart contract need?

It calls native host CLIs directly: forge for EVM, and cargo test with LiteSVM, trident or cargo-fuzz for Solana. Anchor is also listed as a tool.

Does Chain construct smart contract change or deploy anything on mainnet?

It runs tests locally, and for live state it uses forge test with a fork URL and block number rather than submitting transactions.

When should the skill be used?

It is meant for cases where a vulnerability hypothesis is already confirmed and needs a passing proof-of-concept.

Does Chain construct smart contract handle attacks that need compromised admin keys?

No. The skill says such chains are out of scope because the precondition cannot be established by an attacker.

How do I install Chain construct smart contract in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/chain-construct-smart-contract to use it in all your projects, or to .claude/skills/chain-construct-smart-contract in one project.

Does Chain construct smart contract run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Chain construct smart contract?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Chain construct smart contract?

The closest alternatives to Chain construct smart contract are Blockchain security, Chain construct, Solana audit flow, Systematic attacking and Systematic bug hunting.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from mtarcure/claude-vibe-squad

  1. Writes alt text, timed captions and transcripts for images, footage and audio

    • Open source
    • 227 GitHub stars
    • Design and media
  2. Guides building product agent system prompts with eval-backed boundaries and output

    • Open source
    • 227 GitHub stars
    • AI models and LLM tooling
  3. Guides authorized adversarial testing of autonomous LLM agents for injection and approval

    • Open source
    • 227 GitHub stars
    • Security
  4. Writes a typed game-event to audio-cue map that hands adaptive audio designs to engines

    • Open source
    • 227 GitHub stars
    • Developer tools
  5. Generates missing README, CHANGELOG, LICENSE and agent-context files at project delivery

    • Open source
    • 227 GitHub stars
    • Developer tools
  6. Builds and proves multi-step exploit chains from weak bug-bounty findings

    • Open source
    • 227 GitHub stars
    • Security