iterate

Automate iterative code improvement with atomic changes and automatic rollback.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/fyodoriv/agentbrew --skill iterate-fyodoriv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iterate
Source: https://github.com/fyodoriv/agentbrew/tree/main/skill-plugins/dev/iterate
Command: npx skills add https://github.com/fyodoriv/agentbrew --skill iterate-fyodoriv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the tedious, error-prone process of manual iterative improvements by orchestrating small, reversible changes and tracking outcomes against a target metric.

Core Features & Use Cases

  • Autonomous iteration: baseline → change → verify → keep or discard → repeat, with each kept change stacking and each failed change reverting.
  • Atomic changes with automatic rollback to preserve progress and prevent drift.
  • Phase-driven workflow including setup, baseline measurement, iterative cycles, and final completion, adaptable to lint, test coverage, performance, or other quantifiable goals.

Quick Start

Provide your goal, baseline, and verification commands, then start the loop to iteratively apply a single atomic change at a time.

Frequently Asked Questions about iterate

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

FAQPage Schema
How do I automate iterative code improvements toward a measurable goal?

Automating iterative code improvements requires a deterministic loop that applies one atomic change at a time, verifies the outcome against a baseline metric, and commits or reverts the result. This approach handles tasks like reducing lint warnings or increasing test coverage while maintaining traceable history.

What is atomic change rollback in automated code improvement?

Atomic change rollback is a mechanism that reverts a single modification if verification fails, preventing codebase drift. By isolating each change, the system preserves previously stacked progress and ensures only validated improvements are kept in the final history.

How do I set up a baseline and verification loop for increasing test coverage?

To set up a verification loop for test coverage, you provide your goal, baseline measurement, and verify commands. The system then iteratively applies targeted changes, checks the metric, and keeps or discards each modification based on the verification result.

Does automated iterative improvement work for performance optimization tasks?

Automated iterative improvement works for performance optimization tasks by applying the same baseline, change, verify, and guard cycle. It makes small reversible modifications to targeted modules, measures the performance metric, and reverts any change that degrades results.

What are the limitations of using a deterministic loop for code improvement?

The deterministic loop requires clearly quantifiable goals, explicit baseline metrics, and reliable verification commands. It is limited by the quality of your guard checks and may not suit subjective refactoring tasks that lack measurable success criteria or automated validation.

Can I apply guard checks to prevent bad commits during automated refactoring?

Guard checks can be integrated into the automated refactoring loop to prevent bad commits. The workflow respects these guard commands during each iteration, ensuring that any change violating the constraints is automatically reverted before moving to the next cycle.