lua2147/claude-toolkit-catalog/agentic-orchestration-patterns
Claude Code and agent skill by lua2147/claude-toolkit-catalog
- community
Checking that the SKILL.md file is still in the repository.
Context forking, parallel sessions, agent escalation/handoff, session state persistence, and hook lifecycle patterns for multi-agent Claude architectures. Maps to CCA Domain 1 (27%).
Install
npx vskill@latest install lua2147/claude-toolkit-catalog/agentic-orchestration-patternsSKILL.md
The same SKILL.md was published earlier as niels-kwg/toolkit/agentic-orchestration-patterns.
Agentic Orchestration Patterns
Overview
Patterns for designing multi-agent systems with Claude: forking context across parallel sessions, managing escalation and handoff between agents, persisting state across sessions, and leveraging the full hook lifecycle for automation.
Context Forking and Parallel Sessions
When to Fork
Fork context when tasks are independent and can run concurrently. Each fork gets a subset of the original context relevant to its task.
Fork Boundaries
- Each fork should have a single, well-defined objective
- Pass only the files and context each fork needs (minimize shared state)
- Define the expected output format before forking
- Set a timeout — a hung fork blocks the merge
Agent Escalation and Handoff
Escalation Protocol
Handoff Pattern
When transferring work between agents, pass a structured handoff object:
Session State Persistence
Scratchpad Files
Use .claude/state/ or project-level scratchpad files to persist state across /compact and session restarts.
What to Persist
- Current phase and progress counters
- Decisions made (so they are not re-debated)
- File lists already processed
- Error patterns encountered (avoid repeating failed approaches)
What NOT to Persist
- Full file contents (re-read from disk)
- Conversation history (use
/compactsummaries) - Temporary debug output
Hook Lifecycle Reference
| Hook | Fires When | Use Cases | |
|---|---|---|---|
PreToolUse | Before any tool call executes | Token compression (RTK), input validation, command rewriting | |
PostToolUse | After a tool call returns | Auto-formatting, linting, logging, metrics | |
Notification | When Claude sends a notification | Desktop alerts, Slack integration, progress tracking | |
Stop | When Claude finishes a response | Checklist enforcement, memory writes, session logging | |
SessionStart | When a new session begins | Context loading, update checks, environment validation | |
SubagentStop | When a subagent completes | Result aggregation, quality checks on subagent output |
Hook Configuration
When to Use
- Building autonomous agent pipelines (e.g., research -> analyze -> report)
- Coordinating multiple Claude Code sessions on a large refactor
- Ensuring session continuity across context window limits
- Automating pre/post processing of tool calls
Common Mistakes
- Over-forking: Creating too many parallel agents when sequential processing is simpler and more reliable
- Missing handoff state: Agents lose context during handoff because the handoff object was incomplete
- Hook side effects: Hooks that modify files can interfere with Claude's expectations of file state — keep hooks idempotent
- No escalation path: Agents loop on errors instead of escalating to human review
- Persisting stale state: Scratchpad files from previous sessions mislead the current session — timestamp and validate before trusting
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agentic-orchestration-patterns/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lua2147/claude-toolkit-catalog/agentic-orchestration-patterns)