Hook

User Prompt Augment

Preprocess user prompts before Claude sees them.

安裝

manual
add to ~/.claude/settings.json hooks.UserPromptSubmit

把這段加入 Claude Code MCP 設定,或直接透過 CLI 執行。

介紹

UserPromptSubmit hook. Useful for prepending project conventions, current date, or stripping known noise from prompts.

常見使用情境

  • Inject current date
  • Enforce team conventions
  • Pre-clean user input

標籤

promptcontextautomation