goal-plan
What it does
This skill plans a complex goal as a sequence of actions, each with what must be true before it and what it changes. It is for people running multi-step projects who want a clear, adaptable plan.
When to use it
- βWhen a goal has many steps that depend on one another.
- βWhen you want to know the best order of actions before you start.
- βWhen conditions change and the plan needs to be checked again.
Skill link
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-goals/skills/goal-plan/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βPlan the steps to move our store from the old checkout to the new one, in the right order.β
5 new skills a week. 1 minute to read.
How it works
The skill defines what done looks like, lists the available actions with their requirements and effects, and finds a good sequence. It then creates tasks, works through them in order and replans if a step fails.
Technical content (original SKILL.md)
Original text by the author, straight from 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
- Define goal state β what does "done" look like? List concrete success criteria
- Assess current state β what's true now? What assets, code, infrastructure exist?
- Identify gap β what must change between current and goal state?
- 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)
- Generate plan β find the optimal action sequence using A* through the state space
- Record trajectory β call
mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-startto begin tracking - Create tasks β call
mcp__plugin_ruflo-core_ruflo__task_createfor each action in the plan - 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
- Monitor & replan β if an action fails or produces unexpected results:
- Reassess current state
- Recalculate optimal path from new state
- Update remaining tasks
- Complete trajectory β call
mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-end - Store successful plan β call
mcp__plugin_ruflo-core_ruflo__memory_storewith namespacegoap-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
FAQ
What does it check before each step?
It confirms that the requirements for the step still hold, then checks the expected result afterwards.
What happens if a step fails?
The skill reassesses the current state and replans from there.
Does it keep a record of the work?
Yes. It records each step in a trajectory so the work can be reviewed later.
Details
Original description by the author
Create and execute Goal-Oriented Action Plans (GOAP) with precondition analysis, cost optimization, and adaptive replanning
repo: ruvnet/ruflo
Popularity
- GitHub stars
- 81k
- Ranking position
- #1626
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
knowledge-capture
394kTeaches your agent to save decisions, preferences, and key facts to your Knowledge vault as short notes with source attribution.
knowledge-claim-consolidation
394kHelps your agent tidy a Knowledge vault by merging duplicate claims, moving them to the right subject pages, and retiring outdated ones.
knowledge-correct
394kLets your agent fix or withdraw a specific saved Knowledge claim or page at your request, keeping a record of what changed.