claude

code-guardrails

Hooks, role agents and a code shield that keep Claude Code from quietly breaking what already worked.

1 on GitHubby Muhammed Ali Çınarv1.2.0MITupdated 6 days agodevelopment
/

Plugin code-guardrails from marketplace alizici in alizici/claude-code-guardrails. Commands read from the repo's manifest — 5 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

Skills (3)

  • check

    Check that code-guardrails is set up correctly in the current project and explain what it would do. Validates guardrails.json, runs the deletion guard's self-test, lists the code shield's locks, and answers "would the guard allow writing this file / running this command?". Use when the user asks whe

  • init

    Set up code-guardrails in the current project. Creates guardrails.json and shield.json for the detected stack (Flutter/Dart, Python, Node, Swift) and installs the code shield's git hooks. Use when the user asks to set up, enable, install or initialize the guardrails, the guard hooks or the code shie

  • lock

    Lock a piece of critical code with the code shield so it can't change without the user's approval and passing tests. Use when the user asks to lock, protect, freeze or shield a function, rule, file or region (pricing and money rules, protocol encoders/decoders, deterministic math, security checks).

Subagents (4)

  • card-auditor

    Audits a task card BEFORE any code is written. Checks the card's files, decisions, acceptance tests and expected values against the design docs and the codebase, and answers READY or BLOCKED. Read-only.

  • implementer

    Turns a card with already-written, red acceptance tests into the smallest correct production code. Only writes production code; the guard denies writes to tests.

  • reviewer

    Reviews a card's finished work with a clean context. Never sees the implementer's conversation; reads the card, the diff and the tests, measures test strength with mutations, and answers APPROVE or BACK. Read-only in the project.

  • test-writer

    Writes a card's acceptance tests BEFORE the implementation exists, so they are red now and turn green when correct code arrives. Only writes test code; the guard denies writes to production code.

Hooks (8)

  • UserPromptSubmit

    python3 "${CLAUDE_PLUGIN_ROOT}/guardrails/guard.py" turn

  • UserPromptSubmit

    python3 "${CLAUDE_PLUGIN_ROOT}/guardrails/deletion_guard.py" turn

  • PreToolUse

    python3 "${CLAUDE_PLUGIN_ROOT}/guardrails/guard.py" protect

  • PreToolUse

    python3 "${CLAUDE_PLUGIN_ROOT}/guardrails/deletion_guard.py" before

  • PostToolUse

    python3 "${CLAUDE_PLUGIN_ROOT}/guardrails/guard.py" record

  • PostToolUse

    python3 "${CLAUDE_PLUGIN_ROOT}/guardrails/deletion_guard.py" after

  • Stop

    python3 "${CLAUDE_PLUGIN_ROOT}/guardrails/guard.py" gates

  • Stop

    python3 "${CLAUDE_PLUGIN_ROOT}/guardrails/deletion_guard.py" gate

View source on GitHub

Similar plugins

Matt Pocock's agent skills for real engineering (grilling, spec/ticket flows, TDD, code review, domain modelling and more).

39 skills

mattpocock/skills 323,108

superpowers

claudecodex

Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques

15 skills · hooks

obra/superpowers 316,836

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

context7

claudecodex

Up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your coding agent's context.

1 MCP server

upstash/context7 64,709

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

Build powerful, stateful CLI interfaces for any GUI application using the cli-anything harness methodology.

5 commands

HKUDS/CLI-Anything 58,665

Maintain code-guardrails?

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 pluginslisted