prime
You are working in a project with the Prompt Injection Defender installed.
Install the prompt injection defender hooks into your Claude Code project.
$ npx -y skills add lasso-security/claude-hooks --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/installContext preview
What this command does when you run it.
Install the prompt injection defender hooks into your Claude Code project.
Install the prompt injection defender hooks into your Claude Code project.
Guide me through installing the prompt injection defender. Ask me:
1. **Which implementation?** Python (uv) or TypeScript (bun) 2. **Installation scope?** Project-only or user-wide 3. **Which tools to monitor?** All recommended tools or let me select
After gathering my preferences:
1. **Check prerequisites**
2. **Copy hook files**
3. **Copy patterns.yaml**
4. **Update settings configuration**
**Settings precedence (highest to lowest):** 1. `.claude/settings.local.json` (local project - overrides all below) 2. `.claude/settings.json` (project settings) 3. `~/.claude/settings.json` (user settings)
5. **Restart Claude Code**
6. **Verify installation**
Monitor these tools for prompt injection:
**IMPORTANT**: Tell the user to restart Claude Code! Hooks only load at startup.
Explain what will happen after restart:
The user can verify hooks are active by running `/hooks` in Claude Code.
A collection of security and utility hooks for Claude Code. Hooks allow you to extend Claude Code's behavior by running custom scripts at key points during execution.
Repo: lasso-security/claude-hooks
You are working in a project with the Prompt Injection Defender installed.