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.
claude plugin marketplace add Marcel-Bich/marcel-bich-claude-marketplace claude plugin install dogma@marcel-bich-claude-marketplace
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

What it hooks into
session.startWhen a session startstool.callAround a tool call, where it can hold oneturn.completeWhen a turn endsui.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.shUserPromptSubmit${CLAUDE_PLUGIN_ROOT}/scripts/user-prompt-submit.shUserPromptSubmit${CLAUDE_PLUGIN_ROOT}/scripts/prompt-intervention-reminder.shUserPromptSubmit${CLAUDE_PLUGIN_ROOT}/scripts/checklist-tracking.shPreToolUse · Read${CLAUDE_PLUGIN_ROOT}/scripts/token-protection.shPreToolUse · Grep${CLAUDE_PLUGIN_ROOT}/scripts/token-protection.shPreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/token-protection.shPreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/git-add-protection.shPreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/git-permissions.shPreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/delete-guard.shPreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/file-protection.shPreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/dependency-verification.shPreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/pre-commit-lint.shPreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/git-pull-before-push.shPreToolUse · Bash${CLAUDE_PLUGIN_ROOT}/scripts/subagent-enforcement.sh BashPreToolUse · Write${CLAUDE_PLUGIN_ROOT}/scripts/secrets-detection.shPreToolUse · Write${CLAUDE_PLUGIN_ROOT}/scripts/write-edit-reminder.shPreToolUse · Write${CLAUDE_PLUGIN_ROOT}/scripts/subagent-enforcement.sh WritePreToolUse · Edit${CLAUDE_PLUGIN_ROOT}/scripts/secrets-detection.shPreToolUse · Edit${CLAUDE_PLUGIN_ROOT}/scripts/write-edit-reminder.shPreToolUse · Edit${CLAUDE_PLUGIN_ROOT}/scripts/subagent-enforcement.sh EditPreToolUse · Task${CLAUDE_PLUGIN_ROOT}/scripts/subagent-enforcement.sh TaskPreToolUse · Task${CLAUDE_PLUGIN_ROOT}/scripts/subagent-context.shPreToolUse · Task${CLAUDE_PLUGIN_ROOT}/scripts/enforce-model-policy.shPreToolUse · Skill${CLAUDE_PLUGIN_ROOT}/scripts/subagent-enforcement.sh SkillPostToolUse · Write${CLAUDE_PLUGIN_ROOT}/scripts/post-write-validate.shPostToolUse · Write${CLAUDE_PLUGIN_ROOT}/scripts/review-trigger.shPostToolUse · Edit${CLAUDE_PLUGIN_ROOT}/scripts/post-write-validate.shPostToolUse · Edit${CLAUDE_PLUGIN_ROOT}/scripts/review-trigger.shPostToolUse · WebFetch${CLAUDE_PLUGIN_ROOT}/scripts/prompt-injection.shPostToolUse · WebSearch${CLAUDE_PLUGIN_ROOT}/scripts/prompt-injection.shStop${CLAUDE_PLUGIN_ROOT}/scripts/version-sync-check.shStop${CLAUDE_PLUGIN_ROOT}/scripts/lint-on-stop.shStop${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
- Folder
- plugins/dogma
- Version
- 1.47.2
- License
- MIT
- Repo stars
- 12
- Last change
- 2026-10-14
- Language
- Shell
- Files
- 79