plugins/ai-tools-manager/skills/create-subagent/SKILL.md
Scaffolds a new subagent in a local marketplace repository: creates the agent directory and AGENTS.md file directly inside the chosen plugin. Use when the user asks to add a subagent, create an agent, or scaffold a subagent in the marketplace.
npx skillsauth add lichens-innovation/skills create-subagentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Scaffold a new subagent directly inside the chosen plugin of a local marketplace. The root agents/ folder is auto-generated by CI — do not create files there manually.
For Claude Code, subagents are distributed via plugins. The AGENTS.md format is also compatible with other coding tools (Cursor, Copilot, Codex, Gemini, VS Code, Zed).
$ARGUMENTS
Consult the relevant doc(s) before generating subagent content in auto mode or before making structural decisions in manual mode:
docs/subagents.md — subagent usage, AGENTS.md format, coordination tipsdocs/plugins.md — plugin structure, manifest, hooks and relative pathsdocs/hooks.md — hook lifecycle, PreToolUse / PostToolUse, hook scriptsdocs/skills.md — skill format, popular repositories, skills CLIdocs/marketplace.md — marketplace structure, registration, publishing, versioning, auto-updatesdocs/rules.md — rules format and scopedocs/mcp.md — MCP server configurationdocs/memory.md — memory system, persistent memory for subagentsdocs/skills-cli.md — skills CLI commandsdocs/claude-code.md — Claude Code settings, commands, IDE integrationsCreate agent file — the form data submitted by the user was injected into your context as additionalContext by the UserPromptExpansion hook. It is a JSON object with mode and target fields.
Target dispatch — the JSON includes a target field that determines where the subagent lives:
target: "marketplace" — the JSON has marketplacePath and plugin. Write to <marketplacePath>/plugins/<plugin>/agents/<name>/AGENTS.md.target: "project" — the JSON has projectPath (the user's cwd). Write to <projectPath>/.claude/agents/<name>.md as a single file (no enclosing directory). This is a project-local subagent, not registered in any marketplace.Behaviour also depends on mode:
Auto mode (mode: "auto") — the JSON contains { mode, target, name?, idea, triggers, tools, ...destination } where destination is either { marketplacePath, plugin } or { projectPath }, and triggers/tools are string arrays:
name if provided, otherwise derive a concise kebab-case name from the idea.description frontmatter value:
idea as the "what" clause.triggers is non-empty, append Use when + the chips joined naturally (Oxford-style with "or" before the last item). If empty, append Use when <trigger condition>. as a placeholder.tools frontmatter to the comma-joined tools array (or omit the line if empty).Manual mode (mode: "manual") — the JSON contains { mode, target, name, description, triggers, tools, ...destination } where triggers and tools are string arrays:
description frontmatter: "<description>. Use when <triggers joined with ', ' and 'or' before the last>." If triggers is empty, use the raw description only.tools frontmatter to the comma-joined tools array (or omit if empty).---
name: <name>
description: "<built description>"
tools: <comma-joined tools>
---
# <Title Case of name>
Instructions for AI coding agents acting as <name>. See [agents.md](https://agents.md/) for the format.
## Role — workflow
### When to apply
<triggers joined as a sentence, or a placeholder if empty>
### Workflow
1. Step one
2. Step two
### Output
Describe the expected output format here.
Hooks If the subagent needs event hooks, add them to the plugin rather than user settings so they're distributed automatically. See Hooks and Relative Paths.
Report to user
<marketplacePath>/plugins/<plugin>/agents/<name>/AGENTS.md<projectPath>/.claude/agents/<name>.mdclaude plugin marketplace updatetools
Reference for managing Claude Code plugins and marketplaces: install, update, remove plugins; add, update, remove marketplaces. Use when the user asks how to install a plugin, remove a marketplace, update plugins, or manage their Claude Code plugin setup.
tools
Scaffolds a new subagent in the ai-dev-tools marketplace repository: creates the agent directory, AGENTS.md file, and symlinks it into the chosen plugin. Use when the user asks to add a subagent, create an agent, or scaffold a subagent in the marketplace.
tools
Scaffolds a new skill in the ai-dev-tools marketplace repository: creates the skill directory and SKILL.md boilerplate directly inside the chosen plugin. Use when the user asks to add a new skill, create a skill, or scaffold a skill in the marketplace.
tools
Scaffolds a new plugin in the ai-dev-tools marketplace repository: creates the plugin directory, plugin.json manifest, skills/ folder, and registers it in marketplace.json. Use when the user asks to add a new plugin, create a plugin, or register a plugin in the marketplace.