PlugMyPlugin
← Browse

example-hooks

ExaDev ★ 0

This plugin demonstrates Claude Code hook mechanics through two POSIX shell scripts: a PreToolUse guard that blocks destructive recursive rm commands targeting root or home directories, and an opt-in SessionStart installer that deploys starter templates with SHA-256 tracking to prevent overwriting user-edited files. It serves as a reference implementation showing the hooks.json format and ${CLAUDE_PLUGIN_ROOT} variable usage.

DevOps Security No API key detected runs shell

Install

> /plugin marketplace add ExaDev/agent-marketplace-template/tree/HEAD/plugins/example-hooks
> /plugin install example-hooks

Source: https://github.com/ExaDev/agent-marketplace-template/tree/HEAD/plugins/example-hooks

What it's made of

2 hooks

Commands
0
Agents
0
Skills
0
MCP servers
0
Hooks
2 · PreToolUse, SessionStart

What it needs & plugs into

API keys
none
Paid services
none detected
External tools
guard-bash.sh install-starter.sh
Talks to
nothing external detected

Analyzed . Facts extracted from the plugin's files. Prose generated by claude-haiku-4-5-20251001.

Is this your plugin?

Claim it to keep the card accurate and enter the weekly contest. Requires signing in as the GitHub owner (ExaDev).