From claude-code-guardian
Helps users understand and modify their Guardian security configuration through natural language
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code-guardian:config-guideThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill manages the Guardian `config.json` security configuration. It translates natural language requests into precise JSON modifications, validates changes against the schema, and warns about security implications.
This skill manages the Guardian config.json security configuration. It translates natural language requests into precise JSON modifications, validates changes against the schema, and warns about security implications.
This skill activates when the user wants to:
Find the user's config by checking these paths in order:
$CLAUDE_PROJECT_DIR/.claude/guardian/config.json (project-specific config)${CLAUDE_PLUGIN_ROOT}/assets/guardian.default.json (plugin default fallback)If neither exists, a hardcoded minimal guardian fallback is active.
The JSON schema is at ${CLAUDE_PLUGIN_ROOT}/assets/guardian.schema.json.
When the user says things like "block npm publish" or "prevent force push":
bashToolPatternsreason fieldExample interaction:
{"pattern": "npm\\s+publish", "reason": "Publishing to npm registry"} to bashToolPatterns.blocknpm publish will now be silently blocked. Want it as an ask-confirm instead?"When the user says things like "protect .env.production" or "make migrations read-only":
Common path patterns:
config/secrets.yaml*.pem.env.*migrations/**~/.aws/**When the user says "allow rm -rf" or "unprotect build/":
block to ask instead of removing entirely)When the user says "disable auto-commit" or "change commit message prefix":
| User says | Field to modify |
|---|---|
| "disable auto-commit" | gitIntegration.autoCommit.enabled -> false |
| "enable auto-commit" | gitIntegration.autoCommit.enabled -> true |
| "include untracked files" | gitIntegration.autoCommit.includeUntracked -> true |
| "change commit prefix to X" | gitIntegration.autoCommit.messagePrefix -> "X" |
| "disable pre-danger commits" | gitIntegration.preCommitOnDangerous.enabled -> false |
| "change git identity" | gitIntegration.identity.email and/or identity.name |
When the user says "show guardian config" or "what's protected":
Read the config and present a human-readable summary organized by section. Do not dump raw JSON unless the user asks for it. Use the format from the init command's summary.
When the user says "why was X blocked" or "guardian blocked my command":
bashToolPatterns.block and bashToolPatterns.ask for matching patternszeroAccessPaths -- there must always be secret guardingask before remove -- if a user wants to unblock something dangerous, suggest moving from block to ask first${CLAUDE_PLUGIN_ROOT}/assets/guardian.schema.jsonWhen creating bash patterns for users:
(?i) prefix for case-insensitive matching\\s+ for whitespace between command parts(?:...|...) for alternativesSee references/schema-reference.md for complete field documentation, glob syntax, and a regex pattern cookbook.
npx claudepluginhub idnotbe/claude-code-guardian --plugin claude-code-guardianProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.