Skills for Real Engineers. Straight from my .agents directory.
skill-context-detection
Agent skill fromnyldn/claude-octopus
Auto-detect work context (Dev vs Knowledge) — use to tailor workflows based on current task type
How to install skill-context-detection
npx skills add nyldn/claude-octopus# or add only this skill to Claude Code: copy the folder
skills/skill-context-detection/
# into
~/.claude/skills/skill-context-detection/ (all projects)
.claude/skills/skill-context-detection/ (one project)
1> **Host: Codex CLI** — This skill was designed for Claude Code and adapted for Codex.2> Cross-reference commands use installed skill names in Codex rather than `/octo:*` slash commands.3> 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.4> For host tool equivalents, see `skills/blocks/codex-host-adapter.md`.567# Context Detection - Internal Skill89## Purpose1011This 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.1213## Detection Algorithm1415When a workflow skill activates, detect context using these signals:1617### Step 1: Check for Explicit Override1819If user has explicitly set mode via `/octo:km on` or `/octo:km off`, respect that setting.2021```bash22# Check if knowledge mode is explicitly set23if [[ -f ~/.claude-octopus/config/knowledge-mode ]]; then24 EXPLICIT_MODE=$(cat ~/.claude-octopus/config/knowledge-mode)25 if [[ "$EXPLICIT_MODE" == "on" ]]; then26 echo "knowledge"27 exit 028 elif [[ "$EXPLICIT_MODE" == "off" ]]; then29 echo "dev"30 exit 031 fi32fi33# If "auto" or not set, proceed with auto-detection34```3536### Step 2: Analyze Prompt Content (Strongest Signal)3738**Knowledge Context Indicators** (check prompt for these terms):39…
Excerpt shown under the repository's MIT license.
More skills in claude-octopus
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
