Get the FREE Ultimate OpenClaw Setup Guide →

Hive Workers

npx machina-cli add skill smith-horn/product-builder-starter/hive-workers-skill --openclaw
Files (1)
SKILL.md
2.7 KB

Hive Workers Skill

Orchestrates complex task execution using ruflo hive mind with automatic code review and documentation updates.

Quick Start

0. EXPLORE: Search codebase for existing implementations (MANDATORY)
1. Read the task or issue
2. Initialize hive mind: swarm_init({ topology: "hierarchical" })
3. Create todos: TodoWrite with all tasks
4. Execute in parallel where possible
5. Run code review with Task agent
6. Fix any "Must Fix" items
7. Run governance audit
8. Create ADR if architectural decision
9. Update project status
10. Generate sprint report
11. Cleanup: swarm_destroy, mark issues done

Execution

When triggered, immediately:

  1. Read agent-prompt.md from this skill's directory (./agent-prompt.md)
  2. Spawn a single Task with subagent_type: "general-purpose" passing the agent-prompt content as the prompt
  3. Include in the prompt: the user's request, current working directory, and any arguments passed
  4. Wait for the agent to complete
  5. Present the agent's summary to the user

Sub-Documentation

DocumentContents
agent-prompt.mdFull execution workflow, phase details, checklists
context-persistence.mdMaintaining context across sessions for long-running tasks
CHEATSHEET.mdQuick reference for common operations
templates/Workflow templates for task execution

Related Skills

Prerequisites

  • ruflo configured (claude mcp add ruflo -- npx ruflo@v3alpha mcp start)
  • Linear MCP (optional, for issue tracking)

For full execution details, see agent-prompt.md.

Changelog

v1.0.0 (2026-03)

  • Initial public release
  • 11-step hive mind execution workflow
  • ruflo MCP integration (swarm_init, agent_spawn, task_orchestrate, swarm_destroy)
  • Automatic governance audit after execution
  • Context persistence across sessions (context-persistence.md)
  • Workflow templates for common task types

Source

git clone https://github.com/smith-horn/product-builder-starter/blob/main/skills/hive-workers-skill/SKILL.mdView on GitHub

Overview

Hive Workers orchestrates complex task execution using a hive mind of parallel agents. It integrates automatic code review and documentation updates to keep code and docs in sync. This approach supports feature work, epics, or multi-task projects while adding governance and traceability.

How This Skill Works

On trigger, it reads agent-prompt.md and spawns a single Task with subagent_type: 'general-purpose', passing the user request, current working directory, and any arguments. The system executes tasks in parallel where possible, invoking the Task agent for automatic code review and addressing 'Must Fix' items. It then runs a governance audit, creates an ADR when needed, updates project status, and performs cleanup with swarm_destroy.

When to Use It

  • Kick off a feature or epic that spans multiple modules and teams
  • Parallelize independent tasks to accelerate delivery
  • Require automatic code review and documentation updates as part of work
  • Enforce governance checks and ADR creation after execution
  • Wrap up and report sprint progress and project status

Quick Start

  1. Step 1: EXPLORE the codebase and read the task or issue (MANDATORY)
  2. Step 2: Initialize hive mind: swarm_init({ topology: "hierarchical" }) and create a TodoWrite with all tasks
  3. Step 3: Execute in parallel, run code review, fix issues, run governance audit, update ADR and status, then cleanup: swarm_destroy

Best Practices

  • MANDATORY EXPLORE: Search for existing implementations before task creation
  • Create a complete TodoWrite with all tasks to coordinate work
  • Prefer parallel execution for independent tasks to maximize throughput
  • Use the Task agent for automatic code review and to resolve 'Must Fix' items
  • Run governance audits and capture ADRs; cleanup the swarm after completion

Example Use Cases

  • Implement a new feature across frontend, API, and database with parallel tasks
  • Deliver an epic including UI changes, backend refactor, and docs updates
  • Migrate to a new logging library while updating ADR and docs
  • Refactor a core module with automatic reviews and governance checks
  • Coordinate a multi-team bug-fix sprint and generate a sprint report

Frequently Asked Questions

Add this skill to your agents

Related Skills

Sponsor this space

Reach thousands of developers ↗