SkillsReviewed · davidondrej

goal-loop

goal-loop is an instruction skill for AI coding-agent users who want persistent work on defined tasks, but it requires an agent that already supports goal loops. It helps specify objectives, constraints, validation commands and stopping conditions, with guidance for monitoring and recovery.

Researched 16 Nov 2026

In short.

goal-loop is an instruction skill for developers using AI agents to pursue measurable tasks, but automatic continuation depends on the chosen agent's goal support. It supplies a structured task contract, examples for migrations and test coverage, and guidance for starting, supervising and recovering autonomous work. Its practical value is making completion criteria and boundaries explicit. Runtime compatibility, operating cost and execution reliability are not established by the supplied material.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete supplied skills/goal-loop folder snapshot, containing skills/goal-loop/SKILL.md, together with the repository-root LICENSE supplied as the applicable notice outside that folder. Other repository skills, agent implementations, official runtime documentation and the linked external article are outside this scope. No files were executed; installation, compatibility, persistent operation, recovery behavior, costs and task outcomes were not tested.

The overview

Identity

goal-loop is published as skills/goal-loop/SKILL.md in the davidondrej/skills repository. Its declared purpose is drafting goal prompts and explaining persistent agent loops, including setup, monitoring and troubleshooting. The supplied skill folder contains one instruction file.

The original resource location is [https://github.com/davidondrej/skills/tree/main/skills/goal-loop]. The document describes loops sometimes called Ralph loops; their implementation belongs to the agent runtime.

Assessment

The skill is most useful when a task has an observable finish, such as passing relevant tests or meeting a defined evaluation threshold. Its strongest feature is connecting an objective to constraints, an exact validation command and a stopping rule.

It also addresses practical failure modes: unclear objectives, weakened tests, unrelated changes and uncertain session persistence. These are written instructions; their effect on agent behavior, completion rates or output quality has not been demonstrated.

Users

The intended audience includes developers using coding agents for migrations, coverage improvements, test-driven features, refactors with contract tests and bug reproduction followed by repair. The document also identifies prompt and evaluation optimization as a possible use.

Beginners need enough project knowledge to choose meaningful checks and recognize when a decision requires human input. Experienced developers may find the explicit constraints and acceptance criteria useful for delegating bounded work. The author advises against vague exploration, production credentials and destructive operations on shared infrastructure.

Capabilities

The skill guides an assistant to draft a goal contract containing an objective, files to read, constraints, validation commands, checkpoints and a verifiable stopping condition. It calls for precise paths and commands, limits on unrelated changes and an explicit prohibition on weakening tests to achieve a passing result.

It also covers checking runtime support, inspecting status, pausing or resuming work, diagnosing startup problems and correcting drift. For badly drifted work, it recommends reviewing the diff and undoing only changes attributable to that run while preserving other contributors' work.

Using it

Requirements

The chosen assistant needs a way to use the skill instructions and a runtime that supports persistent goals. The document provides no supported-agent list, minimum version or compatibility matrix. Command availability, feature flags, authentication, limits and lifecycle behavior must be established for the actual agent and interface.

For code work, the document requires a working build and relevant checks before beginning. Users must supply a concrete outcome and suitable validation commands. For overnight operation, it notes that the machine must remain awake.

Mechanism

The document describes a runtime repeatedly planning, acting, testing, reviewing and iterating. If a turn finishes before the goal is met, a supported runtime continues automatically until a stopping condition, user pause or token-budget limit ends the loop.

The skill supplies instructions for defining and supervising this process. Actual continuation, budget handling, saved state and pause or resume behavior depend on the runtime. Its contract centers on four elements: objective, constraints, validation command and stop condition.

Setup

The captured material does not provide a skill installation command or registration path. Use the chosen assistant's documented skill-loading method, then establish which goal controls its installed version and interface support.

Identify the working directory and session, establish the required checks, and draft the contract. For an interface supporting /goal, the document separates the contract body from the command the user adds when launching it. After starting, confirm that the goal is active and that status and stop controls are available.

Before resuming across sessions, determine where the runtime stores goal state and which session must be reopened. The document cautions against assuming persistence or automatic resumption after a budget refresh.

Example

The migration example asks an agent to move a project from Pydantic v1 to v2 after reading pyproject.toml, src/ and tests/. Its constraints preserve the project's public API, allow compatibility shims and prohibit new dependencies.

The example specifies relevant tests during the work and pytest -q before completion. Its stopping condition is a passing full suite with zero deprecation warnings, or a change requiring an architecture decision. This is an illustrative contract; no completed migration, test configuration or execution result is supplied.

Assessment & evidence

Limitations

The instruction file supplies no loop engine, runtime integration or demonstrated compatibility. Nothing was executed, so automatic continuation, pause and resume behavior, constraint adherence and recovery remain untested.

The document's safeguards depend on an agent following instructions and a user choosing meaningful acceptance checks. A task without a clear definition of completion remains a poor fit. Passing checks cannot establish requirements those checks do not cover.

No benchmarks, measured productivity gains, token-consumption results or evidence of successful unattended operation are supplied.

Reasoning

The contract makes the intended outcome and the evidence required for completion explicit. Constraints bound the work, while a stopping condition for human decisions gives the agent a defined point to hand control back.

The prohibition on deleting, skipping or weakening tests aims to prevent an agent from satisfying the metric while defeating the task. Matching checks to the change and reviewing the final diff support the same goal. These are advantages inferred from the instruction design; their effectiveness is not measured.

Alternatives

For exploratory work or an unclear objective, the document's distinction between a goal and /plan suggests starting with planning and human decisions before attempting persistent execution. No comparison of specific planning tools or competing skills is provided.

For drafting the contract, it offers another approach: give a second AI session repository access, have it identify assumptions and edge cases, and pass the resulting contract to the goal-running agent. The relative quality and cost of this approach are unknown.

Evidence

The behavioral guidance comes from skills/goal-loop/SKILL.md at repository revision f8a5e2bc079a1d58410f212bed29815cae23dcf1. Its original file is available at [https://raw.githubusercontent.com/davidondrej/skills/f8a5e2bc079a1d58410f212bed29815cae23dcf1/skills/goal-loop/SKILL.md].

The repository LICENSE at the same revision supplies the usage terms. The available evidence consists of these two text files; it contains no runtime implementation, execution logs or benchmark results.

Access & freshness

Costs

The supplied material gives no runtime prices, token rates, usage measurements or cost-saving results. It mentions token budgets as a stopping limit, which does not establish the price or total consumption of a run.

The cost of operating the skill with a particular agent, model and host is unknown.

Rights

The supplied repository LICENSE is the MIT License, with copyright attributed to David Ondrej in 2026. It permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notices remain in copies or substantial portions.

The license supplies the material without warranty and disclaims liability. Copies of the skill should retain the applicable notice. The original notice is available at [https://raw.githubusercontent.com/davidondrej/skills/f8a5e2bc079a1d58410f212bed29815cae23dcf1/LICENSE].

Freshness

The supplied snapshot was captured on 16 November 2026 at 12:07:42 UTC and identifies revision f8a5e2bc079a1d58410f212bed29815cae23dcf1. This identifies the source snapshot, not a numbered skill release.

The capture timestamp does not establish the file's last modification date. Later upstream changes and compatibility with current agent releases are unknown. The document itself treats runtime commands and lifecycle behavior as details requiring verification.

Actions

Begin with a small task whose success can be checked, establish a working baseline, and verify the chosen interface's start, status and stop controls. Define the objective, protected boundaries, exact validation command and stopping condition before launching.

Include limits on unrelated changes and test weakening, inspect progress periodically, and review the diff before merging. For a later session, establish the runtime's persistence behavior before resuming. These are adoption steps described by the skill, not completed actions.

Evidence for this report

LICENSEnotice · checked 2026-11-16
skills/goal-loop/SKILL.mdselected · checked 2026-11-16