Web Analytics

commands

⭐ 662 stars Thai by wshobson

🌐 ภาษา

คำสั่ง Slash ของ Claude Code

คำสั่ง Slash พร้อมใช้งานจริงสำหรับ Claude Code ที่ช่วยเร่งกระบวนการพัฒนาด้วยระบบอัตโนมัติอัจฉริยะ

52 คำสั่ง จัดหมวดหมู่ดังนี้:

🤝 ต้องการ Claude Code Subagents

คำสั่งเหล่านี้ทำงานร่วมกับ Claude Code Subagents เพื่อความสามารถในการจัดการแบบออร์เคสเตรชั่น

การติดตั้ง

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

คำสั่งที่มีให้ใช้งาน

วิธีการใช้งาน

คำสั่งจะถูกจัดระเบียบไว้ในไดเรกทอรี tools/ และ workflows/ ใช้งานโดยใส่คำนำหน้าไดเรกทอรี:

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

หมายเหตุ: หากคุณต้องการใช้คำสั่งโดยไม่ต้องมีคำนำหน้า คุณสามารถแบนโครงสร้างไดเรกทอรี:

cp tools/*.md .
cp workflows/*.md .
Claude Code จะแนะนำคำสั่งที่เกี่ยวข้องโดยอัตโนมัติตามบริบท

🤖 เวิร์กโฟลว์

การประสานงานซับเอเจนต์หลายตัวสำหรับงานที่ซับซ้อน:

การพัฒนาฟีเจอร์

กระบวนการพัฒนา

เวิร์กโฟลว์ที่ประสานงานโดยซับเอเจนต์

🔧 เครื่องมือ (คำสั่งเฉพาะทาง)

AI & แมชชีนเลิร์นนิง

สถาปัตยกรรม & คุณภาพโค้ด

ข้อมูล & ฐานข้อมูล

DevOps & โครงสร้างพื้นฐาน

การพัฒนา & การทดสอบ

ความปลอดภัย & การปฏิบัติตามข้อกำหนด

การดีบั๊ก & การวิเคราะห์

การพึ่งพา & การกำหนดค่า

เอกสาร & การทำงานร่วมกัน

การเพิ่มประสิทธิภาพต้นทุน

การเริ่มต้นใช้งานและการตั้งค่า

เครื่องมือซับเอเจนต์

คุณสมบัติ

จำนวนคำสั่ง

รวม: 52 คำสั่งสแลชที่พร้อมผลิตจริง จัดกลุ่มเป็น:

🤖 เวิร์กโฟลว์ (14 คำสั่ง)

🔧 เครื่องมือ (38 คำสั่ง)

ตัวอย่างการใช้งาน

🤖 ตัวอย่างเวิร์กโฟลว์

# 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

🔧 ตัวอย่างเครื่องมือ (คำสั่งสำหรับวัตถุประสงค์เดียว)

# 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

คำสั่งขั้นสูง

ความปลอดภัย & DevOps

#### /security-scan

การสแกนความปลอดภัยแบบครอบคลุมพร้อมการแก้ไขอัตโนมัติ

#### /docker-optimize

กลยุทธ์การปรับแต่งคอนเทนเนอร์ขั้นสูง

#### /k8s-manifest

การดีพลอย Kubernetes ระดับโปรดักชั่น

ส่วนหน้า & ข้อมูล

#### /db-migrate

กลยุทธ์การมิเกรตฐานข้อมูลขั้นสูง

การผสมผสานเวิร์กโฟลว์และเครื่องมือ

พลังที่แท้จริงเกิดจากการผสมผสานเวิร์กโฟลว์และเครื่องมือเพื่อรอบการพัฒนาที่สมบูรณ์:

ตัวอย่าง: การสร้างฟีเจอร์ใหม่

# 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

ตัวอย่าง: การปรับปรุงโค้ดเก่าให้ทันสมัย

# 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

รูปแบบการประสานคำสั่ง

คำสั่งสามารถใช้งานแยกเดี่ยวหรือผสมผสานในรูปแบบที่ทรงพลัง:

การดำเนินการแบบลำดับ

# 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

การวิเคราะห์แบบขนาน

# 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

การปรับปรุงแบบวนซ้ำ

# 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

การบูรณาการข้ามโดเมน

# 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

เมื่อไหร่ควรใช้ Workflow กับ Tools

🔀 Workflow & Subagent Tools

🛠️ Specialized Tools

ตัวอย่าง:

🔧 ใช้ Tools เมื่อ:

ตัวอย่าง:

รูปแบบคำสั่ง

Slash command คือไฟล์ markdown ธรรมดาที่:

แนวปฏิบัติที่ดีที่สุด

การเลือกคำสั่ง

วิธีใช้งานอย่างมีประสิทธิภาพ

การมีส่วนร่วม

การแก้ไขปัญหา

ไม่พบคำสั่ง:

เวิร์กโฟลว์ช้า: เป็นปกติ - เพราะมีการประสานงานซับเอเจนต์หลายตัว

ผลลัพธ์ทั่วไป: เพิ่มข้อมูลบริบทเกี่ยวกับเทคโนโลยีที่ใช้ให้มากขึ้น

ปัญหาการเชื่อมต่อ: ตรวจสอบเส้นทางไฟล์และลำดับคำสั่ง

เคล็ดลับการเพิ่มประสิทธิภาพ

การเลือกคำสั่ง:

การปรับแต่ง:

การเพิ่มเวิร์กโฟลว์ใหม่:

การเพิ่มเครื่องมือใหม่:

เรียนรู้เพิ่มเติม

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