Agent skill

Goal Plan

by ruvnet in ruvnet/ruflo

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

MITAuto-check: notes

Install Goal Plan

skills CLI
$ npx skills add ruvnet/ruflo --skill goal-plan -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ruvnet/ruflo goal-plan --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ruvnet/ruflo.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ruflo-goals/skills/goal-plan .claude/skills/goal-plan && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
goal-plan
GitHub stars
74k
Token cost
~807 tokens
SKILL.md length
224 words
Files
1
Skills in repo
265
Repo updated
First seen
Licence
MIT

At a glance

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

  • Works in 11 steps: Define goal state — what does "done"… → Assess current state — what's true now?… → Identify gap — what must change between… → …
  • SKILL.md covers When to use, Steps, Plan output format and Replanning triggers
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

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

Its SKILL.md is about 810 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Model Context Protocol. The repository describes itself as: 🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory…. The licence is MIT.

Example prompts

  • “/goal-plan”

Requirements

  • Pre-approved tools (allowed-tools): mcp__plugin_ruflo-core_ruflo__task_create, mcp__plugin_ruflo-core_ruflo__task_list, mcp__plugin_ruflo-core_ruflo__task_status, mcp__plugin_ruflo-core_ruflo__task_assign, mcp__plugin_ruflo-core_ruflo__task_update, mcp__plugin_ruflo-core_ruflo__task_complete, mcp__plugin_ruflo-core_ruflo__task_summary, mcp__plugin_ruflo-core_ruflo__memory_store, mcp__plugin_ruflo-core_ruflo__memory_search, mcp__plugin_ruflo-core_ruflo__neural_predict, mcp__plugin_ruflo-core_ruflo__workflow_create, mcp__plugin_ruflo-core_ruflo__workflow_execute, mcp__plugin_ruflo-core_ruflo__workflow_status, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-start, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-step, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-end, Bash, Read, Write, Edit

Workflow steps

11 steps, taken from the first numbered list in SKILL.md.

  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
  5. Generate plan — find the optimal action sequence using A* through the state space
  6. Record trajectory — call mcpplugin_ruflo-core_ruflohooks_intelligence_trajectory-start to begin tracking
  7. Create tasks — call mcpplugin_ruflo-core_ruflotask_create for each action in the plan
  8. Execute — work through tasks in dependency order
  9. Monitor & replan — if an action fails or produces unexpected results
  10. Complete trajectory — call mcpplugin_ruflo-core_ruflohooks_intelligence_trajectory-end
  11. Store successful plan — call mcpplugin_ruflo-core_ruflomemory_store with namespace goap-plans

What it can do on your machine

Read from SKILL.md and the folder at commit 6c04654. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • mcp__plugin_ruflo-core_ruflo__task_create
    • mcp__plugin_ruflo-core_ruflo__task_list
    • mcp__plugin_ruflo-core_ruflo__task_status
    • mcp__plugin_ruflo-core_ruflo__task_assign
    • mcp__plugin_ruflo-core_ruflo__task_update
    • mcp__plugin_ruflo-core_ruflo__task_complete
    • mcp__plugin_ruflo-core_ruflo__task_summary
    • mcp__plugin_ruflo-core_ruflo__memory_store
    • mcp__plugin_ruflo-core_ruflo__memory_search
    • mcp__plugin_ruflo-core_ruflo__neural_predict

    …and 10 more on the same allowed-tools line.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Goal Plan loads about 807 tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 224 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~33
When it runs · the whole SKILL.md, loaded when a task matches
~807

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: mcp__plugin_ruflo-core_ruflo__task_create, mcp__plugin_ruflo-core_ruflo__task_list, mcp__plugin_rufl

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ruvnet/ruflo at commit 6c04654, republished under its MIT licence (© ruvnet). 224 words, ~807 tokens.

Download SKILL.mdSave it as .claude/skills/goal-plan/SKILL.md (or your agent's skills folder).
name
goal-plan
description
Create and execute Goal-Oriented Action Plans (GOAP) with precondition analysis, cost optimization, and adaptive replanning
allowed-tools
mcp__plugin_ruflo-core_ruflo__task_create, mcp__plugin_ruflo-core_ruflo__task_list, mcp__plugin_ruflo-core_ruflo__task_status, mcp__plugin_ruflo-core_ruflo__task_assign, mcp__plugin_ruflo-core_ruflo__task_update, mcp__plugin_ruflo-core_ruflo__task_complete, mcp__plugin_ruflo-core_ruflo__task_summary, mcp__plugin_ruflo-core_ruflo__memory_store, mcp__plugin_ruflo-core_ruflo__memory_search, mcp__plugin_ruflo-core_ruflo__neural_predict, mcp__plugin_ruflo-core_ruflo__workflow_create, mcp__plugin_ruflo-core_ruflo__workflow_execute, mcp__plugin_ruflo-core_ruflo__workflow_status, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-start, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-step, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-end, Bash, Read, Write, Edit
argument-hint
<goal-description>

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

© ruvnet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/ruflo-goals/skills/goal-plan of ruvnet/ruflo.

Open the folder on GitHubat commit 6c04654

Compare with similar skills

Goal Plan next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Goal Plan compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Goal Plan this skillruvnet/ruflo74k—~807Automated safety check: NotesMIT
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
MCP Server BuildershareAI-lab/learn-claude-code78k4 repos~1.2kAutomated safety check: PassMIT
MCP Integration for Pluginsanthropics/claude-plugins-official38k11 repos~3.1kAutomated safety check: PassApache-2.0
Figma use_figma Plugin API Ruleswarpdotdev/warp65k4 repos~4.4kAutomated safety check: PassAGPL-3.0
Stitch to Remotion Walkthrough Videosgoogle-labs-code/stitch-skills8.5k6 repos~3.2kAutomated safety check: NotesApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 4 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • MCP Integration for Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to bundle Model Context Protocol servers in a Claude Code plugin, covering config files, stdio, SSE, HTTP and WebSocket server types, and authentication.

    38k GitHub starsUsed in 11 repos~3.1k tokens
    Agent WorkflowsAuto-check passed
  • Required groundwork before any use_figma call: the rules and reference files for running JavaScript in a Figma file through the Plugin API without common failures.

    65k GitHub starsUsed in 4 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Stitch to Remotion Walkthrough Videos

    google-labs-code/stitch-skills

    Official

    Builds walkthrough videos from Stitch design projects using Remotion, with transitions, zoom effects and text overlays on each screen.

    8.5k GitHub starsUsed in 6 repos~3.2k tokens
    Media & CreativeAuto-check: notes
  • MCP Development

    coollabsio/coolify

    A skill your agent uses for Laravel MCP development. An agent skill from coollabsio/coolify.

    63k GitHub starsUsed in 1 repo~949 tokens
    Frontend & DesignAuto-check passed

More from ruvnet/ruflo

All 265 skills in this repo
  • Stores, searches, and retrieves successful patterns with HNSW-indexed semantic search so agents can reuse past solutions instead of relearning them.

    74k GitHub starsUsed in 2 repos~830 tokens
    Auto-check passed
  • Runs claude-flow CLI security scans for input validation, path traversal, SQL injection, XSS, hardcoded secrets and known CVEs, and writes an audit report.

    74k GitHub starsUsed in 2 repos~823 tokens
    Auto-check passed
  • Applies the SPARC method (specification, pseudocode, architecture, refinement, completion) with 17 specialized modes and multi-agent orchestration, from research to deployment.

    74k GitHub starsUsed in 2 repos~829 tokens
    Auto-check passed
  • Coordinates a hierarchical swarm of specialized agents through the claude-flow CLI for work that spans several files or modules at once.

    74k GitHub starsUsed in 2 repos~779 tokens
    Auto-check passed
  • Sets up and drives Ruflo, an npm-installed orchestration layer for multi-agent swarms, persistent memory, routing, hooks and its MCP tool catalog.

    74k GitHub starsUsed in 1 repo~975 tokens
    Auto-check passed
  • Agent Coordination

    ruvnet/ruflo

    Reference for spawning, listing, monitoring and stopping agents with claude-flow commands, with agent type families, routing codes and coordination tips.

    74k GitHub starsUsed in 2 repos~519 tokens
    Auto-check passed

Questions about Goal Plan

What does Goal Plan do?

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

How do I install Goal Plan in Claude Code?

Run `npx skills add ruvnet/ruflo --skill goal-plan -a claude-code`. Or copy the skill folder (plugins/ruflo-goals/skills/goal-plan in ruvnet/ruflo) into .claude/skills/goal-plan in your project. Claude Code loads it when a task matches its description.

How do I install Goal Plan in Codex?

Run `npx skills add ruvnet/ruflo --skill goal-plan -a codex`. Or copy the skill folder (plugins/ruflo-goals/skills/goal-plan in ruvnet/ruflo) into .agents/skills/goal-plan in your project. Codex loads it when a task matches its description.

Can I use Goal Plan in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ruvnet/ruflo --skill goal-plan -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/goal-plan, .gemini/skills/goal-plan, .github/skills/goal-plan and .opencode/skills/goal-plan in your project.

What does Goal Plan need to run?

SKILL.md names no scripts, command-line tools or credentials: Goal Plan is instructions for the agent only. Its frontmatter pre-approves these tools: mcp__plugin_ruflo-core_ruflo__task_create, mcp__plugin_ruflo-core_ruflo__task_list, mcp__plugin_ruflo-core_ruflo__task_status, mcp__plugin_ruflo-core_ruflo__task_assign, mcp__plugin_ruflo-core_ruflo__task_update, mcp__plugin_ruflo-core_ruflo__task_complete, mcp__plugin_ruflo-core_ruflo__task_summary, mcp__plugin_ruflo-core_ruflo__memory_store, mcp__plugin_ruflo-core_ruflo__memory_search, mcp__plugin_ruflo-core_ruflo__neural_predict, mcp__plugin_ruflo-core_ruflo__workflow_create, mcp__plugin_ruflo-core_ruflo__workflow_execute, mcp__plugin_ruflo-core_ruflo__workflow_status, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-start, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-step, mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-end, Bash, Read, Write, Edit.

Does Goal Plan access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Goal Plan safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Goal Plan use?

Goal Plan is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Goal Plan use?

About 807 tokens (SKILL.md is roughly 3.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Goal Plan?

Skills that share tags, products or a category with Goal Plan: MCP Server Builder (anthropics/skills, 180k stars), MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars), MCP Integration for Plugins (anthropics/claude-plugins-official, 38k stars) and Figma use_figma Plugin API Rules (warpdotdev/warp, 65k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Goal Plan?

ruvnet (a GitHub user) maintains it in ruvnet/ruflo, which has 74,222 GitHub stars. The repository holds 265 skills in this directory. The repository was last updated on October 10, 2026.

Source: ruvnet/ruflo on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.