shynlee04/hivemind-plugin/delegation-intelligence
Claude Code and agent skill by shynlee04/hivemind-plugin
- community
Checking that the SKILL.md file is still in the repository.
Guides subagent delegation patterns. Covers parallel vs sequential dispatch, export_cycle usage, and team coordination.
Install
npx vskill@latest install shynlee04/hivemind-plugin/delegation-intelligenceSKILL.md
Delegation Intelligence
⚠️ PRIORITY: SEQUENTIAL IS SAFER
Default to SEQUENTIAL delegation unless ALL of these conditions are met:
- ✅ Tasks have ZERO file overlap (different directories)
- ✅ Tasks have ZERO state dependency (no shared variables)
- ✅ Tasks have ZERO output dependency (no task needs another's result)
- ✅ Failure of one task does NOT block others
When in doubt → SEQUENTIAL
Integration with Context-First Gatekeeping
Before ANY delegation, load and apply:
This ensures:
- Hierarchy chain is unbroken
- Planning is retrieved from memory
- Domain boundaries are respected
Result Awaiting (MANDATORY for Sequential)
When using sequential delegation, you MUST:
- AWAIT the result before proceeding
- PROCESS the outcome (success/partial/failure)
- RETUNE the plan based on actual results
- REROUTE if domain boundaries crossed
- EXPORT intelligence via
export_cycle
Core principle: Every subagent cycle exports intelligence. Parallel when independent. Sequential when dependent. Never ignore a return.
When to Use
- About to dispatch 2+ tasks
- Deciding whether to do work yourself or delegate
- Subagent just returned a result
- Managing a batch of parallel subagents
- Planning implementation order for multiple changes
Decision: Parallel vs Sequential
⚠️ DEFAULT: SEQUENTIAL — Parallel requires explicit justification
The 4 Parallel Conditions (ALL must be true)
| # | Condition | Check | |
|---|---|---|---|
| 1 | Zero file overlap | Tasks touch completely different directories | |
| 2 | Zero state dependency | No shared variables, config, or runtime state | |
| 3 | Zero output dependency | No task needs another's result | |
| 4 | Independent failure | Failure of one doesn't block others |
If ANY condition fails → SEQUENTIAL
⚠️ EXPLICIT DELEGATION MANDATORY
Every task delegation MUST include ALL of these:
| Element | Required | Example | |
|---|---|---|---|
| Task | ✅ | "Fix bug in auth.ts" (NOT "fix auth") | |
| Scope | ✅ | "Only touch auth.ts, don't modify token.ts" | |
| Return format | ✅ | "Return: { outcome, findings, files_changed }" | |
| Success metric | ✅ | "Test passes: npm test -- auth.test.ts" | |
| Acceptance criteria | ✅ | "All 5 auth tests pass, no new errors" | |
| Constraints | ✅ | "Don't refactor, only bugfix; stay within 10 lines" | |
| Evidence | ✅ | "Capture: what failed, why, how fixed" |
BAD: "Fix the auth bug" GOOD:
Common Patterns
Parallel-safe (dispatch simultaneously):
- Writing tests for different modules
- Researching independent topics
- Reading/analyzing separate files
- Creating independent utility functions
Must be sequential (wait between each):
- Schema change → tools that use schema → tests that verify tools
- Foundation module → modules that import it
- Config change → hooks that read config
- Any chain where file B imports from file A
Hybrid (batch by dependency layer):
After EVERY Subagent Returns — Mandatory
What `export_cycle` does internally (zero cooperation needed):
- Updates hierarchy tree — action node → complete/blocked
- Saves findings to mems brain — shelf
cycle-intel, tagged with timestamp - Links to timestamp chain — grep-able across all artifacts forever
- Clears failure flag if present — stops the system prompt warning
What the hook auto-captures (even without `export_cycle`):
- Last message from subagent (first 500 chars) →
brain.cycle_log[] - Failure signal detection →
brain.metrics.pending_failure_ack - Turn count of the cycle → tracked automatically
`export_cycle` adds RICHER intelligence on top of auto-capture:
- Your interpretation of the outcome (not just raw text)
- Structured findings saved as mems (survive compaction + sessions)
- Hierarchy tree updated (shows decision trail visually)
Reward — What Good Delegation Gets You
After 5 cycles with proper export:
Without export: After compaction, all subagent intelligence is gone. You have a vague "it was done" but no decisions, no failures, no rationale.
Consequence — What Bad Delegation Costs
| Pattern | Cost | |
|---|---|---|
Dispatch without map_context first | No hierarchy node → cycle results orphaned | |
Skip export_cycle after return | Intelligence lost on compaction, tree not updated | |
| Ignore failure signal in result | pending_failure_ack flag → warning every turn | |
| Claim "complete" over a partial result | False confidence, bug surfaces 10x harder later | |
| Parallel when files overlap | Git conflicts, race conditions, corrupted state | |
| Sequential when independent | 3x slower than necessary, wasted context |
Subagent Prompt Engineering
When dispatching, include:
- Specific task — what to do (not "figure out what to do")
- File context — which files to read/modify (don't make subagent discover)
- Verification — how to confirm success (test command, expected output)
- Return format — what to report back (outcome + findings + files changed)
Red Flags
| Thought | Reality | |
|---|---|---|
| "Subagent said done, moving on" | Parse the result. Check for caveats. Call export_cycle. | |
| "The failure is minor, I'll note it later" | You won't. Call export_cycle({ outcome: "partial" }) NOW. | |
| "I'll summarize all cycles at the end" | Compaction fires when it wants. Export each one as it returns. | |
| "These tasks are independent enough" | Check: do they share ANY files? If yes, sequential. | |
| "I'll do it all myself, faster" | 3 independent tasks × 5 min = 15 min. Or 5 min parallel. Delegate. | |
| "The subagent can figure out the context" | No it can't. Provide files, constraints, verification commands. |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/delegation-intelligence/SKILL.md
Popularity
- Repository stars
- 53
- Repository forks
- 17
- Repository npm downloads, 7 days
- 19
- 7-day trend score
- 34
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 17 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/shynlee04/hivemind-plugin/delegation-intelligence)