- Home
- Skills
- Ed3dai
- Ed3d Plugins
- Doing A Simple Two Stage Fanout
doing-a-simple-two-stage-fanout_skill
- Python
128
GitHub Stars
3
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill ed3dai/ed3d-plugins --skill doing-a-simple-two-stage-fanout- compute_layout.py8.7 KB
- diagram-templates.md4.9 KB
- SKILL.md13.9 KB
Overview
This skill orchestrates a simple two-stage fan-out analysis for corpora that exceed a single agent's effective context. It splits the corpus across parallel Worker subagents, routes Worker outputs to Critic subagents for independent reviews, and then synthesizes everything with a single Summarizer while tracking tasks and handling failures. The workflow produces explicit files and an auditable orchestration plan before any work begins.
How this skill works
The skill computes a layout (segments, Workers, Critics) from corpus size and an effort-level choice, creates a temp workspace with absolute paths, and writes a plan that includes a fan-out diagram and assignment tables. It then creates tasks for every Worker, Critic, and the Summarizer, launches Workers in parallel, verifies outputs, launches Critics in parallel, verifies outputs again, and finally runs the Summarizer to produce the final report. Built-in failure recovery handles context-limit splits, missing outputs, and stuck agents.
When to use it
- Analyzing large text, code, or data collections that exceed one agent's context window
- When you want redundant independent reviews of each segment to reduce missed items
- When you need an auditable, file-backed orchestration with explicit task dependencies
- When you need a repeatable pipeline that can recover from agent failures
- When you want a short, controlled burst of parallelism rather than continuous streaming
Best practices
- Confirm the analysis goal and choose an effort level before computing the layout
- Provide file paths so token estimates can be calculated with wc -c or the bundled script
- Always use absolute paths in prompts and plan documents
- Create all tasks and dependencies up front; do not launch subagents until the plan is approved
- Use the split-on-failure rules (append a/b) for context-limit problems rather than blind retries
Example use cases
- Codebase review: split thousands of source files into segments, detect patterns and hotspots
- Literature survey: analyze a large corpus of papers, have critics flag gaps, then synthesize findings
- Log analysis: partition massive log archives for parallel anomaly detection and consolidated reporting
- Policy audit: run independent critics on each policy segment to surface contradictions before final summary
FAQ
Choose 'Some effort' for most runs, 'A lot of effort' when thoroughness matters, and 'Herculean effort' when missing anything is unacceptable. I can recommend one based on your corpus size and goals.
What happens if a Worker hits a context limit?
Split the worker's segments into two new Worker tasks (W03a/W03b), create tasks with the same dependencies, mark the original completed, and launch the new Workers.