Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

task-decomposer任务分解器

Agent Skill

task-decomposer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

588

周安装

24

GitHub Stars

4

下载量

190
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:task-decomposer(任务分解器)
来源仓库:https://github.com/fatih-developer/fth-skills
仓库路径:skills/task-decomposer
安装命令:
npx skills add https://github.com/fatih-developer/fth-skills --skill task-decomposer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/fatih-developer/fth-skills --skill task-decomposer

简介

task-decomposer 提供复杂任务的拆解方法论,生成可验证的子任务与依赖关系图。

  • 适用于在 Codex、Claude、Cursor、Gemini CLI 中将大需求分解为原子级操作步骤。
  • 输出包含目标定义、成功标准、约束条件的结构化计划,需用户确认后再执行。
  • 每个子任务完成后才进入下一阶段,避免并行操作导致状态不一致或资源竞争。
  • 最终产出总结报告与改进建议,支持后续类似任务的快速启动与风险控制。

SKILL.md

Task Decomposer Protocol

Break a complex task into independently executable, verifiable subtasks. Produce a structured plan first, get approval, then execute step by step with progress tracking.


Workflow

1. Analyze the task
2. Decompose into subtasks (with dependency map)
3. Present the plan and get approval
4. Execute sequentially — complete each step before moving to next
5. Produce summary report

Step 1: Analyze the Task

Before decomposing, answer these questions:

  • What is the goal? What does success look like?
  • What is the scope? What is included, what is excluded?
  • Are there constraints? Technology, time, dependencies?
  • Is anything unclear? If so, ask one clarifying question — never multiple.
  • Domain Awareness Check: If the user's request clearly aligns with a known domain (e.g., Mobile apps, DB Design, API Architecture), you MUST read the skills/.curated/domains/<domain>/ECOSYSTEM.md file (if it exists) to understand the pre-defined workflows and available skills *before* creating your Dependency Map. Do not hallucinate the workflow.

Do not generate subtasks until the task is clearly understood.


Step 2: Decompose into Subtasks

Each subtask must meet these criteria:

  • Atomic: Does one thing, contains no internal decision branches
  • Verifiable: You can definitively say "done" when completed
  • Independent (when possible): Can run without waiting for other subtasks
  • Has a concrete output: A file, a function, a document, a decision

Dependency Map

Define relationships between subtasks:

  • Sequential (->): B cannot start until A completes
  • Parallel (||): Can run simultaneously — no shared dependencies
  • Optional (?): Not core, nice to have

How to handle parallel steps: Group || steps together. Complete all steps in the group, then move to the next sequential step.

Group A (parallel): #1 || #2 || #3  -> complete all, then continue
Group B (sequential): #4 -> #5 -> #6

Dependency Visualization

Use mermaid for complex dependency graphs:

graph LR
    T1["#1 Data Model"] --> T3["#3 CRUD Operations"]
    T2["#2 DB Connection"] --> T3
    T3 --> T4["#4 API Endpoints"]
    T4 --> T5["#5 Tests"]

Step 3: Present the Plan

Show the plan to the user using the format in templates/task-plan.md.tmpl and ask for approval.

Do not start execution without explicit user approval.


Step 4: Execute Step by Step

After approval, complete each subtask:

  1. Before starting, print a header: ### [#N] Task Name
  2. Execute the task — write code, create files, research, document
  3. On completion, print: Completed: [what was produced]
  4. Move to the next subtask

On failure:

  • Explain the error
  • Suggest an alternative path
  • Ask the user: "Continue or fix this first?"

Escalation rule: If 2 consecutive subtasks fail, stop automatically and ask:

"2 consecutive steps failed. Should we review the plan together before continuing?"

Cross-Skill Integration

  • checkpoint-guardian: During execution, critical actions (file deletion, DB writes, deploys) should trigger risk assessment checkpoints.
  • multi-brain: For complex subtasks where the approach is unclear, use 3-perspective evaluation before committing to an implementation.

Step 5: Summary Report

When all subtasks are done, present a summary using templates/task-summary.md.tmpl.


When to Skip

Do not decompose — respond directly when:

  • Single-step, clear task ("translate this file", "fix this bug")
  • User already knows the steps and only wants execution
  • Task can be completed in under 3 minutes

See references/SKIP_CONDITIONS.md for the full decision matrix.


References

  • See references/PLAN_TEMPLATE.md for the plan output structure.
  • See references/EXAMPLES.md for worked examples including a real code output.
  • See references/SKIP_CONDITIONS.md for when to skip decomposition.

Templates

  • Use templates/task-plan.md.tmpl for presenting the plan to the user.
  • Use templates/task-summary.md.tmpl for the completion report.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.66%
按下载量换算68

Claude

28.92%
按下载量换算55

Cursor

19.73%
按下载量换算37

Gemini CLI

8.82%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills