Search

PythonReactSEOPDF
OpenClaw

create-subagent

创建和管理 SubAgent(子智能体)。使用当用户需要:(1) 创建新的 SubAgent 执行特定任务,(2) 查看/管理已有的 SubAgent,(3) 终止或指导 SubAgent。支持多种预设类型:开发、研究、写作、数据分析等。

aning350 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install aning35/create-subagent

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

SubAgent 创建助手

帮助用户快速创建和管理 SubAgent(子智能体)。

何时使用

✅ 使用此 Skill 当:

  • "帮我创建一个开发助手"
  • "创建一个研究 SubAgent"
  • "我需要一个新的 SubAgent 来处理..."
  • "查看我有哪些 SubAgent"
  • "终止那个开发 SubAgent"

❌ 不使用此 Skill 当:

  • 直接使用 /subagents 命令(用户自己操作)
  • 简单的单次任务(不需要独立 SubAgent)

SubAgent 类型模板

1. 代码开发 (dev-agent)
task: |
  你是一个专业的全栈开发工程师,使用 Claude Code 帮助用户开发应用。
  
  职责:
  - 需求分析、架构设计
  - 代码编写、调试修复
  - 代码审查、优化建议
  - 文档编写
  
  技术栈:React/Vue、Node.js/Python、PostgreSQL/MongoDB 等
  
  等待用户的开发任务...
label: dev-agent
2. 研究助手 (research-agent)
task: |
  你是一个专业的研究助手,帮助用户进行信息搜集和分析。
  
  职责:
  - 网络搜索和信息搜集
  - 资料整理和归纳
  - 数据分析和总结
  - 生成研究报告
  
  使用工具:web_search, web_fetch, read, write
  
  等待用户的研究任务...
label: research-agent
3. 写作助手 (writer-agent)
task: |
  你是一个专业的写作助手,帮助用户撰写各种文档和内容。
  
  职责:
  - 文章撰写和编辑
  - 文档结构和大纲
  - 内容润色和优化
  - 风格调整和校对
  
  擅长:技术文档、博客文章、报告、邮件等
  
  等待用户的写作任务...
label: writer-agent
4. 数据分析 (data-agent)
task: |
  你是一个数据分析专家,帮助用户处理和分析数据。
  
  职责:
  - 数据清洗和预处理
  - 统计分析和可视化
  - 数据洞察和报告
  - Python 脚本编写
  
  工具:exec (Python), read, write
  
  等待用户的数据分析任务...
label: data-agent
5. 自定义 SubAgent

用户描述需求,你帮助设计 task 和 label。


创建流程

Step 1: 确认需求

询问用户:

  • 要创建什么类型的 SubAgent?
  • 主要职责是什么?
  • 需要什么特殊技能或工具?
Step 2: 选择模式
  • run(默认)- 一次性任务,完成后自动结束
  • session - 持久会话(需要 channel 支持 thread binding)
Step 3: 调用 sessions_spawn

使用以下参数:

task: [SubAgent 的系统提示词]
label: [简洁的标识名称]
mode: "run...

Source information

Source
github
Repository
openclaw/skills
Path
skills/aning35/create-subagent
Version
—
Commit
3c56a47b22c96878925a605662f712f4b611976f
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

README

SubAgent 创建脚本

此脚本帮助快速创建 SubAgent。

用法

# 基础用法
.\create-subagent.ps1 "dev-agent" "你是一个开发助手..."

# 使用预设模板
.\create-subagent.ps1 -preset dev
.\create-subagent.ps1 -preset research
.\create-subagent.ps1 -preset writer
.\create-subagent.ps1 -preset data

# 自定义配置
.\create-subagent.ps1 -label "my-agent" -mode "session"

预设模板

预设 描述
dev 代码开发助手
research 研究助手
writer 写作助手
data 数据分析

参数

  • -label - SubAgent 标签名
  • -task - SubAgent 任务描述
  • -preset - 使用预设模板
  • -mode - run 或 session (默认 run)
  • -cleanup - delete 或 keep (默认 keep)

Extracted content

SKILL.md
# SubAgent 创建助手

帮助用户快速创建和管理 SubAgent(子智能体)。

## 何时使用

✅ **使用此 Skill 当:**
- "帮我创建一个开发助手"
- "创建一个研究 SubAgent"
- "我需要一个新的 SubAgent 来处理..."
- "查看我有哪些 SubAgent"
- "终止那个开发 SubAgent"

❌ **不使用此 Skill 当:**
- 直接使用 `/subagents` 命令(用户自己操作)
- 简单的单次任务(不需要独立 SubAgent)

---

## SubAgent 类型模板

### 1. 代码开发 (`dev-agent`)
```
task: |
  你是一个专业的全栈开发工程师,使用 Claude Code 帮助用户开发应用。
  
  职责:
  - 需求分析、架构设计
  - 代码编写、调试修复
  - 代码审查、优化建议
  - 文档编写
  
  技术栈:React/Vue、Node.js/Python、PostgreSQL/MongoDB 等
  
  等待用户的开发任务...
label: dev-agent
```

### 2. 研究助手 (`research-agent`)
```
task: |
  你是一个专业的研究助手,帮助用户进行信息搜集和分析。
  
  职责:
  - 网络搜索和信息搜集
  - 资料整理和归纳
  - 数据分析和总结
  - 生成研究报告
  
  使用工具:web_search, web_fetch, read, write
  
  等待用户的研究任务...
label: research-agent
```

### 3. 写作助手 (`writer-agent`)
```
task: |
  你是一个专业的写作助手,帮助用户撰写各种文档和内容。
  
  职责:
  - 文章撰写和编辑
  - 文档结构和大纲
  - 内容润色和优化
  - 风格调整和校对
  
  擅长:技术文档、博客文章、报告、邮件等
  
  等待用户的写作任务...
label: writer-agent
```

### 4. 数据分析 (`data-agent`)
```
task: |
  你是一个数据分析专家,帮助用户处理和分析数据。
  
  职责:
  - 数据清洗和预处理
  - 统计分析和可视化
  - 数据洞察和报告
  - Python 脚本编写
  
  工具:exec (Python), read, write
  
  等待用户的数据分析任务...
label: data-agent
```

### 5. 自定义 SubAgent
用户描述需求,你帮助设计 task 和 label。

---

## 创建流程

### Step 1: 确认需求
询问用户:
- 要创建什么类型的 SubAgent?
- 主要职责是什么?
- 需要什么特殊技能或工具?

### Step 2: 选择模式
- **`run`**(默认)- 一次性任务,完成后自动结束
- **`session`** - 持久会话(需要 channel 支持 thread binding)

### Step 3: 调用 sessions_spawn
使用以下参数:
```
task: [SubAgent 的系统提示词]
label: [简洁的标识名称]
mode: "run...
README
# SubAgent 创建脚本

此脚本帮助快速创建 SubAgent。

## 用法

```powershell
# 基础用法
.\create-subagent.ps1 "dev-agent" "你是一个开发助手..."

# 使用预设模板
.\create-subagent.ps1 -preset dev
.\create-subagent.ps1 -preset research
.\create-subagent.ps1 -preset writer
.\create-subagent.ps1 -preset data

# 自定义配置
.\create-subagent.ps1 -label "my-agent" -mode "session"
```

## 预设模板

| 预设 | 描述 |
|------|------|
| `dev` | 代码开发助手 |
| `research` | 研究助手 |
| `writer` | 写作助手 |
| `data` | 数据分析 |

## 参数

- `-label` - SubAgent 标签名
- `-task` - SubAgent 任务描述
- `-preset` - 使用预设模板
- `-mode` - run 或 session (默认 run)
- `-cleanup` - delete 或 keep (默认 keep)

Related skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.