Skip to main content

Command Components

Commands are custom slash commands that automate common development tasks. They execute pre-defined workflows, run scripts, or coordinate multiple operations.

Browse All Commands

Explore 225+ commands with search and filtering at aitmpl.com

Installation

# Install a single command
npx claude-code-templates@latest --command security-audit

# Install multiple commands
npx claude-code-templates@latest --command setup-testing --command generate-docs

# Install from specific category
npx claude-code-templates@latest --command security/security-audit

Command Categories

Security Commands

Automated security scanning, auditing, and hardening:

security-audit

Comprehensive security assessment and vulnerability analysis
npx claude-code-templates@latest --command security-audit
Usage: /security-audit or /security-audit --full

secrets-scanner

Scan codebase for hardcoded secrets and credentials
npx claude-code-templates@latest --command secrets-scanner

dependency-audit

Check dependencies for known vulnerabilities
npx claude-code-templates@latest --command dependency-audit

security-hardening

Apply security best practices to your application
npx claude-code-templates@latest --command security-hardening

penetration-test

Automated penetration testing workflows
npx claude-code-templates@latest --command penetration-test

add-authentication-system

Add authentication system to your application
npx claude-code-templates@latest --command add-authentication-system

Command Structure

Commands typically include:
  • Description: What the command does
  • Allowed Tools: Tools the command can use (Read, Write, Bash, etc.)
  • Argument Hints: Expected parameters
  • Workflow Steps: Pre-defined execution steps
  • Context Loading: Automatic file and environment loading

How Commands Work

When you install a command:
  1. The command file is downloaded to .claude/commands/
  2. Use /command-name in your Claude Code chat to invoke it
  3. The command executes its pre-defined workflow
  4. Results are applied to your codebase

Example Usage

# Install security audit command
npx claude-code-templates@latest --command security-audit

# In Claude Code chat:
# /security-audit
# or with arguments:
# /security-audit --full

Command Arguments

Many commands accept arguments:
# In Claude Code chat:
/security-audit frontend         # Focus on frontend security
/generate-tests src/api          # Generate tests for specific directory
/feature user-authentication     # Start feature branch with name

Next Steps