skill-context-detection
FeaturedAuto-detect work context (Dev vs Knowledge) — use to tailor workflows based on current task type
AI & Automation 3,887 stars
365 forks Updated today MIT
Install
Quality Score: 96/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# 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.
```bash
# 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
```
### Step 2: Analyze Prompt Content (Strongest Signal)
**Knowledge Context Indicators** (check prompt for these terms):
- Business/strategy: "market", "ROI", "stakeholders", "strategy", "business case", "competitive"
- Research: "literature", "synthesis", "academic", "papers", "research question"
- UX: "personas", "user research", "journey map", "pain points", "interviews"
- Deliverables: "presentation", "report", "PRD", "proposal", "executive summary"
**Dev Context Indicators** (check prompt for these terms):
- Technical: "API", "endpoint", "database", "function",...
Details
- Author
- nyldn
- Repository
- nyldn/claude-octopus
- Created
- 6 months ago
- Last Updated
- today
- Language
- Shell
- License
- MIT
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Featured
skill-knowledge-work
Switch to Knowledge Work mode for research and writing — use when task is non-code focused
3,887 Updated today
nyldn AI & Automation Listed
skill-discovery
Find, inspect, compare, and recommend agent skills when a user explicitly asks for a skill or when no installed skill clearly covers the requested capability. Search local skills before external catalogs, verify candidate safety and compatibility, and ask before installing or creating anything. Do not invoke for ordinary tasks that an available skill already clearly handles.
0 Updated yesterday
CodeSigils AI & Automation Solid
contexts
Use when the user says "get context on X", "how does X work", or wants architectural orientation before coding.
33 Updated today
OutlineDriven