Web Analytics

commands

⭐ 662 stars Vietnamese by wshobson

🌐 Ngôn ngữ

Claude Code Slash Commands

Các lệnh slash sẵn sàng cho sản xuất dành cho Claude Code giúp tăng tốc phát triển thông qua tự động hóa thông minh.

52 lệnh được tổ chức như sau:

🤝 Yêu cầu Claude Code Subagents

Các lệnh này hoạt động với Claude Code Subagents để có khả năng điều phối.

Cài đặt

cd ~/.claude
git clone https://github.com/wshobson/commands.git
git clone https://github.com/wshobson/agents.git  # Required for subagent orchestration

Các Lệnh Có Sẵn

Cách Sử Dụng

Các lệnh được tổ chức trong thư mục tools/workflows/. Sử dụng chúng với tiền tố thư mục:

/tools:api-scaffold user management with authentication
/tools:security-scan check for vulnerabilities
/workflows:feature-development implement chat functionality

Lưu ý: Nếu bạn muốn sử dụng các lệnh mà không cần tiền tố, bạn có thể làm phẳng các thư mục:

cp tools/*.md .
cp workflows/*.md .
Claude Code tự động đề xuất các lệnh liên quan dựa trên ngữ cảnh.

🤖 Quy trình làm việc

Điều phối đa tác tử phụ cho các nhiệm vụ phức tạp:

Phát triển Tính năng

Quy trình Phát triển

Quy trình phối hợp tác tử phụ

🔧 Công cụ (Lệnh chuyên dụng)

AI & Máy học

Kiến trúc & Chất lượng mã

Dữ liệu & Cơ sở dữ liệu

DevOps & Hạ tầng

Phát triển & Kiểm thử

Bảo mật & Tuân thủ

Gỡ lỗi & Phân tích

Phụ thuộc & Cấu hình

Tài liệu & Hợp tác

Tối Ưu Chi Phí

Đón Nhận & Thiết Lập

Công Cụ Tác Nhân Phụ

Tính Năng

Số Lượng Lệnh

Tổng: 52 lệnh slash sẵn sàng sản xuất được tổ chức thành:

🤖 Quy Trình Làm Việc (14 lệnh)

🔧 Công Cụ (38 lệnh)

Ví dụ Sử dụng

🤖 Ví dụ Quy trình làm việc

# Implement a complete feature
/workflows:feature-development Add user authentication with OAuth2

Comprehensive code review

/workflows:full-review Review the authentication module

Smart issue resolution

/workflows:smart-fix Fix performance degradation in API response times

Modernize legacy system

/workflows:legacy-modernize Migrate monolithic Java app to microservices

Build comprehensive multi-platform feature

/workflows:full-stack-feature User authentication with social login across web and mobile

Implement security-first architecture

/workflows:security-hardening Harden API endpoints and implement zero-trust security model

Create data-driven ML feature

/workflows:data-driven-feature Build recommendation engine with real-time personalization

Optimize entire application stack

/workflows:performance-optimization Improve response times and reduce infrastructure costs

Respond to production incident

/workflows:incident-response High CPU usage causing service degradation in production

🔧 Ví dụ về công cụ (Lệnh chuyên dụng)

# Create a user management API
/tools:api-scaffold user CRUD operations with JWT auth and role-based access

Review microservices architecture

/tools:multi-agent-review analyze our microservices for coupling and scalability issues

Optimize LLM chat application

/tools:prompt-optimize reduce latency for customer support chatbot while maintaining accuracy

Create fraud detection pipeline

/tools:data-pipeline real-time fraud detection with feature store and monitoring

Debug production issue

/tools:error-trace analyze high memory usage in production pods

Secure container images

/tools:security-scan scan and fix vulnerabilities in Docker images

Generate API documentation

/tools:doc-generate create OpenAPI docs with examples for REST endpoints

Onboard new developer

/tools:onboard Setup development environment for React/Node.js project

Multi-perspective code review

/tools:multi-agent-review Review authentication module

Deep debugging

/tools:smart-debug Investigate memory leak in production workers

Full-stack optimization

/tools:multi-agent-optimize Optimize checkout flow for better conversion

Save project context

/tools:context-save Save current project state and architectural decisions

Restore project context

/tools:context-restore Load context from last week's sprint

Lệnh Nâng Cao

Bảo mật & DevOps

#### /security-scan

Quét bảo mật toàn diện với khả năng khắc phục tự động.

#### /docker-optimize

Chiến lược tối ưu hóa container nâng cao.

#### /k8s-manifest

Triển khai Kubernetes đạt chuẩn sản xuất.

Frontend & Dữ liệu

#### /db-migrate

Chiến lược di chuyển cơ sở dữ liệu nâng cao.

Kết Hợp Các Quy Trình Làm Việc và Công Cụ

Sức mạnh thực sự đến từ việc kết hợp quy trình làm việc và công cụ cho chu kỳ phát triển hoàn chỉnh:

Ví dụ: Xây Dựng Một Tính Năng Mới

# 1. Use a workflow to implement the feature with multiple subagents
/workflows:feature-development Add real-time chat feature with WebSocket support

2. 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 connections

3. Use a workflow for comprehensive review

/workflows:full-review Review the entire chat feature implementation

Ví dụ: Hiện đại hóa mã nguồn kế thừa

# 1. Start with the modernization workflow
/workflows:legacy-modernize Migrate Express.js v4 app to modern architecture

2. 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 coverage

3. Optimize and deploy

/tools:docker-optimize Create multi-stage production build /tools:k8s-manifest Deploy with zero-downtime strategy

Các Mẫu Điều Phối Lệnh

Các lệnh có thể được sử dụng riêng lẻ hoặc kết hợp theo các mẫu mạnh mẽ:

Thực Thi Tuần Tự

# 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 production

Phân Tích Song Song

# 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

Tinh chỉnh lặp đi lặp lại

# 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 tests

Tích hợp đa miền

# 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 alerts

Khi nào sử dụng Workflows và khi nào sử dụng Tools

🔀 Workflows & Các công cụ Subagent

🛠️ Công cụ chuyên biệt

Ví dụ:

🔧 Sử dụng Tools khi:

Ví dụ:

Định dạng lệnh

Slash command là các file markdown đơn giản, nơi:

Thực hành tốt nhất

Lựa chọn lệnh

Sử dụng hiệu quả

Đóng góp

Khắc phục sự cố

Không tìm thấy lệnh:

Quy trình chậm: Bình thường - chúng phối hợp nhiều subagent

Kết quả chung chung: Thêm ngữ cảnh cụ thể về công nghệ của bạn

Vấn đề tích hợp: Kiểm tra đường dẫn file và thứ tự lệnh

Mẹo tăng hiệu suất

Lựa chọn lệnh:

Tối ưu hóa:

Thêm một quy trình mới:

Thêm một công cụ mới:

Tìm hiểu thêm

--- Tranlated By Open Ai Tx | Last indexed: 2025-09-08 ---