planning loops

    1

    Implement adaptive planning loops that decompose goals, handle mid-execution changes, and satisfy complex constraints.

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    planning loops

    Example session with this skill installed

    Decompose the goal 'Build a v1 documentation site using Docusaurus' into executable subgoals until every leaf is a single PR-sized task.

    • Read your context and instructions
    • Compiled the planning loops

    I have initiated a Goal Decomposition loop to break down the documentation site project. I will recursively split the high-level goal into manageable, executable units.

    Goal Decomposition: Docusaurus v1 Site

    Subgoal IDDescriptionStatusType
    G1Environment SetupPendingBranch
    G1.1Initialize Docusaurus project with TypeScript templatePendingLeaf (Executable)
    G1.2Configure GitHub Actions for CI/CD deployment to GH PagesPendingLeaf (Executable)
    G2Content StructurePendingBranch
    G2.1Define sidebar.js hierarchy and category indexingPendingLeaf (Executable)
    G2.2Create placeholder .mdx files for Core Concepts and APIPendingLeaf (Executable)
    G3Theming & BrandPendingBranch
    G3.1Implement custom CSS for brand colors and logo assetsPendingLeaf (Executable)
    G3.2Configure Search (Algolia/Local) and Footer linksPendingLeaf (Executable)

    Next steps

    1. Begin execution of G1.1 (Initialize project) using the Plan-Execute-Replan pattern.
    2. Validate G1.2 configuration once the repository structure is established.
    3. Review the content hierarchy in G2.1 against the project requirements.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Linear plans fail the moment they hit an unexpected dependency or a hidden constraint. This skill moves your agent beyond static to-do lists, implementing adaptive planning loops that treat execution as a source of new information. It ensures your agent doesn't just finish a list of steps, but actually reaches the goal by replanning when reality deviates from the initial hypothesis.

    What it does

    • Plan-Execute-Replan updates the remaining steps whenever execution results invalidate the original strategy.
    • Dynamic Workflow enables state-machine logic where the next step is chosen based on the immediate output of the previous action.
    • Goal Decomposition recursively breaks large, complex objectives into directly executable subgoals before execution begins.
    • Progress Evaluation acts as an objective sanity check to measure actual goal proximity, preventing local successes from masking global drift.
    • Constraint Satisfaction iterates through competing requirements, such as scheduling or resource allocation, until all conditions are met.

    How it works

    1. Initialize the Loop using the loop-ledger to set a goal, max iterations, and the specific exit mode (manual, target, or dry).
    2. Execute and Observe the first step or current state to gather ground-truth data from the environment.
    3. Evaluate and Replan by comparing results against the goal; if a conflict or new information appears, the agent generates a revised sequence.
    4. Monitor for Stalls using the ledger to detect if the agent is repeating the same failed plan or oscillating between identical constraint violations.

    Frameworks & tools

    This skill is designed for agents using loop-ledger for iteration tracking and state management. It is framework-agnostic but requires an environment capable of handling serialized state and multi-step execution cycles.

    Why this beats prompting it yourself

    Standard prompts often result in agents "hallucinating" progress by simply finishing a checklist even if the goal isn't met. This skill enforces a rigorous ledger-based system that distinguishes between task completion and goal attainment, providing specific wiring for handling mid-execution surprises.

    Use cases

    • Service Migrations where breaking changes are discovered incrementally during the porting process.
    • Subsystem Architecture that requires breaking a massive v1 goal into PR-sized executable leaves.
    • Resource Scheduling where jobs must be allocated across machines with competing memory and deadline limits.
    • Long-running Explorations that need periodic progress scoring to ensure the agent hasn't drifted off-track.

    Known limitations

    This skill is not for simple linear tasks where surprises are unlikely. It requires the loop-ledger tool to manage iteration state and prevent infinite loops.

    How to use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean today

    • Free to download with an account

    Listedtoday

    What's inside

    Frequently Asked Questions