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_markdown.js
View on GitHub// Worker reports render as Markdown through the vendored markdown-it; nothing executable survives.
const fs = require('node:fs'), vm = require('node:vm'), assert = require('node:assert/strict');
const context = {};
vm.createContext(context);
vm.runInContext(fs.readFileSync(__dirname + '/vendor/markdown-it-15.0.3.min.js', 'utf8'), context);
vm.runInContext(fs.readFileSync(__dirname + '/board_markdown.js', 'utf8'), context);
const md = text => context.markdownToHtml(text);
const report = md('## Q1 现成方案\n\n| 项目 | 星数 |\n|---|--:|\n| a | 1 |\n\n- 一\n- `二`\n\n```js\nlet a = 1 < 2\n```\n\n[官网](https://example.com/?a=1&b=2)');
for (const piece of ['<h2>Q1 现成方案</h2>', '<table>', '<th style="text-align:right">星数</th>', '<li><code>二</code></li>',
'<pre><code class="language-js">let a = 1 < 2', '<a href="https://example.com/?a=1&b=2" rel="noreferrer">官网</a>'])
assert.ok(report.includes(piece), piece);
console.log('PASS: tables, headings, lists, code and links');
for (const attack of ['<script>alert(1)</script>', '<img src=x onerror=alert(1)>', '<a href="javascript:alert(1)">x</a>',
'<div onclick="x()">raw</div>', '<iframe src="https://evil"></iframe>', '<style>body{display:none}</style>']) {
const out = md(attack);
assert.ok(!/<(script|img|a|div|iframe|style)\b/i.test(out), out);
assert.ok(out.includes('<'), 'raw HTML is shown as text: ' + out);
}
for (const link of ['[x](javascript:alert(1))', '[x](JaVaScRiPt:alert(1))', '[x](javascript:alert(1))', '[x](java\tscript:alert(1))',
'[x](vbscript:msgbox(1))', '[x](data:text/html;base64,PHNjcmlwdD4=)', '', '<javascript:alert(1)>', '[x](file:///etc/passwd)'])
assert.ok(!/<(a|img)\b/.test(md(link)), link + ' -> ' + md(link));
console.log('PASS: script tags, event handlers, raw HTML and javascript:/data:/file: links never become markup');
assert.equal(context.markdownAllowed('<p onclick="x">a</p>'), false, 'unknown attribute');
assert.equal(context.markdownAllowed('<svg></svg>'), false, 'unknown tag');
assert.equal(context.markdownAllowed('<a href="javascript:x">a</a>'), false, 'unsafe href');
assert.equal(context.markdownAllowed('<p style="color:red">a</p>'), false, 'free style');
assert.equal(context.markdownAllowed('<p>a</p>'), true);
console.log('PASS: the allow-list rejects anything markdown-it would not emit safely');
// Without the library (or on a rejected render) the element keeps its escaped text.
const bare = {}; vm.createContext(bare); vm.runInContext(fs.readFileSync(__dirname + '/board_markdown.js', 'utf8'), bare);
assert.equal(bare.markdownToHtml('# x'), null);
const el = {textContent: '# 标题', attrs: {}, classList: {add(c) { el.plain = c; }}, setAttribute(k) { el.attrs[k] = true; }};
bare.renderMarkdownIn({querySelectorAll: () => [el]});
assert.equal(el.textContent, '# 标题'); assert.equal(el.plain, 'md-plain'); assert.ok(el.attrs['data-rendered']);
console.log('PASS: plain-text fallback');
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 |