hive-patterns
Best practices, patterns, and examples for building goal-driven agents. Includes client-facing interaction, feedback edges, judge patterns, fan-out/fan-in, context management, and anti-patterns.
npx skills add majiayu000/claude-skill-registry --skill hive-patterns-aden-hive-hive --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Building Agents - Patterns & Best Practices Design patterns, examples, and best practices for building robust goal-driven agents. **Prerequisites:** Complete agent structure using `hive-create`. ## Practical Example: Hybrid Workflow How to build a node using both direct file writes and optional MCP validation: ```python # 1. WRITE TO FILE FIRST (Primary - makes it visible) node_code = ''' search_node = NodeSpec( id="search-web", node_type="event_loop", input_keys=["query"], output_keys=["search_results"], system_prompt="Search the web for: {query}. Use web_search, then call set_output to store results.", tools=["web_search"], ) ''' Edit( file_path="exports/research_agent/nodes/__init__.py", old_string="# Nodes will be added here", new_string=node_code ) # 2. OPTIONALLY VALIDATE WITH MCP (Secondary - bookkeeping) validation = mcp__agent-builder__test_node( node_id="search-web", test_input='{"query": "python tutorials"}', mock_llm_response='{"search_results": [...mock results...]}' ) ``` **User experience:** - Immediately sees node in their editor (from step 1) - Gets validation feedback (from step 2) - Can edit the file directly if needed ## Multi-Turn Interaction Patterns For age
- Practical Example: Hybrid Workflow
- Multi-Turn Interaction Patterns
- Client-Facing Nodes
- When to Use clientfacing
- Edge-Based Routing and Feedback Loops
- Conditional Edge Routing
- Routing Decision Table
- Judge Patterns
- Implicit Judge (Default)
- SchemaJudge
- When to Use Which Judge
- Fan-Out / Fan-In (Parallel Execution)
- Context Management Patterns
- Tiered Compaction
What does the hive-patterns skill do?
Best practices, patterns, and examples for building goal-driven agents. Includes client-facing interaction, feedback edges, judge patterns, fan-out/fan-in, context management, and anti-patterns.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill hive-patterns-aden-hive-hive --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
