返回顶部
t

task-decomposer任务分解器

Decomposes complex user requests into executable subtasks, identifies required capabilities, searches for existing skills at skills.sh, and creates new skills when no solution exists. This skill should be used when the user submits a complex multi-step request, wants to automate workflows, or needs help breaking down large tasks into manageable pieces.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
82
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

task-decomposer

任务分解与技能生成器

此技能帮助将复杂的用户请求分解为可执行的子任务,识别每个任务所需的能力,从开放技能生态系统中搜索现有技能,并在没有现有解决方案时自动创建新技能。

核心工作流

用户请求 → 任务分解 → 能力识别 → 技能搜索 → 差距分析 → 技能创建 → 执行计划

第一阶段:任务分析与分解

收到用户请求时,请遵循以下步骤:

步骤1:理解用户意图

分析请求以识别:

  • - 核心目标:最终目标是什么?
  • 涉及领域:需要哪些专业领域?
  • 触发机制:一次性、定时还是事件驱动?

示例分析:

用户输入:帮我每天早上获取邮件摘要并发送到Slack

分析:

  • - 核心目标:自动将邮件摘要投递到Slack
  • 领域:邮件访问、内容摘要、消息传递
  • 触发方式:定时(每天早晨)

步骤2:分解为原子任务

将复杂任务分解为最小的可执行单元:

yaml
任务分解:
- task_id: 1
name: 访问并获取邮件列表
type: 数据检索
input: 邮件凭证/会话
output: 带元数据的邮件列表
dependencies: []

- task_id: 2
name: 从邮件中提取关键信息
type: 数据提取
input: 邮件列表
output: 结构化邮件数据
dependencies: [1]

- task_id: 3
name: 生成邮件摘要
type: 内容生成
input: 结构化邮件数据
output: 格式化摘要文本
dependencies: [2]

- task_id: 4
name: 发送消息到Slack
type: 消息投递
input: 摘要文本、Slack webhook/令牌
output: 投递确认
dependencies: [3]

- task_id: 5
name: 配置定时执行
type: 调度
input: 工作流脚本、调度配置
output: 活跃的定时任务
dependencies: [4]

第二阶段:能力识别

将每个子任务映射到通用能力分类中的能力类型。

通用能力类型

能力描述搜索关键词
browserautomation网页导航、交互、抓取browser, selenium, puppeteer, playwright, scrape
websearch
互联网搜索和信息检索 | search, google, bing, duckduckgo | | api_integration | 第三方API通信 | api, rest, graphql, webhook, {service-name} | | data_extraction | 解析和提取结构化数据 | parse, extract, scrape, ocr, pdf | | data_transformation | 转换、清洗、转换数据 | transform, convert, format, clean, etl | | content_generation | 创建文本、图像或其他内容 | generate, write, create, summarize, translate | | file_operations | 读取、写入、操作文件 | file, read, write, csv, excel, json, pdf | | message_delivery | 发送通知或消息 | notify, send, email, slack, discord, telegram | | scheduling | 基于时间的任务执行 | schedule, cron, timer, daily, weekly | | authentication | 身份和访问管理 | auth, oauth, login, token, credentials | | database_operations | 数据库CRUD操作 | database, sql, mongodb, query, store | | code_execution | 运行脚本或程序 | execute, run, script, shell, python | | version_control | Git和代码仓库操作 | git, github, gitlab, commit, pr, review | | testing | 自动化测试和质量保证 | test, jest, pytest, e2e, unit | | deployment | 应用部署和CI/CD | deploy, docker, kubernetes, ci-cd, release | | monitoring | 系统和应用监控 | monitor, alert, log, metrics, health |

能力识别过程

对于每个子任务:

  1. 1. 分析任务描述和需求
  2. 匹配到一个或多个能力类型
  3. 生成用于技能发现的搜索关键词

示例:
yaml
任务:发送消息到Slack
能力:message_delivery
搜索关键词:[slack, notification, message, webhook]

第三阶段:技能搜索

使用Skills CLI在https://skills.sh/搜索现有技能

搜索过程

对于每个能力需求,使用相关关键词搜索:

bash

搜索匹配该能力的技能


npx skills find <关键词>

示例:

npx skills find slack notification npx skills find browser automation npx skills find pdf extract npx skills find github api

评估搜索结果

当返回结果时:

使用 npx skills add 安装

owner/repo@skill-name
└ https://skills.sh/owner/repo/skill-name

评估每个结果:

  • - 相关性:是否匹配所需能力?
  • 完整性:是否覆盖所有所需功能?
  • 质量:文档是否完善且维护良好?

生成能力映射

yaml
能力映射:
- task_id: 1
capability: browser_automation
search_query: browser email automation
found_skills:
- name: anthropic/claude-skills@browser-use
url: https://skills.sh/anthropic/claude-skills/browser-use
match_score: high
recommendation: 安装browser-use技能

- task_id: 4
capability: message_delivery
search_query: slack notification
found_skills: []
recommendation: 创建新技能:slack-notification

第四阶段:差距分析

识别没有匹配技能的任務:

内置能力(无需技能)

这些能力通常由代理的原生能力处理:

  • - contentgeneration - LLM的原生文本生成
  • datatransformation - 通过代码进行基本数据操作
  • code_execution - 直接脚本执行
  • scheduling - 系统级cron/调度器配置

所需技能

对于没有内置支持的能力,确定:

  1. 1. 技能存在:从skills.sh安装
  2. 未找到技能:创建新技能

第五阶段:技能创建

当没有现有技能匹配所需能力时,创建新技能。

技能创建过程

  1. 1. 定义范围:确定技能应做什么
  2. 设计接口:定义输入、输出和使用模式
  3. 创建SKILL.md:编写技能定义文件
  4. 添加资源:根据需要包含脚本、参考资料或资产

技能模板

markdown



name: {技能名称}
description: {清晰描述技能的功能及使用场景。以第三人称书写。}


{技能标题}

{简要介绍,说明技能的目的。}

使用时机

{描述应触发此技能的场景。}

前提条件

{列出所需的安装、配置或凭证。}

使用方法

{详细的使用说明及示例。}

基本用法

bash
{基本命令或代码示例}

高级用法

{更复杂的示例和选项。}

配置

{任何配置选项或环境变量。}

示例

示例1:{用例}

{带代码的逐步示例。}

故障排除

{常见问题及解决方案。}

初始化新技能

bash

使用skills CLI创建技能


npx skills init <技能名称>

或手动创建结构:

技能名称/

├── SKILL.md(必需)

├── scripts/(可选)

├── references/(可选)

└── assets/(可选)

第六阶段:生成执行计划

将所有信息编译成结构化的执行计划:

yaml
执行计划:
title: {任务描述}

prerequisites:
- {前提条件1}
- {前提条件2}

skillstoinstall:
- skill: owner/repo@skill-name
command: npx skills add owner/repo@skill-name -g -y
url: https://skills.sh/owner/repo/skill-name

skillstocreate:
- name: {新技能名称}
capability: {能力类型}
description: {功能描述}

execution_steps:
- step: 1
task: {任务名称}
skill: {技能名称 | built-in}
action: {要执行的具体操作}

- step: 2
task: {任务名称}
skill: {技能名称 | built-in}
action: {要执行的具体操作}

verification:
- {如何验证步骤1成功}
- {如何验证步骤2成功}

任务分解原则

###

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 openclaw-super-skills-1775915069 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 openclaw-super-skills-1775915069 技能

通过命令行安装

skillhub install openclaw-super-skills-1775915069

下载

⬇ 下载 task-decomposer v1.0.0(免费)

文件大小: 12.9 KB | 发布时间: 2026-4-12 10:51

v1.0.0 最新 2026-4-12 10:51
- Initial release of the task-decomposer skill.
- Decomposes complex user requests into manageable subtasks and identifies required capabilities for each task.
- Searches for existing skills in the open skills ecosystem via skills.sh and recommends installation or creation of new skills if needed.
- Provides phase-driven workflow: task analysis, capability mapping, skill search, gap analysis, skill generation, and execution planning.
- Includes detailed skill creation templates and practical usage instructions.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部