refine-loop

Automate iterative review-and-fix loops to reduce code quality issues.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/sato-dev1234/claude-code-sample --skill refine-loop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refine-loop
Source: https://github.com/sato-dev1234/claude-code-sample/tree/main/skills/refine-loop
Command: npx skills add https://github.com/sato-dev1234/claude-code-sample --skill refine-loop

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The refine-loop skill automates an iterative review and fix cycle that reduces persistent code quality issues by repeatedly reviewing and applying fixes until no actionable issues remain or the maximum iterations are reached.

Core Features & Use Cases

  • Automated multi-type review: code, tests, code-tests, ui-tests, docs, and AC reports, executed in parallel where applicable.
  • Context-driven iterations: tracks TICKET_PATH, SCOPE, FILE_PATH or CONTENT/KNOWLEDGE, and enforces a MAX_ITERATIONS limit.
  • End-to-end workflow: saves state per type, executes a guided protocol, then generates a final report and cleans up.

Quick Start

Start the refine loop by selecting a type and providing a ticket or file reference, then let the loop run until issues are resolved or the maximum iterations are reached.

Frequently Asked Questions about refine-loop

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

FAQPage Schema
How do I automate iterative code review and fixes until no issues remain?

Automated iterative code review runs a review-and-fix loop that repeatedly applies fixes to code until no actionable issues remain or the maximum iteration limit is reached. It processes code, tests, UI tests, docs, and AC reports.

What is an iterative review-and-fix loop for code quality?

An iterative review-and-fix loop is an automated workflow that continuously reviews code quality and applies fixes until all actionable issues are resolved. It tracks context like ticket paths, scope, and file references across multiple iterations.

How do I start an automated code review loop for uncommitted branch changes?

To start the loop, provide a ticket or file reference and define the scope as uncommitted or branch. The workflow then executes guided protocol iterations, saves state per type, and generates a final report upon completion.

Can I use automated code review for documentation and acceptance criteria reports?

Yes, automated iterative review supports multiple artifact types including code, tests, code-tests, UI tests, docs, and AC reports. For documentation generation, you can supply optional knowledge alongside the file path or content.

Does the iterative code fix workflow enforce a limit on review iterations?

Yes, the workflow enforces a configurable MAX_ITERATIONS limit to control the review-and-fix cycle. The loop automatically terminates when no actionable issues remain or when it reaches the maximum iteration boundary.

Best way to reduce persistent code quality issues across different artifact types?

The best way is running an automated multi-type review that executes parallel checks across code, tests, docs, and AC reports. This context-driven approach saves per-type state and applies fixes iteratively until issues are resolved.