Use CLI Tools
CLI tools are often the most efficient way for Claude Code to work with external systems.
If you use a service regularly, install and authenticate its CLI:
ghfor GitHub issues, pull requests, comments, and repo metadata.awsfor AWS infrastructure and logs.gcloudfor Google Cloud.sentry-clifor Sentry releases and issue context.- Product-specific CLIs for tools your team depends on.
How to prompt it
Section titled “How to prompt it”Use gh to inspect issue 123, find the relevant files, implement the fix,run tests, then open a PR.Use foo-cli --help to learn the tool, then use it to export the current config.Summarize what changed and do not modify anything yet.Permissions
Section titled “Permissions”Allowlist safe, repeated commands. Keep destructive or production-impacting commands behind approval.
Examples:
Allow: gh issue viewAllow: gh pr viewAsk: gh pr mergeAsk: aws deployDeny: commands that print secrets