Przejdź do treści
Biblioteka skilli
AI i agenci · Planowanie

agent-chaining

/agent-chaining

Pomaga projektować i recenzować systemy wieloagentowe: orkiestrację subagentów, wykonanie równoległe i sekwencyjne, przekazywanie kontekstu, delegowanie narzędzi i pamięć agentów.

Repozytorium
raven ↗
Licencja
MIT
Ostatnia zmiana repozytorium
19.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 19.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Pomaga projektować i recenzować systemy wieloagentowe: orkiestrację subagentów, wykonanie równoległe i sekwencyjne, przekazywanie kontekstu, delegowanie narzędzi i pamięć agentów.

Oryginalny opis (EN)

Use when designing or reviewing multi-agent systems, subagent orchestration, parallel vs sequential agent execution, context passing between agents, tool delegation, and agent memory patterns. Platform-neutral — covers production multi-agent architecture across AI runtimes.

Jak działa

  1. Pre-flight — ask before designing any chain
  2. When to chain vs not
  3. Spawning — the critical rules
  4. Context passing — 3 patterns
  5. Orchestrator design — lean
  6. Common patterns
  7. Failure handling
  8. Anti-patterns — hard stops
  9. Raven integration
  10. Deliverable format
Sekcje z nagłówków SKILL.md, w oryginale · 130 linii, 697 słów
Podgląd SKILL.md
---
name: agent-chaining
description: Use when designing or reviewing multi-agent systems, subagent orchestration, parallel vs sequential agent execution, context passing between agents, tool delegation, and agent memory patterns. Platform-neutral — covers production multi-agent architecture across AI runtimes.
allowed-tools: Read, Bash, Grep, WebFetch
---

# Agent Chaining Specialist

Domain: Multi-Agent Systems · Orchestration · Context Management · Subagent Design

---

## Pre-flight — ask before designing any chain

1. What problem actually requires multiple agents? → single agent first, always
2. Sequential or parallel? → depends on step dependencies
3. What's the token budget? → each subagent call costs tokens
4. What are the failure modes? → what happens if a subagent fails mid-chain?
5. Where does shared state live? → agents don't share memory

**Rule:** If one agent with the right tools can do it → don't chain. Chaining adds latency, cost, and failure surface. Justify it.

---

## When to chain vs not

| Chain when... | Don't chain when... |
|---|---|
| Work can run in parallel | Single-domain task |
| Specialist isolation needed | Tightly sequential, no parallelism |
| Context window exceeded | Shared mutable state needed |
| Independent verification needed | Low latency requirement |
| Long-running background work | You're adding complexity for no gain |

---

## Spawning — the critical rules

**Subagent has NO memory of the parent conversation.** The prompt must be fully self-contained.

Every subagent prompt must include:
1. Goal in the first sentence
2. Absolute file paths — no relative references
3. What you've already done / ruled out
4. Expected output form
5. Scope cap — "only look at src/api/, not tests/"
6. Failure instruction — "if X not found, report that, don't guess"

**Parallel:** send multiple agent calls in a single message — they run concurrently. Never send independent agents sequentially — doubles latency for no reason.

**Background:** for long-running tasks where the parent has other work to do. Parent continues; notified when subagent completes.

---

## Context passing — 3 patterns

- **Self-contained prompt** — include all context inline. Best default.
- **File handoff** — orchestrator writes to a temp file; subagent reads it. Good for large context. Bad for parallel agents that might conflict.
- **Summary handoff** — orchestrator compresses Phase 1; subagent gets the summary. Good for sequential chains.

---

## Orchestrator design — lean

```
✅ Orchestrator: decides what, in what order, who does it — synthesizes results
❌ Orchestrator: heavy computation, large file reads, code writing — push to subagents
```

Keep orchestrator context budget for coordination. Subagents do the work.

---

## Common patterns

| Pattern | Structure |
|---|---|
| Research → Implement → Verify | Read-only analysis → plan → implement → verify |
| Parallel domain analysis | [Security · DB · API] in parallel → Orchestrator synthesizes |
| Map-Reduce | Orchestrator splits → N agents process chunks → Orchestrator reduces |
| Cross-Check | Agent A implements → Agent B reviews independently → Orchestrator reconciles |

---

## Failure handling

| Failure | Handle with |
|---|---|
| Empty / error response | Retry once with expanded context |
| Parallel agents conflict | Orchestrator resolves, flags conflict |
| Background agent stalls | Check status, set timeout |
| Context too long for subagent | Summarise before passing |
| Subagent goes off-scope | Narrow prompt, add explicit scope boundaries |

---

## Anti-patterns — hard stops

```
❌ Chaining when one agent suffices
❌ Passing secrets in subagent prompts
❌ Assuming subagent has parent context
❌ Sequential chain where steps are independent — use parallel
❌ Orchestrator doing all the heavy work itself
❌ No failure handling — assuming success
❌ Infinite agent recursion
❌ Shared mutable file writes without locking
```

---

## Raven integration

```
1. Declare agent dependencies in manifest
2. Subagents respect Raven rules — no manifest bypass
3. Never pass manifest.secrets.json in subagent prompts
4. Orchestrator logs what each subagent was asked to do
```

---

## Deliverable format

```markdown
## Agent Chain Design — {task}
### Justification: why chaining / why single agent insufficient
### Chain Diagram: [Orchestrator] → [SubAgent A (parallel)] → [result]
### Agent Specs: | Agent | Scope | Output |
### Context Passing: how results flow between agents
### Failure Handling: | Scenario | Handling |
### Token Budget: orchestrator ~Xk · subagents ~Xk each · total ~Xk
### Risks: [list]
```

Wersje

W bazie nie ma innych skilli o nazwie agent-chaining.

Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

Migawka bazy z 13.11.2026 · wersja paczki 2ef17842f0cf (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 1 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100multi-agent-patterns
    Pomaga projektować systemy wieloagentowe: wzorzec supervisor, architektura swarm, koordynacja wielu agentów, izolacja kontekstu, przekazania, subagenci i równoległe wykonanie.
  • 100multi-agent-patterns
    Pomaga projektować systemy wieloagentowe: wzorzec supervisor, architektura swarm, koordynacja wielu agentów, izolacja kontekstu, przekazania, subagenci i równoległe wykonanie.
  • 100multi-agent-patterns
    Pomaga projektować systemy wieloagentowe: wzorzec supervisor, architektura swarm, koordynacja wielu agentów, izolacja kontekstu, przekazania, subagenci i równoległe wykonanie.
  • 100multi-agent-orchestration
    Projektuje i buduje systemy wieloagentowe LLM: wzorce orkiestratora, równoległa koordynacja, architektura potoku, delegowanie hierarchiczne, komunikacja agentów i obsługa awarii.
  • 100ai-agents-architect
    Pomaga projektować i budować autonomiczne agenty AI: użycie narzędzi, systemy pamięci, strategie planowania i orkiestrację wielu agentów.
  • 100multi-agent-patterns
    Pomaga projektować systemy wieloagentowe: wzorzec supervisor, architektura swarm, koordynacja wielu agentów, izolacja kontekstu, przekazania, subagenci i równoległe wykonanie.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.