Hooks 实践

CommunityProductivity

Use Claude Code hooks to run checks automatically at key points — lint/tests before commits, permission guards — turning workflows into automation.

#hooks#automation#safety

What it can do

  • Set a PreToolUse hook to intercept and confirm risky commands
  • Auto-run lint and tests before every commit, blocking failure
  • Write key decisions into a handoff summary at session end
  • Use a Stop hook to format code consistently

Related skills

Configure the Claude Code harness: hooks, permissions, env vars and settings.json automation.

#settings#hooks#permissions
.claude/skills
LoopBuilt-in

Run a prompt or command on a recurring interval — polling, scheduled jobs, repeated checks.

#recurring#interval#automation
.claude/skills

Customize Claude Code keyboard shortcuts, rebind keys and edit keybindings.json.

#shortcuts#keymap
.claude/skills
SimplifyBuilt-in

Reviews changes and applies reuse, simplification and efficiency cleanups — quality-focused, not bug-hunting.

#refactor#cleanup
.claude/skills

Scans common read-only commands into an allowlist to reduce permission prompts for smoother long tasks.

#permissions#allowlist
.claude/skills
LocalizationOfficial

Batch-translates project copy into multiple languages while preserving placeholders and format, outputting locale packs.

#i18n#translate#l10n
.claude/skills