Works with the AI Agents you already use

    lex-loop: an 8-step ROM that refuses a skipped test

    by Joshua Almeida

    1

    On every request, run READ, TRANSCRIBE, ISSUE, TEST, DRIVE, LEAN, ESCAPE, RESTART. Fail closed if the test step is skipped; break out instead of looping when stuck. Sits beside a planner or agent, not in place of one.

    $9

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    lex-loop: an 8-step ROM that refuses a skipped test

    lex-loop: an 8-step ROM that refuses a skipped test

    Example session with this skill installed

    "Add a --json flag to the CLI and then we're done."

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

    The agent runs Lex on this request rather than jumping straight to a patch.

    • READ: the user wants a --json flag on the existing CLI.
    • TRANSCRIBE: brief: add a --json option, keep current text output as the default, and prove it with a test or a recorded command.
    • ISSUE: the next action is to inspect the current argument parser and add the flag.
    • TEST (planned): after the change, run the existing CLI tests, then invoke the CLI with --json on a known input and check the output is valid JSON. If this step is skipped, the cycle fails.
    • DRIVE: the agent adds the flag and a test.
    • LEAN: the first test run fails because pretty-printed output is not valid JSON. The agent adjusts the encoder.
    • ESCAPE would have fired if the same encoder error had repeated without a new plan. It does not, because the heading changed.
    • RESTART: the eight steps reload for whatever comes next.

    The agent then runs the test it promised. It passes. Only then does it say the flag is in.

    A second, failed cycle is also shown to the user as a contrast: an assistant that added --json, ran no test, and announced "done" would have skipped TEST. Under this skill that cycle is rejected, and the agent has to run the check or report that it cannot.

    Result, as reported to the user: "Added --json, default text output unchanged. I did not call it done on the first patch: the first JSON output was pretty-printed and failed the check, so I fixed the encoder and re-ran the test. The test passed. I have not committed or opened a pull request unless you want that."

    You can also run python3 scripts/robot_loop.py to see one synthetic cycle printed, then the queue reloaded at READ.

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

    About this skill

    Lex is an 8-step robot ROM you run beside a planner, controller, or coding agent. It does not replace that stack. It makes sense, test, escape, and restart first-class so those steps are harder to skip.

    The loop is

    Read → transcribe → issue → test → drive → lean → escape → restart

    READ takes in the ask. TRANSCRIBE turns it into a plain brief. ISSUE emits the next concrete action. TEST checks that action against what was asked, and fails closed if the check is skipped. DRIVE executes. LEAN adjusts if something is off. ESCAPE breaks contact when the work is stuck, instead of looping forever. RESTART reloads the eight tasks and returns to READ.

    Coding agents often issue a change and move on without a real check, or retry the same failing edit without breaking out. Lex treats those as failed cycles. The included scripts/robot_loop.py prints one cycle plus a restart so you can see the ROM fire. The printed log is a checklist, not a claim that Lex made an agent smarter or a robot walk.

    This listing is free. The same pattern is published under MIT in the public repository linked above.

    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

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 16 days ago

    Requires

    Nothing to install.

    Permissions

    Terminal / Shell
    Listed16 days ago

    What's inside

    Frequently Asked Questions

    On every request, run READ, TRANSCRIBE, ISSUE, TEST, DRIVE, LEAN, ESCAPE, RESTART. Fail closed if the test step is skipped; break out instead of looping when stuck. Sits beside a planner or agent, not in place of one.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use lex-loop: an 8-step ROM that refuses a skipped test on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    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.