Guard And Guide β Development skill for Claude Code
π‘οΈ Guard coding agents from dangerous operations, and π§ Guide them to safer alternatives.
How to install Guard And Guide
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open kawarimidoll/guard-and-guide and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Guard And Guide does
π‘οΈ Guard coding agents from dangerous operations, and π§ Guide them to safer alternatives.
Alternatives in Development
- Claude-code-safety-net Rules Reference β Custom rules reference for defining safe/dangerous command patterns 1.2k β
- Gmail AutoAuth MCP Installation Guide β This guide will help you install and configure the Gmail AutoAuth MCP server for managing Gmail operations thr 1.1k β
- Not Claude Code Emulator β ULTRA DANGEROUS CLAUDE CODE EMULATOR; MAKING THE API REQUEST IDENTICAL TO CLAUDE CODE 398 β
README
guard-and-guide
[](https://github.com/kawarimidoll/guard-and-guide/actions/workflows/ci.yml) [](https://github.com/kawarimidoll/guard-and-guide/releases/latest) [](https://docs.anthropic.com/en/docs/claude-code) [](https://github.com/google-gemini/gemini-cli) [](https://www.rust-lang.org/) [](https://nixos.org/)
π‘οΈ Guard coding agents from dangerous operations, and π§ Guide them to safer alternatives.
Motivation
You tell your AI coding agent: "Don't run `git push`."
The agent gets blocked β and tries harder:
π§ deny(git push)
π€ Got it! I'll use /usr/bin/git push instead.
π§ NOOO!!!
AI agents don't give up when simply denied. They try absolute paths, alternative commands, and creative workarounds to get the job done.
**guard-and-guide** solves this by not only blocking dangerous operations, but also telling the agent _why_ it was blocked and _what to do instead_. When given clear guidance, agents are much more likely to comply.
Install
nix
nix profile install github:kawarimidoll/guard-and-guide
cargo
cargo install --git https://github.com/kawarimidoll/guard-and-guide
Setup
1. Create rules
Create `~/.config/guard-and-guide/rules.toml` with your rules. See [`rules.example.toml`](rules.example.toml) for a full example.
Rules use canonical tool names (`Bash`, `File`) and regex patterns:
version = 1
[[rules]]
matcher = "File"
regex = '\.env$'
message = "Access
Related Skills
Claude Code Safety Hooks
Production-tested safety primitives for Claude Code agents: dangerous command guard + untrusted content defens
Cc Agents Kit
Claude Code plugin marketplace. guard-hooks: five defensive hooks that block dangerous shell commands and secr
Architecture Decision Records
Capture architectural decisions made during coding sessions as structured ADRs. Auto-detects decision moments,
Polygraph
A lie detector for coding agents: flag forged instructions, check verification records, and guard hook configu
Agent Policy
One command policy for coding agents (Claude Code and Codex): severity-tiered allow/ask/deny rules, a shared g
Harness Template
A harness for coding agents, installed in one command: goal, backlog, boot sequence, checks, guard hooks, revi
Related Agents
Engineering Backend
Backend implementation specialist β API endpoints, data models, business logic, background jobs, and database
Commit Archaeologist
Phase 1 intelligence gathering agent that proactively mines git history for security-relevant commits with no
Fec Security Reviewer
Focus on front-end and browser-side security reviews: XSS, client key leaks, dangerous DOM/API usage, third-pa