Skip to content
Back to skills

Code Quality Loop

ASecurity

Iterative review-fix loop on the uncommitted change: with lifecycle on, reviews, fixes, simplifies and consolidates tests, as a paired-session review-only run (`run --review-only`). Use when the user wants the uncommitted change reviewed and fixed until clean ('clean up my changes', 'review and fix my diff', 'polish this before I commit', 'run code-quality-loop'). Not for a report-only or PR review (use review-pr), new work from a work item (use review-loop) or a pure file restructure (use re...

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
developmentbashgit

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add NYTC69/review-loop --skill code-quality-loop --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Quality Loop?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Quality Loop
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nytc69-code-quality-loop/badge)](https://www.skillsdirectory.com/skills/nytc69-code-quality-loop)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-quality-loop
description: "Iterative review-fix loop on the uncommitted change: with lifecycle on, reviews, fixes, simplifies and consolidates tests, as a paired-session review-only run (`run --review-only`). Use when the user wants the uncommitted change reviewed and fixed until clean ('clean up my changes', 'review and fix my diff', 'polish this before I commit', 'run code-quality-loop'). Not for a report-only or PR review (use review-pr), new work from a work item (use review-loop) or a pure file restructure (use reorganize)."
argument-hint: "[max-rounds]"
---

# Code Quality Loop

Automated code review cycle: review -> fix -> re-review until clean. Focuses on code-level quality (correctness, style, error handling, tests).
It runs as a paired-session review-only run (Step 0).

## Step 0 — Entry: paired route (the legacy workflow was removed in v2.13.0)

Resolve `entry` in `.review-loop/config.md` (exact values `legacy` and `paired-session`): `legacy` is refused with
`code-quality-loop: the legacy workflow was removed in v2.13.0; remove "entry: legacy" from .review-loop/config.md (paired-session is the only entry)`; an invalid value prints
`code-quality-loop: entry "<v>" is not valid (paired-session is the only entry); using paired-session`, a duplicate key or
an unreadable config prints `code-quality-loop: entry could not be read (<reason>); using paired-session`, and both
continue as absent. Then:
- `--legacy` in `$ARGUMENTS`: refused with `code-quality-loop: the legacy workflow was removed in v2.13.0; run /review-loop:code-quality-loop without --legacy`.
- A host that is neither macOS (`uname -s` is `Darwin`) nor native Windows (Git Bash: `uname -s` starts with
  `MINGW64_NT-` or `MSYS_NT-`): refused with `code-quality-loop: paired-session needs macOS or native Windows; Linux (WSL included) and other hosts are not supported`.
- Otherwise the paired route. This skill owns the notice lines of steps 1 and 3: print each verbatim as visible reply text (not only in a tool call), as the first output after resolving `entry` and before any other tool call or skill invocation, also on a headless run. The paired-session skill prints them only when they are missing.
  1. Print `code-quality-loop: paired-session review-only run (entry set in .review-loop/config.md)` when the
     key is set, or
     `code-quality-loop: paired-session review-only run (the default entry)`
     when it is absent.
  2. Map the arguments; a refused one stops here with its line, before any handoff:
     - `[max-rounds]` N: an integer of at least 2 becomes `--max-exec-rounds N` (round 1 reviews the existing
       change; blocking reviews at the cap end in a HOLD) and wins over `soft_limit_exec`; absent, the paired-session skill's usual
       mapping applies (`soft_limit_exec`, else the coordinator default). Anything else is refused:
       `code-quality-loop: max-rounds must be an integer of at least 2 on the paired route (round 1 reviews the existing change)`.
     - `--skip-reorganize`: print `code-quality-loop: --skip-reorganize has no effect; the paired route never reorganizes`.
     - `--reorganize`: refused,
       `code-quality-loop: reorganize is not part of the paired route; run /review-loop:reorganize <files> after the run`.
     - Any other argument: refused,
       `code-quality-loop: unknown argument <arg>; usage: /review-loop:code-quality-loop [max-rounds]`.
     - `auto_commit: false` in `.review-loop/config.md`: hand over `--auto-commit false` (absent or `true`: the
       review-only default, one local commit at `accept` with lifecycle on; off returns the uncommitted tree).
     - `judgment_model` or `cheap_model` set in `.review-loop/config.md`: print, per key,
       `code-quality-loop: <key> in .review-loop/config.md is not applied by paired-session; models come from the operator profile`.
       (`review_focus`, `review_style` and `quality_focus` are passed to the run by the paired-session skill.)
  3. Print
     `code-quality-loop: with lifecycle on, the paired route reviews, fixes, simplifies and consolidates tests. Acceptance normally makes one local commit (never a push; `auto_commit: false` in .review-loop/config.md keeps it uncommitted). With lifecycle off, it stops after the gate; acceptance returns the uncommitted tree. It does not reorganize, run static-analysis artifacts, load a design document or sweep project docs`.
  4. Invoke the `paired-session` skill with `--code-quality-loop` and the mapped `--max-exec-rounds N` and
     `--auto-commit false` (if any), and end this skill. It follows the shared contract's Code-quality-loop entry: a review-only run on
     the uncommitted change with the quality writers on when lifecycle is on, ending at DONE (or HOLD); `accept` writes the delivery report.
  5. If the paired-session skill reports `stage A failure: <reason>`, report
     `code-quality-loop: paired-session entry refused (<reason>)` and stop (nothing falls back).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.