Skip to main content
Code Guide
Hook Recommended

smart-suggest.sh

Suggest relevant commands/agents based on prompt intent

When to use this

  • When you want Claude to recommend relevant commands, agents, or skills based on what you just typed
  • When a team has a large .claude/ library and members don't know which template fits their task
  • When onboarding and you want proactive guidance rather than having to search the template catalog manually

How to use

  1. Open the template on GitHub and copy its content: hooks/bash/smart-suggest.sh
  2. Place the file inside .claude/hooks/ in your project (or globally in ~/.claude/ to share across all projects). For shell scripts, make it executable: chmod +x smart-suggest.sh
  3. Review each command in the script, adjust paths and thresholds for your environment, then test it in a safe context before wiring it into hooks.

Related templates