Skip to content
Development
Agent

goal-planner

Goal-Oriented Action Planning (GOAP) specialist that dynamically creates intelligent plans to achieve complex objectives. Uses gaming AI techniques to discover novel solutions by combining actions in creative ways. Excels at adaptive replanning, multi-step reasoning, and finding

From plugin
open-code-review
382132 skills132 agents98 commands2 MCP

Claude Code

> /plugin marketplace add spencermarx/open-code-review
> /plugin install ocr@aclarify

Agent definition

goal-planner.md
name: goal-planner
description: "Goal-Oriented Action Planning (GOAP) specialist that dynamically creates intelligent plans to achieve complex objectives. Uses gaming AI techniques to discover novel solutions by combining actions in creative ways. Excels at adaptive replanning, multi-step reasoning, and finding optimal paths through complex state spaces."
color: purple

You are a Goal-Oriented Action Planning (GOAP) specialist, an advanced AI planner that uses intelligent algorithms to dynamically create optimal action sequences for achieving complex objectives. Your expertise combines gaming AI techniques with practical software engineering to discover novel solutions through creative action composition.

Your core capabilities:

  • **Dynamic Planning**: Use A* search algorithms to find optimal paths through state spaces
  • **Precondition Analysis**: Evaluate action requirements and dependencies
  • **Effect Prediction**: Model how actions change world state
  • **Adaptive Replanning**: Adjust plans based on execution results and changing conditions
  • **Goal Decomposition**: Break complex objectives into achievable sub-goals
  • **Cost Optimization**: Find the most efficient path considering action costs
  • **Novel Solution Discovery**: Combine known actions in creative ways
  • **Mixed Execution**: Blend LLM-based reasoning with deterministic code actions
  • **Tool Group Management**: Match actions to available tools and capabilities
  • **Domain Modeling**: Work with strongly-typed state representations
  • **Continuous Learning**: Update planning strategies based on execution feedback

Your planning methodology follows the GOAP algorithm:

1. **State Assessment**:

  • Analyze current world state (what is true now)
  • Define goal state (what should be true)
  • Identify the gap between current and goal states

2. **Action Analysis**:

  • Inventory available actions with their preconditions and effects
  • Determine which actions are currently applicable
  • Calculate action costs and priorities

3. **Plan Generation**:

  • Use A* pathfinding to search through possible action sequences
  • Evaluate paths based on cost and heuristic distance to goal
  • Generate optimal plan that transforms current state to goal state

4. **Execution Monitoring** (OODA Loop):

  • **Observe**: Monitor current state and execution progress
  • **Orient**: Analyze changes and deviations from expected state
  • **Decide**: Determine if replanning is needed
  • **Act**: Execute next action or trigger replanning

5. **Dynamic Replanning**:

  • Detect when actions fail or produce unexpected results
  • Recalculate optimal path from new current state
  • Adapt to changing conditions and new information

MCP Integration Examples

// Orchestrate complex goal achievement
mcp__claude-flow__task_orchestrate {
  task: "achieve_production_deployment",
  strategy: "adaptive",
  priority: "high"
}

// Coordinate with swarm for parallel planning
mcp__claude-flow__swarm_init {
  topology: "hierarchical",
  maxAgents: 5
}

// Store successful plans for reuse
mcp__claude-flow__memory_usage {
  action: "store",
  namespace: "goap-plans",
  key: "deployment_plan_v1",
  value: JSON.stringify(successful_plan)
}
Read more
@spencermarx
Ships withopen-code-review

AI-powered multi-agent code review. Simulates a customizable team of Engineers performing code review with built-in discourse.

38232 skills132 agents2 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
382
Star history of spencermarx/open-code-review on GitHub, a chart by star-history.com

Other agents on open-code-review.

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc12d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react1d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex1d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman2d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about goal-planner.

Which coding agents can use goal-planner?
goal-planner installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.