Token导航 LogoToken导航

Agent Skill · 研究检索

create-agent(创建 Agent)

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

create-agent 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 41,684。

总安装 1,151周安装 47GitHub Stars 891下载 368核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/neolabhq/context-engineering-kit --skill create-agent

这个 Skill 是做什么的

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

create-agent 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。适用于需要根据关键词或任务场景进行信息检索的研究与数据整理场景。通过关键词、来源仓库或任务线索发起搜索,返回结构化候选结果供进一步处理。

安装命令为 npx skills add https://github.com/neolabhq/context-engineering-kit --skill create-agent。使用前需确认权限范围、维护状态,注意是否触发联网或文件操作。

来源仓库内路径:skills/create-agent

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/neolabhq/context-engineering-kit --skill creat…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

create-agent 怎么安装?

在终端执行 npx skills add https://github.com/neolabhq/context-engineering-kit --skill create-agent。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

create-agent 支持哪些 AI 工具?

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

create-agent 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/neolabhq/context-engineering-kit --skill create-agent 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

create-agent 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

create-agent 用的人多吗?

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

create-agent 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 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调用外部服务未明确有提醒
create-agent

创建 Agent · 本页

1,151891执行命令未明确通过

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

SKILL.md 原文

Create Agent Command

Create autonomous Claude Code agents that handle complex, multi-step tasks independently. This command provides comprehensive guidance based on official Anthropic documentation and proven patterns.

User Input

Agent Name: $1
Description: $2

What Are Agents?

Agents are autonomous subprocesses spawned via the Task tool that:

  • Handle complex, multi-step tasks independently
  • Have their own isolated context window
  • Return results to the parent conversation
  • Can be specialized for specific domains
ConceptAgentCommand
TriggerClaude decides based on descriptionUser invokes with /name
PurposeAutonomous workUser-initiated actions
ContextIsolated subprocessShared conversation
File formatagents/*.mdcommands/*.md

Agent File Structure

Agents use a unique format combining YAML frontmatter with a markdown system prompt:

---
name: agent-identifier
description: Use this agent when [triggering conditions]. Examples:

<example>
Context: [Situation description]
user: "[User request]"
assistant: "[How assistant should respond and use this agent]"
<commentary>
[Why this agent should be triggered]
</commentary>
</example>

<example>
[Additional example...]
</example>

model: inherit
color: blue
tools: ["Read", "Write", "Grep"]
---

You are [agent role description]...

**Your Core Responsibilities:**
1. [Responsibility 1]
2. [Responsibility 2]

**Analysis Process:**
[Step-by-step workflow]

**Output Format:**
[What to return]

Frontmatter Fields Reference

Required Fields

name (Required)

Format: Lowercase with hyphens only Length: 3-50 characters Rules:

  • Must start and end with alphanumeric character
  • Only lowercase letters, numbers, and hyphens
  • No underscores, spaces, or special characters
ValidInvalidReason
code-reviewerhelperToo generic
test-generator-agent-Starts/ends with hyphen
api-docs-writermy_agentUnderscores not allowed
security-analyzeragToo short (<3 chars)
pr-quality-reviewerMyAgentUppercase not allowed
description (Required, Critical)

The most important field - Defines when Claude triggers the agent.

Requirements:

  • Length: 10-5,000 characters (ideal: 200-1,000 with 2-4 examples)
  • MUST start with: "Use this agent when..."
  • MUST include: <example> blocks showing usage patterns
  • Each example needs: context, user request, assistant response, commentary

Example Block Format:

<example>
Context: [Describe the situation - what led to this interaction]
user: "[Exact user message or request]"
assistant: "[How Claude should respond before triggering]"
<commentary>
[Explanation of why this agent should be triggered in this scenario]
</commentary>
assistant: "[How Claude triggers the agent - 'I'll use the [agent-name] agent...']"
</example>

Best Practices for Descriptions:

  • Include 2-4 concrete examples
  • Show both proactive and reactive triggering scenarios
  • Cover different phrasings of the same intent
  • Explain reasoning in commentary
  • Be specific about when NOT to use the agent
model (Required)

Values: inherit, sonnet, opus, haiku Default: inherit (recommended)

ValueUse CaseCost
inheritUse parent conversation modelDefault
haikuFast, simple tasksLowest
sonnetBalanced performanceMedium
opusMaximum capability, complex reasoningHighest

Recommendation: Use inherit unless you have a specific reason to override.

color (Required)

Purpose: Visual indicator in UI to distinguish agents

Values: blue, cyan, green, yellow, magenta, red

Best Practice: Use different colors for different agents in the same plugin to distinguish them visually.

Optional Fields

tools (Optional)

Purpose: Restrict available tools (principle of least privilege) Format: Array of tool names Default: All tools available

# Common tool restrictions
tools: ["Read", "Grep", "Glob"]           # Read-only analysis
tools: ["Read", "Write", "Grep", "Glob"]  # Code modification
tools: ["Read", "Bash", "Grep"]           # System operations

Security Principle: Only grant tools the agent actually needs.

Triggering Patterns

Pattern 1: Explicit Request

User directly asks for the agent's function.

<example>
Context: User wants code reviewed
user: "Can you review my code changes?"
assistant: "I'll use the code-reviewer agent to analyze the changes."
<commentary>
User explicitly requested code review, trigger the code-reviewer agent.
</commentary>
</example>

Pattern 2: Implicit Need

Agent needed based on context, not explicit request.

<example>
Context: User mentions code is hard to understand
user: "This code is confusing and hard to follow"
assistant: "I can help improve the code clarity."
<commentary>
User indicates complexity issues. Trigger code-simplifier agent to refactor
for better readability.
</commentary>
assistant: "I'll use the code-simplifier agent to suggest improvements."
</example>

Pattern 3: Proactive Trigger

Agent triggers after completing relevant work without explicit request.

<example>
Context: User just implemented database queries
user: "I've added the user search functionality"
assistant: "Great! Let me review it for security."
<commentary>
Database code written. Proactively trigger security-analyzer to check
for SQL injection and other database security issues.
</commentary>
assistant: "I'll use the security-analyzer agent to check the database code."
</example>

Pattern 4: Tool Usage Pattern

Agent triggers based on prior tool usage.

<example>
Context: User made multiple edits to test files
user: "I've updated all the tests"
assistant: "Great! Let me verify test quality."
<commentary>
Multiple Edit tools used on test files. Proactively trigger test-quality-analyzer
to ensure tests follow best practices.
</commentary>
assistant: "I'll use the test-quality-analyzer agent to review the tests."
</example>

System Prompt Design

The system prompt (markdown body after frontmatter) defines agent behavior. Use this proven template:

You are [role] specializing in [domain].

**Your Core Responsibilities:**
1. [Primary responsibility - what the agent MUST do]
2. [Secondary responsibility]
3. [Additional responsibilities...]

**Analysis Process:**
1. [Step one - be specific]
2. [Step two]
3. [Step three]
[...]

**Quality Standards:**
- [Standard 1 - measurable criteria]
- [Standard 2]

**Output Format:**
Provide results in this format:
- [What to include]
- [How to structure]

**Edge Cases:**
Handle these situations:
- [Edge case 1]: [How to handle]
- [Edge case 2]: [How to handle]

**What NOT to Do:**
- [Anti-pattern 1]
- [Anti-pattern 2]

System Prompt Principles

PrincipleGoodBad
Be specific"Check for SQL injection in query strings""Look for security issues"
Include examples"Format: ## Critical Issues\n- Issue 1""Use proper formatting"
Define boundaries"Do NOT modify files, only analyze"No boundaries stated
Provide fallbacks"If unsure, ask for clarification"Assume and proceed
Quality mechanisms"Verify each finding with evidence"No verification

Validation Requirements

System prompts must be:

  • Length: 20-10,000 characters (ideal: 500-3,000)
  • Well-structured: Clear sections with responsibilities, process, output format
  • Specific: Actionable instructions, not vague guidance
  • Complete: Handles edge cases and quality standards

AI-Assisted Agent Generation

Use this prompt to generate agent configurations automatically:

Create an agent configuration based on this request: "[YOUR DESCRIPTION]"

Requirements:
1. Extract core intent and responsibilities
2. Design expert persona for the domain
3. Create comprehensive system prompt with:
   - Clear behavioral boundaries
   - Specific methodologies
   - Edge case handling
   - Output format
4. Create identifier (lowercase, hyphens, 3-50 chars)
5. Write description with triggering conditions
6. Include 2-3 <example> blocks showing when to use

Return JSON with:
{
  "identifier": "agent-name",
  "whenToUse": "Use this agent when... Examples: <example>...</example>",
  "systemPrompt": "You are..."
}

Elite Agent Architect Process

When creating agents, follow this 6-step process:

  1. Extract Core Intent: Identify fundamental purpose, key responsibilities, success criteria
  2. Design Expert Persona: Create compelling expert identity with domain knowledge
  3. Architect Comprehensive Instructions: Behavioral boundaries, methodologies, edge cases, output formats
  4. Optimize for Performance: Decision frameworks, quality control, workflow patterns, fallback strategies
  5. Create Identifier: Concise, descriptive, 2-4 words with hyphens
  6. Generate Examples: Triggering scenarios with context, user/assistant dialogue, commentary

Default Agent Standards

Frontmatter Rules

  • description: Keep to ONE sentence - descriptions load into parent context, every token counts
  • Do NOT add verbose <example> blocks in description - they waste context tokens

Required Agent Sections (in order)

  1. Title - # <Role Title> with strong identity statement
  2. Identity - Quality expectations and motivation (consequences for poor work)
  3. Goal - Clear single-paragraph objective
  4. Input - What files/data the agent receives
  5. CRITICAL: Load Context - Explicit requirement to read ALL relevant files BEFORE analysis
  6. Process/Stages - Step-by-step workflow with proper ordering

Process Stage Ordering (critical for multi-stage agents)

WRONG: Decompose → Self-Critique → Produce → Solve
RIGHT: Decompose → Solve → Produce Full Solution → Self-Critique → Output
  • Self-critique comes as the last step, always
  • Always produce everything first, then evaluate and select

Decision Tables

Put reasoning column BEFORE decision column:

WRONG: | Section | Include? | Reasoning |
RIGHT: | Section | Reasoning | Include? |

This forces the agent to explain WHY before deciding, improving decision quality.

Validation Rules

Structural Validation

ComponentRuleValidInvalid
Name3-50 chars, lowercase, hyphenscode-reviewerCode_Reviewer
Description10-5000 chars, starts "Use this agent when"Use this agent when reviewing code...Reviews code
ModelOne of: inherit, sonnet, opus, haikuinheritgpt-4
ColorOne of: blue, cyan, green, yellow, magenta, redbluepurple
System prompt20-10000 chars500+ char promptEmpty body
ExamplesAt least one <example> blockHas examplesNo examples

Validation Script

# Validate agent structure
scripts/validate-agent.sh agents/your-agent.md

Quality Checklist

Before deployment:

  • Name follows conventions (lowercase, hyphens, 3-50 chars)
  • Description starts with "Use this agent when..."
  • Description includes 2-4 <example> blocks
  • Each example has context, user, assistant, commentary
  • Model is appropriate for task complexity
  • Color is unique among related agents
  • Tools restricted to what's needed (least privilege)
  • System prompt has clear structure
  • Responsibilities are specific and actionable
  • Process steps are concrete
  • Output format is defined
  • Edge cases are addressed

Production Examples

Code Quality Reviewer Agent

---
name: code-quality-reviewer
description: Use this agent when the user asks to review code changes, check code quality, or analyze modifications for bugs and improvements. Examples:

<example>
Context: User has completed implementing a feature
user: "I've finished the authentication module"
assistant: "Great! Let me review it for quality."
<commentary>
Code implementation complete. Proactively trigger code-quality-reviewer
to check for bugs, security issues, and best practices.
</commentary>
assistant: "I'll use the code-quality-reviewer agent to analyze the changes."
</example>

<example>
Context: User explicitly requests review
user: "Can you review PR #123 for code quality?"
assistant: "I'll use the code-quality-reviewer agent to analyze the PR."
<commentary>
PR review request triggers the code-quality-reviewer agent.
</commentary>
</example>

model: inherit
color: blue
tools: ["Read", "Grep", "Glob"]
---

You are an expert code quality reviewer specializing in identifying bugs, security vulnerabilities, and improvement opportunities.

**Your Core Responsibilities:**
1. Analyze code changes for quality issues (readability, maintainability, performance)
2. Identify security vulnerabilities (injection, XSS, authentication issues)
3. Check adherence to project best practices and coding standards
4. Provide actionable, specific feedback with line numbers

**Review Process:**
1. **Initial scan**: Quick pass for obvious issues
2. **Deep analysis**: Line-by-line review of changed code
3. **Context evaluation**: Check impact on related code
4. **Best practices**: Compare against project and language standards
5. **Recommendations**: Prioritized list of improvements

**Output Format:**
For each file reviewed:

## Summary
[2-3 sentence overview]

## Critical Issues (must fix)
- [Issue with file:line reference and fix suggestion]

## Major Issues (should fix)
- [Issue with explanation]

## Minor Issues (nice to fix)
- [Suggestion]

## Positive Observations
- [What was done well]

## Overall Assessment
[Pass/Needs Work/Fail with reasoning]

**Quality Standards:**
- Every issue must have a specific location (file:line)
- Every issue must have a suggested fix
- Prioritize security over style issues
- Acknowledge good patterns, not just problems

Test Generator Agent

---
name: test-generator
description: Use this agent when the user asks for test generation, needs test coverage, or has written new code requiring tests. Examples:

<example>
Context: User has written new functionality without tests
user: "I've implemented the payment processing module"
assistant: "Let me generate comprehensive tests for it."
<commentary>
New code written without tests. Trigger test-generator to create
unit tests, integration tests, and edge case coverage.
</commentary>
assistant: "I'll use the test-generator agent to create comprehensive tests."
</example>

<example>
Context: User explicitly requests tests
user: "Can you write tests for the utils folder?"
assistant: "I'll use the test-generator agent to create tests."
<commentary>
Explicit test generation request.
</commentary>
</example>

model: inherit
color: green
tools: ["Read", "Write", "Grep", "Glob"]
---

You are an expert test engineer specializing in creating comprehensive test suites.

**Your Core Responsibilities:**
1. Analyze code to understand behavior and dependencies
2. Generate unit tests for individual functions/methods
3. Create integration tests for module interactions
4. Design edge case and error condition tests
5. Follow project testing conventions and patterns

**Expertise Areas:**
- **Unit testing**: Individual function/method tests
- **Integration testing**: Module interaction tests
- **Edge cases**: Boundary conditions, error paths
- **Test organization**: Proper structure and naming
- **Mocking**: Appropriate use of mocks and stubs

**Process:**
1. Read target code and understand its behavior
2. Identify testable units and their dependencies
3. Design test cases covering:
   - Happy paths (expected behavior)
   - Edge cases (boundary conditions)
   - Error cases (invalid inputs, failures)
4. Generate tests following project patterns
5. Add comprehensive assertions

**Output Format:**
Complete test files with:
- Proper test suite structure (describe/it or test blocks)
- Setup/teardown if needed
- Descriptive test names explaining what's being tested
- Comprehensive assertions covering all behaviors
- Comments explaining complex test logic

**Quality Standards:**
- Each function should have at least 3 tests (happy, edge, error)
- Test names should describe the scenario being tested
- Mocks should be clearly documented
- No test interdependencies

Agent Creation Process

Step 1: Gather Requirements

Ask user (if not provided):

  1. Agent name: What should the agent be called? (kebab-case)
  2. Purpose: What problem does this agent solve?
  3. Triggers: When should Claude use this agent?
  4. Responsibilities: What are the core tasks?
  5. Tools needed: Read-only? Can modify files?
  6. Model: Need maximum capability (opus) or balanced (sonnet/inherit)?

Step 2: Create Agent File

# Create agents directory if needed
mkdir -p ${CLAUDE_PLUGIN_ROOT}/agents

# Create agent file
touch ${CLAUDE_PLUGIN_ROOT}/agents/<agent-name>.md

Step 3: Write Frontmatter

Generate frontmatter with:

  • Unique, descriptive name
  • Description with triggering conditions and examples
  • Appropriate model setting
  • Distinct color
  • Minimal required tools

Step 4: Write System Prompt

Create system prompt following the template:

  1. Role statement with specialization
  2. Core responsibilities (numbered list)
  3. Analysis/work process (step-by-step)
  4. Quality standards (measurable criteria)
  5. Output format (specific structure)
  6. Edge cases (how to handle special situations)

Step 5: Validate

Run validation:

scripts/validate-agent.sh agents/<agent-name>.md

Check:

  • Frontmatter parses correctly
  • All required fields present
  • Examples are complete
  • System prompt is comprehensive

Step 6: Test Triggering

Test with various scenarios:

  1. Explicit requests matching examples
  2. Implicit needs where agent should activate
  3. Scenarios where agent should NOT activate
  4. Edge cases and variations

Best Practices Summary

DO

  • Include 2-4 concrete examples in agent descriptions
  • Write specific, unambiguous triggering conditions
  • Use "inherit" model setting unless specific need
  • Apply principle of least privilege for tools
  • Write clear, structured system prompts with explicit steps
  • Test agent triggering thoroughly before deployment
  • Use different colors for different agents
  • Include commentary explaining trigger logic

DON'T

  • Generic descriptions without examples
  • Omit triggering conditions
  • Use same color for multiple agents in same plugin
  • Grant unnecessary tool access
  • Write vague system prompts
  • Skip testing phases
  • Use underscores or uppercase in names
  • Forget to handle edge cases

Integration with Workflows

Agents integrate with plugin workflows:

  1. Phase 5: Component Implementation uses agent-creator to generate agents
  2. Validation phase uses validate-agent.sh script
  3. Testing phase verifies triggering across scenarios

For comprehensive plugin development, use:

  • /plugin-dev:create-plugin for full plugin workflow
  • This command for individual agent creation/refinement

Create the Agent

Based on user input, create:

  1. Directory structure: ${CLAUDE_PLUGIN_ROOT}/agents/
  2. Agent file: Complete markdown with frontmatter + system prompt
  3. Validation: Run validation script
  4. Testing suggestions: Scenarios to verify triggering

After creation, suggest testing with /customaize-agent:test-prompt command to verify agent behavior under various scenarios.

平台分布

Codex

33.19%
按下载量换算122

Claude

32.57%
按下载量换算120

Cursor

21.48%
按下载量换算79

Gemini CLI

8.71%
按下载量换算32

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/neolabhq/context-engineering-kit --skill create-agent 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills