skill-context-detection
Context Detection - Internal Skill
Purpose
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.
Detection Algorithm
When a workflow skill activates, detect context using these signals:
Step 1: Check for Explicit Override
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
More from nyldn/claude-octopus
octopus-architecture
System architecture and API design with multi-AI consensus — use for design reviews and new subsystems
18skill-code-review
Expert multi-AI code review with quality and security analysis
16skill-intent-contract
Lock in user goals upfront and validate outputs against them — use to prevent scope drift
15skill-prd
Write an AI-optimized PRD using multi-AI orchestration — use when scoping a new feature or product
14skill-knowledge-work
Switch to Knowledge Work mode for research and writing — use when task is non-code focused
14skill-extract
Reverse-engineer design systems, tokens, and components from live products or screenshots
14