Cursor Rules Pack
24 Cursor rules (.mdc) for Next.js, TypeScript, React, Python, FastAPI, Django, Go, Rust and more. Detects your stack, installs in one command, lints your rules. $12 once.
View Cursor Rules Pack
Six Claude Code hooks you can copy today, and a tester that shows exactly what Claude Code will do with your hook's output before you wire it up.

Six small, working Claude Code hooks, one for each event people ask about, plus hooktest, a local tester that runs any hook script (Python, Bash, Node, anything) with a sample event and tells you what Claude Code would do with its output.
| Hook | Event | What it shows you how to do |
|---|---|---|
| session_context.py | SessionStart | Give Claude the git branch and uncommitted files at the start of every session (additionalContext). |
| prompt_guard.py | UserPromptSubmit | Block a prompt that contains an API key (decision: "block"); otherwise add today's date as context. |
| block_dangerous.py | PreToolUse (Bash) | Deny rm -rf / / ~ and force-push to main/master (permissionDecision: "deny"). |
| format_on_edit.py | PostToolUse (Edit|Write|MultiEdit) | Run ruff / prettier / gofmt / rustfmt on the file Claude just edited; exit 2 on failure so Claude sees the error. |
| notify.py | Notification | Desktop notification when Claude needs you, through terminalSequence (no /dev/tty). |
| stop_run_tests.py | Stop | Run your tests before Claude finishes; if they fail, keep it working (decision: "block"), with a stop_hook_active guard so it can't loop. |
Python 3.9+ standard library only. No network. Free to use and change (see LICENSE.txt).
The screenshot is real output from the kit’s own commands. Tested from a fresh download of this exact zip: ./run_tests.sh ran 11 tests OK on Python 3.13 and 3.10.

./tools/demo.sh # runs every hook against a sample event
./run_tests.sh # 11 test groups
# test YOUR hook, in any language
python3 tools/hooktest.py path/to/your-hook.sh samples/pre_tool_use_bash.json
python3 tools/hooktest.py hooks/block_dangerous.py --event PreToolUse --tool Bash --command "git push -f origin main"
python3 tools/hooktest.py hooks/stop_run_tests.py samples/stop.json --jsonhooktest reports the exit code, whether stdout is JSON / plain text / broken JSON, the outcome in plain words (BLOCKS, DENIES, ASKS, adds context, keeps working, non-blocking error) and PROBLEM lines for the usual mistakes: wrong hookEventName, permissionDecision values that don't exist, top-level decision on PreToolUse, decision: "block" without a reason, JSON with a non-zero exit, output over the 10,000-character cap. It exits 1 if there are problems, so you can run it in CI.
As a plugin: enable this folder as a Claude Code plugin; hooks/hooks.json uses ${CLAUDE_PLUGIN_ROOT}.
In one project: copy hooks/ to .claude/hooks/ and merge settings.example.json into .claude/settings.json. Delete the hooks you don't want. Run /hooks in Claude Code to check they're listed.
Settings for the examples (environment variables):
Examples, not a security product. The key patterns catch common formats only. The Stop hook runs your test command with your permissions.
Zip, 18 KB, v1.0.1, 21 files, plugin youraitools-hooks-starter. Free to use, modify and share for any purpose, including commercial work, as long as this notice stays in copies. Not affiliated with or endorsed by Anthropic.
Free Claude Code hooks examples: SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Notification and Stop, plus a local tester that checks your hook's output.
24 Cursor rules (.mdc) for Next.js, TypeScript, React, Python, FastAPI, Django, Go, Rust and more. Detects your stack, installs in one command, lints your rules. $12 once.
View Cursor Rules PackFree Cursor rules examples in .mdc format: agent workflow, commits, testing, security, code review. Includes a linter that shows why a rule isn't applying.
View Cursor Rules Starter (Free)Free CLAUDE.md linter: broken @imports, files over 200 lines, .claude/rules paths that match nothing, AGENTS.md conflicts, dead npm scripts, leaked keys. Offline, CI-ready.
View CLAUDE.md Linter (Free)