extract-skill
Reverse-engineer design systems, tokens, and components from live products or screenshots
Multi-AI research using available external providers (Double Diamond Discover phase)
$ npx -y skills add nyldn/claude-octopus --skill flow-discover --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/flow-discoverContext preview
The summary Claude sees to decide when to auto-load this skill.
Multi-AI research using available external providers (Double Diamond Discover phase)
name: flow-discover description: "Multi-AI research using available external providers (Double Diamond Discover phase)" disable-model-invocation: true
> **Host: Codex CLI** — This skill was designed for Claude Code and adapted for Codex. > Cross-reference commands use installed skill names in Codex rather than `/octo:*` slash commands. > Use the active Codex shell and subagent tools. Do not claim a provider, model, or host subagent is available until the current session exposes it. > For host tool equivalents, see `skills/blocks/codex-host-adapter.md`.
{{PREAMBLE}}
Workflow state is stored in the host workspace by default. Only create the project-local `.octo/` lifecycle artifacts when the user explicitly opts in by setting `OCTOPUS_PROJECT_PERSISTENCE=true`.
if [[ "${OCTOPUS_PROJECT_PERSISTENCE:-false}" == "true" ]]; then
if [[ ! -d ".octo" ]]; then
echo "📁 Initializing opt-in .octo/ project state..."
if ! "${HOME}/.claude-octopus/plugin/scripts/octo-state.sh" init_project; then
echo "Discover incomplete: could not initialize opt-in project state." >&2
exit 1
fi
fi
if ! "${HOME}/.claude-octopus/plugin/scripts/octo-state.sh" update_state \
--phase 1 \
--position "Discovery" \
--status "in_progress"; then
echo "Discover incomplete: could not persist in-progress state." >&2
exit 1
fi
fi**IMPORTANT:** claude-octopus workflows are designed to persist across context clearing.
Check if native plan mode is active:
# Check for native plan mode markers
if [[ -n "${PLAN_MODE_ACTIVE}" ]] || claude-code plan status 2>/dev/null | grep -q "active"; then
echo "⚠️ Native plan mode detected"
echo ""
echo " Resolve Claude Octopus workflow state with: octopus state-path"
echo " State will persist across plan mode context clears"
echo " Multi-AI orchestration will continue normally"
echo ""
fi**How it works:**
**No action required** - state management handles this automatically via STEP 3 in the execution contract.
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.** Context type (Dev vs Knowledge) determines which provider prompts to use — wrong context produces irrelevant research that wastes provider credits.
**MANDATORY: You MUST use the native shell command tool to run this provider check BEFORE displaying the banner. Do NOT skip it. Do NOT assume availability.**
bash "${HOME}/.claude-octopus/plugin/scripts/helpers/check-providers.sh"**Use the ACTUAL results below. PROHIBITED: Showing only "🔵 Claude: Available ✓" without listing all providers.**
If `OCTO_ALLOWED_PROVIDERS` is set, treat it as the source of truth for which providers may participate. Providers filtered out by that allowlist are intentionally reported as unavailable; do not invoke or recommend them in the workflow.
**Display this banner BEFORE orchestrate.sh execution:**
**For Dev Context:**
🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider research mode
🔍 [Dev] Discover Phase: [Brief description of technical research]
Provider Availability:
🔴 Codex CLI: ${codex_status}
🟡 Antigravity CLI: ${agy_status}
🧭 Antigravity CLI: ${agy_status}
🟣 Perplexity: ${perplexity_status}
🔵 Claude: Available ✓ (Strategic synthesis)
💰 Estimated Cost: $0.01-0.08
⏱️ Estimated Time: 2-5 minutes**For Knowledge Context:**
🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider research mode
🔍 [Knowledge] Discover Phase: [Brief description of strategic research]
Provider Availability:
🔴 Codex CLI: ${codex_status}
🟡 Antigravity CLI: ${agy_status}
🧭 Antigravity CLI: ${agy_status}
🟣 Perplexity: ${perplexity_status}
🔵 Claude: Available ✓ (Strategic synthesis)
💰 Estimated Cost: $0.01-0.08
⏱️ EstimEvery AI model has blind spots. Claude Octopus supports twelve external provider integrations — Codex, Antigravity CLI, Copilot, Qwen, Ollama, Perplexity, OpenRouter, OrcaRouter, OpenCode, Cursor CLI, Grok, and Kimi Code — alongside the built-in Claude Code
Repo: nyldn/claude-octopus
Reverse-engineer design systems, tokens, and components from live products or screenshots
Multi-AI requirements scoping using available external providers (Double Diamond Define phase). Priority triggers: octo define, octo scope, co-define,…
Multi-AI validation, scoring, and review using available external providers (Double Diamond Deliver phase)
Multi-AI implementation using available external providers (Double Diamond Develop phase). DO NOT use for simple code edits, reading/reviewing code, built-in…
Decompose and execute large changes, migrations, or multi-issue fixes in parallel with quality gates
NLSpec authoring — use when you need a structured specification from multi-AI research and consensus