hm-l3-subagent-delegation-patterns
Document and apply subagent delegation patterns for OpenCode.
Skill by shynlee04
Chalk Labs
Need help deploying hm-l3-subagent-delegation-patterns?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/shynlee04-hm-l3-subagent-delegation-patterns
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/hm-l3-subagent-delegation-patterns
What's inside
- Skill name
hm-l3-subagent-delegation-patterns- Description
- Document and apply subagent delegation patterns for OpenCode. Use when dispatching subagents, resuming interrupted sessions, implementing checkpoint protocols, or designing wave-based execution. NOT for general task planning or project inspection.
- License
- MIT
- Metadata
- role: domain-execution · layer: 2 · pattern: P2 · version: 1.0.0
- Instructions
- 201 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- allowed-tools: must be a space-separated string
Files (8)
- SKILL.md
- evals.json · evals/
- rich-gate-scorecard.md · metrics/
- checkpoint-protocols.md · references/
- delegation-envelopes.md · references/
- handoff-edge-guardrails.md · references/
- wave-execution.md · references/
- validate-skill.sh · scripts/
SKILL.md (first lines)
## Overview
Document and apply delegation patterns for subagent dispatch in OpenCode. Use when dispatching subagents, resuming interrupted sessions, implementing checkpoint protocols, or designing wave-based execution flows. Produces validated delegation configurations with session tracking and recovery procedures.
## The Iron Law
```
Delegation without session tracking is fire-and-forget. Always track, always resume, never recreate.
```
# Subagent Delegation Patterns
## On Load
1. Read `references/delegation-envelopes.md` — canonical dispatch envelope templates
2. Read `references/checkpoint-protocols.md` — checkpoint types, return formats, resume logic
3. Read `references/wave-execution.md` — wave-based parallel execution patterns
4. Read `references/handoff-edge-guardrails.md` — metadata and guardrails for every agent boundary
## Delegation Protocol
## Rich Handoff Lineage
Phase 30 adopts handoff and boundary concepts from OpenAI Agents SDK handoffs/guardrails, AutoGen `HandoffMessage`, and Claude Code subagent lifecycle hooks. Local rule: a delegation is a durable handoff edge with metadata, guardrails, and a return envelope; it is not just a prompt.
### Handoff Metadata Required
Every dispatch or resume envelope must include:
| Field | Purpose |
|-------|---------|
| `source_agent` | Who initiated the handoff and owns verification. |
| `target_agent` | Exact specialist identity or configured agent name. |
| `handoff_reason` | Why this child is the correct boundary crossing. |
| `allowed_destinations` | Whether the child may delegate further; empty means no. |
| `history_policy` | What context is included, filtered, or intentionally omitted. |
| `expected_return` | Status values, artifacts, evidence, and checkpoint format. |
| `resume_pointer` | Exact continuation point if interrupted. |
Before accepting a child return, run boundary guardrails: output shape, scope compliance, verification evidence, and unauthorized-tool/delegation detection.
### The Real Execution Model
Subagent dispatch is NOT fire-and-forget. It is:
```bash
# 1. INIT — load context via CLI tool or state file
INIT=$(cat .planning/STATE.md 2>/dev/null)
# 2. PARSE — extract current phase, incomplete plans, session state
# Fields: current_phase, completed_plans, incomplete_plans, blockers
# 3. CONNECT — verify session exists and is resumable
# Check task_id from previous delegation; if absent, treat as new
# 4. LAUNCH — execute with explicit session tracking
# Each task gets atomic commit with hash tracking
git add <specific-files> # NEVER git add .
git commit -m "phase: {phase}-{plan} — {description}"
TASK_COMMIT=$(git rev-parse --short HEAD)
# 5. FAIL/RESUME — checkpoint detection
grep -n "type=\"checkpoint\"" [plan-path]
# Pattern A: No checkpoints → execute all
# Pattern B: Has checkpoints → execute until checkpoint, STOP, return structured message
# Pattern C: Continuation → verify commits exist, resume from specified task
```
### Resume by Session ID (NEVER Recreate)
When a session disconnects:
1. **DO NOT create new tasks** — resume the existing delegated task
2. Use the session ID from the previous `task` call
3. The task tool supports `task_id` parameter for resuming
4. Check `.planning/phases/NN-name/SUMMARY.md` for completion status
5. Re-query plan index to get incomplete plans
6. Re-execute only incomplete plans
### Handoff Edge Guardrails
| Edge | Guardrail | Reject if |
|------|-----------|-----------|
| Parent → child | Envelope has identity, scope, allowed destinations, history policy | Missing field or ambiguous owner |
| Child → tool | Tool use is within envelope permissions | Tool changes out-of-scope files or hidden state |
| Child → parent | Return includes evidence and status protocol | DONE without verification evidence |
| Parent → next child | Prior child accepted and trace recorded | Handoff chain has unresolved blocker |
### Checkpoint Return Format
When a checkpoint is reached, the subagent returns:
```markdown
## CHECKPOINT REACHED
**Type:** [human-verify | decision | human-action]
**Plan:** {phase}-{plan}
**Progress:** {completed}/{total} tasks
### Completed Tasks
| Task | Name | Commit | Files |
|------|------|--------|-------|
| 1 | [name] | [hash] | [key files] |
### Current Task
**Task {N}:** [name]
**Status:** [blocked | awaiting verification | awaiting decision]
**Blocked by:** [specific blocker]
```
### Deviation Rules (Auto-Fix Protocol)
| Rule | Action | When |
|------|--------|------|
| 1 | Auto-fix bugs | Broken behavior, errors, null pointers |
| 2 | Auto-add missing functionality | Error handling, auth, validation |
| 3 | Auto-fix blocking issues | Missing deps, broken imports |
| 4 | Stop and ask | Architectural changes (new DB tables, major schema) |
**Fix attempt limit:** 3 per task → STOP, document in SUMMARY.md
### Wave-Based Parallel ExecutionFrom shynlee04/hivemind-plugin, MIT.
More from shynlee04/hivemind-plugin
- 0.578score
hm-l3-synthesis
shynlee04
Compress research findings into actionable artifacts with tiered reduction.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l2-coordinating-loop
shynlee04
Coordinate multi-agent dispatch with validation gates and handoff protocols.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-integration-contracts
shynlee04
Formal bidirectional contract authority between skills and agents.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hf-l2-agent-composition
shynlee04
Teaches agents how to compose specialist agents from user intent using XML markup grammar, step protocols, and structured return formats.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hf-l2-skill-synthesis
shynlee04
Use when synthesizing skills from GitHub repos, classifying skill patterns, building template libraries, generating eval frameworks, or creating eval-driven…
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-detective
shynlee04
Investigate codebases with SCAN, READ, and DEEP reading modes.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hf-l2-command-parser
shynlee04
This skill should be used only when parsing $ARGUMENT propositional commands from OpenCode command strings.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hf-l2-skill-router
shynlee04
Maps meta-builder task domains to hf-* skill loading bundles with priority ordering.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
gate-l3-lifecycle-integration
shynlee04
Internal quality gate that evaluates whether Hivemind harness implementations correctly participate in the runtime lifecycle — covering 9-surface mutation…
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
gate-l3-spec-compliance
shynlee04
Spec compliance gate performing bidirectional traceability, gap detection (4 types), EARS acceptance criteria validation, and anti-pattern scanning.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hf-l2-delegation-gates
shynlee04
Enforce pre-delegation authorization gates before agent dispatch.
SkillCFreshness: C★ 51Claude Code +9 - 0.574score
hm-l2-requirements-analysis
shynlee04
Formal requirements diagnosis methodology for detecting gaps, contradictions, missing constraints, and unvalidated assumptions in existing requirements.
SkillCFreshness: C★ 51Claude Code +9
Signals
- Stars
- 51
- Forks
- 16
- Open issues
- 21
- Last commit (this folder)
- May 7, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0.0
- License
- MIT
- Repository
- github.com/shynlee04/hivemind-plugin
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from shynlee04
- 0.578score
hm-l3-detective
shynlee04
Investigate codebases with SCAN, READ, and DEEP reading modes.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-integration-contracts
shynlee04
Formal bidirectional contract authority between skills and agents.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hf-l2-skill-synthesis
shynlee04
Use when synthesizing skills from GitHub repos, classifying skill patterns, building template libraries, generating eval frameworks, or creating eval-driven…
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l2-coordinating-loop
shynlee04
Coordinate multi-agent dispatch with validation gates and handoff protocols.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hf-l2-agent-composition
shynlee04
Teaches agents how to compose specialist agents from user intent using XML markup grammar, step protocols, and structured return formats.
SkillCFreshness: C★ 51Claude Code +9 - 0.578score
hm-l3-synthesis
shynlee04
Compress research findings into actionable artifacts with tiered reduction.
SkillCFreshness: C★ 51Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get hm-l3-subagent-delegation-patterns running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
hm-l3-subagent-delegation-patterns skill. Agent Mart. https://agentmart.dev/skills/shynlee04-hm-l3-subagent-delegation-patterns (last updated 2026-10-24)