Goal plan

From ruvnet/ruflo · View interactive version

Goal plan is an AI agent skill from the GitHub repository ruvnet/ruflo. Create and execute Goal-Oriented Action Plans (GOAP) with precondition analysis, cost optimization, and adaptive replanning

How to use this skill

Skill file

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:
  1. Generate plan — find the optimal action sequence using A* through the state space
  2. Record trajectory — call mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-start to begin tracking
  3. Create tasks — call mcp__plugin_ruflo-core_ruflo__task_create for each action in the plan
  4. Execute — work through tasks in dependency order:
  1. Monitor & replan — if an action fails or produces unexpected results:
  1. Complete trajectory — call mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-end
  2. 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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.