Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Iterate

БесплатноЗапускает вложенные скриптыНе проверен

Fully automated multi-round code iteration with configurable N-dimension parallel review, onboarding/personalization, and a cross-assistant installer/update…

jingzhao-lот jingzhao-l4 000 установок в других каталогах

Об этом скилле

/iterate <goal> [rounds] [no-limit]

/iterate defensive <goal>(防御式编程模式 / Defensive-Programming Mode)

面向人类读者:本文件是供 AI 助手消费的 Skill 指令。若您是开发者或浏览者,欢迎前往 GitHub 仓库 jingzhao-l/iterate-skill 阅读 README,详细了解本 Skill 及其附属生态(iterate-harness、iterate-plugin、CLI 等)。

For human readers (English): This file is a Skill manifest consumed by AI assistants. If you are a developer or a human visitor, welcome to the GitHub repository jingzhao-l/iterate-skill — read the README to learn more about this Skill and its ecosystem (iterate-harness, iterate-plugin, CLI, etc.).


简介 / Overview

中文:全自动多轮代码迭代。每轮从 N 个已启用维度并行审查整个项目(默认 9 个),原子问题直接修复,架构问题经用户批准后由子代理串行执行,验证通过后(合并与推送为 opt-in,默认关闭)循环直到零 findings 或达到轮数上限。

English: Fully automated multi-round code iteration. Each round launches N parallel dimension reviewers across the project (default 9), fixes atomic issues directly, executes architectural issues after user approval via serial sub-agents, validates, and loops until zero findings or max rounds (merge/push are opt-in and disabled by default).

v3.0 双模式 / v3.0 dual-mode:本 Skill 现为双模式——

  • iterate 模式(原 /iterate,默认,v2 全部能力完整保留):审查 → 修复 → 验证 → 收敛闭环。
  • 防御式编程模式(新增 /iterate defensive):面向用户让 AI 做正常增量式编程任务的场景(新增功能、修 bug、重构等),宿主 AI 从动手前到收尾从头至尾贯彻防御式编程理念(四步协议:pre-check → 最小步进编码 → 每步 post-check → invariant + iterate 收敛门禁),以 iterate 闭环收尾作为交付门禁(不收敛不交付)。

Defensive-Programming Mode (v3.0, via /iterate defensive): for the scenario where the user asks the AI to do a normal incremental coding task (add a feature, fix a bug, refactor). The host AI performs that task end-to-end with defensive discipline — a four-step protocol: pre-check before touching anything → minimal-step editing (validate at the trust boundary) → post-check after every edit → invariant + the iterate convergence loop as a delivery gate (no convergence, no delivery).


何时使用 / When to Apply

iterate 模式适用于以下场景:

  • 需要系统性提升代码质量、修复潜在 bug 或安全漏洞。
  • 项目进入重构、迭代收尾或发布前的审查阶段。
  • 需要多维度(正确性、安全、性能、架构等)并行审查。
  • 希望将原子问题自动修复,将架构问题经审批后修复。

防御式编程模式(/iterate defensive)适用于用户让 AI 做正常增量式编程任务的场景:

  • 用户给一个具体的增量式编程任务:新增功能、修复 bug、重构模块、接入 API、补测试等。
  • 该任务需要动手改代码(不是纯审查),且用户希望 AI 从头至尾按防御式编程纪律完成——动手前校验、最小步进、每步后校验、收尾门禁。
  • 典型场景:/iterate defensive implement user-settings page、/iterate defensive fix the null-pointer bug in parser.py、/iterate defensive refactor auth to use a middleware。
  • 判断要点:任务是"让 AI 干活产出代码"而非"让 AI 审查已有代码",就应进入防御式编程模式;任务若需多轮并行审查收敛,仍可用 iterate 模式,二者以本次调用的 goal 形态区分。

纯审查模式 / review-only mode:当调用参数含 review-only 或 dry-run 时,本 Skill 只做只读健康检查,绝不修改任何文件:

  • 反复多轮并行审查,直到某一轮出现 0 个新 findings(收敛)。
  • 生成审查报告(含每轮收敛统计、按严重级别/维度汇总、修复优先级建议)。
  • 再审查这份报告本身(meta-review:校验报告内部一致性——总数匹配、严重级别汇总、维度汇总、排序、收敛数学),给出带 approved / needs_revision 判定的最终审查报告。meta-review 同时跑硬证据门禁:逐条校验 finding 的 file/line 是否真实存在,子代理只允许锚定实际读过的真实代码,伪造路径/行号即以 EVIDENCE_VIOLATION 判 needs_revision。
  • 适用于发布前体检、代码质量审计、不想让 AI 动代码的场景。

This Skill is appropriate when:

  • You need a systematic code quality improvement, bug fix, or security hardening pass.
  • The project is in refactoring, pre-release, or iteration wrap-up phase.
  • You want parallel multi-dimension review (correctness, security, performance, architecture, etc.).
  • You want atomic issues fixed automatically and architectural issues fixed after approval.

Defensive-Programming Mode (/iterate defensive) applies when the user asks the AI to do a normal incremental coding task: you are asked to implement a feature, fix a bug, refactor a module, integrate an API, or add tests — and you must do that task end-to-end with defensive discipline (pre-check → minimal-step editing → post-check after every edit → invariant + iterate convergence as a delivery gate).

review-only / dry-run mode applies when the invocation includes review-only or dry-run: it performs a read-only health check that never modifies files — repeated parallel review rounds until a round finds 0 new findings (convergence), produces a review report, then meta-reviews that report (validating internal consistency) and emits a final report with an approved / needs_revision verdict. The meta-review also runs the hard code-evidence gate: every finding's file/line is validated against real files on disk, so reviewers may only anchor to code they actually read — fabricated paths or invented line numbers surface as EVIDENCE_VIOLATION and force needs_revision. Use it for pre-release health checks, audits, or any case where you do not want the AI to touch code.

何时跳过 / When to Skip

iterate 模式不适用于以下场景:

  • 仅需要单次、简单的代码编辑(不需要多轮审查)——此类场景应改用防御式编程模式 /iterate defensive(正是为"让 AI 做正常增量式编程任务"而设)。
  • 没有可用的验证命令(validation.commands 未配置)——防御式模式下 guard post-check / invariant 会依赖验证命令,缺失时校验退化。自 v3.0.1 起:若项目已 onboarded(存在非空 iterate.config.yaml)但 validation.commands
Полный SKILL.md на ClawHub

Установить Iterate в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Iterate?

Fully automated multi-round code iteration with configurable N-dimension parallel review, onboarding/personalization, and a cross-assistant installer/update system with mandatory SHA256 checksum verification. v3.0 adds a dual-mode (the original iterate mode plus a defensive-programming mode via /iterate defensive) that performs normal incremental coding tasks with defensive discipline end-to-end.

Как установить скилл Iterate?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Iterate запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Iterate с