Skip to content

Fantasyawsd/agents

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claude Code 智能体集合

Claude Code 打造的全面专业智能体集合,通过领域专业知识增强开发工作流程。

概述

本仓库包含76个专业智能体,扩展了Claude Code的功能。每个智能体都是特定领域的专家,根据上下文自动调用或在需要时显式调用。所有智能体根据任务复杂度配置特定的Claude模型,以实现最佳性能和成本效益。

可用智能体

开发与架构

语言专家

  • python-pro - 编写具有高级特性和优化的地道Python代码
  • ruby-pro - 编写地道的Ruby代码,包含元编程、Rails模式、gem开发和测试框架
  • golang-pro - 编写具有goroutines、通道和接口的地道Go代码
  • rust-pro - 编写具有所有权模式、生命周期和trait实现的地道Rust代码
  • c-pro - 编写高效的C代码,具备适当的内存管理和系统调用
  • cpp-pro - 编写具有现代特性、RAII、智能指针和STL算法的地道C++代码
  • javascript-pro - 掌握现代JavaScript的ES6+、异步模式和Node.js API
  • typescript-pro - 掌握具有高级类型、泛型和严格类型安全的TypeScript
  • php-pro - 编写具有现代特性和性能优化的地道PHP代码
  • java-pro - 掌握具有流处理、并发和JVM优化的现代Java
  • elixir-pro - 编写具有OTP模式、函数式编程和Phoenix框架的地道Elixir代码
  • csharp-pro - 编写具有高级特性和.NET优化的现代C#代码
  • scala-pro - 掌握企业级Scala开发,包含函数式编程、分布式系统和大数据处理
  • flutter-expert - 掌握Flutter开发,包含Dart、组件和平台集成
  • unity-developer - 构建具有优化脚本和性能调优的Unity游戏
  • minecraft-bukkit-pro - 掌握使用Bukkit、Spigot和Paper API的Minecraft服务器插件开发
  • ios-developer - 使用Swift/SwiftUI开发原生iOS应用
  • sql-pro - 编写复杂SQL查询、优化执行计划和设计规范化架构

基础设施与运维

质量与安全

  • code-reviewer - 专家代码审查,深度关注配置安全和生产可靠性
  • security-auditor - 审查代码漏洞并确保OWASP合规性
  • test-automator - 创建包含单元、集成和端到端测试的综合测试套件
  • performance-engineer - 分析应用程序,优化瓶颈,实施缓存策略
  • debugger - 专门处理错误、测试失败和意外行为的调试专家
  • error-detective - 搜索日志和代码库中的错误模式、堆栈跟踪和异常
  • search-specialist - 使用高级搜索技术和综合分析的专业网络研究员

数据与人工智能

专门领域

文档

业务与营销

  • business-analyst - 分析指标,创建报告,跟踪KPI
  • content-marketer - 编写博客文章、社交媒体内容和邮件通讯
  • hp-pro - 招聘、入职/离职、PTO和请假、绩效、合规政策和员工关系的合作伙伴
  • sales-automator - 起草冷邮件、跟进和提案模板
  • customer-support - 处理支持工单、FAQ回复和客户邮件
  • legal-advisor - 起草隐私政策、服务条款、免责声明和法律通知

SEO与内容优化

模型分配

所有76个智能体根据任务复杂度配置特定的Claude模型:

🚀 Haiku(快速且具成本效益) - 15个智能体

模型: haiku

  • data-scientist - SQL queries and data analysis
  • api-documenter - OpenAPI/Swagger documentation
  • reference-builder - Exhaustive technical references and API documentation
  • business-analyst - Metrics and KPI tracking
  • content-marketer - Blog posts and social media
  • customer-support - Support tickets and FAQs
  • sales-automator - Cold emails and proposals
  • search-specialist - Web research and information gathering
  • legal-advisor - Privacy policies and compliance documents
  • seo-meta-optimizer - Meta title and description optimization
  • seo-keyword-strategist - Keyword density and semantic analysis
  • seo-structure-architect - Content structure and schema markup
  • seo-snippet-hunter - Featured snippet formatting
  • seo-content-refresher - Content freshness updates
  • seo-cannibalization-detector - Keyword overlap detection
  • seo-content-planner - Content calendars and outlines

⚡ Sonnet(平衡性能) - 45个智能体

模型: sonnet

开发与语言:

  • python-pro - 具有高级特性的Python开发
  • ruby-pro - Ruby开发,包含元编程、Rails模式和gem开发
  • javascript-pro - 现代JavaScript和Node.js
  • typescript-pro - 具有类型系统的高级TypeScript
  • golang-pro - Go并发和惯用模式
  • rust-pro - Rust内存安全和系统编程
  • c-pro - C编程和嵌入式系统
  • cpp-pro - 具有STL和模板的现代C++
  • php-pro - 具有高级特性的现代PHP
  • java-pro - 具有流和并发的现代Java
  • elixir-pro - 具有OTP模式和Phoenix的Elixir
  • csharp-pro - 具有.NET框架和模式的现代C#
  • scala-pro - 企业级Scala,包含Apache Pekko、Akka、Spark和ZIO/Cats Effect
  • flutter-expert - 具有状态管理和动画的Flutter开发
  • unity-developer - Unity游戏开发和优化
  • minecraft-bukkit-pro - 使用Bukkit/Spigot/Paper的Minecraft插件开发
  • ios-developer - 使用Swift/SwiftUI的原生iOS开发
  • frontend-developer - React组件和UI
  • ui-ux-designer - 界面设计和线框图
  • ui-visual-validator - 通过截图分析进行严格的UI验证
  • backend-architect - API设计和微服务
  • mobile-developer - React Native/Flutter应用
  • sql-pro - 复杂SQL优化
  • graphql-architect - GraphQL架构和解析器

基础设施和运维:

  • devops-troubleshooter - 生产环境调试
  • deployment-engineer - CI/CD管道
  • database-optimizer - 查询优化
  • database-admin - 数据库操作
  • terraform-specialist - 基础设施即代码
  • network-engineer - 网络配置
  • dx-optimizer - 开发体验
  • data-engineer - ETL管道

质量和支持:

  • test-automator - 测试套件创建
  • code-reviewer - 代码质量分析
  • debugger - 错误调查
  • error-detective - 日志分析
  • ml-engineer - ML模型部署
  • legacy-modernizer - 框架迁移
  • payment-integration - 支付处理
  • mermaid-expert - Mermaid图表和可视化文档
  • flutter-expert - Flutter开发
  • seo-content-auditor - 内容质量和E-E-A-T分析
  • seo-authority-builder - 权威信号优化
  • seo-content-writer - SEO优化内容创建

🧠 Opus(最强能力) - 15个智能体

模型: opus

  • ai-engineer - LLM应用和RAG系统
  • security-auditor - 漏洞分析
  • performance-engineer - 应用程序优化
  • incident-responder - 生产事件处理
  • mlops-engineer - ML基础设施
  • architect-reviewer - 架构一致性
  • cloud-architect - 云基础设施设计
  • prompt-engineer - LLM提示词优化
  • context-manager - 多智能体协调
  • quant-analyst - 金融建模
  • risk-manager - 投资组合风险管理
  • docs-architect - 从代码库生成综合技术文档
  • tutorial-engineer - 分步教程和教育内容

安装

将这些智能体放置在 ~/.claude/agents/ 目录中后,它们会自动可用。

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

用法

自动调用

Claude Code将根据任务上下文和智能体的描述自动委派给适当的智能体。

显式调用

在请求中按名称提及智能体:

"使用code-reviewer检查我最近的更改"
"让security-auditor扫描漏洞"
"让performance-engineer优化这个瓶颈"

使用示例

单智能体任务

# 代码质量和审查
"使用code-reviewer分析此组件的最佳实践"
"让code-reviewer仔细审查这些配置更改"
"让security-auditor检查OWASP合规问题"

# 开发任务  
"让backend-architect设计用户身份验证API"
"使用frontend-developer创建响应式仪表板布局"

# 基础设施和运维
"让devops-troubleshooter分析这些生产日志"
"使用cloud-architect设计可扩展的AWS架构"
"让network-engineer调试SSL证书问题"
"使用database-admin设置备份和复制"

# 数据和AI
"让data-scientist分析这个客户行为数据集"
"使用ai-engineer构建用于文档搜索的RAG系统"
"让mlops-engineer设置MLflow实验跟踪"

# 业务和营销
"让business-analyst创建包含增长指标的投资者演示文稿"
"使用content-marketer编写SEO优化的博客文章"
"让sales-automator创建冷邮件序列"
"让customer-support起草FAQ文档"

多智能体工作流

这些子智能体可以无缝协作,对于更复杂的编排,您可以使用 Claude Code Commands 集合,它提供52个预构建的斜杠命令,以复杂的工作流方式利用这些子智能体。

# 功能开发工作流
"实现用户身份验证功能"
# 自动使用:backend-architect → frontend-developer → test-automator → security-auditor

# 性能优化工作流  
"优化结账流程性能"
# 自动使用:performance-engineer → database-optimizer → frontend-developer

# 生产事件工作流
"调试生产环境高内存使用"
# 自动使用:incident-responder → devops-troubleshooter → error-detective → performance-engineer

# 网络连接工作流
"修复间歇性API超时"
# 自动使用:network-engineer → devops-troubleshooter → performance-engineer

# 数据库维护工作流
"为生产数据库设置灾难恢复"
# 自动使用:database-admin → database-optimizer → incident-responder

# ML管道工作流
"构建端到端ML管道并监控"
# 自动使用:mlops-engineer → ml-engineer → data-engineer → performance-engineer

# 产品发布工作流
"通过营销活动发布新功能"
# 自动使用:business-analyst → content-marketer → sales-automator → customer-support

与斜杠命令的高级工作流

对于更复杂的多子智能体编排,请使用配套的Commands仓库

# 复杂功能开发(8+个子智能体)
./full-stack-feature 构建具有实时分析的用户仪表板

# 生产事件响应(5+个子智能体) 
./incident-response 数据库连接池耗尽

# ML基础设施设置(6+个子智能体)
./ml-pipeline 创建具有A/B测试的推荐引擎

# 安全重点实现(7+个子智能体)
./security-hardening 实现具有零信任架构的OAuth2
# 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

Advanced Workflows with Slash Commands

For more sophisticated multi-subagent orchestration, use the companion Commands repository:

# 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

智能体格式

每个智能体遵循以下结构:

---
name: 智能体名称
description: 何时应调用此智能体的描述
model: inherit  # 可选 - 指定使用哪个模型
tools: 工具1, 工具2  # 可选 - 默认为所有工具
---

定义智能体角色和能力的系统提示词

模型配置

从Claude Code v1.0.64开始,智能体可以指定它们应该使用哪个Claude模型。这允许根据复杂性进行具成本效益的任务委派:

  • 低复杂度(Haiku):简单任务,如基础数据分析、文档生成和标准响应
  • 中等复杂度(Sonnet):开发任务、代码审查、测试和标准工程工作
  • 高复杂度(Opus):关键任务,如安全审计、架构审查、事件响应和AI/ML工程

可用模型(使用Claude Code v1.0.64的简化命名):

  • inherit - 继承系统默认模型设置
  • haiku - 快速且具成本效益的简单任务
  • sonnet - 大多数开发工作的平衡性能
  • opus - 复杂分析和关键任务的最强能力

如果没有指定模型,智能体将使用系统的默认模型。

智能体编排模式

Claude Code使用以下常见模式自动协调智能体:

顺序工作流

用户请求 → 智能体A → 智能体B → 智能体C → 结果

示例:"构建新的API功能"
backend-architect → frontend-developer → test-automator → security-auditor

并行执行

用户请求 → 智能体A + 智能体B(同时执行) → 合并结果

示例:"优化应用程序性能" 
performance-engineer + database-optimizer → 组合建议

条件分支

用户请求 → 分析 → 路由到合适的专家

示例:"修复这个bug"
debugger(分析) → 路由到:backend-architect 或 frontend-developer 或 devops-troubleshooter

审查和验证

主要智能体 → 审查智能体 → 最终结果

示例:"实现支付处理"
payment-integration → security-auditor → 已验证的实现

何时使用哪个智能体

🏗️ 规划与架构

  • backend-architect:API设计、数据库架构、系统架构
  • frontend-developer:UI/UX规划、组件架构
  • ui-ux-designer:界面设计、线框图、设计系统、用户研究
  • cloud-architect:基础设施设计、可扩展性规划

🔧 实现与开发

  • python-pro:Python特定开发任务
  • ruby-pro:Ruby元编程、Rails应用、gem开发、RSpec/Minitest测试
  • golang-pro:Go特定开发任务
  • rust-pro:Rust特定开发、内存安全、系统编程
  • c-pro:C编程、嵌入式系统、性能关键代码
  • javascript-pro:现代JavaScript、异步模式、Node.js/浏览器代码
  • typescript-pro:高级TypeScript、泛型、类型推断、企业模式
  • java-pro:现代Java开发、流、并发、Spring Boot
  • elixir-pro:Elixir开发、OTP模式、Phoenix框架、函数式编程
  • csharp-pro:现代C#开发、.NET框架、企业模式
  • scala-pro:企业级Scala,包含函数式编程、Apache Pekko/Akka actors、Apache Spark、ZIO/Cats Effect、响应式架构
  • flutter-expert:Flutter开发、Dart、状态管理、动画、跨平台部署
  • unity-developer:Unity游戏开发、C#脚本、性能优化
  • minecraft-bukkit-pro:Minecraft插件开发、事件系统、服务器端功能
  • ios-developer:使用Swift/SwiftUI的原生iOS开发
  • sql-pro:数据库查询、架构设计、查询优化
  • mobile-developer:React Native/Flutter开发

🛠️ 运维与维护

  • devops-troubleshooter:生产问题、部署问题
  • incident-responder:需要立即响应的关键故障
  • database-optimizer:查询性能、索引策略
  • database-admin:备份策略、复制、用户管理、灾难恢复
  • terraform-specialist:基础设施即代码、Terraform模块、状态管理
  • network-engineer:网络连接、负载均衡器、SSL/TLS、DNS调试

📊 分析与优化

  • performance-engineer:应用程序瓶颈、优化
  • security-auditor:漏洞扫描、合规检查
  • data-scientist:数据分析、洞察、报告
  • mlops-engineer:ML基础设施、实验跟踪、模型注册、管道自动化

🧪 质量保证

  • code-reviewer:代码质量、配置安全、生产可靠性
  • test-automator:测试策略、测试套件创建
  • debugger:错误调查、错误解决
  • error-detective:日志分析、错误模式识别、根本原因分析
  • search-specialist:深度网络研究、竞争分析、事实核查

📚 文档

  • api-documenter:OpenAPI/Swagger规范、API文档
  • docs-architect:综合技术文档、架构指南、系统手册
  • reference-builder:详尽的API参考、配置指南、参数文档
  • tutorial-engineer:分步教程、学习路径、教育内容

💼 业务与策略

  • business-analyst:KPI、收入模型、增长预测、投资者指标
  • risk-manager:投资组合风险、对冲策略、R倍数、仓位规模
  • content-marketer:SEO内容、博客文章、社交媒体、邮件营销
  • sales-automator:冷邮件、跟进、提案、潜在客户培育
  • customer-support:支持工单、FAQ、帮助文档、故障排除
  • legal-advisor:起草隐私政策、服务条款、免责声明和法律通知

最佳实践

🎯 任务委派

  1. 让Claude Code自动委派 - 主智能体分析上下文并选择最优智能体
  2. 明确说明需求 - 包括约束条件、技术栈和质量要求
  3. 信任智能体专业知识 - 每个智能体都为其领域进行了优化

🔄 多智能体工作流

  1. 从高级请求开始 - 让智能体协调复杂的多步骤任务
  2. 在智能体之间提供上下文 - 确保智能体有必要的背景信息
  3. 审查集成点 - 检查不同智能体的输出如何协同工作

🎛️ 显式控制

  1. 针对特定需求使用显式调用 - 当您需要特定专家的观点时
  2. 策略性地组合多个智能体 - 不同专家可以验证彼此的工作
  3. 请求特定审查模式 - "让security-auditor审查backend-architect的API设计"

📈 优化

  1. 监控智能体效果 - 了解哪些智能体最适合您的用例
  2. 在复杂任务上迭代 - 使用智能体反馈来完善需求
  3. 利用智能体优势 - 将任务复杂度与智能体能力相匹配

贡献

要添加新的子智能体:

  1. 按照上述格式创建新的.md文件
  2. 使用小写、连字符分隔的名称
  3. 写清楚何时应该使用子智能体的描述
  4. 在系统提示中包含具体指令

故障排除

常见问题

智能体未自动调用:

  • 确保您的请求清楚地表明了领域(例如,"性能问题" → performance-engineer)
  • 明确任务类型(例如,"审查代码" → code-reviewer)

意外的智能体选择:

  • 提供更多关于您的技术栈和需求的上下文
  • 如果需要特定智能体,使用显式调用

多个智能体产生冲突建议:

  • 这是正常的 - 不同专家可能有不同的优先级
  • 要求澄清:"协调security-auditor和performance-engineer的建议"

智能体似乎缺乏上下文:

  • 在您的请求中提供背景信息
  • 参考以前的对话或已建立的模式

获取帮助

如果智能体没有按预期工作:

  1. 检查各个文件中智能体的描述
  2. 在您的请求中尝试更具体的语言
  3. 使用显式调用来测试特定智能体
  4. 提供更多关于您的项目和目标的上下文

许可证

本项目根据MIT许可证进行许可 - 详情请参见 LICENSE 文件。

了解更多

About

A collection of production-ready subagents for Claude Code

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published