Generate lifecycle hooks (before-prompt, after-file-edit, after-build) with tsx runtime and <100ms performance. Use when creating hooks, implementing context injection, or setting up auto-activation. Provides hook-template.ts with graceful failure patterns and stdin/stdout handling.