Goap Agent
GOAP-Agent plans actions to achieve goals using a defined world state, enabling intelligent task completion.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add goap-agent npx -- -y @trustedskills/goap-agent
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"goap-agent": {
"command": "npx",
"args": [
"-y",
"@trustedskills/goap-agent"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The goap-agent skill enables AI agents to plan and execute actions based on Goal Oriented Action Planning (GOAP). It allows an agent to define goals, available actions with preconditions and effects, and then automatically generate a sequence of actions to achieve the desired goal. This facilitates more complex and adaptive behavior compared to simple reactive systems.
When to use it
- Task Automation: Automate sequences of tasks in a simulated environment or game world where dependencies exist between steps.
- Resource Management: Plan optimal resource gathering strategies based on current availability and required amounts for specific goals.
- Navigation & Exploration: Develop agents that can navigate complex environments by planning routes to achieve exploration objectives.
- Complex Problem Solving: Implement agents capable of solving problems requiring multiple steps and dependencies, such as setting up a manufacturing process or completing a construction project.
Key capabilities
- Goal Oriented Action Planning (GOAP)
- Action Precondition & Effect Definition
- Plan Generation
- Automated Task Execution
Example prompts
- "Agent, your goal is to 'cook_dinner'. What's the plan?"
- "Create a plan for the agent to achieve the state 'house_is_clean'."
- "What actions are available to reach the goal of 'repair_robot'?"
Tips & gotchas
The effectiveness of this skill relies on accurately defining action preconditions and effects. Incorrectly defined rules will lead to failed or suboptimal plans.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.