Claude Plugin Guards — Development skill for Claude Code
Claude Code plugin that keeps secrets out of an agent session: redacts them in output, blocks credential-file reads and credentials in publishes, and checks outbound commands.
How to install Claude Plugin Guards
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open gramatr/claude-plugin-guards and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Plugin Guards does
Claude Code plugin that keeps secrets out of an agent session: redacts them in output, blocks credential-file reads and credentials in publishes, and checks outbound commands. Backed by guards-unified.
Alternatives in Development
- CORS — Scan an endpoint for CORS misconfiguration — arbitrary-origin reflection, null-origin trust, credential exposu 4.5k ★
- Wp Migration — Quick WordPress migration scan - fast pattern detection for version guards, schema changes, dbDelta use, and r 76 ★
- Bashrc Credential Guard — Always check ~/.bashrc for credentials, API keys, passwords, and configuration values before asking user 26 ★
README
gramatr-guards
A Claude Code plugin marketplace with one plugin, **guards**: secret, PII and prompt-injection guards for Claude Code sessions.
- Secrets in Bash output, MCP results and outgoing agent-to-agent messages are redacted.
- Reads of credential files are denied before any content exists.
- A commit, pull request, issue or comment that carries a credential is blocked, and the block names the matching line with the value redacted.
- A command that would send a credential file, the whole environment or a literal credential to a remote host is blocked.
- PII and likely prompt injection are noted, never redacted. By default each PII type is named once per session and the note can be filtered (see `docs/CONFIGURATION.md`). They never change the text.
The detection logic runs in the [guards-unified](https://github.com/gramatr/guards-unified) service, one container behind `POST /v1/scan` and `POST /v1/scan/secret`. This repository is the Claude Code side: hooks, an MCP server (seven tools, three prompts, four resources), and a self-heal script that keeps the container running.
**One hard rule, everything else best effort.** The only control that must be fast, synchronous and strict is "no secrets". PII and injection findings are notices. Read [`docs/LIMITS.md`](docs/LIMITS.md) before relying on this.
Install
In Claude Code 2.1.275 or later, one step:
/plugin install guards --marketplace gramatr/claude-plugin-guards
Or in two steps, from a terminal:
claude plugin marketplace add gramatr/claude-plugin-guards
claude plugin install guards
Then restart Claude Code (or run `/reload-plugins`). Updates: `/plugin`, then `/reload-plugins`. Plugin installs track `main` and are identified by commit.
Requirements: `jq` and `curl`; `docker` with `docker compose` for PII and injection detection and the fast secret path. Without Docker, secret detection still works through a local fallback; PII and injection do not
Related Skills
Claude Secret Guard
Your shell holds the keys to production. secret-guard stops Claude Code from reading, printing or leaking them
Claude Sandbox
Run Claude Code in a hardened WSL2 distro on Windows. Rootless Podman boundary, tiered policies, credential gu
Agent Decision
Show or set the decision engine used for routing - mode, provider, credentials and status. Never prints a cred
Axonflow Login
Save AxonFlow credentials locally — a Pro license token (AXON-...) for X-License-Token, or a self-hosted/Enter
Skybreaker
Coding agents that never see your credentials. Claude Code, Codex and pi in gVisor sandboxes on your own hardw
Aisan
Coding agents with everything in the box: zero network, zero credentials. Bubblewrap confinement plus credenti
Related Agents
Secret Purist
The paranoid sentinel of credential security. Use this agent to scan codebases and git history for leaked secr
Secrets Auditor
Credential scanner — scans staged diff and working tree for secrets, tokens, and credentials. Groups findings
Secrets Credential Engineer
Owns the full lifecycle of secrets and credentials — detection, prevention, vaulting, rotation, and leak respo