Chuyển đến nội dung
Skillpedia
Agent7.1k · #13517

cursor-subagent-creator

Skill này làm gì

Skill này để AI xây một trợ lý chuyên biệt cho trình soạn thảo Cursor, được lưu trong thư mục agent của Cursor, để xử lý các tác vụ phức tạp riêng biệt. Phù hợp với người dùng Cursor muốn một trợ lý chuyên gia dùng lại được.

Khi nào nên dùng

  • ✓Khi bạn muốn một trợ lý chuyên gia cho một công việc phức tạp bên trong Cursor.
  • ✓Khi bạn muốn một người kiểm chứng hoặc kiểm toán xem xét công việc từ góc nhìn mới.
  • ✓Khi bạn cần một agent được định nghĩa một lần rồi dùng lại trong Cursor.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(creation)/cursor-subagent-creator/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo một subagent Cursor để xem xét các pull request của tôi về vấn đề bảo mật, với hướng dẫn riêng của nó.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI viết một tệp markdown với tên, mô tả về thời điểm nên dùng và các hướng dẫn từng bước rõ ràng, đặt ở nơi Cursor tìm agent.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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
Câu hỏi thường gặp

Nó có hoạt động ngoài Cursor không?

Không. Với các công cụ khác, một skill subagent tổng quát phù hợp hơn.

Khi nào nên dùng skill thay thế?

Với các tác vụ nhanh, một lần, một skill đơn giản hơn subagent.

Các subagent có thể chạy đồng thời không?

Có. Cursor có thể chạy nhiều subagent song song, ở tiền cảnh hoặc hậu cảnh.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
7.1k
Vị trí xếp hạng
#13517
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự