Install any skill in seconds. Free to start, no credit card required.
Get Started Free →nyldn/skill-context-detection
Auto-detect work context (Dev vs Knowledge) — use to tailor workflows based on current task type
Passed 24 of 24 test cases with the skill, and 6 of 24 without it.
and 16 more in the full report
18 fixed6 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 18 test cases the skill fixed. Same model, same prompt, with and without the skill.
Evaluate the following prompt to determine if it represents a development context or a knowledge research context: 'Synthesize academic literature and market data for our strategic report.' Return a JSON object with fields for context, confidence level, and detected signals.
| Checked | Without skill | With skill |
|---|---|---|
| The top-level key for context status in the JSON response is context. | Passed | Passed |
| The context field value is knowledge. | Missed | Passed |
| The response contains a top-level JSON key named signals. | Missed | Passed |
The instructions your model reads when the skill loads.
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):
test cases passed, vs 6 / 24 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.