autonomous-loops

Fix .NET build and test failures through bounded autonomous iteration loops.

224|87|Updated Dec 15, 2018
One-click install
npx skills add https://github.com/Resgrid/Core --skill autonomous-loops-resgrid
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: autonomous-loops
Source: https://github.com/Resgrid/Core/tree/main/.opencode/skills/autonomous-loops
Command: npx skills add https://github.com/Resgrid/Core --skill autonomous-loops-resgrid

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps resolve .NET build errors, failing tests, and multi-step refactors by running an AI-driven fix loop that is bounded, progress-aware, and transparent, so the system doesn’t waste time repeating the same ineffective changes.

Core Features & Use Cases

  • Build-Fix Loop: Iteratively runs dotnet build, parses compiler errors, applies targeted fixes by error category, and stops when the build passes or when progress stalls.
  • Test-Fix Loop: Iteratively runs dotnet test, diagnoses whether failures come from test code or production code, applies the correct type of fix, and stops on pass, stuck state, or failure.
  • Refactor and Scaffold Loops: Performs multi-target refactoring with verification after each step, and generates new feature code end-to-end (source, build verification, tests, test verification, and quality checks).
  • Safety Guardrails: Enforces hard iteration caps, exits on regressions or lack of progress, and supports transparent per-iteration reporting with clear statuses (PASS/STUCK/FAIL).

Quick Start

Load autonomous-loops when you need the assistant to keep fixing a .NET solution until it builds, make tests pass, refactor safely with verification, or scaffold and verify a new feature.

Frequently Asked Questions about autonomous-loops

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix .NET build errors automatically without the AI repeating the same ineffective changes?

Bounded loops differ from standard AI fixes by using measurable progress checks, atomic per-iteration state for regression prevention, and transparent reporting with clear PASS, STUCK, or FAIL statuses, ensuring the AI stops when it cannot make further progress.

How do I automatically fix failing .NET tests by iterating until they pass?

A bounded test-fix loop runs dotnet test iteratively, diagnoses whether failures originate from test code or production code, applies the correct type of fix, and stops automatically when tests pass or when progress stalls.

Can I use an autonomous loop to refactor .NET code safely with verification after each step?

Yes, you can refactor .NET code within a bounded loop that performs multi-target refactoring with verification after each step. It uses atomic per-iteration state to prevent regressions and stops if progress stalls or a critical error occurs.

What is the best way to scaffold a new .NET feature end-to-end with build and test verification?

A bounded scaffolding loop generates new .NET feature code end-to-end by creating source files, verifying the build, generating tests, verifying tests pass, and running quality checks, all within a set iteration budget.

Do I need to set a max iteration budget for an autonomous AI build-fix loop?

You should set an explicit max iteration budget before starting. The loop enforces this hard cap and includes fail-safe exit conditions like STUCK, FAIL, and emergency exits on critical or infrastructure errors to prevent infinite loops.

Why does an autonomous AI loop stop fixing my dotnet build before it passes?

Bounded loops differ from standard AI fixes by using measurable progress checks, atomic per-iteration state for regression prevention, and transparent reporting with clear PASS, STUCK, or FAIL statuses, ensuring the AI stops when it cannot make further progress.