Chain Builder

Chain Builder is a skill for Claude Code, Codex from eddiebelaval/squire. It costs 13 tokens per session (2,942 once invoked), scanned A, original, MIT.

A tool for breaking a complex request into a series of connected prompts, where each step passes its result to the next. This is useful when one large request is easier to handle as several smaller stages.

In plain words
What is it for?
Use it to design workflows such as research followed by analysis and formatting, or planning followed by implementation and review.
Why use it?
It helps keep multi-stage work organized and makes it easier to check intermediate results and find where something went wrong.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design workflows such as research followed by analysis and formatting, or planning followed by implementation and review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eddiebelaval/squire/chain-builder
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add eddiebelaval/squire --skill chain-builder
Clone the repo
git clone --depth 1 https://github.com/eddiebelaval/squire

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Chain Builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/eddiebelaval/squire/chain-builder/github.svg)](https://agentmods.dev/skills/eddiebelaval/squire/chain-builder)
Your own site
<a href="https://agentmods.dev/skills/eddiebelaval/squire/chain-builder"><img src="https://agentmods.dev/badge/skills/eddiebelaval/squire/chain-builder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Chain Builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/eddiebelaval/squire/chain-builder"><img src="https://agentmods.dev/badge/skills/eddiebelaval/squire/chain-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,942 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Memory Poisoning · line 168
    Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
    Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.02942
Opus 5.5 $0.00005 $0.01177
Sonnet 5.5 $0.00003 $0.00588
Haiku 4.5 $0.00001 $0.00294

Measured 1mo ago against content hash 0d1bc0ab83bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Chain Builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/chain-builder/SKILL.md · 404 lines

How it starts

The opening of the file, as written. The whole thing — 404 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Chain Builder

The Chain Builder skill helps you design and execute multi-step prompt chains where the output of one prompt becomes the input to the next. This enables complex, multi-stage processing that would be difficult to accomplish in a single prompt, while maintaining clarity, modularity, and debuggability.

This skill guides you through chain design, identifying optimal breakpoints, managing data flow between steps, handling errors, and validating outputs at each stage. It's particularly valuable for tasks that involve multiple distinct phases like research → analysis → synthesis → formatting, or ideation → planning → implementation → review.

Use this skill when you have complex tasks that benefit from sequential processing, when you need intermediate validation between steps, or when different parts of a task require different specialized prompts or tools.

Core Workflows

Workflow 1: Design Prompt Chain from Goal

  1. Clarify the end goal:
    • What's the final output?
    • What quality standards apply?
    • What constraints exist?
  2. Decompose into logical stages:
    • Identify distinct phases
    • Determine stage boundaries
    • Order by dependencies
  3. Design individual prompts:
    • Purpose of each stage
    • Input requirements
    • Output specifications
    • Success criteria
  4. Define data flow:
    • What passes between stages?
    • What format for intermediate outputs?
    • What state is maintained?
  5. Add validation:
    • Checkpoints after each stage
    • Quality gates
    • Error handling
  6. Document the chain:
    • Chain purpose
    • Stage descriptions
    • Data flow diagram
    • Usage examples
  7. Test end-to-end

Workflow 2: Execute Existing Chain

  1. Load chain definition:
    • Read chain specification
    • Understand stages
    • Prepare inputs
  2. Initialize chain state:
    • Set initial inputs
    • Prepare storage for outputs
    • Initialize tracking
  3. Execute each stage sequentially:
    • Run stage prompt
    • Validate output
    • If validation fails: Handle error
    • If validation passes: Continue
    • Store intermediate result
    • Pass output to next stage
  4. Monitor progress:
    • Track current stage
    • Log outputs
    • Report status
  5. Validate final output
  6. Report results and any issues

Read the full file on GitHub · 404 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 404 lines · 13 tokens per session scan A 0d1bc0ab83bf

Subscribe to this mod's changes

Chain Builder is a skill published in the GitHub repository eddiebelaval/squire (21 stars, last pushed 2mo ago), licensed MIT. It adds 13 tokens to every session and 2,942 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.