跳到正文
Skillpedia
任务与项目81k · #1626

goal-plan

它能做什么

这项技能把复杂目标规划为一系列行动,每个行动都说明执行前必须成立的条件以及它会带来的改变。适合进行多步骤项目、希望计划清晰且可调整的人。

适用场景

  • ✓当一个目标包含许多相互依赖的步骤时。
  • ✓当你想在开始前知道最佳的行动顺序时。
  • ✓当情况发生变化,计划需要重新检查时。

技能链接

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-goals/skills/goal-plan/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-goals/skills/goal-plan/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请把我们店铺从旧结账方式迁移到新结账方式的步骤按正确顺序规划出来。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能定义“完成”的标准,列出可用行动及其前提条件和效果,并找到合理的顺序。然后它创建任务,按顺序完成,并在某一步失败时重新规划。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Goal Plan

Create and execute intelligent plans using Goal-Oriented Action Planning (GOAP).

When to use

When you have a complex objective that requires multiple steps, has dependencies between steps, and may need adaptive replanning as conditions change.

Steps

  1. Define goal state — what does "done" look like? List concrete success criteria
  2. Assess current state — what's true now? What assets, code, infrastructure exist?
  3. Identify gap — what must change between current and goal state?
  4. Inventory actions — list available actions with:
    • Preconditions (what must be true before this action)
    • Effects (what becomes true after this action)
    • Cost estimate (time, complexity, risk)
  5. Generate plan — find the optimal action sequence using A* through the state space
  6. Record trajectory — call mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-start to begin tracking
  7. Create tasks — call mcp__plugin_ruflo-core_ruflo__task_create for each action in the plan
  8. Execute — work through tasks in dependency order:
    • Before each action: verify preconditions still hold
    • After each action: verify effects achieved
    • Record each step via mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-step
  9. Monitor & replan — if an action fails or produces unexpected results:
    • Reassess current state
    • Recalculate optimal path from new state
    • Update remaining tasks
  10. Complete trajectory — call mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-end
  11. Store successful plan — call mcp__plugin_ruflo-core_ruflo__memory_store with namespace goap-plans

Plan output format

Goal: [concrete objective]
Current State: [key facts]
Plan Cost: [estimated effort]
Steps:
  1. [action] — precondition: [X], effect: [Y], cost: [Z]
  2. [action] — precondition: [Y], effect: [W], cost: [Z]
  ...
Risk Factors: [what could force a replan]
Fallback: [alternative approach if primary path fails]

Replanning triggers

  • Action fails (precondition no longer met)
  • Unexpected side effects detected
  • New information changes goal definition
  • Cost exceeds threshold
  • External dependency becomes unavailable
常见问题

每一步之前它会检查什么?

它先确认该步骤的前提条件仍然成立,然后在之后检查预期结果。

如果某一步失败了会怎样?

这项技能会重新评估当前状态,并从该处重新规划。

它会保留工作记录吗?

会。它把每一步记录在操作轨迹中,以便之后审查工作。

详情

作者的原始描述

Create and execute Goal-Oriented Action Plans (GOAP) with precondition analysis, cost optimization, and adaptive replanning

repo: ruvnet/ruflo

热度

GitHub 星标
81k
排名
#1626
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能