From octo
Multi-AI implementation using Codex and Gemini CLIs (Double Diamond Develop phase). Use when: AUTOMATICALLY ACTIVATE when user requests building or implementation:. "build X" or "implement Y" or "create Z". "develop a feature for X"
How this skill is triggered — by the user, by Claude, or both
Slash command
/octo:flow-developThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Before starting development:
Before starting development:
.octo/STATE.md to verify Define phase complete# Verify Define phase is complete
if [[ -f ".octo/STATE.md" ]]; then
define_status=$("${CLAUDE_PLUGIN_ROOT}/scripts/octo-state.sh" get_phase_status 2)
if [[ "$define_status" != "complete" ]]; then
echo "⚠️ Warning: Define phase not marked complete. Consider running definition first."
fi
fi
# Update state for Development phase
"${CLAUDE_PLUGIN_ROOT}/scripts/octo-state.sh" update_state \
--phase 3 \
--position "Development" \
--status "in_progress"
This skill uses ENFORCED execution mode. You MUST follow this exact sequence.
Analyze the user's prompt and project to determine context:
Knowledge Context Indicators:
Dev Context Indicators:
Also check: Does project have package.json, Cargo.toml, etc.? (suggests Dev Context)
Capture context_type = "Dev" or "Knowledge"
DO NOT PROCEED TO STEP 2 until context determined.
Check provider availability:
command -v codex &> /dev/null && codex_status="Available ✓" || codex_status="Not installed ✗"
command -v gemini &> /dev/null && gemini_status="Available ✓" || gemini_status="Not installed ✗"
Display this banner BEFORE orchestrate.sh execution:
For Dev Context:
🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider implementation mode
🛠️ [Dev] Develop Phase: [Brief description of what you're building]
Provider Availability:
🔴 Codex CLI: ${codex_status} - Code generation and patterns
🟡 Gemini CLI: ${gemini_status} - Alternative approaches
🔵 Claude: Available ✓ - Integration and quality gates
💰 Estimated Cost: $0.02-0.10
⏱️ Estimated Time: 3-7 minutes
For Knowledge Context:
🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider implementation mode
🛠️ [Knowledge] Develop Phase: [Brief description of deliverable]
Provider Availability:
🔴 Codex CLI: ${codex_status} - Structure and framework application
🟡 Gemini CLI: ${gemini_status} - Content and narrative development
🔵 Claude: Available ✓ - Integration and quality review
💰 Estimated Cost: $0.02-0.10
⏱️ Estimated Time: 3-7 minutes
Validation:
/octo:setupDO NOT PROCEED TO STEP 3 until banner displayed.
Before executing the workflow, read any prior context:
# Initialize state if needed
"${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.sh" init_state
# Set current workflow
"${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.sh" set_current_workflow "flow-develop" "develop"
# Get prior decisions (critical for implementation)
prior_decisions=$("${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.sh" get_decisions "all")
# Get context from discover and define phases
discover_context=$("${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.sh" get_context "discover")
define_context=$("${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.sh" get_context "define")
# Display what you found (if any)
if [[ "$discover_context" != "null" ]]; then
echo "📋 Discovery phase findings:"
echo " $discover_context"
fi
if [[ "$define_context" != "null" ]]; then
echo "📋 Definition phase scope:"
echo " $define_context"
fi
if [[ "$prior_decisions" != "[]" && "$prior_decisions" != "null" ]]; then
echo "📋 Implementing with decisions:"
echo "$prior_decisions" | jq -r '.[] | " - \(.decision) (\(.phase)): \(.rationale)"'
fi
This provides critical context for implementation:
DO NOT PROCEED TO STEP 4 until state read.
You MUST execute this command via the Bash tool:
${CLAUDE_PLUGIN_ROOT}/scripts/orchestrate.sh develop "<user's implementation request>"
CRITICAL: You are PROHIBITED from:
This is NOT optional. You MUST use the Bash tool to invoke orchestrate.sh.
If running in Claude Code v2.1.16+, users will see real-time progress indicators in the task spinner:
Phase 1 - External Provider Execution (Parallel):
Phase 2 - Synthesis (Sequential):
These spinner verb updates happen automatically - orchestrate.sh calls update_task_progress() before each agent execution. Users see exactly which provider is working and what it's doing.
If NOT running in Claude Code v2.1.16+: Progress indicators are silently skipped, no errors shown.
After orchestrate.sh completes, verify it succeeded:
# Find the latest synthesis file (created within last 10 minutes)
SYNTHESIS_FILE=$(find ~/.claude-octopus/results -name "tangle-synthesis-*.md" -mmin -10 2>/dev/null | head -n1)
if [[ -z "$SYNTHESIS_FILE" ]]; then
echo "❌ VALIDATION FAILED: No synthesis file found"
echo "orchestrate.sh did not execute properly"
exit 1
fi
echo "✅ VALIDATION PASSED: $SYNTHESIS_FILE"
cat "$SYNTHESIS_FILE"
If validation fails:
~/.claude-octopus/logs/After synthesis is verified, record implementation details in state:
# Extract key implementation decisions from synthesis
implementation_approach=$(head -50 "$SYNTHESIS_FILE" | grep -A 3 "## Implementation\|## Approach" | tail -3 | tr '\n' ' ')
# Record implementation decisions
decision_made=$(echo "$implementation_approach" | grep -o "implemented\|using [A-Za-z0-9 ]*\|chose to\|pattern:" | head -1)
if [[ -n "$decision_made" ]]; then
"${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.sh" write_decision \
"develop" \
"$decision_made" \
"Multi-AI implementation consensus"
fi
# Update develop phase context
"${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.sh" update_context \
"develop" \
"$implementation_approach"
# Update metrics
"${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.sh" update_metrics "phases_completed" "1"
"${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.sh" update_metrics "provider" "codex"
"${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.sh" update_metrics "provider" "gemini"
"${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.sh" update_metrics "provider" "claude"
DO NOT PROCEED TO STEP 7 until state updated.
Read the synthesis file and present:
After user confirms, STEP 6: Implement the solution using Write/Edit tools
Include attribution:
---
*Multi-AI Implementation powered by Claude Octopus*
*Providers: 🔴 Codex | 🟡 Gemini | 🔵 Claude*
*Full implementation plan: $SYNTHESIS_FILE*
BEFORE executing ANY workflow actions, you MUST:
Analyze the user's prompt and project to determine context:
Knowledge Context Indicators (in prompt):
Dev Context Indicators (in prompt):
Also check: Does the project have package.json, Cargo.toml, etc.? (suggests Dev Context)
For Dev Context:
🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider implementation mode
🛠️ [Dev] Develop Phase: [Brief description of what you're building]
📋 Session: ${CLAUDE_SESSION_ID}
Providers:
🔴 Codex CLI - Code generation and patterns
🟡 Gemini CLI - Alternative approaches
🔵 Claude - Integration and quality gates
For Knowledge Context:
🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider implementation mode
🛠️ [Knowledge] Develop Phase: [Brief description of deliverable]
📋 Session: ${CLAUDE_SESSION_ID}
Providers:
🔴 Codex CLI - Structure and framework application
🟡 Gemini CLI - Content and narrative development
🔵 Claude - Integration and quality review
This is NOT optional. Users need to see which AI providers are active and understand they are being charged for external API calls (🔴 🟡).
Part of Double Diamond: DEVELOP (divergent thinking)
DEVELOP (tangle)
\ /
\ * /
\ * * /
\ /
\ /
Diverge with
solutions
The develop phase generates multiple implementation approaches using external CLI providers:
This is the divergent phase for solutions - we explore different implementation paths before converging on the best approach.
Use develop when you need:
Don't use develop for:
Before execution, you'll see:
🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider implementation
🛠️ Develop Phase: Building and developing solutions
Providers:
🔴 Codex CLI - Code generation and patterns
🟡 Gemini CLI - Alternative approaches
🔵 Claude - Integration and refinement
${CLAUDE_PLUGIN_ROOT}/scripts/orchestrate.sh develop "<user's implementation request>"
The orchestrate.sh script will:
The tangle phase includes automatic quality validation:
When orchestrate.sh output contains AGENT_TEAMS_RESUME:${agent_id}:${task_id}:${role}:${phase}:
resume=${agent_id} parameter instead of spawning a new agent~/.claude-octopus/agent-teams/${task_id}.jsonbridge_store_agent_id(task_id, returned_agent_id) in the bridge ledgerThis enables iterative refinement during tangle retries without losing the agent's prior reasoning context.
Results are saved to:
~/.claude-octopus/results/${SESSION_ID}/tangle-synthesis-<timestamp>.md
After reviewing all perspectives, implement the final solution using Write/Edit tools.
When this skill is invoked, follow the EXECUTION CONTRACT above exactly. The contract includes:
Each step is mandatory and blocking - you cannot proceed to the next step until the current one completes successfully.
Create tasks to track execution progress:
// At start of skill execution
TaskCreate({
subject: "Execute develop workflow with multi-AI providers",
description: "Run orchestrate.sh develop for implementation",
activeForm: "Running multi-AI develop workflow"
})
// Mark in_progress when calling orchestrate.sh
TaskUpdate({taskId: "...", status: "in_progress"})
// Mark completed ONLY after implementation finished
TaskUpdate({taskId: "...", status: "completed"})
If any step fails:
/octo:setup and STOPNever fall back to direct implementation if orchestrate.sh execution fails. Report the failure and let the user decide how to proceed.
After successful execution, present implementation plan with:
# Implementation Plan: <task>
## Recommended Approach
[Your strategic recommendation based on all perspectives]
## Implementation Steps
1. [Step-by-step implementation plan]
2. ...
## Code Overview
### Codex Approach
[Key implementation details from Codex]
### Gemini Approach
[Alternative considerations from Gemini]
### Final Implementation
[Your integrated solution]
## Quality Gates
- [ ] Security validation: PASSED/FAILED
- [ ] Best practices: PASSED/FAILED
- [ ] Code quality: PASSED/FAILED
Would you like me to proceed with implementation?
User: Build a user authentication system with JWT
Claude:
🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider implementation mode
🛠️ Develop Phase: Building authentication system
[Executes: ${CLAUDE_PLUGIN_ROOT}/scripts/orchestrate.sh develop "Build a user authentication system with JWT"]
[After completion, reads synthesis and presents:]
# Implementation Plan: User Authentication System
## Recommended Approach
Based on multi-provider analysis, I recommend a layered approach:
1. Auth middleware for JWT validation
2. Login/register endpoints
3. Token refresh mechanism
4. Secure password hashing (bcrypt)
## Implementation Steps
1. Create `src/auth/middleware.ts` - JWT validation middleware
2. Create `src/auth/controller.ts` - Login/register endpoints
3. Create `src/auth/service.ts` - Business logic
4. Create `src/auth/utils.ts` - Token generation/validation
5. Update `src/routes.ts` - Register auth routes
## Code Overview
### Codex Approach
- Modern TypeScript with strict types
- Express middleware pattern
- Redis for token blacklisting
- Comprehensive error handling
### Gemini Approach
- Passport.js integration suggestion
- Rate limiting on auth endpoints
- Multi-factor auth consideration
- Session management alternatives
### Final Implementation
- Hybrid: Modern TypeScript + Express patterns
- JWT with refresh tokens
- bcrypt password hashing
- Rate limiting included
- Optional MFA hooks for future
## Quality Gates
- ✅ Security validation: PASSED (bcrypt, secure tokens)
- ✅ Best practices: PASSED (TypeScript, error handling)
- ⚠️ Code quality: WARNING (consider adding request validation)
Would you like me to proceed with implementation?
[User: Yes, proceed]
[Claude creates files and implements the solution]
User: Create an API endpoint for fetching user notifications
Claude:
🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider implementation mode
🛠️ Develop Phase: Creating API endpoint
[Executes tangle workflow]
[Presents implementation plan with multi-provider perspectives]
[Implements the endpoint after user confirmation]
The tangle phase automatically runs quality checks via .claude/hooks/quality-gate.sh:
# Triggered after tangle execution (PostToolUse hook)
./hooks/quality-gate.sh
Quality Metrics:
Thresholds:
Tangle is the third phase of the Double Diamond:
PROBE (Discover) → GRASP (Define) → TANGLE (Develop) → INK (Deliver)
After tangle completes, you may continue to:
Or use standalone for implementation tasks.
Before writing code, ensure:
After writing code, ensure:
External API Usage:
Tangle workflows typically cost $0.02-0.10 per task depending on complexity and code length.
After development completes:
.octo/STATE.md with completiongit tag octo-checkpoint-post-develop-$(date +%Y%m%d-%H%M%S)# Update state after Development completion
"${CLAUDE_PLUGIN_ROOT}/scripts/octo-state.sh" update_state \
--status "complete" \
--history "Develop phase completed"
# Create git checkpoint tag
checkpoint_tag="octo-checkpoint-post-develop-$(date +%Y%m%d-%H%M%S)"
git tag "$checkpoint_tag" -m "Post-develop checkpoint from embrace workflow"
echo "📌 Created checkpoint: $checkpoint_tag"
# Record files modified in this phase
modified_files=$(git diff --name-only HEAD~1 2>/dev/null || echo "See git log")
"${CLAUDE_PLUGIN_ROOT}/scripts/octo-state.sh" update_state \
--history "Files modified: $modified_files"
Ready to build! This skill activates automatically when users request implementation or building features.
npx claudepluginhub jetsongdev/claude-octopusCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
3plugins reuse this skill
First indexed Jul 13, 2026