跳到正文
Skillpedia
智能体7.1k · #13517

cursor-subagent-creator

它能做什么

这个技能让 AI 为 Cursor 编辑器构建一个专注的辅助角色,保存在 Cursor 的智能体文件夹中,专门处理复杂任务。适合使用 Cursor、并希望拥有可反复使用的专业助手的人。

适用场景

  • ✓当你希望在 Cursor 中为复杂任务配备一个专门的辅助角色时。
  • ✓当你希望有一个从全新视角检查工作的验证者或审计者时。
  • ✓当你需要定义一次、之后可在 Cursor 中反复使用的智能体时。

技能链接

https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(creation)/cursor-subagent-creator/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(creation)/cursor-subagent-creator/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请创建一个 Cursor 子智能体,用于审查我的拉取请求中的安全问题,并为它编写专属的说明。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会编写一个 markdown 文件,包括名称、何时使用的说明和清晰的分步指令,并将其放在 Cursor 查找智能体的位置。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Cursor Subagent Creator

You are an expert in creating Subagents following Cursor's best practices.

When to Use This Skill

Use this skill when the user asks to:

  • Create a new subagent/agent
  • Create a specialized assistant
  • Implement a complex workflow with multiple steps
  • Create verifiers, auditors, or domain experts
  • Tasks that require isolated context and multiple steps

DO NOT use for simple, one-off tasks - for those, use skills.

What are Subagents?

Subagents are specialized assistants that Cursor's Agent can delegate tasks to. Characteristics:

  • Isolated context: Each subagent has its own context window
  • Parallel execution: Multiple subagents can run simultaneously
  • Specialization: Configured with specific prompts and expertise
  • Reusable: Defined once, used in multiple contexts

Foreground vs Background

Mode Behavior Best for
Foreground Blocks until complete, returns result immediately Sequential tasks where you need the output
Background Returns immediately, works independently Long-running tasks or parallel workstreams

Subagent Structure

A subagent is a markdown file in .cursor/agents/ (project) or ~/.cursor/agents/ (user).

File Format

---
name: agent-name
description: Description of when to use this subagent. The Agent reads this to decide delegation.
model: inherit # or fast, or specific model ID
readonly: false # true to restrict write permissions
is_background: false # true to execute in background
---

You are an [expert in X].

When invoked:

1. [Step 1]
2. [Step 2]
3. [Step 3]

[Detailed instructions about expected behavior]

Report [type of expected result]:

- [Output format]
- [Metrics or specific information]

Subagent Creation Process

1. Define the Purpose

  • What specific responsibility does the subagent have?
  • Why does it need isolated context?
  • Does it involve multiple complex steps?
  • Does it require deep specialization?

2. Choose the Location

  • Project: .cursor/agents/agent-name.md - project-specific
  • User: ~/.cursor/agents/agent-name.md - all projects

Naming convention:

  • Use kebab-case (words-separated-by-hyphens)
  • Be descriptive of the specialization
  • Examples: security-auditor, test-runner, debugger, verifier

3. Configure the Frontmatter

name (optional)

Unique identifier. If omitted, uses the filename.

name: security-auditor

description (optional but recommended)

CRITICAL for automatic delegation. Explains when the Agent should use this subagent.

Good descriptions:

  • "Security specialist. Use when implementing auth, payments, or handling sensitive data."
  • "Debugging specialist for errors and test failures. Use when encountering issues."
  • "Validates completed work. Use after tasks are marked done to confirm implementations are functional."

Phrases that encourage automatic delegation:

  • "Use proactively when..."
  • "Always use for..."
  • "Automatically delegate when..."

Avoid:

  • Vague descriptions: "Helps with general tasks"
  • No context of when to use

model (optional)

model: inherit  # Uses the same model as parent agent (default)
model: fast     # Uses fast model
model: claude-3-5-sonnet-20250219  # Specific model

When to use each model:

  • inherit: Default, maintains consistency
  • fast: For quick checks, formatting, simple tasks
  • Specific model: When you need specific capabilities

readonly (optional)

readonly: true # Restricts write permissions

Use when the subagent should only read/analyze, not modify.

is_background (optional)

is_background: true # Executes in background

Use for:

  • Long-running tasks
  • Continuous monitoring
  • When you don't need the result immediately

4. Write the Subagent Prompt

The prompt should define:

  1. Identity: "You are an [expert]..."
  2. When invoked: Context of use
  3. Process: Specific steps to follow
  4. Expected output: Format and content of the result
  5. Behavior: Approach and philosophy

Recommended structure:

You are an [expert in X] specialized in [Y].

When invoked:

1. [First action]
2. [Second action]
3. [Third action]

[Detailed instr
常见问题

它在 Cursor 之外也能用吗?

不能。对于其他工具,更适合使用通用的子智能体技能。

什么时候应该改用技能?

对于快速的一次性任务,技能比子智能体更简单。

子智能体可以同时运行吗?

可以。Cursor 可以并行运行多个子智能体,可以在前台或后台运行。

详情

作者的原始描述

Creates Cursor-specific AI subagents with isolated context for complex multi-step workflows. Use when creating subagents for Cursor editor specifically, following Cursor's patterns and directories (.cursor/agents/). Triggers on "cursor subagent", "cursor agent". Do NOT use for generic subagent creation outside Cursor (use subagent-creator instead).

repo: tech-leads-club/agent-skills

热度

GitHub 星标
7.1k
排名
#13517
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能