Goal Decomposer

v1.0.0

将高层自然语言目标拆解为可执行的多层级任务列表。 触发场景:用户给出模糊目标需要具体执行步骤、复杂任务需要拆解、需要生成任务树。

0· 45·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for johnnie23919/goal-decomposer.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Goal Decomposer" (johnnie23919/goal-decomposer) from ClawHub.
Skill page: https://clawhub.ai/johnnie23919/goal-decomposer
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install goal-decomposer

ClawHub CLI

Package manager switcher

npx clawhub@latest install goal-decomposer
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (task decomposition) align with the provided code and SKILL.md. The included script implements simple template-based decomposition and the examples/README show expected outputs. There are no unrelated binaries, credentials, or config paths requested.
Instruction Scope
SKILL.md stays on-topic (decompose goals into tasks). It references integrations (sessions_spawn, RESOLVER, AUTO-FIX, web-access) and uses spawn_hint examples that instruct the agent to route sub-tasks to other capabilities (e.g., web-access for research). That is appropriate for a decomposer but means the agent may autonomously request networked sub-tasks when these platform capabilities are allowed.
Install Mechanism
No install spec is provided (instruction-only skill). A small local script (scripts/decompose.py) is included; there are no downloads, package installs, or archive extraction. No install-time execution from external URLs is present.
Credentials
The skill requests no environment variables, no credentials, and no config paths. There are no secret-like environment names or unrelated credential requests.
Persistence & Privilege
always:false and no special persistence is requested. The skill documents spawning sub-tasks (sessions_spawn) and integration points; autonomous invocation is allowed by platform default but the skill itself does not request elevated or persistent privileges.
Assessment
This skill appears safe and coherent for its stated purpose. Before installing: (1) be aware SKILL.md suggests routing research subtasks to web-access and sessions_spawn — if you don't want the agent to perform network calls or spawn other skills, restrict those platform capabilities or test in a sandbox; (2) the bundled Python script is simple and local (no hidden endpoints), but review it if you require code-auditability; (3) check the pricing/usage terms in README and the GitHub issues link if you need support; and (4) test with non-sensitive goals first to confirm behavior in your environment.

Like a lobster shell, security has layers — review code before you run it.

latestvk976nd8kgyfabsvwa7adfs2m9s85jwg8planningvk976nd8kgyfabsvwa7adfs2m9s85jwg8productivityvk976nd8kgyfabsvwa7adfs2m9s85jwg8task-managementvk976nd8kgyfabsvwa7adfs2m9s85jwg8
45downloads
0stars
1versions
Updated 1d ago
v1.0.0
MIT-0

Goal Decomposer Skill

核心能力

将用户自然语言描述的目标,自动拆解为结构化的任务树:

用户目标:"我想做个产品调研"
    ↓
任务树:
├─ Task 1: 确定调研范围
│  ├─ 1.1 明确产品类别
│  └─ 1.2 确定目标市场
├─ Task 2: 收集数据
│  ├─ 2.1 搜索竞品信息
│  └─ 2.2 整理市场数据
└─ Task 3: 生成报告
   ├─ 3.1 分析优劣势
   └─ 3.2 输出结论

设计原则

  1. MECE原则:任务互斥完全穷尽
  2. 可执行性:每个子任务可独立执行
  3. 层级清晰:不超过3层深度
  4. 优先级排序:标注P0/P1/P2

输入格式

{
  "goal": "用户自然语言目标",
  "context": "背景信息(可选)",
  "constraints": ["约束条件(可选)"]
}

输出格式

{
  "root_goal": "原目标",
  "tasks": [
    {
      "id": "T1",
      "title": "任务标题",
      "priority": "P0",
      "children": [
        {"id": "T1.1", "title": "子任务", "priority": "P0"}
      ],
      "spawn_hint": "建议spawn方式(可选)"
    }
  ],
  "execution_order": ["T1", "T2", "T3"]
}

使用方式

# 方式1:直接调用
import json
result = decompose_goal("做个产品调研")

# 方式2:通过sessions_spawn
sessions_spawn(agentId="goal-decomposer", task="拆解目标:做个产品调研")

与现有能力集成

能力集成方式
RESOLVER任务生成后路由到对应skill
sessions_spawn子任务可独立spawn执行
AUTO-FIX拆解失败触发修复
web-access调研类任务联网获取数据

实现脚本

scripts/decompose.py


⚠️ 常见坑

症状原因解决办法
拆解层级不清目标表述模糊明确"做什么+为什么做"
任务过于碎片缺少MECE检查启用MECE验证开关
依赖关系缺失未标注前提任务检查是否需要前置条件
执行顺序混乱依赖标注遗漏补充"depends_on"字段

Comments

Loading comments...