Skip to content

Design multi-step tool chains with sequential, parallel, conditional, and iterative patterns and explicit data contracts.

CCM score
43 of 100
skills.sh installs
359
GitHub stars
602
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the four chain patterns (sequential, parallel, conditional, iterative) and a per-chain design template listing steps, data flow, error handling, and constraints
  • Includes a validation checklist for schema compatibility, per-step error handling, total timeouts, and loop iteration caps, including handling of partial results
  • Enforces data contracts between connected steps and rejects loops without maximum iteration counts or steps lacking error handling
  • Designed for building multi-step pipelines where a single prompt is not enough, with /fortify and /evaluate as follow-up steps

Install

$ npx -y skills add sharpdeveye/maestro --skill chain -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

MANDATORY PREPARATION

Invoke /agent-workflow — it contains workflow principles, anti-patterns, and the Context Gathering Protocol. Follow the protocol before proceeding — if no workflow context exists yet, you MUST run /teach-maestro first. Consult the tool-orchestration reference in the agent-workflow skill for composition patterns and error handling.


Design tool chains that do complex work reliably. A chain is only as strong as its weakest link.

Chain Patterns

Sequential: A → B → C (each step depends on the previous) Parallel: [A, B, C] → Merge (independent steps run simultaneously) Conditional: A → (if X then B, else C) → D (branching based on results) Iterative: A → Check → (if not done) → A again (loop until convergence)

Chain Design Process

For each chain, define:

## Chain: [Name]

### Steps
1. [Tool A] — [what it does] — Input: [schema] — Output: [schema]
2. [Tool B] — [what it does] — Input: [output of step 1] — Output: [schema]
3. [Tool C] — [what it does] — Input: [output of step 2] — Output: [schema]

### Data Flow
Step 1 output.field_a → Step 2 input.source_data
Step 2 output.results → Step 3 input.items

Details

Repository
github.com/sharpdeveye/maestro
Categories
Agent Workflow & Planning, AI Agents & LLM Apps, Workflow Automation
First seen
Jun 3, 2026

Questions

What does the chain skill do in Claude Code?

The chain skill designs multi-step tool pipelines that run sequentially, in parallel, or conditionally, with explicit data flow between steps. It defines schemas, error handling per step, timeouts, and loop limits so the whole chain stays reliable.

How do I install the chain skill?

Run npx -y skills add sharpdeveye/maestro --skill chain -y in your project. It then lets the agent map out tool compositions with defined inputs and outputs for each step.

Which skills lead the Agent Workflow and Planning category?

The chain skill sits in the Agent Workflow and Planning category alongside grill-me, grill-with-docs, setup-matt-pocock-skills, grilling and prototype. It sets itself apart by focusing on the data contracts and error handling between tool steps.

Does the chain skill need other Maestro pieces to work?

The skill asks you to invoke the agent-workflow skill first and to run teach-maestro if no workflow context exists yet. It recommends running fortify and evaluate after building a chain.

More from sharpdeveye/maestro

All 22