Adonis0123/adonis-skills / skills/agent-dispatch
agent-dispatch
FlaggedChoose the lightest agent setup for a coding, review, drafting or design-research task: do it yourself, fan out to 2-3 workers with independent parts across the Claude Code, Codex, Grok Build, Cursor or other CLIs and accounts on this machine, run a scoped architecture loop, or send one brief to independent researchers; pick a cross-model reviewer, test budget and cleanup; track dispatched work, external waits and user decisions on a Run Board. Use when work may need delegation, or the user asks to dispatch, fan out, parallelize, run several agents or accounts, get another AI's review or independent design opinions, or asks how dispatched work is going. Chinese triggers: 派活、并行、要不要多开几个 agent、分给多个 Claude 账号 / codex / grok、找另一个 AI 审、对比优秀设计、多方意见、进度看板、派出的任务进行到哪了。Not for unrelated read-only questions, trivial edits, research with no delegation, a single review of an existing diff (agentic-review-handoff), or the machine-wide session list (sideby sessions). Inside another named workflow, only size its workers.
scripts/test_board_interaction.js
View on GitHub// Copy contract of the static Board: clipboard API, execCommand fallback, manual selection.
const fs = require('node:fs'), vm = require('node:vm'), assert = require('node:assert/strict');
const source = fs.readFileSync(__dirname + '/board_interaction.js', 'utf8');
function browser({api=true, fallback=true}={}) {
let copied='', area;
const handlers={}, timers=[];
const button={tagName:'BUTTON',dataset:{copy:'A1:按推荐办'},textContent:'复制推荐答复',blur(){}};
const context={
document:{body:{append(a){area=a;}},addEventListener:(name,fn)=>{handlers[name]=fn;},
createElement:()=>({dataset:{},focus(){},select(){},remove(){area=null;},addEventListener(name,fn){this.onblur=fn;}}),
execCommand(){copied=area.value;return fallback;}},
navigator:{clipboard:api?{writeText:async t=>{copied=t;}}:undefined},
setTimeout:fn=>timers.push(fn), setInterval:()=>{throw Error('without location the reload must stay unarmed');}};
vm.createContext(context);vm.runInContext(source,context);
return {button,handlers,timers,get copied(){return copied;},get area(){return area;}};
}
(async()=>{
assert.doesNotMatch(source, /fetch\(|XMLHttpRequest|EventSource|WebSocket/, 'the Board never fetches');
assert.match(source, /location\.reload/, 'the open page re-reads itself');
for (const [api, fallback] of [[true,true],[false,true],[false,false]]) {
const b=browser({api,fallback});
await b.handlers.click({target:{closest:()=>b.button}});
if (api||fallback) {
assert.equal(b.copied,'A1:按推荐办');assert.equal(b.button.textContent,'✓');
b.timers.forEach(fn=>fn());assert.equal(b.button.textContent,'复制推荐答复');
} else {
assert.equal(b.button.textContent,'按 ⌘C 复制选中文字');assert.equal(b.area.className,'copy-area manual');
b.area.onblur();assert.equal(b.button.textContent,'复制推荐答复');
}
}
const other=browser();await other.handlers.click({target:{closest:()=>null}});assert.equal(other.copied,'');
console.log('PASS: copy via clipboard, execCommand fallback and manual selection; reload stays in the browser');
})().catch(e=>{console.error(e);process.exitCode=1;});
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |