Token导航 LogoToken导航

Agent Skill · 研究检索

subagent-development(子 Agent 开发)

subagent-development 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

subagent-development 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证为 MIT,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 61,288。

总安装 353周安装 15GitHub Stars 61下载 124核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:subagent-development(子 Agent 开发)
来源仓库:https://github.com/melodic-software/claude-code-plugins
仓库路径:skills/subagent-development
安装命令:
npx skills add https://github.com/melodic-software/claude-code-plugins --skill subagent-development
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/melodic-software/claude-code-plugins --skill subagent-development

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。适合根据关键词、任务场景快速定位候选结果。通过 npx skills add 命令从指定仓库安装使用。建议确认权限范围和维护状态,避免触发联网或文件读写操作。

subagent-development 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/subagent-development

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/melodic-software/claude-code-plugins --skill s…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

subagent-development 怎么安装?

在终端执行 npx skills add https://github.com/melodic-software/claude-code-plugins --skill subagent-de…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

subagent-development 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

subagent-development 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/melodic-software/claude-code-plugins --skill subagent-development;npx skills add melodic-software/claude-code-plugins --skill "subagent-development" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

subagent-development 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

subagent-development 用的人多吗?

公开数据是累计安装 353 次,近一周安装 15 次,下载 124 次,GitHub 61 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

subagent-development 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
subagent-development

子 Agent 开发 · 本页

35361执行命令MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Subagents Meta Skill

## 🚨 MANDATORY: Invoke docs-management First STOP - Before providing ANY response about subagents/agents: 1. INVOKE docs-management skill 2. QUERY for the user's specific topic 3. BASE all responses EXCLUSIVELY on official documentation loaded Skipping this step results in outdated or incorrect information. ### Verification Checkpoint Before responding, verify: - Did I invoke docs-management skill? - Did official documentation load? - Is my response based EXCLUSIVELY on official docs? If ANY checkbox is unchecked, STOP and invoke docs-management first.

Overview

Central authority for Claude Code subagents (also called sub-agents). This skill uses 100% delegation to docs-management - it contains NO duplicated official documentation.

Architecture: Pure delegation with keyword registry. All official documentation is accessed via docs-management skill queries.

When to Use This Skill

Keywords: subagents, sub-agents, agents, agent file, agent YAML, agent frontmatter, agent tools, agent model, automatic delegation, agent lifecycle, agent resumption, /agents command, programmatic agents, agent SDK, built-in agents, Plan subagent, agent configuration

Use this skill when:

  • Creating new agent definition files
  • Configuring agent tool access
  • Selecting agent models (inherit, sonnet, haiku, opus)
  • Understanding automatic vs explicit agent invocation
  • Working with agent resumption and lifecycle
  • Using the /agents CLI command
  • Integrating agents with Agent SDK
  • Understanding priority resolution (project > CLI > user)
  • Working with built-in agents (Plan subagent)
  • Troubleshooting agent behavior

Keyword Registry for docs-management Queries

Use these keywords when querying docs-management skill for official documentation:

Core Concepts

TopicKeywords
Overview"subagents", "sub-agents", "agent overview"
File Format"agent file format", "agent YAML frontmatter", "agent file structure"
File Locations"agent file locations", "agent directories", "where to put agents"

Configuration

TopicKeywords
YAML Frontmatter"agent YAML frontmatter", "agent configuration", "agent metadata"
Tool Access"agent tools", "agent tool access", "allowed-tools agents"
Model Selection"agent model selection", "inherit model", "sonnet haiku opus agents"
Permission Mode"permissionMode", "agent permission mode", "acceptEdits", "bypassPermissions"
Skills Field"agent skills field", "skills auto-load", "agent skills configuration"
Hooks (v2.1.x)"agent hooks", "hooks in agent", "agent PreToolUse", "agent PostToolUse"
Color (Undocumented)"agent color", "subagent color", "agent UI color"

Behavior

TopicKeywords
Automatic Delegation"automatic delegation", "agent automatic invocation"
Explicit Invocation"explicit agent invocation", "manual agent call"
Lifecycle"agent lifecycle", "agent execution", "agent completion"
Resumption"agent resumption", "resume agent", "continue agent", "agentId", "resumable agents"
Plugin Agents"plugin agents", "plugin-provided agents", "plugin subagents"
Chaining Agents"chaining subagents", "chain agents", "agent orchestration"
Performance"agent performance", "context efficiency", "agent latency", "parallel agents"

CLI and SDK

TopicKeywords
CLI Usage"/agents command", "agents CLI", "list agents"
Agent SDK"Agent SDK subagents", "programmatic agents", "SDK agent creation"
Priority Resolution"agent priority resolution", "project CLI user agents"

Built-in Agents

TopicKeywords
General-purpose"general-purpose subagent", "general purpose agent", "default subagent"
Plan Subagent"Plan subagent", "planning agent", "implementation planning"
Explore Subagent"Explore subagent", "explore agent", "codebase exploration", "read-only agent"
Thoroughness Levels"thoroughness levels", "quick medium thorough", "exploration depth"

Official YAML Frontmatter Reference

Source: Query docs-management for sub-agents.md configuration fields or agent YAML frontmatter

⚠️ STALENESS WARNING: Do NOT hardcode field names, valid values, or requirements here. ALWAYS query docs-management for the authoritative list of YAML frontmatter fields.

Query Pattern for Official Fields

docs-management: "sub-agents.md configuration fields"
docs-management: "agent YAML frontmatter required optional"

Expected Field Categories

CategoryQuery PatternWhat You'll Find
Required fields"agent required fields"Fields that must be present
Optional fields"agent optional fields"Fields with default behavior
Model selection"agent model selection"Valid model values
Permission modes"agent permissionMode values"Valid permission mode values
Skills auto-load"agent skills field"Skills configuration syntax

Important: The color property documented below is NOT in official Claude Code documentation.

Color Property (Undocumented)

The color property is an undocumented feature that sets the UI color for subagents. It is NOT in official Claude Code documentation and may change without notice.

Available Values: red, blue, green, yellow, purple, orange, pink, cyan

Placement: Typically placed after model or at the bottom of YAML frontmatter.

Example:

---
name: my-agent
description: Description of what this agent does
tools: Read, Grep, Glob
model: haiku
color: blue
---

Warning: As an undocumented feature, this property:

  • May not work in all Claude Code versions
  • May be removed or changed without notice
  • Should not be relied upon for critical functionality

Repository Color Standard

This repository uses a semantic color categorization for subagents to provide visual consistency:

Category Assignments

CategoryColorPurposeAgents
Documentation/MetapurpleDocumentation, auditing, meta-skillsdocs-researcher, docs-validator, skill-auditor
Code QualityblueCode analysis, review, debugging, testingcode-reviewer, codebase-analyst, debugger, test-generator
ResearchgreenResearch, information gathering, web contentmcp-research, platform-docs-researcher, web-research

Reserved Colors (Future Use)

ColorReserved For
orangeGeneration/Creation agents
redCritical/Error handling agents
yellowWarning/Attention agents
pinkUser-facing/Communication agents
cyanUtility agents

When to Assign Colors

When creating new agents for this repository:

  1. Identify the agent's primary purpose (documentation, code quality, research, etc.)
  2. Match to existing category if possible
  3. Use reserved colors only for new categories that match the reserved purpose
  4. Document new categories if creating a genuinely new type

Quick Decision Tree

What do you want to do?

  1. Create a new agent -> Query docs-management: "agent file format", "agent YAML frontmatter"
  2. Configure agent tools -> Query docs-management: "agent tools", "allowed-tools agents"
  3. Select agent model -> Query docs-management: "agent model selection", "inherit sonnet haiku opus"
  4. Configure permissionMode -> Query docs-management: "permissionMode", "agent permission mode"
  5. Auto-load skills in agent -> Query docs-management: "agent skills field", "skills auto-load"
  6. Understand automatic delegation -> Query docs-management: "automatic delegation agents"
  7. Resume an agent (agentId) -> Query docs-management: "agent resumption", "agentId", "resumable agents"
  8. Use /agents CLI -> Query docs-management: "/agents command", "agents CLI"
  9. Programmatic agents (SDK) -> Query docs-management: "Agent SDK subagents"
  10. Understand priority resolution -> Query docs-management: "agent priority resolution"
  11. Work with General-purpose agent -> Query docs-management: "general-purpose subagent"
  12. Work with Plan subagent -> Query docs-management: "Plan subagent", "planning agent"
  13. Work with Explore subagent -> Query docs-management: "Explore subagent", "thoroughness levels"
  14. Understand plugin agents -> Query docs-management: "plugin agents", "plugin-provided agents"
  15. Chain multiple agents -> Query docs-management: "chaining subagents", "agent orchestration"
  16. Optimize agent performance -> Query docs-management: "agent performance", "parallel agents"
  17. Troubleshoot agent issues -> Query docs-management: "agent troubleshooting" + specific issue keywords
  18. Add color to agent (undocumented) -> See "Color Property (Undocumented)" section above
  19. Choose color for new agent -> See "Repository Color Standard" section above
  20. Add lifecycle hooks to agent (v2.1.x) -> Query docs-management: "agent hooks", "hooks in agent frontmatter"

Topic Coverage

Agent Files

  • File format and structure
  • YAML frontmatter fields (name, description, tools, model)
  • File locations (project, CLI, user directories)
  • Naming conventions

Tool Configuration

  • Specifying allowed tools
  • Tool access inheritance
  • Restricting dangerous tools
  • MCP tools in agents

Model Selection

  • Model options: inherit, sonnet, haiku, opus
  • When to use each model
  • Cost and performance considerations
  • Inheritance from parent context

Invocation Patterns

  • Automatic delegation (description matching)
  • Explicit invocation via Task tool
  • Agent discovery and selection
  • Priority resolution order

Lifecycle Management

  • Agent execution flow
  • Context isolation
  • Result reporting
  • Error handling

Resumption

  • Resuming existing agents
  • Context preservation
  • When to resume vs create new
  • Resume parameter usage

CLI Integration

  • /agents command
  • Listing available agents
  • Agent status and management
  • CLI-defined agents

Agent SDK Integration

  • Programmatic agent creation
  • SDK patterns for subagents
  • Custom agent implementations
  • Advanced agent workflows

Default Agent Types

  • General-purpose subagent: Complex multi-step tasks, autonomous execution
  • Plan subagent: Implementation planning, architectural decisions
  • Explore subagent: Codebase exploration, read-only research
  • Thoroughness levels (quick, medium, very thorough) for Explore agent
  • Default agent behaviors and when to use each
  • Customizing built-in agent behavior

Plugin Agents

  • Plugin-provided agents
  • Plugin agent discovery and usage
  • Plugin agent configuration

Performance Considerations

  • Parallel agent execution
  • Context efficiency and token usage
  • Agent latency optimization
  • When to use subagents vs direct tools

Test Scenarios

These scenarios should activate this skill:

  1. Direct activation: "Use the subagent-development skill to help me create an agent"
  2. Configuration question: "How do I restrict tools for my subagent?"
  3. Built-in agent question: "What is the Explore subagent and how do I use it?"
  4. Troubleshooting: "My agent isn't being invoked automatically"
  5. SDK question: "How do I define agents programmatically in the Agent SDK?"

Related Skills

SkillRelationship
docs-managementPrimary delegation target (100%) - all official documentation
agent-sdk-developmentAgent SDK-specific guidance for programmatic agents
skill-developmentSkills can be auto-loaded by agents via skills field
current-dateFor audit timestamps and verification dates

Delegation Patterns

Standard Query Pattern

User asks: "How do I create an agent?"

1. Invoke docs-management skill
2. Use keywords: "agent file format", "agent YAML frontmatter"
3. Load official documentation
4. Provide guidance based EXCLUSIVELY on official docs

Multi-Topic Query Pattern

User asks: "I want to create an agent with restricted tools that uses Haiku"

1. Invoke docs-management skill with multiple queries:
   - "agent file format", "agent YAML frontmatter"
   - "agent tools", "allowed-tools agents"
   - "agent model selection", "haiku agents"
2. Synthesize guidance from official documentation

Troubleshooting Pattern

User reports: "My agent isn't being invoked automatically"

1. Invoke docs-management skill
2. Use keywords: "automatic delegation agents", "agent description"
3. Check official docs for automatic invocation requirements
4. Guide user based on official troubleshooting steps

Troubleshooting Quick Reference

IssueKeywords for docs-management
Agent not found"agent file locations", "agent directories"
Agent not auto-invoked"automatic delegation", "agent description matching"
Wrong model used"agent model selection", "inherit model"
Tools not available"agent tools", "allowed-tools agents"
Resumption not working"agent resumption", "resume agent"
Priority conflicts"agent priority resolution", "project CLI user"

Known Issues

CRLF Line Endings Cause Silent Loading Failures (v2.1.x)

GitHub Issues: #16916, #11205

Symptoms: Agent files exist but aren't available when spawning via Task tool. No error messages - agents silently fail to load.

Cause: Claude Code v2.1.x introduced stricter YAML parsing. Agent files with Windows-style CRLF line endings (\r\n) fail to parse correctly, causing the agent to be skipped during plugin loading.

Detection:

# Check if file has CRLF
file path/to/agent.md
# CRLF present: "ASCII text, with CRLF line terminators"
# LF only: "ASCII text" (no CRLF mention)

Fix:

# Convert CRLF to LF
sed -i 's/\r$//' path/to/agent.md

# Or using dos2unix
dos2unix path/to/agent.md

Prevention:

  • Configure Git to use LF for .md files: *.md text eol=lf in .gitattributes
  • Configure your editor to use LF for markdown files
  • Run file *.md to check for CRLF before committing new agents

After Fix: Restart Claude Code session to pick up the corrected agent files.

Plugin Agents Not Registered in plugin.json

Symptoms: Agent file exists in plugin's agents/ directory but isn't available when spawning via Task tool. No error messages.

Cause: The plugin's plugin.json uses an explicit agents array instead of directory auto-discovery. New agent files must be manually added to the array.

Detection:

# Check if plugin.json uses explicit array vs directory
grep -A 5 '"agents"' .claude-plugin/plugin.json
# Array: "agents": ["./agents/foo.md", ...]  <- Manual registration required
# Directory: "agents": "./agents"  <- Auto-discovery

Fix: Add the new agent file to the agents array in plugin.json.

Cross-reference: See plugin-development skill → "Component Registration in plugin.json" for detailed guidance on explicit vs auto-discovery modes.

Repository-Specific Notes

This repository uses subagents for:

  • Explore agents: Codebase exploration and research
  • Plan agents: Implementation planning
  • General-purpose agents: Complex multi-step tasks

When creating agents for this repository, follow patterns in .claude/settings.json and existing agent configurations.

Related Guidance

For comprehensive subagent usage guidance beyond configuration:

  • When to use subagents: See .claude/memory/operational-rules.md → "Agent Usage Principles"
  • Parallelization strategies: See .claude/memory/performance-quick-start.md → "Strategy 1: Parallelization"
  • Context preservation patterns: See .claude/memory/operational-rules.md → "Agent Communication Pattern"
  • Proactive delegation rule: See CLAUDE.md Quick Reference → "PROACTIVE DELEGATION"

Auditing Agents

This skill provides the validation criteria used by the agent-auditor agent for formal audits.

Audit Resources

ResourceLocationPurpose
Validation Checklistreferences/validation-checklist.mdPre-creation verification checklist
Scoring Rubricreferences/validation-checklist.md#audit-scoring-rubricFormal audit scoring criteria
Undocumented Featuresreferences/undocumented-features.mdColor, permissionMode, skills field details

Scoring Categories

CategoryPointsKey Criteria
Name Field20Lowercase, hyphens, max 64 chars, no reserved words
Description Field25Third person, delegation triggers, when-to-use guidance
Tools Configuration20Appropriate restrictions, not over/under restricted
Model Selection15Appropriate for task complexity
Additional Fields20Color, skills, permissionMode correctly configured

Thresholds: 85+ = PASS, 70-84 = PASS WITH WARNINGS, <70 = FAIL

Related Agent

The agent-auditor agent (Haiku model) performs formal audits using this skill:

  • Auto-loads this skill via skills: subagent-development
  • Uses validation checklist and scoring rubric
  • Checks both official and undocumented features
  • Generates structured audit reports
  • Invoked by /audit-agents command

External Technology Validation

When auditing agents that use external technologies (scripts, packages, runtimes), the auditor MUST validate claims using MCP servers before flagging findings.

Technologies Requiring MCP Validation:

  • .NET/C# scripts: Validate with microsoft-learn + perplexity
  • Node.js/npm packages: Validate with context7 + perplexity
  • Python scripts/packages: Validate with context7 + perplexity
  • Shell scripts: Validate with perplexity
  • Any version-specific claims: ALWAYS validate with perplexity

Validation Rule:

Never flag a technology usage as incorrect without first:

  1. Querying appropriate MCP server(s) for current documentation
  2. Verifying with perplexity for recent changes (especially.NET 10+)
  3. Documenting MCP sources in the finding

Stale Data Warning:

  • microsoft-learn can return cached/outdated documentation
  • ALWAYS pair microsoft-learn with perplexity for version verification
  • Trust perplexity for version numbers and recently-released features

References

Official Documentation (via docs-management skill):

  • Primary: "sub-agents" documentation
  • Related: "Agent SDK", "Task tool", "model selection"

Repository-Specific:

  • Agent configurations: .claude/settings.json
  • Performance guidance: .claude/memory/performance-quick-start.md
  • Operational rules: .claude/memory/operational-rules.md (Agent Usage Principles section)

Version History

  • v1.4.0 (2026-01-10): Added Known Issues section

- Documented CRLF line ending issue causing silent agent loading failures in v2.1.x - Documented plugin.json explicit array registration issue - Added detection, fix, and prevention guidance for both issues - Added cross-reference to plugin-development skill - Referenced GitHub issues #16916 and #11205

  • v1.3.0 (2026-01-09): Added v2.1.x agent hooks keyword registry entry

- Added "Hooks (v2.1.x)" to Configuration keywords table - Added Quick Decision Tree entry #20 for agent lifecycle hooks

  • v1.2.0 (2025-11-27): Color property documentation

- Added "Official YAML Frontmatter Reference" section with source reference to docs-management - Added "Color Property (Undocumented)" section documenting available colors - Added "Repository Color Standard" section with semantic color categories - Added color keyword to Configuration registry - Expanded Quick Decision Tree (19 entries, up from 17) with color entries

  • v1.1.0 (2025-11-27): Audit and enhancement

- Added missing keyword registry entries (permissionMode, skills field, plugin agents, chaining, performance) - Expanded Built-in Agents section (General-purpose, Plan, Explore, thoroughness levels) - Added Test Scenarios section (5 scenarios) - Added Related Skills section - Expanded Quick Decision Tree (17 entries, up from 10) - Added Plugin Agents and Performance Considerations to Topic Coverage - Added Token Budget statement

  • v1.0.0 (2025-11-26): Initial release

- Pure delegation architecture - Comprehensive keyword registry - Quick decision tree - Topic coverage for all subagent features - Troubleshooting quick reference


Last Updated

Date: 2026-01-10 Model: claude-opus-4-5-20251101

平台分布

Antigravity

28.83%
按下载量换算36

trae

25.4%
按下载量换算31

windsurf

16.89%
按下载量换算21

Claude Code

13.07%
按下载量换算16

Codex

7.24%
按下载量换算9

Gemini CLI

3.88%
按下载量换算5

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/melodic-software/claude-code-plugins --skill subagent-development;npx skills add melodic-software/claude-code-plugins --skill "subagent-development" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills