deduplicate-work-across-agents
Use when fanning out tasks that may overlap so two children do the same work. De-overlaps the roster before launch and reconciles any duplicate output at fan-in.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- deduplicate-work-across-agents
- description
- Use when fanning out tasks that may overlap so two children do the same work. De-overlaps the roster before launch and reconciles any duplicate output at fan-in.
02 资源文件 3
- 许可证LICENSE1.0 KB
- 参考文档SOURCE.md356 B
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
Deduplicate Work Across Agents
Duplicate assignment wastes budget and produces two versions of one artifact that then conflict. Normalise the roster before launch and reconcile overlaps at fan-in.
Procedure
- Normalise every task key before comparing: lowercase, trim, collapse whitespace, strip trailing punctuation.
- Treat near-identical keys as duplicates: two slugs differing only by hyphen placement are the same job.
- Build the roster keyed by the normalised task id; a second assignment of an existing key is rejected, not appended.
- Detect residual overlap with a sorted check:
sort -k2 notes/tasks.tsv | uniq -d -f1lists repeated task ids. - Where two children must touch the same file, that is a partition problem, not a dedupe one — split by path.
- At fan-in, dedupe outputs on the child key:
jq -s 'unique_by(.slug)' out/all.jsonl. - When two files describe the same artifact with different content, do not keep both — pick by evidence and note the loser.
- Count assignments before and after dedupe and reconcile the drop in
notes/waves.log. - Never let dedupe silently drop a distinct task that only looked like a duplicate; confirm intent when unsure.
- Report the dedupe count to the requester so a later "why did this run fewer tasks than I listed" question has an answer.
Pitfalls
- Comparing raw slugs so
foo-barandfoobarboth run and produce competing artifacts. - Dropping a duplicate that was actually a re-run of a failed task, losing the intended retry.
- Deduping outputs by file content when two children legitimately produce identical bytes for different inputs.
- Merging duplicates at fan-in only, after paying for both children in full.
- Treating "same directory" as "same task" and collapsing two genuinely different files.
Verification
sort notes/tasks.tsv | uniq -d; jq -s 'length, (unique_by(.slug)|length)' out/all.jsonl
# passes when no duplicate keys print and merged length equals deduped length
Report to the user: the assignments before and after dedupe, and any artifact produced twice.
04 同仓库更多 Skills
recipe-performance
Diagnose a specific MetaMask user flow's real-app performance and Sentry critical-user-flow telemetry with deterministic mm-harness recipes. Use for CUF boundaries, cold/warm/background-resume behavior, latency regressions, lifecycle tags, duplicate or blocking network requests, long tasks, layout/paint cost, screen redraws, React rerenders, or browser trace analysis where tests alone cannot prove the real app.
mexc-spot-websocket
MEXC Spot WebSocket workflows for public streams, protobuf handling, depth maintenance, listen keys, and private streams without exposing API keys.
mexc-spot-rest
MEXC Spot REST workflows for public data, signed account requests, orders, wallet/admin actions, and secure signing without exposing API keys.
mexc-futures-websocket
MEXC Futures WebSocket workflows for public streams, private account/order/position streams, ping/pong, subscriptions, and depth maintenance.
0xklen-version-and-refresh-sanctions-lists
暂无简介
verify-tests-cover-changed-lines
Use when a PR adds code that the existing suite may not exercise. Measures patch coverage — the share of newly changed lines hit by tests — before approving.