Works with the AI Agents you already use

    Loop-Everything

    by gino

    1

    Turn vague agent requests into evidence-driven loops with JSON contracts, testable criteria, and hard budgets.

    Free

    Security scanned
    Loop-Everything

    Loop-Everything

    Example session with this skill installed

    /loop I need to fix the intermittent timeout in the auth middleware. Make sure it stays fixed and doesn't break the existing JWT flow.

    • Read your context and instructions
    • Compiled the loop-everything

    I will set up a bounded loop to address the auth middleware timeout. First, I need to understand the constraints and how we will verify the fix.

    What is the highest-risk unknown regarding this timeout? For example, is it reproducible with a specific load, or does it only happen under high network latency?

    Once we identify the cause, we will define a contract to ensure the JWT flow remains intact.

    Proposed Loop Contract

    FieldValue
    GoalResolve intermittent auth middleware timeouts while maintaining JWT integrity.
    AC1npm test tests/auth/timeout.spec.ts passes with 0 exits.
    AC2npm test tests/auth/jwt_flow.spec.ts (existing suite) passes.
    Scopesrc/middleware/auth.ts, tests/auth/
    Forbiddensrc/middleware/session.ts, .env
    BudgetsMax 4 iterations, 20 minute hard stop.
    Human Gatesbefore-finish (Review logic before final merge).

    Next steps

    1. Confirm the verification commands above are correct for your environment.
    2. Identify if any external services need to be mocked for the timeout test.
    3. Approve the contract to begin the first iteration.

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

    About this skill

    Stop agents from declaring victory without proof. This skill enforces a rigorous, evidence-driven workflow that prevents runaway costs and unverified "fixes." It transforms vague coding requests into a formal contract with testable acceptance criteria, explicit budgets, and mandatory human gates.

    What it does

    • Enforces contracts by requiring a .loop/contract.json with goals, criteria, and budgets before any code is written.
    • Verifies progress using shell commands and exit codes to prove success instead of relying on model prose.
    • Manages budgets to stop execution when time, iteration, or failure limits are reached.
    • Controls scope by strictly defining included and forbidden file paths to prevent accidental leaks or unwanted refactors.
    • Implements gates requiring explicit human approval before high-risk actions like deployments, migrations, or spending.

    How it works

    1. Interview phase where the agent asks targeted questions to define goals, testable criteria, and stop conditions.
    2. Drafting phase to generate the JSON contract following the provided schema.
    3. Authorization phase requiring a user confirmation of the contract summary before execution starts.
    4. Execution phase where the agent performs one bounded iteration at a time, running verification commands and recording evidence.

    Frameworks & tools

    The skill is framework-agnostic and works with any CLI-based testing tool like pytest, vitest, or jest. It includes optional support for the loopctl CLI for managed orchestration.

    Why this beats prompting it yourself

    Generic prompts often lead to agents hallucinating success or looping endlessly on a single bug. This skill provides a structured state machine and JSON-backed evidence trail that forces the agent to prove its work through exit codes and recorded logs.

    Use cases

    • Bug fixing where success is defined by a specific failing test passing.
    • Code migration requiring a full build and lint check to pass at every step.
    • Refactoring with strict "no-new-dependency" rules and regression test suites.
    • Resource-heavy tasks that need hard caps on iterations or API cost.

    Known limitations

    Requires a environment capable of executing shell commands for automated verification. Budgets are hard stops and cannot be overridden without creating a new contract.

    • If this helps you in your day-to-day life, I'd love it if you'd give me a star :D

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 17 days ago

    • Free with an Agensi account

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed17 days ago

    What's inside

    Creator

    gino

    gino

    Frequently Asked Questions

    This skill forces agents to operate under a JSON-based contract, requiring verifiable evidence (like shell exit codes) for every action. It prevents "hallucinated success" and runaway costs by setting hard limits on iterations and requiring human approval gates for high-risk changes.

    The skill is framework-agnostic and integrates with any AI agent or platform that supports shell execution and file system access. It works seamlessly with common testing tools like pytest, vitest, and jest to verify progress.

    Yes, you can strictly define included and forbidden file paths within the contract phase. This ensures the agent stays within the designated scope and doesn't accidentally refactor unrelated parts of your codebase.

    You will receive the 'loop everything' skill configuration, the JSON schema for the contract system, and documentation for integrating the optional `loopctl` CLI for managed orchestration.

    When a budget or iteration limit is reached, the skill enforces a hard stop on the agent's execution. To continue, a new contract must be drafted and authorized, ensuring you have full control over additional resource expenditure.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Free