SkillAtlasSkill 详情

subagent-factory

This is the open-source content repository behind

审核状态:已审核Quality 72Security 82

复制安装命令

用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。

复制前请先查看来源、License 和安全提示。

项目 README

来源文件:README.md

抓取于 2026年9月5日

Skill Store — Marketplace Repository

This is the open-source content repository behind Skill Store. It stores every approved Agent Skill, the records that go with it, and the automated security audits published with each skill.

This repo is a companion to the Skill Store platform, not the place to submit skills. Skills are added through skillstore.io — its review pipeline writes to this repo automatically. Please do not open a pull request here to add a skill; PRs adding skills will be closed. See Contributing a skill below.

Installing a skill

The recommended way to install any skill is the skillstore CLI — one command works for both Claude Code and Codex:

npx skillstore add author/skill-name

For example:

npx skillstore add aiskillstore/code-review

It downloads the skill and drops it into the right skills/ directory for your tool. Claude Code auto-discovers it; for Codex, restart the session.

Prefer to do it by hand, or installing via Claude Web? See the full Installation Guides for every method (CLI, manual, and ZIP upload) and the scope directories (~/.agents/skills/, .claude/skills/, ~/.claude/skills/, .codex/skills/, …).

Contributing a skill

Submit through the platform — not through a pull request:

  1. Go to skillstore.io/submit.
  2. Enter the GitHub repository URL that contains your SKILL.md.
  3. Your submission runs through automated security analysis.
  4. A maintainer reviews and approves it.
  5. On approval, the skill is published here and appears on skillstore.io.

What makes a valid skill

  • SKILL.md — the skill definition (required, per the Agent Skills spec)
  • Supporting files the skill references (optional)
  • LICENSE (recommended)

Security audit

Every submission is scanned automatically before it can be published. The audit flags things like:

  • Dangerous code patterns (eval, exec, raw system commands)
  • File access outside the project scope
  • Network calls to external hosts
  • Obfuscated or minified code
  • Credential / secret handling

Security analysis is report-only: findings inform maintainers and users, but a risk result does not automatically block an otherwise approved skill from being published. See our Security Trust Center for the methodology, limitations, and risk-level definitions.

Live Security Passport example:

Skillstore security

Repository layout

.
├── skills/        # Approved, published skills (one folder each, with SKILL.md)
├── pending/       # Submissions awaiting review
├── packages/
│   ├── cli/       # The `skillstore` CLI (npx skillstore add …)
│   └── skillstore/
├── schemas/       # JSON schemas for skill records
├── scripts/       # Maintenance & scoring scripts
└── .github/workflows/   # Submission, audit, and sync automation

The contents of this repo are maintained by Skill Store's automated pipeline. Manual changes are limited to maintainers.

Links

License

The marketplace catalog is MIT-licensed. Individual skills carry their own licenses — check each skill's LICENSE file.

开发与工程Agent / MCP / Skill 创作

低风险

  • 来源需自行核对维护者身份。
  • 包含脚本或命令调用,安装前请复核。
  • 可能需要外部 token、网络权限或第三方服务。
  • 未检测到高风险命令。
  • 扫描发现:0 条。

Codex — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/aiskillstore/marketplace.git
  3. 将 "skills/aaronabuusama/subagent-factory" 文件夹复制到 Codex 的 skills 目录中。
  4. 重启 Codex 让新的 skill 生效。

Codex — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Codex 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Codex 让新的 skill 生效。

Claude Code — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/aiskillstore/marketplace.git
  3. 将 "skills/aaronabuusama/subagent-factory" 文件夹复制到 Claude Code 的 skills 目录中。
  4. 重启 Claude Code 让新的 skill 生效。

Claude Code — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Claude Code 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Claude Code 让新的 skill 生效。

Cursor — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/aiskillstore/marketplace.git
  3. 将 "skills/aaronabuusama/subagent-factory" 文件夹复制到 Cursor 的 skills 目录中。
  4. 重启 Cursor 让新的 skill 生效。

Cursor — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Cursor 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Cursor 让新的 skill 生效。

GitHub Copilot — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/aiskillstore/marketplace.git
  3. 将 "skills/aaronabuusama/subagent-factory" 文件夹复制到 GitHub Copilot 的 skills 目录中。
  4. 重启 GitHub Copilot 让新的 skill 生效。

GitHub Copilot — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 GitHub Copilot 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 GitHub Copilot 让新的 skill 生效。

Windsurf — Git Clone 安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 克隆仓库:git clone https://github.com/aiskillstore/marketplace.git
  3. 将 "skills/aaronabuusama/subagent-factory" 文件夹复制到 Windsurf 的 skills 目录中。
  4. 重启 Windsurf 让新的 skill 生效。

Windsurf — 手动复制安装

  1. 安装前请先查看来源仓库和风险报告。
  2. 从源仓库下载 SKILL.md 及相关文件。
  3. 在 Windsurf 的 skills 目录中创建新文件夹。
  4. 将所有 skill 文件复制到新文件夹中。
  5. 重启 Windsurf 让新的 skill 生效。
查看 SKILL.md 原文
name: subagent-factory
description: 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

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:

  1. Identity/role definition
  2. Clear responsibilities
  3. Step-by-step workflow
  4. Concrete checklists
  5. Output format specification
  6. 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 reference
  • references/task-tool-reference.md - Task tool parameters and usage
  • references/prompt-patterns.md - Effective prompt engineering patterns
  • references/advanced-features.md - Hooks, slash commands, MCP integration

Workflows

  • workflows/quick-create.md - Fast agent creation steps
  • workflows/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 model
  • explore - Read-only, Haiku model (fast searches)
  • plan - Research and analysis during planning

Custom agents: Reference by name from .claude/agents/

Parallel execution: Up to 10 concurrent agents (automatic queuing for more)

Key Insights

  1. System prompt is Markdown body, NOT frontmatter - Common mistake
  2. Tool inheritance - Omit tools field to inherit all; specify to restrict
  3. Model selection - Use haiku for fast searches, sonnet for balanced work, opus for complex reasoning
  4. Token overhead - Each agent spawn costs ~20k tokens; balance parallelization
  5. Context isolation - Each agent has independent context window (prevents cross-contamination)

Quick Start

Simple example:

# .claude/agents/test-runner.md
---
name: test-runner
description: Run tests, diagnose failures, propose fixes. Use after code changes.
tools: Read, Edit, Bash, Grep
model: sonnet
---

You are a test automation specialist.

## Workflow
1. Run test suite using project test command
2. If failures: capture output, read test files, diagnose root cause
3. Propose minimal fix with rationale
4. Re-run to verify

## Output Format
- Test results summary
- Failure analysis (if any)
- Proposed fixes with evidence

For detailed examples and patterns, see reference documentation.

Next Steps

  1. Choose creation mode (quick or interview)
  2. Define agent purpose and responsibilities
  3. Select appropriate tools
  4. Write effective system prompt
  5. Test with realistic scenarios
  6. Iterate based on failures

Start with workflows/quick-create.md for direct creation or workflows/interview-create.md for guided process.

发现问题?提交给管理员复核

评分:

评论 (0)

暂无评论,成为第一个评论者吧!