shell
$ npx -y skills add nyldn/claude-octopus --agent claude-codeShips with octo. Installing the plugin gets this command.
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/km
Context preview
What this command does when you run it.
[advanced] Switch to Knowledge Work mode (or toggle with off)
Stats
Stars3,869
Forks362
LanguageShell
LicenseMIT
Ships with octo
Command definition
km.md
--- command: km description: "[advanced] Switch to Knowledge Work mode (or toggle with off)" usage: "/octo:km [on|off]" examples: - "/octo:km # Switch to Knowledge Work mode" - "/octo:km on # Switch to Knowledge Work mode (explicit)" - "/octo:km off # Switch to Dev Work mode" --- # Knowledge Mode Toggle Toggle between **Dev Work Mode** and **Knowledge Work Mode**. ## Implementation Instructions When this command is executed: 1. **Parse the argument:** - No argument or "on" → target mode = Knowledge Work (`knowledge_mode: true`) - "off" → target mode = Dev Work (`knowledge_mode: false`) 2. **Check current mode** via `.claude/claude-octopus.local.md`: - Target is Dev Work AND file does NOT exist → user is already in Dev Work Mode (default). **Do not create the file.** Show confirmation only, then exit. - File exists AND current `knowledge_mode` already equals the target → **Do not rewrite the file.** Show confirmation only, then exit. - Otherwise → proceed to step 3 (real transition needed). 3. **Switch modes** (only when a real transition is required): - Before writing, state one sentence: "Switching to Knowledge Work — creating `.claude/claude-octopus.local.md` (`knowledge_mode: true`)." (or the equivalent for Dev Work).
