brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

tips

~/tips/claude
All tips

83 tips Claude

One command, setting or habit at a time about Claude: what it does, the line to copy and a caveat or two.

Settings and permissions 25

Slash commands 19

Sessions and shortcuts 17

Scripting 11

Prompting 7

Hooks 4

  • Runs a command each time you send a prompt and gives its output to Claude as context.

    "hooks": {
  • Blocks Claude from ending its turn while the test suite fails, with a guard against loops.

    echo '{"decision": "block", "reason": "The tests fail. Run npm test and fix them before you stop."}'
  • Sends a desktop notification when Claude Code is waiting for your input or approval.

    "command": "osascript -e 'display notification \"Claude Code needs your attention\" with title \"Claude Code\"'"
  • Formats every file Claude Code edits by running Prettier from a hook.

    "command": "f=$(jq -r '.tool_input.file_path') && npx prettier --write --ignore-unknown \"$f\""