AgentSkillsCN

before-spawning-task

在使用Task工具之前使用。确保您选择正确的专业子代理类型,而非通用型智能体。

SKILL.md
--- frontmatter
name: before-spawning-task
description: Use BEFORE using the Task tool. Ensures you select the correct specialized subagent_type instead of generic agents.

Before Spawning Task

STOP: You're about to use the Task tool.

Check for Specialized Agents First

Don't use generic subagent_type values. We have specialized agents:

Task TypeUse This subagent_type
Finding files/componentscodebase-locator
Understanding codecodebase-analyzer
Finding similar patternscodebase-pattern-finder
Finding documentationthoughts-locator
Analyzing documentsthoughts-analyzer
Web researchweb-search-researcher

Examples

❌ Wrong:

code
Task(subagent_type="general-purpose", prompt="Find auth files")
Task(subagent_type="Explore", prompt="How does login work?")

✅ Correct:

code
Task(subagent_type="codebase-locator", prompt="Find all authentication-related files")
Task(subagent_type="codebase-analyzer", prompt="Analyze how the login flow works")

When Generic Agents Are OK

Only use generic agents (general-purpose, Explore) when:

  • No specialized agent matches the task
  • Task requires mixed capabilities (search + analysis + web)
  • User explicitly requests a specific agent type

Always prefer specialized agents when available.