Skip to content
Skill

Chain construct

Builds and proves multi-step exploit chains from weak bug-bounty findings

Chain construct 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

Chain construct guides an agent through turning several individually low-severity observations into a single attack chain that ends in a demonstrated impact, such as remote code execution, authentication bypass, privilege escalation or account takeover, funds theft, or private data exposure. The workflow starts by fixing the objective as a checkable end-state predicate, then identifies the first input an attacker controls, lists candidate links with their state changes and preconditions, orders them so each link's output satisfies the next, and keeps the shortest chain that reaches the goal.

The skill insists on proof rather than assertion. The agent is asked to write a runnable reproduction that executes the chain end to end and asserts the objective on the final state, and to document every environmental precondition such as specific state, available funds, time deltas or fork block numbers. Attacker-unreachable assumptions like compromised admin keys are treated as out of scope. Domain-specific variants exist for narrower areas, such as smart contracts.

The skill is written for security specialists working on bug bounty programs and expects a set of findings or leads as input, along with the ability to run tests or harnesses in the target environment. It is a generic method, so the tooling depends on the target codebase.

When your agent uses it

Use when a single bug-bounty observation is too weak to pay out but several low-severity leads might compose: turn individually-inert findings into one demonstrated exploit chain whose end state proves realized impact (RCE, auth-bypass, privilege-escalation/ATO, funds theft, private-data). Not for a finding that already reaches impact in one step.

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 (4 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 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 &&
cp -R "$tmp/.agents/skills/chain-construct" ~/.claude/skills/chain-construct &&
rm -rf "$tmp"

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

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/chain-construct 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 &&
cp -R "$tmp/.agents/skills/chain-construct" ~/.agents/skills/chain-construct &&
rm -rf "$tmp"

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

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/chain-construct 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 &&
cp -R "$tmp/.agents/skills/chain-construct" ~/.cursor/skills/chain-construct &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/chain-construct 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

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

Gemini CLI docs on skills

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

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 &&
cp -R "$tmp/.agents/skills/chain-construct" ~/.copilot/skills/chain-construct &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/chain-construct 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 into your agent's skills folder as chain-construct. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

End-state objective
Defines the impact to prove as a checkable predicate on the final system state.
Chain head mapping
Identifies the first input or entry point the attacker actually controls.
Link ordering
Orders candidate weaknesses so each link's output satisfies the next link's precondition.
Minimal chain search
Favors the shortest sequence of links that still reaches the stated objective.
Reproduction requirement
Requires a runnable test or harness that executes the chain and asserts the impact.
Precondition documentation
Records environmental conditions such as state, funds, timing or fork block needed for the chain.

Good for

  • Combine two low-severity info leaks into an account takeover path
  • Check whether several minor misconfigurations chain into privilege escalation
  • Build a reproducible test showing a multi-step authentication bypass
  • Assess whether leaked private data can be reached through a sequence of weak endpoints

Chain construct FAQ

When should Chain construct be used?

When a single bug-bounty observation is too weak to pay out but several low-severity leads might compose into a payout-class impact. It is not meant for findings that already reach impact in one step.

Does Chain construct run any scripts or tools?

The skill ships no scripts. It asks the agent to author its own runnable reproduction of the chain.

What counts as a valid chain?

Only a chain whose final state satisfies the stated objective predicate counts. A reachable intermediate step alone is not treated as impact, and a theoretical chain is a lead until its reproduction passes.

Are attacker-unreachable preconditions allowed?

No. Assumptions such as admin keys or a compromised operator are excluded because an attacker cannot normally establish them.

How do I install Chain construct in Claude Code?

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

Does Chain construct 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?

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?

The closest alternatives to Chain construct are Chain construct smart contract, Systematic attacking, Systematic bug hunting, Attack path stitcher and Coordination.

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