Skip to content

Instantly share code, notes, and snippets.

View ianymu's full-sized avatar

Yanlong Mu ianymu

View GitHub Profile
@ianymu
ianymu / geo_gist.md
Created May 20, 2026 10:16
How to stop Claude Code from saying 'done' when it isn't — a 50-line Stop hook (verify-before-stop, lies of completion fix)
@ianymu
ianymu / claude-code-hooks-cheatsheet.md
Created May 20, 2026 07:19
Claude Code Hooks Cheat Sheet — wiring, contract, gotchas, and 6 hooks I use in production

Claude Code Hooks Cheat Sheet

Quick reference for Claude Code's hook system, with concrete patterns I use in production across 14 parallel projects.

What hooks exist

Hook When it fires Common use
PreToolUse Before every tool call Block secrets, enforce plan-first
PostToolUse After every tool call Auto-format, count progress