What are Claude Code Commands

Custom slash commands you run explicitly

Claude Code commands are explicit, user-invoked actions.

They are defined as Markdown files and run when you type a slash command in Claude Code.

In aibuilder.sh, commands are installed as files at:

.claude/commands/<command-name>.md

How Claude Code Commands work

Commands are not automatic.

You choose when to run them by typing:

/command-name

Claude executes the instructions in the command exactly as written.

Commands are ideal for:

  • Generating tests
  • Refactoring code
  • Creating release notes
  • Running audits or checks
  • One-off transformations

When to use a Command

Use a command when:

  • The action is intentional
  • You want explicit control
  • The task is repeatable but not always relevant

If the behavior should always apply automatically, use a skill instead.

Installing a Command

Install a command with:

npx ai-builder add command <command-name>