AgentSkillsCN

setup-agents

在新项目中设置代理集合。复制相关代理与技能,剔除不必要的代理,并生成CLAUDE.md代理部分。当用户提出“设置代理”、“将代理添加到这个项目”、“初始化代理”或“开始一个新项目”时,可使用此功能。

SKILL.md
--- frontmatter
name: setup-agents
description: "Set up the Agent Collection in a new project. Copies relevant agents and skills, prunes unnecessary ones, and generates the CLAUDE.md agent section. Use when the user says setup agents, add agents to this project, initialize agents, or is starting a new project."

Your Task

Set up the Agent Collection for this project. The user wants to configure agents and skills from their collection.

Project type hint: $ARGUMENTS

Step 1: Analyze the Project

Understand the current project:

  • What's the tech stack? (languages, frameworks, databases)
  • What kind of project is it? (web app, API, mobile, monorepo)
  • What already exists in .claude/?
  • Is there an existing CLAUDE.md?

Step 2: Recommend Agents

Based on the project type, recommend which agents to include. Use these guidelines:

Project TypeRecommended Agents
.NET + Angular Full-StackFeature Planner, Backend Architect, Frontend Developer, Clean Code Architect, DevOps Automator, Security Scanner
Backend APIFeature Planner, Backend Architect, Clean Code Architect, Security Scanner, DevOps Automator
Frontend SPAFeature Planner, Frontend Developer, UI Designer, Clean Code Architect
Mobile AppFeature Planner, Mobile App Builder, UI Designer, Backend Architect
Startup/MVPFeature Planner, Rapid Prototyper, Backend Architect, UI Designer
EnterpriseFeature Planner, DeepDive, DeepCode, Backend Architect, Security Scanner, DevOps Automator
AI/ML ProjectFeature Planner, AI Engineer, Backend Architect, Clean Code Architect

Always include: Feature Planner, DeepDive + DeepCode (for bug investigation)

Present the recommendation and ask the user to confirm or adjust before copying.

Step 3: Copy Files

After confirmation:

  1. Create .claude/agents/ directory structure
  2. Copy selected agent files from the Agent Collection
  3. Copy relevant skills to .claude/skills/
  4. Always copy: plan-feature, investigate, review, security-scan, explore

Step 4: Generate CLAUDE.md Section

Add or update the CLAUDE.md file with:

  • Active Agents list (with correct relative paths)
  • Agent Collaboration Patterns table (only patterns relevant to included agents)
  • Recommended Feature Workflow section
  • Available Skills section

Step 5: Project-Specific Customization

Ask the user if they want to customize any agents for the project:

  • Adjust tech stack references (e.g., Clean Code Architect's .NET section)
  • Add project-specific patterns or conventions
  • Modify agent relationships

Output

Tell the user:

  1. What was copied and where
  2. How to use the key workflows (/plan-feature, /investigate, /review)
  3. Any agents they might want to customize further