Skip to content
Skills Library
AI & agents · Automation

chain

/chain

Use when the workflow needs multi-step processing with sequential, parallel, or conditional tool compositions and proper data flow.

Repository
maestro ↗
Licence
MIT
Last repository change
29.04.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 29.04.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when the workflow needs multi-step processing with sequential, parallel, or conditional tool compositions and proper data flow.

Arguments

/chain [pipeline description]
Original author description

Use when the workflow needs multi-step processing with sequential, parallel, or conditional tool compositions and proper data flow.

How it works

  1. MANDATORY PREPARATION
Original SKILL.md headings · 64 lines, 372 words
SKILL.md preview
---
name: chain
description: "Use when the workflow needs multi-step processing with sequential, parallel, or conditional tool compositions and proper data flow."
argument-hint: "[pipeline description]"
category: enhancement
version: 2.0.0
user-invocable: true
---

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

```markdown
## 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

### Error Handling
Step 1 failure → [retry 3x, then return error]
Step 2 failure → [return partial results from step 1]
Step 3 failure → [retry with simplified input]

### Constraints
Max total execution time: 60s
Max retries per step: 3
```

### Chain Validation

- [ ] Data schemas are compatible between connected steps
- [ ] Every step has error handling
- [ ] Total chain timeout is set
- [ ] Maximum iteration count is set for loops
- [ ] Partial results are handled (what if step 2 of 4 fails?)

### Recommended Next Step

After building the chain, run `/fortify` to add error handling at each step, then `/evaluate` to test the full pipeline.

**NEVER**:

- Build chains without defining data contracts between steps
- Create loops without maximum iteration counts
- Skip error handling at any step (the chain breaks at the weakest link)
- Assume output of step N is always valid input for step N+1
- Build long chains when a single prompt could handle the task

Versions

The database has no other skills named chain.

Database snapshot: 13.11.2026 · package version f64dc85dca9d (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 98stream-chain
    Sequential multi-agent pipelines and data transformation via Claude Flow MCP workflow tools. Use when step N's output must feed step N+1's input (build->test->optimise, extract->transform->validate). Not for parallel swarms or GitHub CI.
  • 100orchestrate
    Orchestrate multi-task execution plans using Claude's native Agent tool (DAG-based, no external engine). Use when: executing a plan.json file with parallel/sequential task dependencies. Not for: producing the plan in the first place — use /plan; single tasks with no dependencies…
  • 100eino-compose
    Eino orchestration with Graph, Chain, and Workflow. Use when a user needs to build multi-step pipelines, compose components into executable graphs, handle streaming between nodes, use branching or parallel execution, manage state with checkpoints, or understand the Runnable…
  • 100stream-chain
    Stream-JSON chaining for multi-agent pipelines, data transformation, and sequential workflows. Use when piping output between agents/tools as streaming JSON or building a sequential transform pipeline.
  • 100sequential-thinking
    Break down complex problems into a step-by-step chain of thought for better reasoning. Use when: think, reason, complex, plan, analyze, sequential.
  • 82ase-meta-workflow
    Generate a new agent tool skill, written in the style of ASE skills, which orchestrates a workflow of sequential actions, parallel actions, sub-agent calls, and skill calls. Use when the user wants to "generate a skill", create a "workflow", "orchestrate" or "chain" multiple ASE…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.