# Chain construct

> Chain construct is an open-source agent skill for security. Builds and proves multi-step exploit chains from weak bug-bounty findings. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mtarcure/claude-vibe-squad/tree/main/.agents/skills/chain-construct
- **Repository:** https://github.com/mtarcure/claude-vibe-squad
- **GitHub stars:** 227
- **License:** MIT
- **Skill name:** chain-construct
- **Collection:** https://github.com/mtarcure/claude-vibe-squad
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-02

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/chain-construct)
- [License: MIT](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/chain-construct)

## Features

- **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

## Install

### Claude Code

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

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

## Alternatives

- [Chain construct smart contract](https://ai-powered.com/skills/chain-construct-smart-contract): Chain construct smart contract is an open-source agent skill for security.
- [Systematic attacking](https://ai-powered.com/skills/systematic-attacking): Systematic attacking is an open-source agent skill for security.
- [Systematic bug hunting](https://ai-powered.com/skills/systematic-bug-hunting): Systematic bug hunting is an open-source agent skill for security.
- [Attack path stitcher](https://ai-powered.com/skills/attack-path-stitcher): Attack path stitcher is an open-source agent skill for security.
- [Coordination](https://ai-powered.com/skills/coordination): Coordination is an open-source agent skill for security.
- [Blockchain security](https://ai-powered.com/skills/blockchain-security): Blockchain security is an open-source agent skill for security.
- [Dedup prior art check](https://ai-powered.com/skills/dedup-prior-art-check): Dedup prior art check is an open-source agent skill for security.
- [Supply chain audit](https://ai-powered.com/skills/supply-chain-audit): Supply chain audit is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/chain-construct
