skills/hive-methodology/SKILL.md
--- name: hive-methodology description: Agent Hive methodology — 7 principles for structured multi-agent coordination: Plan→Approve→Execute, context persistence, batched parallelism, worktree isolation, good enough wins, tests define done, iron laws level: 2 --- # Agent Hive Methodology > **Stop vibing. Start hiving.** Plan first. Execute with trust. Context persists. Inspired by [hung319/agent-hive](https://github.com/hung319/agent-hive)'s PHILOSOPHY.md — a multi-agent orchestration framewor
npx skillsauth add Thomashighbaugh/opencode skills/hive-methodologyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Stop vibing. Start hiving. Plan first. Execute with trust. Context persists.
Inspired by hung319/agent-hive's PHILOSOPHY.md — a multi-agent orchestration framework grounded in bee colony efficiency.
Calibration survives between sessions. Store grounded, project-specific knowledge that shapes agent behavior.
Store:
Don't store: General knowledge the agent already has.
Two phases with a clear approval gate between them.
| Phase | Mode | Human Role | |-------|------|------------| | Planning | Dialogue | Shape, question, refine | | Execution | Trust | Agent runs, human monitors |
Planning is collaborative. Execution is autonomous. The approval gate is where trust is earned.
Destination known. Path explored.
Capture what's good enough FOR THIS CONTEXT. Reject over-engineering.
Valuable context examples:
Parallel tasks grouped into sequential batches. Context flows between batches.
Batch 1 (parallel): Batch 2 (parallel):
├── Task A ├── Task D (uses A+B+C)
├── Task B └── Task E (uses A+B+C)
└── Task C
↓
Glue task synthesizes results
↓
Context flows to Batch 2
Best-effort worker verification + orchestrator batch testing.
Enforce with tools and instructions, not soft suggestions.
Iron Laws:
| Agent | Role | Description | |-------|------|-------------| | Architect Bee | Planner | Interviews, discovers requirements, writes plan.md. NEVER executes. | | Swarm Bee | Orchestrator | Coordinates execution, delegates to workers, merges results. | | Forager Bee | Executor | Executes tasks in isolated contexts. Does the actual coding. | | Scout Bee | Researcher | Researches codebase and external docs in parallel. | | Hygienic Bee | Reviewer | Reviews plan quality. Returns OKAY/REJECT verdict. |
/ideation hive add user authentication
→ Architect Bee interviews you
→ Gathers context (existing auth code, patterns)
→ Produces plan.md with task breakdown
→ You approve → ready for /orchestrate hive
/orchestrate hive user authentication
→ Swarm Bee loads approved plan
→ Batch 1: AuthService + Token refresh (parallel)
→ Batch 2: API routes + Tests (after Batch 1)
→ Each Forager in isolated worktree
→ Blocked? Worker reports, you decide
→ Final merge + tests → done
/hive add dark mode support
→ /ideation hive plan (interviews, produces plan.md)
→ /orchestrate hive execute (batched parallel execution)
→ Context persists for next session
| Hub | Subcommand | Hive Phase |
|-----|-----------|------------|
| /ideation hive | Plan | Architect Bee — interview → context → plan.md → approval gate |
| /orchestrate hive | Execute | Swarm Bee — batched parallelism → blocked protocol → batch test → merge |
tools
Create valid, type-safe TypeScript tools for OpenCode — generates correct boilerplate, typed interfaces, and handler stubs. Use when building new tools for global config or per-project .opencode/tools/.
testing
Explore multiple solution branches in parallel, evaluate each, and recommend the best path. Use when the user explicitly invokes /ideation tree-of-thoughts or asks for "tree of thought" / "branching exploration".
testing
Run multiple independent reasoning passes and find consensus. Use when the decision is critically important, the stakes are high, or the user explicitly requests "run it multiple times" / "check consistency" / "self-consistency".
testing
Optimization by PROmpting — generate candidate prompt variations, test each against a benchmark, and report the best performer. Use when the user invokes /ideation opro or asks for "prompt optimization" / "OPRO".