extract-skill
Reverse-engineer design systems, tokens, and components from live products or screenshots
Auto-detect work context (Dev vs Knowledge) — use to tailor workflows based on current task type
$ npx -y skills add nyldn/claude-octopus --skill skill-context-detection --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/skill-context-detectionContext preview
The summary Claude sees to decide when to auto-load this skill.
Auto-detect work context (Dev vs Knowledge) — use to tailor workflows based on current task type
name: skill-context-detection description: "Auto-detect work context (Dev vs Knowledge) — use to tailor workflows based on current task type" 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`.
This skill provides **automatic context detection** to determine whether the user is working in a **Development context** (code-focused) or **Knowledge context** (research/strategy-focused). This replaces the manual `/octo:km` toggle with intelligent auto-detection.
When a workflow skill activates, detect context using these signals:
If user has explicitly set mode via `/octo:km on` or `/octo:km off`, respect that setting.
# Check if knowledge mode is explicitly set
if [[ -f ~/.claude-octopus/config/knowledge-mode ]]; then
EXPLICIT_MODE=$(cat ~/.claude-octopus/config/knowledge-mode)
if [[ "$EXPLICIT_MODE" == "on" ]]; then
echo "knowledge"
exit 0
elif [[ "$EXPLICIT_MODE" == "off" ]]; then
echo "dev"
exit 0
fi
fi
# If "auto" or not set, proceed with auto-detection**Knowledge Context Indicators** (check prompt for these terms):
**Dev Context Indicators** (check prompt for these terms):
**Scoring:**
**Dev Project Indicators:**
**Knowledge Project Indicators:**
If signals are ambiguous or equal:
Return detected context as a structured object for use by workflow skills:
{
"context": "dev" | "knowledge",
"confidence": "high" | "medium" | "low",
"signals": {
"prompt_indicators": ["API", "endpoint", "database"],
"project_type": "node_typescript",
"explicit_override": false
}
}| Aspect | Dev Context | Knowledge Context | |--------|-------------|-------------------| | **Research Focus** | Technical implementation, library comparison, code patterns | Market analysis, academic synthesis, competitive research | | **Primary Agents** | Codex (implementation), Antigravity (ecosystem) | Antigravity (analysis), research-synthesizer | | **Output Format** | Code examples, API comparisons, tech recommendations | Reports, frameworks, strategic recommendations | | **Visual Banner** | `🔍 [Dev] Discover Phase: Technical research` | `🔍 [Knowledge] Discover Phase: Strategic research` |
| Aspect | Dev Context | Knowledge Context | |--------|-------------|-------------------| | **Build Focus** | Code generation, implementation, architecture | PRDs, strategy docs, presentations | | **Primary Agents** | Codex (code), backend-architect, tdd-orchestrator | product-writer, strategy-analyst, exec-communicator | | **Output Format** | Source files, tests, migrations | Documents, frameworks, action plans | | **Visual Banner** | `🛠️ [Dev] Develop Phase: Building code` | `🛠️ [Knowledge] Develop Phase: Building deliverables` |
| Aspect | Dev Context | Knowledge Context | |--------|-------------|-------------------| | **Review Focus** | Code quality, security, performance | Document quality, argument strength, completeness | | **Primary Agents** | code-reviewer, security-auditor | exec-communicator, strategy-analyst | | **Quality Gates** | OWASP, test coverage, maintainability | Evidence quality, clarity, actionability | | **Visual Banner** | `✅ [Dev] Deliver Phase: Code review` | `✅ [Knowledge] Deliver Phase: Document review` |
When context is detected, update the visual banner to show context:
**Dev Context:**
🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider research mode 🔍 [Dev] Discover Phase: Researching OAuth implementation patterns Providers: 🔴 Codex CLI - Technical implementation analysis 🟡 Antigravity CLI - Ecosystem and library comparison 🔵 Claude - Strategic synthesis
**Knowledge Context:**
🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider research mode 🔍 [Knowledge] Discover Phase: Researching market entry strategies Providers: 🔴 Codex CLI - Data analysis and modeling 🟡 Antigravity CLI - Market and competitive research 🔵 Claude - Strategic synthesis
Each flow skill should:
1. **Before executing workflow**, run context detection 2.
Every 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…
Multi-AI research using available external providers (Double Diamond Discover phase)
Decompose and execute large changes, migrations, or multi-issue fixes in parallel with quality gates