guardrails
v0.48.1Fifteen toggleable guards. Blocks: secret writes, machine-specific paths, git hook bypass, force-push and reset --hard, Bash file-write workarounds, Windows drive-root /tmp writes, exported MSYS path-conversion overrides, recursive deletes of roots or paths outside the session tree, multi-line git commit -m, commit subjects or PR titles that break the declared convention. Warns on: invented CLI flags, unresolved /plugin:skill refs, removed repo paths, Workflow fan-out, direct gh pr create.
By Melodic SoftwareLicense: MIT21 GitHub starsUpdated 2 months ago
Directory evidence
- Runtimes
- Claude Code
- Parsed components
- 2 skill or MCP entries
- Source updated
- Oct 4, 2026
- Manifest status
- Canonical path parsed
The directory validates manifest shape and source location. It does not execute the plugin or provide a security endorsement. Review the indexing methodology →
Install guardrails for Claude Code
claude plugin marketplace add IchenDEV/agent-plugin-mkt
claude plugin marketplace update agent-plugin-marketplace
claude plugin install guardrails-4@agent-plugin-marketplacePaste and run these commands in a terminal with Claude Code. They add and refresh the PluginsMP catalog, then install this plugin.
The installer fetches third-party code from the source repository shown on this page. This directory validates manifest structure and source location, but does not perform a security audit; review the manifest, components, and source before installing.
Get the source manually
git clone https://github.com/melodic-software/claude-code-pluginsClone the source repository, then follow its setup instructions to add the plugin to a compatible client. The plugin root is plugins/guardrails/.
Plugin files
├── .claude-plugin/plugin.json├── skills/check/SKILL.md└── skills/setup/SKILL.md
Included Skills2
Read-only check that node and jq resolve for the guardrails hooks. Use when a hook notice says node or jq is missing, or before assuming the guards ran. Does not install.
Verify the guardrails hooks' runtime prerequisites and per-guard toggle state for this machine. Use when: 'set up guardrails', 'configure guardrails', 'is guardrails working', 'which guards are on', a guard failed open with a jq notice, after tuning guard toggles, or 'install the commit-msg hook' / 'enforce the commit convention for every committer', or 'install the pre-commit content hook' / 'enforce secrets and hardcoded-path checks on every commit'. Actions: check (read-only verification, default) | apply (resolve what check found) | apply install-commit-msg (opt-in: install the tool-agnostic commit-msg convention hook into this repo's personal .git/hooks) | apply install-pre-commit-content (opt-in: install the write-path-independent secret/hardcoded-path pre-commit hook into this repo's personal .git/hooks). Re-runnable and safe.
Plugin manifests1
{
"name": "guardrails",
"description": "Fifteen toggleable guards. Blocks: secret writes, machine-specific paths, git hook bypass, force-push and reset --hard, Bash file-write workarounds, Windows drive-root /tmp writes, exported MSYS path-conversion overrides, recursive deletes of roots or paths outside the session tree, multi-line git commit -m, commit subjects or PR titles that break the declared convention. Warns on: invented CLI flags, unresolved /plugin:skill refs, removed repo paths, Workflow fan-out, direct gh pr create.",
"author": {
"name": "Melodic Software",
"email": "[email protected]"
},
"license": "MIT",
"keywords": [
"guard",
"security",
"secrets",
"hooks",
"pretooluse",
"git",
"hardcoded-paths",
"cli-flags",
"pull-request"
],
"userConfig": {
"secret_pattern_detection_enabled": {
"type": "boolean",
"title": "Secret-pattern-detection guard",
"description": "Blocks writes containing high-confidence secret or credential patterns. On by default.",
"default": true
},
"hardcoded_path_check_enabled": {
"type": "boolean",
"title": "Hardcoded-path-check guard",
"description": "Blocks writes containing hardcoded machine-specific paths. On by default.",
"default": true
},
"block_no_verify_enabled": {
"type": "boolean",
"title": "Block-no-verify guard",
"description": "Blocks git hook-bypass attempts: --no-verify, core.hooksPath=, and hook-manager env-var disables for a configurable set (lefthook, husky, pre-commit and simple-git-hooks by default). On by default.",
"default": true
},
"block_no_verify_hook_manager_prefixes": {
"type": "string",
"title": "Block-no-verify hook-manager prefixes",
"description": "Comma-separated hook-manager env-var name prefixes block-no-verify treats as a bypass when set to 0 or false (e.g. lefthook,husky). Empty, the default, uses the built-in set: lefthook, husky, pre_commit, simple_git_hooks.",
"default": ""
},
"block_dangerous_git_enabled": {
"type": "boolean",
"title": "Block-dangerous-git guard",
"description": "Blocks irreversible git operations: push --force, reset --hard, clean -f, worktree-wide checkout or restore discards, and a push --force-with-lease that leases against a value git resolves at push time. On by default. The README's Option details define the lease case.",
"default": true
},
"block_dangerous_git_allow": {
"type": "string",
"title": "Block-dangerous-git allow-list",
"description": "Comma-separated forms block-dangerous-git permits: push-force, push-lease-unsafe, reset-hard, clean-force, checkout-dot, restore-dot, checkout-force, plus the PowerShell ps-unparsable-* sink tokens the README's Option details list. Empty, the default, blocks all.",
"default": ""
},
"block_credential_read_enabled": {
"type": "boolean",
"title": "Block-credential-read guard",
"description": "Blocks a Bash or PowerShell command whose output is a credential: git credential fill and credential-helper get, gh auth token, echo or printenv of a token-shaped variable, and cat of .git-credentials, .netrc or .env. On by default.",
"default": true
},
"block_credential_read_allow": {
"type": "string",
"title": "Block-credential-read allow-list",
"description": "Comma-separated families block-credential-read permits: credential-fill, gh-auth-token, env-echo, credential-file-read. Empty, the default, blocks all.",
"default": ""
},
"block_hook_bypass_enabled": {
"type": "boolean",
"title": "Block-hook-bypass guard",
"description": "Blocks Bash file-write workarounds that circumvent Write and Edit hook gates. On by default.",
"default": true
},
"block_hook_bypass_scratch_roots": {
"type": "string",
"title": "Block-hook-bypass scratch roots",
"description": "Comma-separated absolute directories block-hook-bypass exempts as scratch or temp write targets (e.g. /tmp/scratch,/d/jobtmp/session). Empty by default; it adds to the shipped temp-tree and plugin-data roots. Matching, quoting and symlink rules are in the README's Option details.",
"default": ""
},
"block_windows_drive_tmp_enabled": {
"type": "boolean",
"title": "Block-Windows-drive-tmp guard",
"description": "Blocks writes to a Windows drive-root temp path (/tmp, C:\\tmp, \\tmp, /c/tmp) that resolves to <drive>:\\tmp instead of %TEMP%, in shell commands and Write/Edit file paths alike. On by default. The Git for Windows exception is in the README's Option details.",
"default": true
},
"block_exported_msys_pathconv_enabled": {
"type": "boolean",
"title": "Block-exported-MSYS-pathconv guard",
"description": "Blocks a leaking MSYS path-conversion suppressor on Windows: an exported MSYS_NO_PATHCONV or MSYS2_ARG_CONV_EXCL, or one prefixed on a child shell (MSYS_NO_PATHCONV=1 bash -c ...). On by default. What it does not match is in the README's Option details.",
"default": true
},
"block_root_delete_target_enabled": {
"type": "boolean",
"title": "Block-root-delete-target guard",
"description": "Blocks a recursive delete (rm, Remove-Item, rd /s) whose target is a filesystem, home, drive or UNC share root, an empty or bare-variable operand, or a path outside the repo not under a temp root, the scratchpad or an allowed root. On by default. Full rules in the README's Option details.",
"default": true
},
"block_root_delete_target_allowed_roots": {
"type": "string",
"title": "Block-root-delete-target allowed roots",
"description": "Comma-separated absolute directories block-root-delete-target lets a recursive delete through when the target's real path sits strictly under one (e.g. /srv/build-cache,/data/scratch). Empty by default; adds to the temp roots and scratchpad. Limits are in the README's Option details.",
"default": ""
},
"block_noncanonical_commit_enabled": {
"type": "boolean",
"title": "Block-noncanonical-commit guard",
"description": "Blocks git commit -m when the message contains a newline (pipe it via -F - instead); a single-line -m passes. On by default. Exempt: --amend, -C/-c, --fixup/--squash, -F <path>, and an in-progress merge or rebase.",
"default": true
},
"block_noncanonical_commit_allow": {
"type": "string",
"title": "Block-noncanonical-commit allow-list",
"description": "Comma-separated form tokens block-noncanonical-commit permits. The only token today is message-flag, which permits -m even when the message contains a newline. Empty, the default, permits none.",
"default": ""
},
"block_convention_gate_enabled": {
"type": "boolean",
"title": "Block-convention-violation guard",
"description": "Blocks a commit subject or gh pr create --title that violates the team-tracked convention pattern in .claude/source-control.md. On by default; with no tracked pattern nothing is enforced. Same exemptions as block-noncanonical-commit.",
"default": true
},
"cli_flag_verify_enabled": {
"type": "boolean",
"title": "CLI-flag-verify guard",
"description": "Advises on hallucinated CLI flags written to files; never blocks. On by default.",
"default": true
},
"cli_flag_verify_bins": {
"type": "string",
"title": "CLI-flag-verify scanned binaries",
"description": "Comma-separated binaries cli-flag-verify scans. Empty, the default, uses the built-in set.",
"default": ""
},
"cli_flag_verify_skip_bins": {
"type": "string",
"title": "CLI-flag-verify skipped binaries",
"description": "Comma-separated binaries cli-flag-verify must never scan. Empty by default.",
"default": ""
},
"skill_reference_verify_enabled": {
"type": "boolean",
"title": "Skill-reference-verify guard",
"description": "Advises when markdown cites a /plugin:skill reference this repo owns but cannot resolve; never blocks. On by default.",
"default": true
},
"stale_path_verify_enabled": {
"type": "boolean",
"title": "Stale-path-verify guard",
"description": "Advises when markdown cites a repo-relative path this repo's own history shows was removed and that is gone from the working tree; never blocks. On by default.",
"default": true
},
"workflow_resilience_check_enabled": {
"type": "boolean",
"title": "Workflow-resilience-check guard",
"description": "Advises on un-throttled Workflow fan-out; never blocks. Off by default since 0.20.0: a behavioral-class prose injector, config-disabled per the instruction-economy evidence gate (#2021). Set true to opt back in.",
"default": false
},
"flag_commit_pr_skill_bypass_enabled": {
"type": "boolean",
"title": "Flag-commit-PR-skill-bypass guard",
"description": "Advises when a direct gh pr create bypasses the source-control pull-request skill; never blocks. Off by default since 0.20.0: a behavioral-class prose injector, config-disabled per the instruction-economy evidence gate (#2021). Set true to opt back in.",
"default": false
},
"stdin_read_timeout": {
"type": "number",
"title": "Hook stdin read timeout (seconds)",
"description": "Idle bound on reading the hook payload from stdin: how long a silent pipe is tolerated before a blocking guard fails closed. Default 2. Only a JSON payload the pipe closed on mid-document is allowed with a notice; a stalled pipe stays a block.",
"default": 2,
"min": 1
}
},
"version": "0.48.1"
}For maintainers
If you maintain this plugin, link to this source-backed listing from your README so users can review its manifest and indexed components.
[guardrails on Agent Plugins Marketplace](https://pluginsmp.com/plugins/guardrails-4)