360 Secure SkillHub
360 安全技能中心

Task Decomposition

该 Skill 接收原始任务描述,以及可选的约束、仓库上下文和风险等级提示,输出结构化计划:摘要、待确认问题、假设与按依赖排序的原子步骤,每步附风险等级、验证方式和完成条件。它只产出计划,不执行步骤。

mzfshark
mzfshark
热度 36.76
最近更新 2026-05-11 17:45:41
分类:效率依赖:内部调用大模型应用场景:任务管理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add axodus-task-decomposition
Metadata
name
task-decomposition
description
Break complex tasks into executable, dependency-aware steps.
metadata
{"author":"RedHat Dev","version":"1.0.0","owner":"RedHat Dev Agent","category":"core"}

SKILL: task-decomposition

Purpose

Break a raw task into an ordered, executable, dependency-aware step list with acceptance criteria and explicit open questions.

When to Use

  • The request implies multiple files or multiple subsystems.
  • The request is vague, inconsistent, or underspecified.
  • The request mixes design + implementation + validation.

Inputs

  • raw_task_description (required, string): the user request as-is.
  • constraints (optional, string[]): non-negotiables (security, time, language, tooling).
  • repo_context (optional, string): relevant paths, conventions, or prior decisions.
  • risk_level_hint (optional, enum: low|medium|high): if the user already signaled risk.

Steps

  1. Restate the task in 1–3 sentences without adding assumptions.
  2. Extract deliverables (expected behavior, files to touch, commands to run).
  3. Identify unknowns that block execution and convert them into concrete questions.
  4. Split work into atomic steps; each step must include:
    • action + target
    • a single primary outcome
    • acceptance criteria (done_when)
  5. Order steps by dependency and mark safe parallelization explicitly.
  6. Tag each step with:
    • risk (low|medium|high)
    • validation (what will be checked)
  7. If unknowns are material, stop and ask only the minimum questions; otherwise proceed with stated assumptions.

Validation

  • No step depends on hidden context.
  • Every step has measurable acceptance criteria.
  • Dependencies are explicit (no “and then it works”).
  • No step contains vague verbs (“improve”, “optimize”, “make better”) without a measurable target.

Output

Structured plan (example schema):

summary: "<what will be delivered>"
open_questions:
  - "<question>"
assumptions:
  - "<assumption (only if low risk)>"
steps:
  - id: 1
    action: "<verb phrase>"
    targets: ["<path/system>"]
    risk: low
    validation: "<check to run>"
    done_when: "<observable condition>"

Safety Rules

  • Do not invent requirements, APIs, or file paths.
  • If a step can be destructive, require explicit confirmation in the plan.
  • Prefer the smallest viable step sequence; avoid gold-plating.

Example

Input:

  • raw_task_description: “Add a CLI command to export reports.”
  • constraints: ["No breaking changes", "Must include tests"]

Output (excerpt):

summary: "Add `report export` command and tests"
open_questions:
  - "What output formats are required (json/csv/pdf)?"
steps:
  - id: 1
    action: "Locate existing CLI entrypoints and command router"
    targets: ["src/cli/*"]
    risk: low
    validation: "CLI help shows existing commands unchanged"
    done_when: "Command dispatch mechanism is identified"