A comprehensive collection of production-ready slash commands for Claude Code that provides intelligent automation and multi-agent orchestration capabilities for modern software development.
This repository provides 56 production-ready slash commands (15 workflows, 41 tools) that extend Claude Code's capabilities through:
- Workflows: Multi-agent orchestration systems that coordinate complex, multi-step operations across different domains
- Tools: Specialized single-purpose utilities for focused development tasks
- Claude Code installed and configured
- Claude Code Subagents collection for workflow orchestration capabilities
- Git for repository management
# Navigate to Claude configuration directory
cd ~/.claude
# Clone the commands repository
git clone https://github.com/wshobson/commands.git
# Clone the agents repository (required for workflow execution)
git clone https://github.com/wshobson/agents.git
Commands are organized in tools/
and workflows/
directories and invoked using directory prefixes:
# Workflow invocation
/workflows:feature-development implement OAuth2 authentication
# Tool invocation
/tools:security-scan perform vulnerability assessment
# Multiple argument example
/tools:api-scaffold create user management endpoints with RBAC
To invoke commands without directory prefixes, copy files to the root directory:
cp tools/*.md .
cp workflows/*.md .
# Then invoke directly
/api-scaffold create REST endpoints
/feature-development implement payment system
Workflows implement multi-agent orchestration patterns for complex, cross-domain tasks. Each workflow analyzes requirements, delegates to specialized agents, and coordinates execution across multiple subsystems.
Command | Purpose | Agent Coordination |
---|---|---|
feature-development |
End-to-end feature implementation | Backend, frontend, testing, deployment |
full-review |
Multi-perspective code analysis | Architecture, security, performance, quality |
smart-fix |
Intelligent problem resolution | Dynamic agent selection based on issue type |
tdd-cycle |
Test-driven development orchestration | Test writer, implementer, refactoring specialist |
Command | Purpose | Scope |
---|---|---|
git-workflow |
Version control process automation | Branching strategies, commit standards, PR templates |
improve-agent |
Agent optimization | Prompt engineering, performance tuning |
legacy-modernize |
Codebase modernization | Architecture migration, dependency updates, pattern refactoring |
ml-pipeline |
Machine learning pipeline construction | Data engineering, model training, deployment |
multi-platform |
Cross-platform development | Web, mobile, desktop coordination |
workflow-automate |
CI/CD pipeline automation | Build, test, deploy, monitor |
Command | Primary Focus | Specialized Agents |
---|---|---|
full-stack-feature |
Multi-tier implementation | Backend API, frontend UI, mobile, database |
security-hardening |
Security-first development | Threat modeling, vulnerability assessment, remediation |
data-driven-feature |
ML-powered functionality | Data science, feature engineering, model deployment |
performance-optimization |
System-wide optimization | Profiling, caching, query optimization, load testing |
incident-response |
Production issue resolution | Diagnostics, root cause analysis, hotfix deployment |
Tools provide focused, single-purpose utilities for specific development operations. Each tool is optimized for its domain with production-ready implementations.
Command | Functionality | Key Features |
---|---|---|
ai-assistant |
AI assistant implementation | LLM integration, conversation management, context handling |
ai-review |
ML code review | Model architecture validation, training pipeline review |
langchain-agent |
LangChain agent creation | RAG patterns, tool integration, memory management |
ml-pipeline |
ML pipeline construction | Data processing, training, evaluation, deployment |
prompt-optimize |
Prompt engineering | Performance testing, cost optimization, quality metrics |
Command | Purpose | Capabilities |
---|---|---|
code-explain |
Code documentation | AST analysis, complexity metrics, flow diagrams |
code-migrate |
Migration automation | Framework upgrades, language porting, API migrations |
refactor-clean |
Code improvement | Pattern detection, dead code removal, structure optimization |
tech-debt |
Debt assessment | Complexity analysis, risk scoring, remediation planning |
Command | Focus Area | Technologies |
---|---|---|
data-pipeline |
ETL/ELT architecture | Apache Spark, Airflow, dbt, streaming platforms |
data-validation |
Data quality | Schema validation, anomaly detection, constraint checking |
db-migrate |
Database migrations | Schema versioning, zero-downtime strategies, rollback plans |
Command | Domain | Implementation |
---|---|---|
deploy-checklist |
Deployment preparation | Pre-flight checks, rollback procedures, monitoring setup |
docker-optimize |
Container optimization | Multi-stage builds, layer caching, size reduction |
k8s-manifest |
Kubernetes configuration | Deployments, services, ingress, autoscaling, security policies |
monitor-setup |
Observability | Metrics, logging, tracing, alerting rules |
slo-implement |
SLO/SLI definition | Error budgets, monitoring, automated responses |
workflow-automate |
Pipeline automation | CI/CD, GitOps, infrastructure as code |
Command | Testing Focus | Framework Support |
---|---|---|
api-mock |
Mock generation | REST, GraphQL, gRPC, WebSocket |
api-scaffold |
Endpoint creation | CRUD operations, authentication, validation |
test-harness |
Test suite generation | Unit, integration, e2e, performance |
tdd-red |
Test-first development | Failing test creation, edge case coverage |
tdd-green |
Implementation | Minimal code to pass tests |
tdd-refactor |
Code improvement | Optimization while maintaining green tests |
Command | Security Domain | Standards |
---|---|---|
accessibility-audit |
WCAG compliance | ARIA, keyboard navigation, screen reader support |
compliance-check |
Regulatory compliance | GDPR, HIPAA, SOC2, PCI-DSS |
security-scan |
Vulnerability assessment | OWASP, CVE scanning, dependency audits |
Command | Analysis Type | Output |
---|---|---|
debug-trace |
Runtime analysis | Stack traces, memory profiles, execution paths |
error-analysis |
Error patterns | Root cause analysis, frequency analysis, impact assessment |
error-trace |
Production debugging | Log correlation, distributed tracing, error reproduction |
issue |
Issue tracking | Standardized templates, reproduction steps, acceptance criteria |
Command | Management Area | Features |
---|---|---|
config-validate |
Configuration management | Schema validation, environment variables, secrets handling |
deps-audit |
Dependency analysis | Security vulnerabilities, license compliance, version conflicts |
deps-upgrade |
Version management | Breaking change detection, compatibility testing, rollback support |
Command | Documentation Type | Format |
---|---|---|
doc-generate |
API documentation | OpenAPI, JSDoc, TypeDoc, Sphinx |
pr-enhance |
Pull request optimization | Description generation, checklist creation, review suggestions |
standup-notes |
Status reporting | Progress tracking, blocker identification, next steps |
Command | Operational Focus | Use Case |
---|---|---|
cost-optimize |
Resource optimization | Cloud spend analysis, right-sizing, reserved capacity |
onboard |
Environment setup | Development tools, access configuration, documentation |
context-save |
State persistence | Architecture decisions, configuration snapshots |
context-restore |
State recovery | Context reload, decision history, configuration restore |
# Complete feature with multi-agent orchestration
/workflows:feature-development OAuth2 authentication with JWT tokens
# API-first development
/tools:api-scaffold REST endpoints for user management with RBAC
# Test-driven approach
/workflows:tdd-cycle shopping cart with discount calculation logic
# Intelligent issue resolution
/workflows:smart-fix high memory consumption in production workers
# Targeted error analysis
/tools:error-trace investigate Redis connection timeouts
# Performance optimization
/workflows:performance-optimization optimize database query performance
# Security assessment
/tools:security-scan OWASP Top 10 vulnerability scan
# Compliance verification
/tools:compliance-check GDPR data handling requirements
# Security hardening workflow
/workflows:security-hardening implement zero-trust architecture
# Complete TDD cycle with orchestration
/workflows:tdd-cycle payment processing with Stripe integration
# Manual TDD phases for granular control
/tools:tdd-red create failing tests for order validation
/tools:tdd-green implement minimal order validation logic
/tools:tdd-refactor optimize validation performance
# Feature implementation pipeline
/workflows:feature-development real-time notifications with WebSockets
/tools:security-scan WebSocket implementation vulnerabilities
/workflows:performance-optimization WebSocket connection handling
/tools:deploy-checklist notification service deployment requirements
/tools:k8s-manifest WebSocket service with session affinity
# Legacy system upgrade
/workflows:legacy-modernize migrate monolith to microservices
/tools:deps-audit check dependency vulnerabilities
/tools:deps-upgrade update to latest stable versions
/tools:refactor-clean remove deprecated patterns
/tools:test-harness generate comprehensive test coverage
/tools:docker-optimize create optimized container images
/tools:k8s-manifest deploy with rolling update strategy
Criteria | Use Workflows | Use Tools |
---|---|---|
Problem Complexity | Multi-domain, cross-cutting concerns | Single domain, focused scope |
Solution Clarity | Exploratory, undefined approach | Clear implementation path |
Agent Coordination | Multiple specialists required | Single expertise sufficient |
Implementation Scope | End-to-end features | Specific components |
Control Level | Automated orchestration preferred | Manual control required |
Requirement | Recommended Workflow | Rationale |
---|---|---|
"Build complete authentication system" | /workflows:feature-development |
Multi-tier implementation required |
"Debug production performance issues" | /workflows:smart-fix |
Unknown root cause, needs analysis |
"Modernize legacy application" | /workflows:legacy-modernize |
Complex refactoring across stack |
"Implement ML-powered feature" | /workflows:data-driven-feature |
Requires data science expertise |
Task | Recommended Tool | Output |
---|---|---|
"Generate Kubernetes configs" | /tools:k8s-manifest |
YAML manifests with best practices |
"Audit security vulnerabilities" | /tools:security-scan |
Vulnerability report with fixes |
"Create API documentation" | /tools:doc-generate |
OpenAPI/Swagger specifications |
"Optimize Docker images" | /tools:docker-optimize |
Multi-stage Dockerfile |
- Technology Stack Specification: Include framework versions, database systems, deployment targets
- Constraint Definition: Specify performance requirements, security standards, compliance needs
- Integration Requirements: Define external services, APIs, authentication methods
- Output Preferences: Indicate coding standards, testing frameworks, documentation formats
- Progressive Enhancement: Start with workflows for foundation, refine with tools
- Pipeline Construction: Chain commands in logical sequence for complete solutions
- Iterative Refinement: Use tool outputs as inputs for subsequent commands
- Parallel Execution: Run independent tools simultaneously when possible
- Workflows typically require 30-90 seconds for complete orchestration
- Tools execute in 5-30 seconds for focused operations
- Provide detailed requirements upfront to minimize iteration cycles
- Use saved context (
context-save
/context-restore
) for multi-session projects
Each slash command is a markdown file with the following characteristics:
Component | Description | Example |
---|---|---|
Filename | Determines command name | api-scaffold.md → /tools:api-scaffold |
Content | Execution instructions | Agent prompts and orchestration logic |
Variables | $ARGUMENTS placeholder |
Captures and processes user input |
Directory | Command category | tools/ for utilities, workflows/ for orchestration |
~/.claude/commands/
├── workflows/ # Multi-agent orchestration commands
│ ├── feature-development.md
│ ├── smart-fix.md
│ └── ...
├── tools/ # Single-purpose utility commands
│ ├── api-scaffold.md
│ ├── security-scan.md
│ └── ...
└── README.md # This documentation
- File Creation: Place in
workflows/
directory with descriptive naming - Agent Orchestration: Define delegation logic for multiple specialists
- Error Handling: Include fallback strategies and error recovery
- Output Coordination: Specify how agent outputs should be combined
- File Creation: Place in
tools/
directory with single-purpose naming - Implementation: Provide complete, production-ready code generation
- Framework Detection: Auto-detect and adapt to project stack
- Best Practices: Include security, performance, and scalability considerations
- Use lowercase with hyphens:
feature-name.md
- Be descriptive but concise:
security-scan
notscan
- Indicate action clearly:
deps-upgrade
notdependencies
- Maintain consistency with existing commands
Issue | Cause | Resolution |
---|---|---|
Command not recognized | File missing or misnamed | Verify file exists in correct directory |
Slow execution | Normal workflow behavior | Workflows coordinate multiple agents (30-90s typical) |
Incomplete output | Insufficient context | Provide technology stack and requirements |
Integration failures | Path or configuration issues | Check file paths and dependencies |
- Context Caching: Use
context-save
for multi-session projects - Batch Operations: Combine related tasks in single workflow
- Tool Selection: Use tools for known problems, workflows for exploration
- Requirement Clarity: Detailed specifications reduce iteration cycles
Command | Type | Capabilities |
---|---|---|
tdd-cycle |
Workflow | Complete red-green-refactor orchestration with test coverage analysis |
tdd-red |
Tool | Failing test generation with edge case coverage and mocking |
tdd-green |
Tool | Minimal implementation to achieve test passage |
tdd-refactor |
Tool | Code optimization while maintaining test integrity |
Framework Support: Jest, Mocha, PyTest, RSpec, JUnit, Go testing, Rust tests
Command | Specialization | Key Features |
---|---|---|
security-scan |
Vulnerability detection | SAST/DAST analysis, dependency scanning, secret detection |
docker-optimize |
Container optimization | Multi-stage builds, layer caching, size reduction (50-90% typical) |
k8s-manifest |
Kubernetes deployment | HPA, NetworkPolicy, PodSecurityPolicy, service mesh ready |
monitor-setup |
Observability | Prometheus metrics, Grafana dashboards, alert rules |
Security Tools Integration: Bandit, Safety, Trivy, Semgrep, Snyk, GitGuardian
Command | Database Support | Migration Strategies |
---|---|---|
db-migrate |
PostgreSQL, MySQL, MongoDB, DynamoDB | Blue-green, expand-contract, versioned schemas |
data-pipeline |
Batch and streaming | Apache Spark, Kafka, Airflow, dbt integration |
data-validation |
Schema and quality | Great Expectations, Pandera, custom validators |
Zero-Downtime Patterns: Rolling migrations, feature flags, dual writes, backfill strategies
Command | Analysis Type | Optimization Techniques |
---|---|---|
performance-optimization |
Full-stack profiling | Query optimization, caching strategies, CDN configuration |
cost-optimize |
Cloud resource analysis | Right-sizing, spot instances, reserved capacity planning |
docker-optimize |
Container performance | Build cache optimization, minimal base images, layer reduction |
# Complete feature development pipeline
/workflows:feature-development user authentication system
/tools:security-scan authentication implementation
/tools:test-harness authentication test suite
/tools:docker-optimize authentication service
/tools:k8s-manifest authentication deployment
/tools:monitor-setup authentication metrics
MIT License - See LICENSE file for complete terms.
- Issues: GitHub Issues
- Contributions: Pull requests welcome following the development guidelines
- Questions: Open a discussion in the repository