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

subagent-creator

Skill này làm gì

Skill này hướng dẫn AI tạo subagent, tức các trợ lý chuyên biệt với ngữ cảnh riêng để làm việc trên một công việc phức tạp. Phù hợp với người muốn một bộ kiểm chứng, bộ gỡ lỗi hoặc bộ điều phối chuyên dụng.

Khi nào nên dùng

  • ✓Khi một công việc đủ phức tạp để cần ngữ cảnh riêng biệt.
  • ✓Khi bạn muốn một người kiểm tra độc lập xem xét công việc từ góc nhìn mới.
  • ✓Khi bạn muốn nhiều trợ lý cùng làm các phần khác nhau một lúc.

Liên kết skill

https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(creation)/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)/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 kiểm tra các thay đổi mã của tôi xem có lỗi không và báo cáo lại bằng một danh sách ngắn.”

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

Cách hoạt động

Skill giải thích cách viết subagent thành một tệp markdown có tên, mô tả về thời điểm nên dùng và các bước rõ ràng, và khi nào một skill đơn giản là đủ thay vì nó.

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.

Subagent Creator

This skill provides guidance for creating effective, agent-agnostic subagents.

What are Subagents?

Subagents are specialized assistants that an AI 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

When to Use Subagents vs Skills

Is the task complex with multiple steps?
├─ YES → Does it require isolated context?
│         ├─ YES → Use SUBAGENT
│         └─ NO → Use SKILL
│
└─ NO → Use SKILL

Use Subagents for:

  • Complex workflows requiring isolated context
  • Long-running tasks that benefit from specialization
  • Verification and auditing (independent perspective)
  • Parallel workstreams

Use Skills for:

  • Quick, one-off actions
  • Domain knowledge without context isolation
  • Reusable procedures that don't need isolation

Subagent Structure

A subagent is typically a markdown file with frontmatter metadata:

---
name: agent-name
description: Description of when to use this subagent.
model: inherit # or fast, or specific model ID
readonly: false # true to restrict write permissions
---

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. Configure the Metadata

name (required)

Unique identifier. Use kebab-case.

name: security-auditor

description (critical)

CRITICAL for automatic delegation. Explains when to 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."

Phrases that encourage automatic delegation:

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

model (optional)

model: inherit  # Uses same model as parent (default)
model: fast     # Uses fast model for quick tasks

readonly (optional)

readonly: true # Restricts write permissions

3. Write the Subagent Prompt

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

Template:

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

When invoked:

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

[Detailed instructions about approach]

Report [type of result]:

- [Specific format]
- [Information to include]
- [Metrics or criteria]

[Philosophy or principles to follow]

Common Subagent Patterns

1. Verification Agent

Purpose: Independently validates that completed work actually works.

---
name: verifier
description: Validates completed work. Use after tasks are marked done.
model: fast
---

You are a skeptical validator.

When invoked:

1. Identify what was declared as complete
2. Verify the implementation exists and is functional
3. Execute tests or relevant verification steps
4. Look for edge cases that may have been missed

Be thorough. Report:

- What was verified and passed
- What is incomplete or broken
- Specific issues to address

2. Debugger

Purpose: Expert in root cause analysis.

---
name: debugger
description: Debugging specialist. Use when encountering errors or test failures.
---

You are a debugging expert.

When invoked:

1. Capture the error message and stack trace
2. Identify reproduction steps
3. Isolate the failure location
4. Implement minimal fix
5. Verify the solution works

For each issue, provide:

- Root cause explanation
- Evidence supporting the diagnosis
- Specific code fix
- Testing approach

3. Security Auditor

Purpose: Security expert auditing code.

---
name: security-auditor
description: Security specialist. Use for auth, payments, or sensitive data.
---

You are a security expert.

When i
Câu hỏi thường gặp

Subagent khác skill ở điểm nào?

Subagent có cửa sổ ngữ cảnh riêng cho công việc phức tạp, còn skill đơn giản hơn và dùng chung ngữ cảnh chính.

Nó có hoạt động với mọi agent AI không?

Có. Hướng dẫn được viết để hoạt động với bất kỳ agent nào hỗ trợ subagent.

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

Có. Nhiều subagent có thể chạy song song.

Chi tiết

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

Guide for creating AI subagents with isolated context for complex multi-step workflows. Use when users want to create a subagent, specialized agent, verifier, debugger, or orchestrator that requires isolated context and deep specialization. Works with any agent that supports subagent delegation. Triggers on "create subagent", "new agent", "specialized assistant", "create verifier". Do NOT use for Cursor-specific subagents (use cursor-subagent-creator instead).

repo: tech-leads-club/agent-skills

Độ phổ biến

Sao GitHub
7.1k
Vị trí xếp hạng
#13519
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ự