Web Analytics

agents

⭐ 11952 stars Vietnamese by wshobson

🌐 Ngôn ngữ

Bộ Sưu Tập Subagent Claude Code

Một bộ sưu tập toàn diện các subagent AI chuyên biệt cho Claude Code, được thiết kế để nâng cao quy trình phát triển với kiến thức chuyên sâu theo từng lĩnh vực.

Tổng quan

Kho lưu trữ này chứa 76 subagent chuyên biệt mở rộng năng lực của Claude Code. Mỗi subagent là chuyên gia trong một lĩnh vực cụ thể, được tự động kích hoạt dựa trên ngữ cảnh hoặc gọi thủ công khi cần thiết. Tất cả các agent đều được cấu hình với các mô hình Claude phù hợp theo độ phức tạp của tác vụ để tối ưu hiệu suất và chi phí.

Các Subagent Có Sẵn

Phát triển & Kiến trúc

Chuyên gia ngôn ngữ

Hạ tầng & Vận hành

Chất lượng & Bảo mật

Dữ liệu & AI

Lĩnh vực chuyên biệt

Tài liệu

Kinh doanh & Marketing

SEO & Tối ưu hóa nội dung

Phân công mô hình

Tất cả 76 tác vụ phụ đều được cấu hình với các mô hình Claude cụ thể dựa trên độ phức tạp nhiệm vụ:

🚀 Haiku (Nhanh & Tiết kiệm chi phí) - 15 tác vụ

Mô hình: haiku

⚡ Sonnet (Hiệu năng cân bằng) - 45 tác vụ

Mô hình: sonnet

Phát triển & Ngôn ngữ:

Hạ tầng & Vận hành: Chất lượng & Hỗ trợ:

🧠 Opus (Khả năng tối đa) - 15 tác nhân

Mô hình: opus

Cài đặt

Các tác nhân phụ này sẽ tự động khả dụng khi được đặt trong thư mục ~/.claude/agents/.

cd ~/.claude
git clone https://github.com/wshobson/agents.git

Sử dụng

Kích hoạt tự động

Claude Code sẽ tự động ủy quyền cho phân tác phù hợp dựa trên ngữ cảnh nhiệm vụ và mô tả của phân tác đó.

Kích hoạt thủ công

Đề cập tên phân tác trong yêu cầu của bạn:
"Use the code-reviewer to check my recent changes"
"Have the security-auditor scan for vulnerabilities"
"Get the performance-engineer to optimize this bottleneck"

Ví dụ Sử Dụng

Nhiệm Vụ Một Tác Nhân

# Code quality and review
"Use code-reviewer to analyze this component for best practices"
"Have code-reviewer scrutinize these configuration changes"
"Have security-auditor check for OWASP compliance issues"

Development tasks

"Get backend-architect to design a user authentication API" "Use frontend-developer to create a responsive dashboard layout"

Infrastructure and operations

"Have devops-troubleshooter analyze these production logs" "Use cloud-architect to design a scalable AWS architecture" "Get network-engineer to debug SSL certificate issues" "Use database-admin to set up backup and replication"

Data and AI

"Get data-scientist to analyze this customer behavior dataset" "Use ai-engineer to build a RAG system for document search" "Have mlops-engineer set up MLflow experiment tracking"

Business and marketing

"Have business-analyst create investor deck with growth metrics" "Use content-marketer to write SEO-optimized blog post" "Get sales-automator to create cold email sequence" "Have customer-support draft FAQ documentation"

Quy trình làm việc đa tác nhân

Các tác nhân phụ này phối hợp với nhau một cách liền mạch, và đối với các điều phối phức tạp hơn, bạn có thể sử dụng bộ sưu tập Claude Code Commands gồm 52 lệnh gạch chéo dựng sẵn, tận dụng các tác nhân phụ này trong các quy trình làm việc tinh vi.

# Feature development workflow
"Implement user authentication feature"

Automatically uses: backend-architect → frontend-developer → test-automator → security-auditor

Performance optimization workflow

"Optimize the checkout process performance"

Automatically uses: performance-engineer → database-optimizer → frontend-developer

Production incident workflow

"Debug high memory usage in production"

Automatically uses: incident-responder → devops-troubleshooter → error-detective → performance-engineer

Network connectivity workflow

"Fix intermittent API timeouts"

Automatically uses: network-engineer → devops-troubleshooter → performance-engineer

Database maintenance workflow

"Set up disaster recovery for production database"

Automatically uses: database-admin → database-optimizer → incident-responder

ML pipeline workflow

"Build end-to-end ML pipeline with monitoring"

Automatically uses: mlops-engineer → ml-engineer → data-engineer → performance-engineer

Product launch workflow

"Launch new feature with marketing campaign"

Automatically uses: business-analyst → content-marketer → sales-automator → customer-support

Quy trình nâng cao với Slash Commands

Để phối hợp nhiều subagent phức tạp hơn, hãy sử dụng kho Commands repository đi kèm:

# Complex feature development (8+ subagents)
/full-stack-feature Build user dashboard with real-time analytics

Production incident response (5+ subagents)

/incident-response Database connection pool exhausted

ML infrastructure setup (6+ subagents)

/ml-pipeline Create recommendation engine with A/B testing

Security-focused implementation (7+ subagents)

/security-hardening Implement OAuth2 with zero-trust architecture

Định Dạng Đại Lý Phụ

Mỗi đại lý phụ tuân theo cấu trúc sau:

---
name: subagent-name
description: When this subagent should be invoked
model: haiku  # Optional - specify which model to use (haiku/sonnet/opus)
tools: tool1, tool2  # Optional - defaults to all tools

System prompt defining the subagent's role and capabilities

Cấu Hình Mô Hình

Từ phiên bản Claude Code v1.0.64, các subagent có thể chỉ định mô hình Claude mà chúng sẽ sử dụng. Điều này cho phép phân bổ nhiệm vụ hiệu quả về chi phí dựa trên độ phức tạp:

Các mô hình có sẵn (dùng tên gọi đơn giản theo Claude Code v1.0.64): Nếu không chỉ định mô hình, subagent sẽ sử dụng mô hình mặc định của hệ thống.

Mẫu Điều Phối Agent

Claude Code tự động phối hợp các agent bằng các mẫu phổ biến sau:

Quy trình công việc tuần tự

User Request → Agent A → Agent B → Agent C → Result

Example: "Build a new API feature" backend-architect → frontend-developer → test-automator → security-auditor

Parallel Execution

User Request → Agent A + Agent B (simultaneously) → Merge Results

Example: "Optimize application performance" performance-engineer + database-optimizer → Combined recommendations

Rẽ Nhánh Có Điều Kiện

User Request → Analysis → Route to appropriate specialist

Example: "Fix this bug" debugger (analyzes) → Routes to: backend-architect OR frontend-developer OR devops-troubleshooter

Xem xét & Xác thực

Primary Agent → Review Agent → Final Result

Example: "Implement payment processing" payment-integration → security-auditor → Validated implementation

Khi Nào Sử Dụng Agent Nào

🏗️ Lập Kế Hoạch & Kiến Trúc

🔧 Triển Khai & Phát Triển

🛠️ Vận Hành & Bảo Trì

📊 Phân Tích & Tối Ưu

🧪 Đảm Bảo Chất Lượng

📚 Tài Liệu

💼 Kinh Doanh & Chiến Lược

Thực Tiễn Tốt Nhất

🎯 Phân Công Nhiệm Vụ

🔄 Quy Trình Đa Tác Nhân

🎛️ Kiểm Soát Rõ Ràng

📈 Tối ưu hóa

Đóng góp

Để thêm một subagent mới:

Xử lý sự cố

Các vấn đề thường gặp

Agent không tự động được kích hoạt:

Agent được chọn không như mong đợi: Nhiều agent đưa ra lời khuyên xung đột: Agent dường như thiếu ngữ cảnh:

Nhận hỗ trợ

Nếu các agent không hoạt động như mong đợi:

Giấy phép

Dự án này được cấp phép theo Giấy phép MIT - xem tệp LICENSE để biết chi tiết.

Tìm hiểu thêm

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