Token导航 LogoToken导航

Agent Skill · 研究检索

run-repair-loop(运行修复循环)

run-repair-loop 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

run-repair-loop 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 55,343。

总安装 485周安装 20GitHub Stars 7下载 158核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:run-repair-loop(运行修复循环)
来源仓库:https://github.com/nesnilnehc/ai-cortex
仓库路径:skills/run-repair-loop
安装命令:
npx skills add https://github.com/nesnilnehc/ai-cortex --skill run-repair-loop
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nesnilnehc/ai-cortex --skill run-repair-loop

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息。适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。通过 npx skills add 命令从指定 GitHub 仓库安装使用。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

run-repair-loop 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/run-repair-loop

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/nesnilnehc/ai-cortex --skill run-repair-loop;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

run-repair-loop 怎么安装?

在终端执行 npx skills add https://github.com/nesnilnehc/ai-cortex --skill run-repair-loop。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

run-repair-loop 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

run-repair-loop 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

run-repair-loop 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

run-repair-loop 用的人多吗?

公开数据是累计安装 485 次,近一周安装 20 次,下载 158 次,GitHub 7 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

run-repair-loop 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
run-repair-loop

运行修复循环 · 本页

4857需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Skill: Run Repair Loop (Review + Test + Fix)

Purpose

Converge a codebase or change set to "clean" by running a multi-iteration loop:

  1. Review (find problems early and prevent regressions),
  2. Test (get executable signal),
  3. Fix (apply the smallest correct patch),
  4. Repeat until no blocking issues remain or a stop condition is hit.

Core Objective

Primary Goal: Converge the repository to a "clean" state — all tests passing and no critical/major review findings — using a bounded, evidence-driven review-test-fix loop.

Success Criteria (ALL must be met):

  1. ✅ Definition of done resolved: Pre-flight choices (scope, test mode, max iterations, allowed actions) are confirmed before the loop starts
  2. ✅ Evidence-first each iteration: Each iteration produces at least one of: a new test result, a new review signal, or a concrete code change
  3. ✅ Tests rerun after fixes: The failing test command (or a targeted subset) is always rerun after applying a fix within the same iteration
  4. ✅ Bounded loop: The loop terminates due to convergence or an explicit stop condition — no infinite retries
  5. ✅ Structured final report: Output includes a Repair Loop Report (Appendix: Output contract) with commands run, failures, patches, and remaining risks

Acceptance Test: Does the final report show either (a) tests passing with no blocking review findings, or (b) an explicit stop condition with clear remaining issues and options for the user?


Scope Boundaries

This skill handles:

  • Multi-iteration review → test → fix loops
  • Diff-scoped and codebase-scoped review using review-diff and review-code
  • Test execution via run-automated-tests (fast/ci/full modes)
  • Minimal targeted patches with preserved API contracts
  • Stop condition detection (no progress, environment blockers, flaky tests, iteration limit)
  • Structured repair loop report output

This skill does NOT handle:

  • Installing dependencies without explicit user confirmation
  • Using network or starting Docker/services without user confirmation
  • Large refactors without explicit user approval
  • Modifying unrelated sibling repositories
  • Disabling tests, weakening assertions, or deleting coverage without explicit user approval

Handoff point: When the loop converges or hits a stop condition, present the Repair Loop Report to the user. For risky changes (schema migration, auth changes, broad refactor), pause and ask for explicit approval before applying.


Use Cases

  • "Keep fixing until tests pass."
  • "Do a review-test-fix loop and make the repo green."
  • "Stabilize this PR/change set with iterative testing and targeted fixes."
  • "Run CI-like tests, fix failures, repeat until stable."

Behavior

1. Pre-flight (must resolve once)

Confirm or default the following:

  • Target: repo path (default .) and scope:

- diff (default): focus on current changes, prioritize review-diff. - codebase: review a specified path set, prioritize review-codebase/language skills via review-code.

  • Definition of done:

- Tests: chosen test plan passes (fast/ci/full). - Review: no critical/major review findings remain. - If only minor/suggestion findings remain, list them and ask whether to address them.

  • Loop bounds:

- max_iterations default: 5. - time_budget default: "best effort"; if user provides a time limit, honor it strictly.

  • Allowed actions (ask if unclear; default to safer choice):

- Modify repo files: Yes (this skill is for fixing), but keep changes minimal. - Install dependencies: No without confirmation. - Network access: No without confirmation. - Docker/services (DB/Redis/etc.): No without confirmation. - Large refactors: No without confirmation.

2. Iteration loop

For i = 1..max_iterations:

  1. Collect current signals (evidence-first)

- If scope = diff: run/perform a review-diff pass over the current diff/untracked additions. - If scope = codebase or user wants deeper review: run review-code (or the relevant atomic review skill(s)). - If a previous iteration had test failures, prioritize resolving those failures first.

  1. Run tests

- Use run-automated-tests to discover and run the best matching test command(s) in the selected mode: - fast (default): unit tests only, minimal setup. - ci: mirror CI steps as closely as possible. - full: include integration/e2e (only with explicit confirmation for dependencies/services). - Capture: - the first failing command + exit code - the most relevant error excerpt (do not dump massive logs unless asked)

  1. Synthesize a fix plan (smallest correct patch)

- Choose one primary issue to fix first: - First failing test/command usually wins (highest signal). - If review found a critical security/correctness issue, fix that before or alongside tests. - Prefer fixes that: - change the smallest surface area - preserve API/contracts unless explicitly approved - add or adjust tests when fixing a bug (when feasible)

  1. Apply fix

- Implement the patch. - Avoid unrelated formatting or churn. - If the fix requires a risky change (schema migration, auth changes, broad refactor), pause and ask.

  1. Re-run the minimal validation

- Re-run the most relevant failing test subset if the framework supports it; otherwise re-run the same test command. - If fixed, proceed to the next remaining failure/finding within the same iteration only if it is trivial; otherwise go to the next loop iteration.

  1. Stop early when converged

- If tests pass and there are no critical/major review findings, stop.

3. Stop conditions (must not loop forever)

Stop and ask the user for direction if any occur:

  • No progress: the same failure repeats for 2 iterations with no new information.
  • Environment blocker: missing toolchain, missing secrets, or unavailable dependency (DB/Docker) and user has not approved required setup.
  • Flaky tests: non-deterministic failures suspected (e.g., passes on retry without changes).
  • Iteration limit reached: max_iterations exhausted with remaining failures.

When stopping, provide the shortest path options:

  • run a different test mode (fast -> ci -> full)
  • allow installs/network/Docker
  • narrow scope (fix only first failing test)
  • increase iteration limit

Report persistence

Do NOT write a standalone report file by default. If the user explicitly asks to persist, write to the path resolved from project norms, or default to docs/calibration/repair-loop.md and overwrite the canonical file unless a snapshot is explicitly requested.


Input & Output

Input

  • Target path (default .)
  • Scope: diff (default) or codebase (+ paths)
  • Test mode: fast (default), ci, full
  • Constraints: allow installs/network/Docker/services (yes/no)
  • max_iterations (default 5)
  • Optional: time budget

Output

  • Repair Loop Report:

- Definition of done used - Evidence sources (which files/CI configs informed test plan) - For each iteration: - test command(s) run and result - first failure excerpt (if any) - changes made (files touched + intent) - remaining failures/findings - Final state: - tests passing (which commands) - remaining review items (if any) and whether they are blocking


Restrictions

Hard Boundaries

  • Do not install dependencies, use network, start Docker/services, or run destructive commands without explicit confirmation.
  • Do not ask the user to paste secrets into chat. Prefer local env files or documented dev flows.
  • Do not "fix" by disabling tests, weakening assertions, or deleting coverage unless the user explicitly approves and the tradeoff is documented.
  • Avoid large refactors as a default; prioritize minimal patches that unblock correctness.
  • Keep changes scoped to the target repository; do not modify unrelated sibling repos.

Skill Boundaries (Avoid Overlap)

Do NOT do these (other skills handle them):

  • Test execution only (no review or fix loop): Use run-automated-tests
  • Test quality assessment (coverage, structure, edge-case adequacy): Use review-testing
  • Comprehensive code review (without test-fix iteration): Use review-code
  • Diff-only review (without test execution or fix iteration): Use review-diff
  • Writing new tests from scratch (not fixing existing failures): Use development skills

When to stop and hand off:

  • Loop converges (tests pass, no blocking findings) → Present Repair Loop Report and stop
  • Stop condition hit (no progress, environment blocker, flaky tests, iteration limit) → Present options and wait for user direction
  • User asks for a one-time code review without fixing → Hand off to review-code or review-diff
  • User asks to only run tests without fixing → Hand off to run-automated-tests

Self-Check

Core Success Criteria

  • Definition of done resolved: Pre-flight choices (scope, test mode, max iterations, allowed actions) are confirmed before the loop starts
  • Evidence-first each iteration: Each iteration produces at least one of: a new test result, a new review signal, or a concrete code change
  • Tests rerun after fixes: The failing test command (or a targeted subset) is always rerun after applying a fix within the same iteration
  • Bounded loop: The loop terminates due to convergence or an explicit stop condition — no infinite retries
  • Structured final report: Output includes a Repair Loop Report (Appendix: Output contract) with commands run, failures, patches, and remaining risks

Process Quality Checks

  • Minimal patch surface: Each fix touched only the files necessary to resolve the identified issue — no unrelated formatting or churn.
  • Flaky-test awareness: Non-deterministic failures were detected (e.g., pass-on-retry without code change) and flagged rather than "fixed" blindly.
  • Risky-change pause applied: Schema migrations, auth changes, or broad refactors triggered an explicit user confirmation before proceeding.
  • Progress tracked per iteration: Each iteration log shows a clear delta (new signal or new fix) — no hollow iterations.

Acceptance Test

Does the final report show either (a) tests passing with no blocking review findings, or (b) an explicit stop condition with clear remaining issues and options for the user?


Examples

Example 1: Fix failing unit tests in a Node repo

User: "Make tests pass. Keep fixing until green."

Agent:

  1. Pre-flight: scope=diff, test mode=fast, max_iterations=5; confirm installs allowed (npm ci) and network allowed.
  2. Iteration 1: run npm test, fix first failing test, rerun npm test.
  3. Iteration 2: run review-diff to catch edge cases introduced by the fix; rerun npm test.
  4. Stop when npm test passes and there are no major review findings.

Example 2 (Edge case): Integration tests require Docker and secrets

User: "Mirror CI and fix failures."

Agent:

  1. Pre-flight: propose test mode=ci, but detect CI uses docker compose and env secrets.
  2. Stop condition triggered: environment blocker (Docker + secrets not approved/available).
  3. Ask the user to choose:

- run only fast unit tests locally, or - allow Docker and provide a non-chat secret workflow, or - run only the failing CI job steps that don't require secrets.


Appendix: Output contract

Each skill execution MUST produce a Repair Loop Report in this exact JSON format:

{
  "repair_loop_report": {
    "definition_of_done": {
      "tests": "test command passes",
      "review": "no critical/major findings"
    },
    "scope": "diff | codebase",
    "mode": "fast | ci | full",
    "max_iterations": 5,
    "iterations": [
      {
        "iteration": 1,
        "review": {
          "skill_used": "review-diff",
          "findings_count": {"critical": 0, "major": 1, "minor": 2},
          "blocking": ["unused import in utils.js"]
        },
        "tests": {
          "command": "npm test",
          "status": "failed",
          "exit_code": 1,
          "first_failure": "FAIL src/utils.test.js"
        },
        "fix": {
          "files_changed": ["src/utils.js"],
          "intent": "remove unused import"
        },
        "re_run": {
          "command": "npm test",
          "status": "passed"
        }
      }
    ],
    "final_state": {
      "tests_passing": true,
      "commands_passed": ["npm test"],
      "blocking_issues_remaining": [],
      "minor_suggestions": ["consider adding type hints"]
    },
    "stop_condition": "converged | max_iterations | environment_blocker | no_progress"
  }
}
ElementTypeDescription
definition_of_doneobjectWhat constitutes success
scopestringdiff or codebase
modestringTest mode: fast, ci, or full
max_iterationsnumberLoop limit
iterationsarrayEach iteration's review, test, fix, re-run
final_stateobjectEnd state: tests passing, remaining issues
stop_conditionstringWhy loop ended: converged, max_iterations, environment_blocker, no_progress

This schema enables Agent consumption without prose parsing.

平台分布

Codex

38.21%
按下载量换算60

Claude

28.79%
按下载量换算45

Cursor

20.14%
按下载量换算32

Gemini CLI

10.06%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills