subagent-factory
БесплатноБез исполняемых скриптовНе проверенCreate specialized Claude Code agents on-the-fly. Guides through agent definition file creation with proper frontmatter, effective prompts, and tool scoping…
от aiskillstore★ 509 звёзд на GitHubОб этом скилле
Subagent Factory
Factory for creating specialized Claude Code agents. Generates agent definition files with proper configuration, effective system prompts, and appropriate tool access.
When to Activate This Skill
- User says: "create agent", "new subagent", "build agent"
- User wants: Custom agents for specific tasks
- User needs: Agent definition files, system prompts, tool configuration
- User asks: How to make specialized agents, how to delegate work
Two Creation Modes
Quick Mode (Direct Creation)
Fast path for experienced users. Minimal questions, direct file generation.
Use when: You know exactly what agent you need.
See: workflows/quick-create.md
Interview Mode (Guided Creation)
Interactive workflow with questions and customization at each step.
Use when: Exploring agent design, learning the process, or creating complex agents.
See: workflows/interview-create.md
Quick Reference: Agent Schema
Required Frontmatter Fields
---
name: agent-name # REQUIRED: kebab-case identifier
description: When to use this agent # REQUIRED: natural language triggers
---
Optional Frontmatter Fields
tools: Read, Write, Bash # Comma-separated, omit to inherit all
model: sonnet # sonnet|opus|haiku|inherit
permissionMode: default # Permission handling mode
skills: skill-name # Auto-load skills
System Prompt (Markdown Body)
The Markdown content after frontmatter is the agent's system prompt.
Key elements:
- Identity/role definition
- Clear responsibilities
- Step-by-step workflow
- Concrete checklists
- Output format specification
- Boundaries (DO/DO NOT)
Core Principles
1. Single Responsibility
Each agent should have ONE clear purpose, not multiple loosely-related tasks.
2. Right Altitude
Not too prescriptive (brittle if-else logic), not too vague (unhelpful platitudes). Give clear guidance that lets the agent think.
3. Explicit Tool Scoping
Grant minimum necessary tools. Read-only agents don't need Write. Reviewers don't need Bash.
4. Progressive Examples
Include 3-5 concrete examples showing desired behavior patterns.
5. Actionable Instructions
Use imperative form: "Run tests", "Analyze code", "Generate report" (not "The tests are run").
Navigation
Deep Documentation
references/agent-schema.md- Complete frontmatter referencereferences/task-tool-reference.md- Task tool parameters and usagereferences/prompt-patterns.md- Effective prompt engineering patternsreferences/advanced-features.md- Hooks, slash commands, MCP integration
Workflows
workflows/quick-create.md- Fast agent creation stepsworkflows/interview-create.md- Interactive guided creation
Agent Types by Tool Access
Read-Only Agents (Reviewers, Auditors)
tools: Read, Grep, Glob
Use for: Code review, security audits, compliance checks
Research Agents (Analysts)
tools: Read, Grep, Glob, WebFetch, WebSearch, Write (if need to save research)
Use for: Technology research, documentation lookup, best practices
Code Writers (Implementers)
tools: Read, Write, Edit, Bash, Grep, Glob
Use for: Feature implementation, bug fixes, refactoring
Full-Stack Agents (End-to-End)
tools: Read, Write, Edit, Bash, Grep, Glob, WebFetch
# Plus MCP tools as needed
Use for: Complete feature delivery, integration work
Common Agent Patterns
Security Reviewer
Purpose: Analyze code for vulnerabilities Tools: Read, Grep, Glob Key checklist: Input validation, authentication, secrets, SQL injection, XSS, CSRF
Test Runner
Purpose: Execute tests, diagnose failures, propose fixes Tools: Read, Edit, Write, Bash, Grep, Glob Key workflow: Run tests → Diagnose failures → Propose fixes → Verify
Tech Researcher
Purpose: Investigate technologies, APIs, best practices Tools: Read, Grep, Glob, WebFetch, WebSearch Key output: Comparison matrix, recommendation with rationale, next steps
Code Implementer
Purpose: Build features following specifications Tools: Read, Write, Edit, Bash, Grep, Glob Key workflow: Understand requirements → Design → Implement → Test → Document
File Location
Agent definitions go in:
- Project-level:
.claude/agents/(version controlled, team-shared) - User-level:
~/.claude/agents/(personal agents)
Precedence: Project agents override user agents with same name.
Task Tool Integration
Agents are invoked via the Task tool:
Use the security-reviewer agent to analyze the authentication module for vulnerabilities.
Built-in agent types:
general-purpose- Full tools, Sonnet modelexplore- Read-only, Haiku model (fast searches)plan- Research and analysis during planning
Custom agents: Reference by name from .claude/agents/
**Parallel executi
Установить subagent-factory в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл subagent-factory?
Create specialized Claude Code agents on-the-fly. Guides through agent definition file creation with proper frontmatter, effective prompts, and tool scoping. USE WHEN user says 'create agent', 'new subagent', 'make an agent for', 'build agent', 'spawn agent', or wants to define custom agents for specific tasks.
Как установить скилл subagent-factory?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл subagent-factory запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic