لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI

Code Quality Loop

آزاد تازه‌وارد تاییدشده امن

تغییرات کد و فایل‌های پروژه را خط‌به‌خط بررسی می‌کند، باگ‌های پنهان و کدهای تکراری را پیدا می‌کند و برای هر مورد راه‌حل دقیق می‌دهد. (شامل ۱۴ گام عملی · سازگار با Claude Code).

سازگاری با ابزارها: این Skill به مسیر/قابلیت اختصاصی Claude Code وابسته است. مشاهدهٔ جدول سازگاری

متن دستورالعمل (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`.
<!-- ‹guest · 2026-11-24› -->
       (`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).

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
کیفیت کد و تست
✦ Pro

REA CI and tests audit

«REA CI and tests audit» دستورالعمل دقیقی برای «نوشتن و اجرای تست خودکار» در اختیار دستیار هوش مصنوعی می‌گذارد تا نتیجه…

⚡ /rea-ci-tests-audit SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۱/۱۰۰ ★ ۴۷۴,۰۸۴
کیفیت کد و تست
✦ Pro

Finishing a Development Branch

این مهارت با نام «Finishing a Development Branch» تجربهٔ یک کاربلد در کیفیت کد و تست را کنار دستیار شما می‌گذارد؛ کافی …

⚡ /finishing-a-development-branch SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Code Review Reception

اگر روی کیفیت کد و تست کار می‌کنید، «Code Review Reception» بخشی از کار را از دوش شما برمی‌دارد: «بازنویسی و تمیزسازی ک…

⚡ /receiving-code-review SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Requesting Code Review

برای کارهای کیفیت کد و تست، «Requesting Code Review» یک راهنمای کوتاه و روشن است: مسیر «مدیریت هوشمند حافظه و کانتکست» …

⚡ /requesting-code-review SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Test-Driven Development (TDD)

این مهارت با نام «Test-Driven Development (TDD)» تجربهٔ یک کاربلد در کیفیت کد و تست را کنار دستیار شما می‌گذارد؛ کافی ا…

⚡ /test-driven-development SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Skill Creator

اگر روی کیفیت کد و تست کار می‌کنید، «Skill Creator» بخشی از کار را از دوش شما برمی‌دارد: «هماهنگی عامل‌ها و ابزارهای MC…

⚡ /skill-creator SKILL.md
Claude / Claude Code
۹۲/۱۰۰ ★ ۱۹۸,۷۹۴