What problem does it solve?
Detect security vulnerabilities, misconfigurations, and prompt-injection risks in Claude Code repository configuration so teams can prevent credential leaks, dangerous MCP/server settings, and hook-based command injection before they reach production.
Core Features & Use Cases
- Configuration-wide scanning: Inspects CLAUDE.md, .claude/settings.json, mcp.json, hooks/, and agent definitions for secrets, permissive allow-lists, and injection patterns.
- Multiple output formats & CI integration: Produces terminal, JSON, Markdown, or HTML reports and can fail CI on high-severity findings.
- Safe auto-fix and adversarial analysis: Applies auto-fixes for safe, clearly-marked changes and can run an Opus three-agent attacker/defender/auditor pipeline for deeper review.
- Use Case: Run this Skill in pre-commit or CI to block commits that introduce hardcoded secrets, unrestricted shell access, or hook-based command injection.
Quick Start
Run AgentShield to scan the repository's .claude configuration and output a JSON report.