task-distributor
Skill1 starsChanged 4 months agoMITView on GitHub
Distribui tarefas paralelas entre múltiplos agentes/subagents: decide o que paraleliza, evita estado compartilhado, faz fan-out/fan-in e reconcilia resultados. Use quando o usuário mencionar: "paralelizar", "dividir entre agentes", "rodar em paralelo", "fan-out", "múltiplos agentes", "distribuir tarefas", "orchestrator-workers", "vários subagents ao mesmo tempo".
3 other projects use a version of this.
Adopted by
Most recently taken up by
- jshsakura/awesome-opencode-skillstheir own version, first seen Jul 8, 2026
- nicolasestrem/antigravity-gemini-skillstheir own version, first seen Jan 17, 2026
- belokonm/claude-supercode-skillstheir own version, first seen Jan 12, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- jshsakura/awesome-opencode-skills★ 30same name
- belokonm/claude-supercode-skills★ 11same name
- nicolasestrem/antigravity-gemini-skills★ 8same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository70 other files it gives its agents.
- agent-creationSkill
- handoffSkill
- task-plannerSkill
- accessibilitySkill
- airbnb-designSkill
- airtable-designSkill
- atlassian-designSkill
- carbon-designSkill
- cloudscape-designSkill
- coinbase-designSkill
- discord-designSkill
- duolingo-designSkill
- figma-designSkill
- fluent-designSkill
- linear-designSkill
- material-designSkill
- meta-designSkill
- netflix-designSkill
- notion-designSkill
- nubank-designSkill
- one-ui-designSkill
- pinterest-designSkill
- polaris-designSkill
- premium-web-designSkill
- primer-designSkill
- reddit-designSkill
- revolut-designSkill
- robinhood-designSkill
- salesforce-lightning-designSkill
- slack-designSkill
- spectrum-designSkill
- spotify-designSkill
- stripe-designSkill
- tiktok-designSkill
- twitch-designSkill
- uber-base-designSkill
- vercel-geist-designSkill
- visionos-designSkill
- whatsapp-designSkill
- economicsSkill
- legal-basicsSkill
- negotiationSkill
- politicalSkill
- api-designSkill
- architectureSkill
- caching-strategiesSkill
- ci-cdSkill
- database-designSkill
- event-drivenSkill
- observabilitySkill
- payment-systemsSkill
- performanceSkill
- qaSkill
- refactoringSkill
- securitySkill
- system-designSkill
- testingSkill
- clone-websiteSkill
- graphifySkill
- remotionSkill
- The first 60 shown.
The file
Files
Task Distributor
Você atua como orquestrador. Objetivo: pegar um conjunto de tarefas (idealmente já vindo do [[task-planner]]) e distribuir entre agentes paralelos com segurança — máximo throughput, zero corrupção por estado compartilhado.
Quando paralelizar (e quando NÃO)
Paralelize somente se as tarefas forem independentes: sem dependência sequencial e sem escrever no mesmo recurso.
| Paraleliza bem | Não paraleliza |
| Pesquisar N arquivos/tópicos distintos | Etapas com dependência A→B→C |
| Gerar N variações independentes | Editar o mesmo arquivo por 2 agentes |
| Rodar a mesma checagem em N alvos | Trabalho que precisa do output do anterior |
| Tarefas em diretórios/worktrees isolados | Estado global mutável compartilhado |
Regra de ouro: 2+ tarefas independentes → paralelize; senão, sequencial.
Padrões de distribuição
- Fan-out / fan-in — dispara N subagents, cada um com uma fatia; agrega os retornos. Bom para pesquisa/geração.
- Orchestrator-workers — um agente coordena, decide dinamicamente quantos workers e o quê, e sintetiza.
- Map-reduce — map: mesma operação em N itens; reduce: consolida.
- Isolamento por worktree — quando há edições de arquivos, cada agente trabalha em um git worktree próprio para não colidir; merge no fim.
Contrato de tarefa para o worker
Cada subagent recebe um pacote fechado (ele parte do zero, sem seu contexto):
### Tarefa
<objetivo específico e único desta fatia>
### Contexto necessário
<tudo que o worker precisa — ele NÃO tem seu histórico>
### Entregável
<formato exato do retorno: lista, diff, caminho de arquivo, resumo>
### Limites
<o que NÃO fazer; quando parar e reportar>Fan-in: reconciliação
- Deduplicar achados repetidos entre workers.
- Resolver conflitos quando dois workers discordam (priorize evidência).
- Ordenar por relevância/severidade antes de entregar.
- Reportar falhas de workers que não completaram — não esconda.
Anti-padrões
- Paralelizar tarefas dependentes → resultados inconsistentes.
- Dois agentes editando o mesmo arquivo → last-write-wins destrói trabalho.
- Passar "meu contexto todo" ao worker → ele re-deriva caro; passe só o necessário (isso é [[handoff]]).
- Spawnar dezenas de agentes por hábito → custo alto; paralelize com propósito.
Recursos externos
| Recurso | O que pegar |
| Anthropic — Building effective agents | Padrões orchestrator-workers, routing, parallelization. |
| Anthropic — Multi-agent research system | Orquestração real de subagents em paralelo + fan-in. |
| MapReduce (paper) | Modelo mental map/reduce. |
| Claude Code — Subagents | Como despachar subagents no CLI. |
Do / Don't
| Do | Don't |
| Verificar independência antes | Paralelizar por reflexo |
| Isolar edições em worktrees | 2 agentes no mesmo arquivo |
| Pacote de tarefa fechado por worker | Assumir que o worker tem seu contexto |
| Reconciliar + reportar falhas | Concatenar outputs cru |
Checklist
- Confirmado que as tarefas são independentes
- Sem escrita concorrente no mesmo recurso (ou worktrees isolados)
- Cada worker recebeu pacote fechado (tarefa + contexto + entregável + limites)
- Estratégia de fan-in definida (dedup, conflito, ordem)
- Falhas de worker são reportadas, não engolidas
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

