创建新的subagent,如果需要会自动初始化插件结构
Creates new subagent files with automatic plugin initialization if needed. Triggers when you request to create a new agent, prompting for name, description, model, and required tools.
/plugin marketplace add blueif16/amazing-claude-code-plugins/plugin install skillforge@plugin-market-marketplaceThis skill is limited to using the following tools:
创建新的subagent文件,如果插件结构不存在则自动初始化。
检查当前目录是否存在 .claude/ 目录
├─ 找到 → 继续到步骤3
└─ 未找到 → 进入步骤2(同create-skill的自动初始化)
与create-skill相同的初始化流程。
询问用户:
.claude/agents/{agent-name}.md^[a-z0-9-]+$✅ Agent已创建: {agent-name}
📁 位置: ./.claude/agents/{agent-name}.md
🚀 该agent立即可在/agents菜单中使用
用户: "创建一个git-helper agent"
执行流程:
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.