- Home
- Skills
- Agents & Orchestration
- Loop-Everything
Works with the AI Agents you already use
Loop-Everything
by gino
Turn vague agent requests into evidence-driven loops with JSON contracts, testable criteria, and hard budgets.
Free
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
| Field | Value |
|---|---|
| Goal | Resolve intermittent auth middleware timeouts while maintaining JWT integrity. |
| AC1 | npm test tests/auth/timeout.spec.ts passes with 0 exits. |
| AC2 | npm test tests/auth/jwt_flow.spec.ts (existing suite) passes. |
| Scope | src/middleware/auth.ts, tests/auth/ |
| Forbidden | src/middleware/session.ts, .env |
| Budgets | Max 4 iterations, 20 minute hard stop. |
| Human Gates | before-finish (Review logic before final merge). |
Next steps
- Confirm the verification commands above are correct for your environment.
- Identify if any external services need to be mocked for the timeout test.
- 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.jsonwith 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
- Interview phase where the agent asks targeted questions to define goals, testable criteria, and stop conditions.
- Drafting phase to generate the JSON contract following the provided schema.
- Authorization phase requiring a user confirmation of the contract summary before execution starts.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Creator
gino
Frequently Asked Questions
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.