TipsLesser-known
Hooks (settings.json)
Automatically runs commands on events such as before or after a tool runs.
Usage
PostToolUse 이벤트에서 편집 후 prettier 실행
When to use it
When you want to enforce "Claude always does X".
Source: https://code.claude.com/docs/en/hooks
Related
More Claude Code tips
Custom slash commands (.claude/commands)A single markdown file becomes a /name command.TipsHeadless mode (-p)Runs once without a UI and prints only the result.Tips--continue / -cContinues the most recent conversation in the current folder.Tips--resume / -rResumes a session by ID or name.Tips--fork-sessionResumes a session but branches it off under a new session ID.Tips--worktree / -wRuns Claude in an isolated git worktree.Tips
All Claude Code