From hive
**Purpose:** Guide Mentat's decisions on when and how to invoke Forge (GPT-5) or Mycelium (Gemini 2.5) for technical review, adversarial feedback, and system-wide consistency checks.
npx claudepluginhub skywalking-dev/hiveThis skill uses the workspace's default tool permissions.
**Purpose:** Guide Mentat's decisions on when and how to invoke Forge (GPT-5) or Mycelium (Gemini 2.5) for technical review, adversarial feedback, and system-wide consistency checks.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Purpose: Guide Mentat's decisions on when and how to invoke Forge (GPT-5) or Mycelium (Gemini 2.5) for technical review, adversarial feedback, and system-wide consistency checks.
Scope: Technical review workflows, architectural validation, and collaborative decision-making with external AI agents.
Reference: .claude/commands/debate.md - Always follow the debate command protocol.
Mentat must invoke Forge (via /debate or direct) when:
Always invoke Forge for:
Rationale: High-stakes decisions require adversarial review to catch risks Mentat might miss.
Strongly consider invoking Forge for:
Rationale: Complex decisions benefit from Forge's execution-focused perspective.
Consider invoking Forge for:
Rationale: Optional but valuable for quality assurance.
Never invoke Forge for:
Rationale: Forge's time is valuable; use it for decisions that matter.
Mentat should invoke Mycelium (via /debate with mycelium agent) when:
Best for:
Rationale: Mycelium focuses on system architecture, integration and cross-project consistency.
/debate Command (Preferred)# Default (Forge) - for execution/technical review
/debate path/to/document.md
# Explicit Forge invocation
/debate path/to/document.md forge
# Mycelium - for PRD or System Architecture review
/debate path/to/document.md mycelium
# Code Review mode (LLM-as-Judge) - for agent output review
/debate --code-review SKY-123 # review changes from a Linear issue
/debate --code-review HEAD~3 # review last 3 commits
/debate --code-review path/to/file # review specific file
Process (document mode):
/debate commandProcess (code-review mode):
Use for:
# Forge
python3 scripts/invoke_forge.py "path/to/document.md" "PRD"
# Mycelium
python3 scripts/invoke_mycelium.py "path/to/document.md" "PRD"
Use for: Custom scenarios or when /debate command is not available
Document requirements:
Document types:
For Forge:
For Mycelium:
Forge feedback structure:
Mycelium feedback structure:
Decision tree:
What type of document?
What's the primary concern?
Is this high-stakes AND system-wide?
Is this high-stakes?
Is this complex?
Is document >70% complete?
Invoke both Forge and Mycelium when:
Process:
| Scenario | Agent | Reason |
|---|---|---|
| Architecture design | Forge | Execution and risk focus |
| Cross-project integration | Mycelium | Holistic system view |
| Implementation plan | Forge | Execution quality |
| Workflow design | Mycelium | System consistency |
| Code review | Forge | Code quality and performance |
| Performance optimization | Forge | Execution expertise |
User: "Necesito diseñar la arquitectura de un sistema distribuido para procesar pagos"
→ Mentat identifies:
- Complex architectural decision (high-stakes, payment system) → Forge needed
- System architecture with cross-project impact → Mycelium needed
→ Prepares architecture document (>70% complete)
→ Invokes Forge first: /debate docs/projects/payment/ARCH.md forge
→ Forge reviews: Execution risks, performance, security, scalability
→ Provides feedback on: Payment flow risks, database design, API contracts
→ Mentat incorporates Forge feedback
→ Invokes Mycelium second: /debate docs/projects/payment/ARCH.md mycelium
→ Mycelium reviews: System integration, cross-project consistency, workflow design
→ Provides feedback on: Integration points with existing systems, consistency patterns
→ Mentat incorporates Mycelium feedback
→ Presents refined architecture to user with both perspectives addressed
Rationale: High-stakes payment system requires both execution review (Forge) and system-wide consistency (Mycelium).
User: "Necesito diseñar el workflow de integración entre el sistema de e-commerce y el ERP"
→ Mentat identifies:
- Workflow design with cross-system integration → Mycelium needed
- System-wide consistency check required
- Not high-stakes execution risk → Forge not needed
→ Prepares workflow design document (>70% complete)
→ Invokes Mycelium via /debate docs/projects/integration/WORKFLOW.md mycelium
→ Mycelium reviews workflow for:
- Cross-project consistency (e-commerce ↔ ERP patterns)
- Integration points and data flow
- System-wide impact and dependencies
- Workflow design alignment with existing patterns
→ Provides feedback on:
- Integration patterns consistency
- Data synchronization strategy
- Error handling across systems
- Workflow orchestration approach
→ Mentat incorporates feedback
→ Presents refined workflow design to user
Rationale: Workflow design focuses on system integration and consistency, which is Mycelium's strength.
User: "Revisa este código antes de merge a producción"
→ Mentat identifies: Code review, production merge
→ Invokes Forge via /debate src/api/endpoints.py forge
→ Forge reviews code quality, performance, security
→ Provides feedback on optimizations, edge cases, risks
→ Mentat incorporates feedback
→ Presents refined code to user
Pixel completes SKY-47: WhatsAppButton component
→ Mentat validates acceptance criteria: 3/3 met
→ Feature is critical (customer-facing) → triggers code review
→ Invokes: /debate --code-review SKY-47
→ Mentat collects:
- Git diff from Pixel's branch
- Acceptance criteria from SKY-47 description
- Relevant contracts (DESIGN_CONTRACT, TEST_ID_CONTRACT)
→ Forge reviews:
- Security: No XSS vectors, no hardcoded secrets ✅
- Quality: No duplicated logic, clean component structure ✅
- Spec adherence: All AC met, test IDs present ✅
- Architecture: Follows existing component patterns ✅
→ Forge verdict: APPROVE with minor suggestions
→ Mentat marks SKY-47 Done, proceeds to Sentinela
When to trigger code-review mode:
❌ Invoking for incomplete documents - Document must be >70% complete ❌ Invoking for simple decisions - Use agents' time wisely ❌ Skipping invocation for high-stakes decisions - Always get adversarial review ❌ Invoking wrong agent - Forge for execution, Mycelium for system consistency ❌ Not preparing document properly - Must include context, options, trade-offs ❌ Ignoring feedback - Always incorporate high-priority concerns ❌ Invoking too early - Wait until document is substantial enough for meaningful review
/debate command, clean up temp filesReady. Use this skill when deciding whether to invoke Forge or Mycelium for technical review. Always follow the decision framework and respect the debate command protocol.