---
title: "Skill Chains"
description: "Compose multi-step pipelines in aeon.yml where parallel upstream skills feed outputs into downstream consumers."
canonical: "https://www.aeon.fun/docs/chains"
---

# Skill Chains (https://www.aeon.fun/docs/chains)

> Compose multi-step pipelines in aeon.yml where parallel upstream skills feed outputs into downstream consumers.
>
> Full docs: https://www.aeon.fun/docs.md | Whole-site summary: https://www.aeon.fun/llms.txt

Skill chains pass outputs between skills without an external orchestrator, executing as sequential and parallel workflow steps via [`.github/workflows/chain-runner.yml`](https://github.com/aeonfun/aeon/blob/main/.github/workflows/chain-runner.yml).

## Defining a Chain

Declare chains under the `chains:` key in [`aeon.yml`](https://github.com/aeonfun/aeon/blob/main/aeon.yml):

```yaml
chains:
  digest-pipeline:
    schedule: "0 7 * * *"
    on_error: fail-fast                       # or: continue
    steps:
      - parallel: [token-movers, github-trending]
      - skill: digest, consume: [token-movers, github-trending]
```

## How a Chain Executes

### Step dispatch
`parallel:` steps fan out concurrently; sequential `skill:` steps wait for prior steps to finish.
### Output capture
Each completed step writes its markdown output to `output/.chains/<skill>.md`.
### Downstream injection
Steps that declare `consume: [...]` receive the listed upstream `output/.chains/<skill>.md` files directly in their prompt context.
### Error handling
`on_error: fail-fast` aborts the chain on the first failed step; `on_error: continue` runs downstream steps with whatever upstream outputs succeeded.
