From oh-my-god
Enter oh-my-god strict mode by locking the current Claude Code session to a specific role (executor, explorer, architect, reviewer). After lock, the PreToolUse scope hook enforces the role's tool allowlist and the Stop hook's gate judgment still runs.
How this skill is triggered — by the user, by Claude, or both
Slash command
/oh-my-god:omg-lockThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Switches the current Claude Code session from passive observation into
Switches the current Claude Code session from passive observation into strict oh-my-god enforcement mode. The chosen role's tool allowlist is enforced by the PreToolUse hook, so Claude physically cannot call a tool that the role forbids.
The user invokes this when they want to constrain the current session. Typical triggers:
explorerexecutor
(Day 7+ adds path constraints; Day 6 just has role-level tool gating)Defined in roles.json at the plugin root:
Determine the role from the user's request. If ambiguous, ask the user which role they want before running anything.
Execute the lock script via the Bash tool:
node "$CLAUDE_PLUGIN_ROOT"/scripts/omg-lock.mjs <ROLE>
Replace <ROLE> with the chosen role name.
Read the script's stdout. It will report:
Summarize the result to the user in plain language:
/omg-release to go back to passiveIf the script exits non-zero, report the error verbatim and
suggest the user check roles.json for available role names.
User: /omg-lock explorer
Claude runs:
node "$CLAUDE_PLUGIN_ROOT"/scripts/omg-lock.mjs explorer
Script output:
[omg-lock] session abc123 — role default → explorer
[omg-lock] description: Read-only exploration. No file modification, no shell.
[omg-lock] allowed tools: Read, Grep, Glob
[omg-lock] strict mode is now ACTIVE for this session.
Claude to user:
Locked session to explorer role. I can now only use Read, Grep, and Glob — no file edits, no shell. Say
/omg-releasewhen you want to go back to passive mode.
~/.omg/state.db, pass --session <id> explicitly.npx claudepluginhub ckdwns9121/oh-my-god --plugin oh-my-godGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.