Skip to main content

hooks-reference

Provides guidance for implementing Claude Code hooks to automate validation, context loading, and workflow enforcement.

Install this skill

or
31/100

Security score

The hooks-reference skill was audited on Feb 21, 2026 and we found 13 security issues across 3 threat categories, including 2 high-severity. Review the findings below before installing.

Categories Tested

Security Issues

medium line 31

Template literal with variable interpolation in command context

SourceSKILL.md
31```json
medium line 73

Template literal with variable interpolation in command context

SourceSKILL.md
73```json
medium line 191

Template literal with variable interpolation in command context

SourceSKILL.md
191```json
medium line 236

Template literal with variable interpolation in command context

SourceSKILL.md
236```json
medium line 255

Template literal with variable interpolation in command context

SourceSKILL.md
255```bash
medium line 282

Template literal with variable interpolation in command context

SourceSKILL.md
282```json
medium line 353

Template literal with variable interpolation in command context

SourceSKILL.md
353```json
high line 383

Template literal with variable interpolation in command context

SourceSKILL.md
383- `${CLAUDE_PLUGIN_ROOT}` - Absolute path to plugin directory
high line 405

Template literal with variable interpolation in command context

SourceSKILL.md
4053. **Use portable paths**: `${CLAUDE_PLUGIN_ROOT}` for plugin files
low line 219

Access to .env file

SourceSKILL.md
219if [[ "$FILE_PATH" == *.env* ]] || [[ "$FILE_PATH" == *secret* ]]; then
low line 395

External URL reference

SourceSKILL.md
395echo 'export API_URL=http://localhost:3000' >> "$CLAUDE_ENV_FILE"
low line 427

External URL reference

SourceSKILL.md
427- Hooks documentation: https://code.claude.com/docs/en/hooks
low line 428

External URL reference

SourceSKILL.md
428- Hooks guide: https://code.claude.com/docs/en/hooks-guide
Scanned on Feb 21, 2026
View Security Dashboard
Installation guide →
GitHub Stars 508
Rate this skill
Categoryproductivity
UpdatedMay 21, 2026
Dicklesworthstone/pi_agent_rust