Skip to content

Effective Script Calling

whilst Claude Code can natively use bash or shell depending on your OS, it can give unexpected results. It's for this reason that it's a much more concrete approach to utilise your own action scripts that Claude Code can execute on your behalf.

Pointing Claude Code to your Actions

You should have a default location for your action scripts. For this project, actions are located in:

  • Project Actions: ./docs/actions/ (relative to project root)
  • Personal Actions: ~/.claude/actions/ (recommended for your custom actions)

With your action scripts in place, you can now create a partition telling Claude where to access actions and then tell it to run a specific action from within your commands which will reliably achieve the functionality you desire. No more leaving decisions to Claude Code and no more deviations in execution.