Goal Seeking Agent Pattern
CheckedThis agent autonomously breaks down complex tasks into subgoals and iteratively pursues them to achieve a defined objective.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add rysweet/amplihack --skill goal-seeking-agent-pattern -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
rysweet
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill passed all 6 checks. We read its files at one commit and looked for the things that make a skill dangerous to run — not for whether it works.
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No undeclared network calls: passed
Makes no network calls.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned rysweet/amplihack at 84424457d5.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- 84424457d5
- Scanned
- 16 files, 11,818 lines
- Copies in repo
- 2 — all of them scanned
About this skill
The goal-seeking agent pattern enables an AI to autonomously break down high-level objectives into actionable sub-tasks, execute them iteratively, and adjust its strategy based on feedback until a specific target is reached. This approach transforms vague directives into structured workflows, allowing agents to handle complex problems that require sequential decision-making and state tracking.
When to use it
- Assigning multi-step projects where the final outcome depends on completing several intermediate milestones.
- Automating troubleshooting processes where the agent must diagnose issues and apply fixes dynamically.
- Managing inventory or resource allocation tasks that require continuous monitoring and adjustment.
- Orchestrating data analysis pipelines where the agent needs to refine queries based on initial results.
Key capabilities
- Decomposes broad goals into granular, executable steps.
- Maintains internal state to track progress toward the defined objective.
- Iteratively refines actions based on success metrics or failure signals.
- Executes loops until a termination condition is met or the goal is achieved.
Example prompts
- "Plan and execute a strategy to increase our website's conversion rate by 10% over the next week."
- "Diagnose why the API latency has spiked and implement fixes until response times return to normal."
- "Organize a list of unstructured notes into a coherent project roadmap, updating priorities as new deadlines are added."
Tips & gotchas
Ensure you provide clear success criteria or termination conditions; without them, the agent may loop indefinitely. Complex goals should be broken down explicitly if the agent struggles to identify necessary sub-steps autonomously.