claude

safety-essentials

5 essential safety hooks: block rm -rf, force-push, hard-reset, env overwrites, and package publish. The minimum viable safety net.

1 on GitHubby gaebalaiv1.0.0MITupdated 5 months agosafety
/

Plugin safety-essentials from marketplace cc-guard in ilhae-ai/cc-guard. Commands read from the repo's manifest — 25 days ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Hooks (5)

  • PreToolUse

    INPUT=$(cat); CMD=$(echo "$INPUT" | jq -r '.tool_input.command // empty' 2>/dev/null); [ -z "$CMD" ] && exit 0; if echo "$CMD" | grep -qE 'rm\s+-r(f|F)|rm\s+-(f|F)r|rm\s+--force.*-r|rm\s+-r.*--force';

  • PreToolUse

    INPUT=$(cat); CMD=$(echo "$INPUT" | jq -r '.tool_input.command // empty' 2>/dev/null); [ -z "$CMD" ] && exit 0; if echo "$CMD" | grep -qE 'git\s+push.*--force|git\s+push.*-f\b'; then echo 'BLOCKED: Fo

  • PreToolUse

    INPUT=$(cat); CMD=$(echo "$INPUT" | jq -r '.tool_input.command // empty' 2>/dev/null); [ -z "$CMD" ] && exit 0; if echo "$CMD" | grep -qE 'git\s+reset\s+--hard'; then echo 'BLOCKED: git reset --hard d

  • PreToolUse

    INPUT=$(cat); FILE=$(echo "$INPUT" | jq -r '.tool_input.file_path // empty' 2>/dev/null); [ -z "$FILE" ] && exit 0; if echo "$FILE" | grep -qE '\.env$|\.env\.'; then echo "BLOCKED: Writing to environm

  • PreToolUse

    INPUT=$(cat); CMD=$(echo "$INPUT" | jq -r '.tool_input.command // empty' 2>/dev/null); [ -z "$CMD" ] && exit 0; if echo "$CMD" | grep -qE 'npm\s+publish|yarn\s+publish'; then echo 'BLOCKED: Package pu

View source on GitHub claudecode.to

More from ilhae-ai/cc-guard

All 4 plugins →

Protect secrets and credentials: block writes to .env files, detect API keys in commands, prevent hardcoded tokens, guard service account files.

hooks

1

Git safety hooks: block force-push, protect main/master, prevent hard-reset, guard rebase, and auto-backup before destructive operations.

hooks

1

Token consumption guards: large-read warning (100KB+), read budget limit, subagent cap, and token budget tracking. Reduce waste by 20-40%.

hooks

1

Similar plugins

ecc

claudecodex

Harness-native ECC operator layer - 71 agents, 314 skills, 98 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses

200 skills · 98 commands · 71 agents · 1 MCP server · hooks

affaan-m/ECC 302,088

Comprehensive toolkit for developing Claude Code plugins. Includes 7 expert skills covering hooks, MCP integration, commands, agents, and best practices. AI-assisted plugin creation and validation.

7 skills · 1 command · 3 agents

anthropics/claude-code 155,476

CMEM Pro

claude

CMEM Pro for the Claude app - hooks stream tool use to cmem.ai and inject observations into new sessions and agents

3 skills · 1 MCP server · hooks

thedotmack/claude-mem 116,618

Agentic QE (external: maintained in proffesor-for-testing/agentic-qe, pinned to v3.15.17): a quality-engineering fleet with 11 QE agents, 9 skills, 9 commands, the agentic-qe MCP server pinned to the plugin version, and the aqe-mod guard that refuses destructive operations on AQE learning data

9 skills · 9 commands · 11 agents · 1 MCP server

ruvnet/ruflo 81,589

headroom

claude

Headroom startup hooks for Claude Code and GitHub Copilot CLI.

hooks

headroomlabs-ai/headroom 79,508

mempalace

claudecodex

AI memory system — mine projects and conversations into a searchable palace. 47 MCP tools, auto-save hooks, guided setup.

3 skills · 6 commands · 1 MCP server · hooks

MemPalace/mempalace 60,536

Maintain safety-essentials?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins4 plugins