ClaudeCodeMod

All shelves / Mods / Safety

dogma

By Marcel-Bich

dogma is a Claude Code safety mod by Marcel-Bich.

Runs, asks about, or blocks git commands and deletes by your DOGMA-PERMISSIONS.md, always denies deleting a protected path, and draws the restricting rules.

DrawsHolds a command

Install

The marketplace name is marcel-bich-claude-marketplace.

In your shell
claude plugin marketplace add Marcel-Bich/marcel-bich-claude-marketplace
claude plugin install dogma@marcel-bich-claude-marketplace
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
1.47.2
License
MIT
Repo stars
12
Last change
2026-10-14

What it can reach

  • Draws in the session
  • Holds a command
  • Reaches the network or an outside service
  • Sees tool calls
  • Calls another program on this machine

Needs jq, and python3 for reading shell commands. Without python3, or on an internal error, a destructive-looking command is denied. Git commands and deletes follow DOGMA-PERMISSIONS.md in the project: run, ask first, or deny. /dogma:permissions sets it up. The hard list is denied whatever that file says: /, the home directory and its first level, a repository or worktree root, and other protected paths. A package install asks first. The Grep tool is blocked from credential, .env, and key files. The band above the prompt lists the restricting entries. /dogma:sync pulls rules from a source repository, by default the author's. The author says the enforcement hooks increase token consumption significantly, and recommends Claude Max 20x, or at least Max 5x. For sync without the hooks, any plan works.

The marketplace name is marcel-bich-claude-marketplace. The marketplace also holds credo, signal, limit, and other mods. This one installs on its own. The denied command is why this page files it under safety. blast-radius holds a shell command such as rm -rf, a force push, a hard reset, or a migration, shows what it would touch, then asks you to proceed or cancel. bash-guard holds every Bash call, including under --dangerously-skip-permissions, blocks rm -rf on a home or system directory, and asks before a force-push, a hard reset, or a pipe into sh. This one denies that hard list whatever the permission file says, and draws the restricting entries above the prompt.

Demo

The permissions section of the dogma README: a DOGMA-PERMISSIONS.md block with git add and commit on auto and push, deletes, and discards on ask first, and a table of auto, ask, and deny.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • tool.callAround a tool call, where it can hold one
  • turn.completeWhen a turn ends
  • ui.renderDraws into the sessionAbovePrompt

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Hooks 36

  • SessionStart"${CLAUDE_PLUGIN_ROOT}/hooks/notices-inject.sh"
  • SessionStart"${CLAUDE_PLUGIN_ROOT}/hooks/session-dir-record.sh"
  • UserPromptSubmit${CLAUDE_PLUGIN_ROOT}/scripts/subagent-suggestion.sh
  • UserPromptSubmit${CLAUDE_PLUGIN_ROOT}/scripts/user-prompt-submit.sh
  • UserPromptSubmit${CLAUDE_PLUGIN_ROOT}/scripts/prompt-intervention-reminder.sh
  • UserPromptSubmit${CLAUDE_PLUGIN_ROOT}/scripts/checklist-tracking.sh
  • PreToolUse · Read${CLAUDE_PLUGIN_ROOT}/scripts/token-protection.sh
  • PreToolUse · Grep${CLAUDE_PLUGIN_ROOT}/scripts/token-protection.sh
  • PreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/token-protection.sh
  • PreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/git-add-protection.sh
  • PreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/git-permissions.sh
  • PreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/delete-guard.sh
  • PreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/file-protection.sh
  • PreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/dependency-verification.sh
  • PreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/pre-commit-lint.sh
  • PreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/git-pull-before-push.sh
  • PreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/subagent-enforcement.sh Bash
  • PreToolUse · Write${CLAUDE_PLUGIN_ROOT}/scripts/secrets-detection.sh
  • PreToolUse · Write${CLAUDE_PLUGIN_ROOT}/scripts/write-edit-reminder.sh
  • PreToolUse · Write${CLAUDE_PLUGIN_ROOT}/scripts/subagent-enforcement.sh Write
  • PreToolUse · Edit${CLAUDE_PLUGIN_ROOT}/scripts/secrets-detection.sh
  • PreToolUse · Edit${CLAUDE_PLUGIN_ROOT}/scripts/write-edit-reminder.sh
  • PreToolUse · Edit${CLAUDE_PLUGIN_ROOT}/scripts/subagent-enforcement.sh Edit
  • PreToolUse · Task${CLAUDE_PLUGIN_ROOT}/scripts/subagent-enforcement.sh Task
  • PreToolUse · Task${CLAUDE_PLUGIN_ROOT}/scripts/subagent-context.sh
  • PreToolUse · Task${CLAUDE_PLUGIN_ROOT}/scripts/enforce-model-policy.sh
  • PreToolUse · Skill${CLAUDE_PLUGIN_ROOT}/scripts/subagent-enforcement.sh Skill
  • PostToolUse · Write${CLAUDE_PLUGIN_ROOT}/scripts/post-write-validate.sh
  • PostToolUse · Write${CLAUDE_PLUGIN_ROOT}/scripts/review-trigger.sh
  • PostToolUse · Edit${CLAUDE_PLUGIN_ROOT}/scripts/post-write-validate.sh
  • PostToolUse · Edit${CLAUDE_PLUGIN_ROOT}/scripts/review-trigger.sh
  • PostToolUse · WebFetch${CLAUDE_PLUGIN_ROOT}/scripts/prompt-injection.sh
  • PostToolUse · WebSearch${CLAUDE_PLUGIN_ROOT}/scripts/prompt-injection.sh
  • Stop${CLAUDE_PLUGIN_ROOT}/scripts/version-sync-check.sh
  • Stop${CLAUDE_PLUGIN_ROOT}/scripts/lint-on-stop.sh
  • Stop${CLAUDE_PLUGIN_ROOT}/scripts/checklist-reminder.sh

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
Marcel-Bich
Category
Safety
Marketplace
marcel-bich-claude-marketplace
Repo
Marcel-Bich/marcel-bich-claude-marketplace
Folder
plugins/dogma
Version
1.47.2
License
MIT
Repo stars
12
Last change
2026-10-14
Language
Shell
Files
79

Other mods in Safety

guard-packatretyak1985Holds a commandHolds file tools and shell moves that leave the project's roots, asks before a production deploy, and redacts secrets in a tool result before Claude reads it.supabase-guardSzotaszHolds a commandAsks before a Supabase write aimed at another project, or a destructive call, and stops the call when you refuse.secret-panebengousHolds a commandOpens a masked box beside the transcript when Claude needs a secret, gives Claude a placeholder, and puts the real value back only inside a Bash command.ultramodmertkayacsHolds a commandPacks ten mods: limits and context above the prompt, a guard with undo for rm -rf and git reset --hard, .env reads refused, and a receipt under each answer.envdavekissHolds a commandOpens a card when Claude needs a key, so you paste the value into a pane Claude can't read, and holds Claude's reads of .env files and commands that print them.model-allowlisterikdarlingdataHolds a commandRefuses a subagent spawn that pins a model id instead of a tier alias such as opus or sonnet, and holds spawns to model rules you write per agent type.ruflo-browserruvnetHolds a commandRefuses ruflo browser opens of file, javascript, data, or chrome URLs, credentialed or cloud-metadata hosts, unsafe Chrome flags, and cookie-reading scripts.ruflo-intelligenceruvnetHolds a commandRefuses a key, token, or password in what ruflo learns from, an email address in a public transfer, and a reset of ruflo's intelligence without confirm.ruflo-jujutsuruvnetHolds a commandRefuses a pull request ruflo creates or reviews when its title or body holds a key, token, or password, and a merge or close that does not carry confirm.ruflo-neural-traderruvnetHolds a commandRefuses a live order from ruflo's neural-trader tools unless it is confirmed, paper, or a dry run, and any trader call or memory write that holds a broker key.ruflo-loop-workersruvnetHolds a commandRefuses a ruflo background worker dispatch whose context holds a key, token, or password, and any dispatch past a per-session cap, which catches a stuck loop.ruflo-workflowsruvnetHolds a commandRefuses a ruflo workflow definition, run, or workflow memory record that holds a secret, and a workflow_delete that names no single workflow id.
All 73 in Safety