Claude Code Slash Commands
Productieklaar slashcommando's voor Claude Code die ontwikkeling versnellen via intelligente automatisering.
52 commando's georganiseerd als:
- 🤖 Workflows: Multi-subagent orkestratie voor complexe taken
- 🔧 Tools: Hulpmiddelen met één doel voor specifieke operaties
🤝 Vereist Claude Code Subagents
Deze commando's werken met de Claude Code Subagents voor orkestratie-mogelijkheden.
Installatie
cd ~/.claude
git clone https://github.com/wshobson/commands.git
git clone https://github.com/wshobson/agents.git # Required for subagent orchestrationBeschikbare Commando's
- 🤖 Workflows - Orkestreer meerdere subagenten voor complexe taken
- 🔧 Tools - Enkelvoudige commando's voor specifieke bewerkingen
Gebruik
Commando's zijn georganiseerd in de mappen tools/ en workflows/. Gebruik ze met de mapvoorvoegsel:
/tools:api-scaffold user management with authentication
/tools:security-scan check for vulnerabilities
/workflows:feature-development implement chat functionalityOpmerking: Als u liever opdrachten zonder prefix gebruikt, kunt u de mappenstructuur plat maken:
cp tools/*.md .
cp workflows/*.md .Claude Code suggereert automatisch relevante commando's op basis van de context.
🤖 Workflows
Multi-subagent orkestratie voor complexe taken:
Featureontwikkeling
- feature-development - Backend, frontend, testen en deployment subagents bouwen complete features
- full-review - Meerdere review subagents bieden uitgebreide codeanalyse
- smart-fix - Analyseert problemen en delegeert naar geschikte specialist subagents
Ontwikkelingsprocessen
- git-workflow - Implementeert effectieve Git-workflows met branchingstrategieën en PR-sjablonen
- improve-agent - Verbetert subagentprestaties door promptoptimalisatie
- legacy-modernize - Moderniseert legacy-codebases met gespecialiseerde subagents
- ml-pipeline - Creëert ML-pijplijnen met data- en ML-engineering subagents
- multi-platform - Bouwt cross-platform apps met gecoördineerde subagents
- workflow-automate - Automatiseert CI/CD, monitoring en deployment workflows
Subagent-georkestreerde workflows
- full-stack-feature - Multi-platform features met backend-, frontend- en mobiele subagents
- security-hardening - Security-first implementatie met gespecialiseerde subagents
- data-driven-feature - ML-gedreven features met data science subagents
- performance-optimization - End-to-end optimalisatie met performance subagents
- incident-response - Productie-incidentoplossing met ops subagents
🔧 Tools (Single-Purpose Commands)
AI & Machine Learning
- ai-assistant - Bouw productieklare AI-assistenten en chatbots
- ai-review - Gespecialiseerde review voor AI/ML-codebases
- langchain-agent - Maak LangChain/LangGraph agents met moderne patronen
- ml-pipeline - Creëer end-to-end ML-pijplijnen met MLOps
- prompt-optimize - Optimaliseer AI-prompts voor prestatie en kwaliteit
Architectuur & Codekwaliteit
- code-explain - Genereer gedetailleerde uitleg van complexe code
- code-migrate - Migreer code tussen talen, frameworks of versies
- refactor-clean - Herstructureer code voor onderhoudbaarheid en prestatie
- tech-debt - Analyseer en prioriteer technische schuld
Data & Database
- data-pipeline - Ontwerp schaalbare data-pijplijnarchitecturen
- data-validation - Implementeer uitgebreide datavalidatiesystemen
- db-migrate - Geavanceerde strategieën voor database-migratie
DevOps & Infrastructuur
- deploy-checklist - Genereer implementatieconfiguraties en checklists
- docker-optimize - Geavanceerde container optimalisatiestrategieën
- k8s-manifest - Kubernetes-implementaties van productieklasse
- monitor-setup - Stel uitgebreide monitoring en observatie in
- slo-implement - Implementeer Service Level Objectives (SLO’s)
- workflow-automate - Automatiseer ontwikkelings- en operationele workflows
Ontwikkeling & Testen
- api-mock - Maak realistische API-mocks voor ontwikkeling en testen
- api-scaffold - Genereer productieklare API-endpoints met volledige implementatiestack
- test-harness - Maak uitgebreide testsuites met frameworkdetectie
Beveiliging & Compliance
- accessibility-audit - Uitgebreide toegankelijkheidstests en oplossingen
- compliance-check - Zorg voor naleving van regelgeving (AVG, HIPAA, SOC2)
- security-scan - Uitgebreide beveiligingsscan met geautomatiseerde herstelacties
Debuggen & Analyse
- debug-trace - Geavanceerde debugging- en traceerstrategieën
- error-analysis - Diepe analyse van foutpatronen en oplossingsstrategieën
- error-trace - Traceer en diagnoseer productiefouten
- issue - Maak goed gestructureerde GitHub/GitLab-issues
Afhankelijkheden & Configuratie
- config-validate - Valideer en beheer applicatieconfiguratie
- deps-audit - Controleer afhankelijkheden op beveiliging en licenties
- deps-upgrade - Upgrade projectafhankelijkheden veilig
Documentatie & Samenwerking
- doc-generate - Genereer uitgebreide documentatie
- git-workflow - Implementeer effectieve Git-workflows
- pr-enhance - Verbeter pull requests met kwaliteitscontroles
Kostenoptimalisatie
- cost-optimize - Optimaliseer cloud- en infrastructuurkosten
Onboarding & Setup
- onboard - Richt ontwikkelomgevingen in voor nieuwe teamleden
Subagent Tools
- multi-agent-review - Code review vanuit meerdere perspectieven met gespecialiseerde subagenten
- smart-debug - Diepgaand debuggen met debugger- en prestatie-subagenten
- multi-agent-optimize - Full-stack optimalisatie met meerdere subagenten
- context-save - Sla projectcontext op met de context-manager subagent
- context-restore - Herstel opgeslagen context voor continuïteit
Functionaliteiten
- Productieklaar geïmplementeerd
- Automatische frameworkdetectie
- Beste beveiligingspraktijken
- Ingebouwde monitoring en testen
- Commando's werken naadloos samen
Aantal Commando's
Totaal: 52 productieklare slash-commando's georganiseerd in:
🤖 Workflows (14 commando's)
- Functieontwikkeling & Review (3 commando's)
- Automatisering van ontwikkelprocessen (6 commando's)
- Subagent-georkestreerde workflows (5 commando's)
🔧 Tools (38 commando's)
- AI & Machine Learning (5 commando's)
- Architectuur & Codekwaliteit (4 commando's)
- Data & Database (3 commando's)
- DevOps & Infrastructuur (6 commando's)
- Ontwikkeling & Testen (3 commando's)
- Beveiliging & Compliance (3 commando's)
- Debuggen & Analyse (4 commando's)
- Afhankelijkheden & Configuratie (3 commando's)
- Documentatie & Samenwerking (1 commando)
- Onboarding & Installatie (1 commando)
- Subagent-specifieke tools (5 commando's)
Voorbeelden van gebruik
🤖 Voorbeelden van workflows
# Implement a complete feature
/workflows:feature-development Add user authentication with OAuth2Comprehensive code review
/workflows:full-review Review the authentication moduleSmart issue resolution
/workflows:smart-fix Fix performance degradation in API response timesModernize legacy system
/workflows:legacy-modernize Migrate monolithic Java app to microservicesBuild comprehensive multi-platform feature
/workflows:full-stack-feature User authentication with social login across web and mobileImplement security-first architecture
/workflows:security-hardening Harden API endpoints and implement zero-trust security modelCreate data-driven ML feature
/workflows:data-driven-feature Build recommendation engine with real-time personalizationOptimize entire application stack
/workflows:performance-optimization Improve response times and reduce infrastructure costsRespond to production incident
/workflows:incident-response High CPU usage causing service degradation in production🔧 Voorbeelden van hulpmiddelen (commando's met één doel)
# Create a user management API
/tools:api-scaffold user CRUD operations with JWT auth and role-based accessReview microservices architecture
/tools:multi-agent-review analyze our microservices for coupling and scalability issuesOptimize LLM chat application
/tools:prompt-optimize reduce latency for customer support chatbot while maintaining accuracyCreate fraud detection pipeline
/tools:data-pipeline real-time fraud detection with feature store and monitoringDebug production issue
/tools:error-trace analyze high memory usage in production podsSecure container images
/tools:security-scan scan and fix vulnerabilities in Docker imagesGenerate API documentation
/tools:doc-generate create OpenAPI docs with examples for REST endpointsOnboard new developer
/tools:onboard Setup development environment for React/Node.js projectMulti-perspective code review
/tools:multi-agent-review Review authentication moduleDeep debugging
/tools:smart-debug Investigate memory leak in production workersFull-stack optimization
/tools:multi-agent-optimize Optimize checkout flow for better conversionSave project context
/tools:context-save Save current project state and architectural decisionsRestore project context
/tools:context-restore Load context from last week's sprintVerbeterde Commando's
Security & DevOps
#### /security-scan
Uitgebreide beveiligingsscan met geautomatiseerde oplossingen.
- Multi-Tool Scanning: Bandit, Safety, Trivy, Semgrep, ESLint Security, Snyk
- Automatische Oplossingen: Veelvoorkomende kwetsbaarheden automatisch opgelost
- CI/CD Integratie: Beveiligingspoorten voor GitHub Actions/GitLab CI
- Container Scanning: Analyse van kwetsbaarheden in images
- Geheimendetectie: Integratie met GitLeaks en TruffleHog
/docker-optimizeGeavanceerde strategieën voor containeroptimalisatie.
- Slimme Optimalisatie: Analyseert en stelt verbeteringen voor
- Multi-Stage Builds: Framework-specifieke geoptimaliseerde Dockerfiles
- Moderne Tools: BuildKit, Bun, UV voor snellere builds
- Security Hardening: Distroless images, non-root gebruikers
- Cross-Command Integratie: Werkt met /api-scaffold outputs
/k8s-manifestProductieklare Kubernetes-deployments.
- Geavanceerde Patronen: Pod Security Standards, Netwerkbeleid, OPA
- GitOps Klaar: Configuraties voor FluxCD en ArgoCD
- Observability: Prometheus ServiceMonitors, OpenTelemetry
- Auto-Scaling: HPA, VPA en cluster autoscaler configuraties
- Service Mesh: Integratie met Istio/Linkerd
Frontend & Data
#### /db-migrate
Geavanceerde strategieën voor database-migratie.
- Multi-Database: PostgreSQL, MySQL, MongoDB, DynamoDB
- Zero-Downtime: Blue-green deployments, rollende migraties
- Event Sourcing: Kafka/Kinesis-integratie voor CDC
- Cross-Platform: Beheert polyglot persistentie
- Monitoring: Gezondheidscontroles en rollback van migraties
Workflows en Tools Combineren
De echte kracht komt voort uit het combineren van workflows en tools voor volledige ontwikkelcycli:
Voorbeeld: Een Nieuwe Feature Bouwen
# 1. Use a workflow to implement the feature with multiple subagents
/workflows:feature-development Add real-time chat feature with WebSocket support2. Use tools for specific enhancements
/tools:test-harness Add integration tests for WebSocket connections
/tools:security-scan Check for WebSocket vulnerabilities
/tools:docker-optimize Optimize container for WebSocket connections3. Use a workflow for comprehensive review
/workflows:full-review Review the entire chat feature implementationVoorbeeld: Modernisering van legacy-code
# 1. Start with the modernization workflow
/workflows:legacy-modernize Migrate Express.js v4 app to modern architecture2. Use specific tools for cleanup
/tools:deps-upgrade Update all dependencies to latest versions
/tools:refactor-clean Remove deprecated patterns and dead code
/tools:test-harness Ensure 100% test coverage3. Optimize and deploy
/tools:docker-optimize Create multi-stage production build
/tools:k8s-manifest Deploy with zero-downtime strategyPatronen voor Command Orchestratie
Commando's kunnen afzonderlijk worden gebruikt of gecombineerd in krachtige patronen:
Sequentiële Uitvoering
# Build → Test → Secure → Deploy pipeline
/tools:api-scaffold user management API
/tools:test-harness comprehensive test suite for user API
/tools:security-scan check user API for vulnerabilities
/tools:k8s-manifest deploy user API to productionParallelle Analyse
# Multiple perspectives on the same codebase
/tools:multi-agent-review comprehensive architecture and code review
/tools:security-scan audit security posture
/workflows:performance-optimization identify and fix bottlenecks
Then consolidate findings
Iteratieve verfijning
# Start broad, then narrow focus
/workflows:feature-development implement payment processing
/tools:security-scan focus on payment security
/tools:compliance-check ensure PCI compliance
/tools:test-harness add payment-specific testsIntegratie tussen domeinen
# Frontend + Backend + Infrastructure
/tools:api-scaffold backend payment API
/tools:multi-agent-optimize optimize payment flow performance
/tools:docker-optimize containerize payment service
/tools:monitor-setup payment metrics and alertsWanneer Workflows vs Tools te Gebruiken
🔀 Workflows & Subagent Tools
- Probleemoplossing: Analyseer en los problemen adaptief op
- Meerdere perspectieven: Coördineer specialistische subagenten
- Complexe taken: Meerstapsprocessen over domeinen heen
- Onbekende oplossingen: Laat subagenten de aanpak bepalen
🛠️ Gespecialiseerde Tools
- Infrastructuur opzetten: Configureer omgevingen
- Codegeneratie: Maak specifieke implementaties
- Analyse: Genereer rapporten zonder oplossingen
- Domeintaken: Sterk gespecialiseerde operaties
- "Implementeer gebruikersauthenticatiesysteem" →
/workflows:feature-development - "Los prestatieproblemen over de stack op" →
/workflows:smart-fix - "Moderniseer legacy monoliet" →
/workflows:legacy-modernize
🔧 Gebruik Tools Wanneer:
- Specifieke expertise nodig - Duidelijke, gerichte taak binnen één domein
- Precieze controle gewenst - Specifieke implementatiedetails aansturen
- Deel van handmatige workflow - Integreren in bestaande processen
- Diepe specialisatie vereist - Expert-niveau implementatie nodig
- Voortbouwen op bestaand werk - Verbeteren of verfijnen van eerdere output
- "Maak Kubernetes manifests" →
/tools:k8s-manifest - "Scan op beveiligingslekken" →
/tools:security-scan - "Genereer API-documentatie" →
/tools:doc-generate
Opdrachtformaat
Slash commands zijn eenvoudige markdown-bestanden waarbij:
- De bestandsnaam de opdrachtnaam wordt (bijv.
tools/api-scaffold.md→/tools:api-scaffold) - De bestandsinhoud is de prompt/instructies die worden uitgevoerd bij oproepen
- Gebruik
$ARGUMENTSplaceholder voor gebruikersinvoer
Best Practices
Commandselectie
- Laat Claude Code automatisch voorstellen - Analyseert context en selecteert optimale commando's
- Gebruik workflows voor complexe taken - Subagenten coördineren multidomein-implementaties
- Gebruik tools voor gerichte taken - Pas specifieke commando's toe voor doelgerichte verbeteringen
Effectief Gebruik
- Geef uitgebreide context - Voeg tech stack, beperkingen en vereisten toe
- Schakel commando's strategisch - Workflows → Tools → Verfijningen
- Bouw voort op eerdere output - Commando's zijn ontworpen om samen te werken
Bijdragen
- Maak een
.mdbestand inworkflows/oftools/ - Gebruik kleine letters en koppeltekens voor namen
- Voeg
$ARGUMENTENtoe voor gebruikersinput
Problemen oplossen
Commando niet gevonden:
- Controleer of bestanden in
~/.claude/commands/tools/of~/.claude/commands/workflows/staan - Gebruik het juiste prefix:
/tools:commando-naamof/workflows:commando-naam - Of maak mappen plat als je geen prefix wilt:
cp tools/.md . && cp workflows/.md .
Generieke output: Voeg meer specifieke context toe over je tech stack
Integratieproblemen: Controleer bestandslocaties en volgorde van commando's
Prestatie Tips
Commandoselectie:
- Workflows: Multi-subagent coördinatie voor complexe functionaliteit
- Tools: Enkelvoudige operaties voor specifieke taken
- Eenvoudige bewerkingen: Blijf bij de hoofdagent
- Begin met tools voor bekende problemen
- Geef gedetailleerde vereisten direct mee
- Bouw voort op eerdere uitvoer van commando's
- Laat workflows afronden voordat u wijzigingen aanbrengt
Een nieuwe workflow toevoegen:
- Focus op orkestratie en delegatielogica van subagents
- Specificeer welke gespecialiseerde subagents worden gebruikt en in welke volgorde
- Definieer coördinatiepatronen tussen subagents
Een nieuw hulpmiddel toevoegen:
- Voeg volledige, productieklare implementaties toe
- Structureer de inhoud met duidelijke secties en uitvoerbare resultaten
- Voeg voorbeelden, best practices en integratiepunten toe
Meer informatie
- Claude Code Documentatie
- Slash Commands Documentatie
- Subagents Documentatie
- Claude Code GitHub
- Claude Code Subagents Collectie - Gespecialiseerde subagents gebruikt door deze commando's