agentleFS
DobroslavRadosavljevicDobroslavRadosavljevic/cabrakan/.agents/skills/loop/SKILL.md

loop

Skill1 starsChanged 3 months agoMITView on GitHub

Implement-review-fix loop for development tasks. Use when the user invokes $loop, says "loop", "loop this", "run the loop", "implement then review", "review/fix until clean", or otherwise asks Codex to keep cycling through implementation, review, fixes, and re-review until no actionable issues remain.

58 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review-bugbot, rename-chat and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • 0mlkrizzz655335vSkill

    review-bugbot

    缺陷导向代码审查。用 Bugbot 子代理找 bug。

    Also in 3 projects that use this

  • 0mlkrizzz655335vSkill

    rename-chat

    重命名当前聊天。按聊天内容改标题。"disable-model-invocation: true

    Also in 3 projects that use this

  • PandelisZSkill

    update-cli-config

    View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.

    Also in 3 projects that use this

  • 32103210Skill

    migrate-to-skills

    Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills format (.cursor/skills/). Use when you want to migrate rules or commands to skills, convert .mdc rules to SKILL.md format, or consolidate commands into the skills directory.

    Also in 3 projects that use this

  • 32103210Skill

    update-cursor-settings

    Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.

    Also in 3 projects that use this

  • MicrosoftSkill

    automate

    Propose an automation from a completed task or a new idea, then create it after approval. Use when the user asks to create an automation or wants scheduled local or cloud agent work.

    Also in 3 projects that use this

  • +1 more from 0mlkrizzz655335v
  • +1 more from 32103210

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. 0 are common, 20 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 54 edited versions we read keep these.

  • 20

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the requested task as an iterative implementation pipeline.

    line 10
  2. Distinctive:

    Keep ownership with the orchestrator agent.

    line 14
  3. Distinctive:

    Do not stop after finding review issues.

    line 15
  4. Distinctive:

    Treat review findings as actionable unless they are demonstrably incorrect, duplicate, impossible with available context, or outside the …

    line 16
  5. Distinctive:

    Do not claim the loop is complete while known correctness, security, data-loss, regression, build, test, or user-visible defects remain.

    line 17
  6. Distinctive:

    When the harness supports todo lists, plans, or task checklists, create a clear, detailed todo list before implementation and keep item …

    line 19
  7. Distinctive:

    Keep the user updated during long loops, especially before substantial edits and after each review cycle.

    line 20
  8. Distinctive:

    Create a useful todo list if the harness supports one, with enough detail to track implementation, verification, review, and follow-up …

    line 25
  9. Distinctive:

    Run the most relevant verification available for the change.

    line 27
  10. Distinctive:

    Run a review pass against the implementation.

    line 28
  11. Distinctive:

    If the review finds actionable issues, fix them.

    line 29
  12. Distinctive:

    Use a self-review pass for narrow, low-risk, single-area changes.

    line 39
  13. Distinctive:

    Use one or more parallel reviewer agents when available and useful for broad changes, security-sensitive work, cross-cutting behavior, …

    line 40
  14. Distinctive:

    Every review pass should check:

    line 46
  15. Distinctive:

    No unrelated edits, secrets, generated noise, or local-only assumptions were introduced.

    line 52
  16. Distinctive:

    Add or update tests when the bug is behavioral and the repo has a suitable test surface.

    line 61
  17. Distinctive:

    Keep a short internal ledger of findings and status so repeated review cycles do not lose track.

    line 63
  18. Distinctive:

    If a finding is not fixed, it must have a concrete reason: false positive, duplicate, out of scope, blocked by missing prerequisite, or …

    line 65
  19. Distinctive:

    Stop only when one of these is true:

    line 69
  20. Distinctive:

    Do not stop merely because one review-fix cycle completed.

    line 75

“Common” is measured: kept by at least 6 in 10 of the 54 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Loop

Overview

Run the requested task as an iterative implementation pipeline. Implement the change, review the result, fix every actionable issue, and repeat until the review is clean or a real blocker prevents further progress.

Operating Rules

  • Keep ownership with the orchestrator agent. Use reviewers for independent scrutiny, but the main agent decides what to fix, performs the fixes, and verifies the final state.
  • Do not stop after finding review issues. Fix them, then run another review pass.
  • Treat review findings as actionable unless they are demonstrably incorrect, duplicate, impossible with available context, or outside the user's requested scope.
  • Do not claim the loop is complete while known correctness, security, data-loss, regression, build, test, or user-visible defects remain.
  • Preserve unrelated user changes. If a review finding points at unrelated dirty work, call it out instead of rewriting it.
  • When the harness supports todo lists, plans, or task checklists, create a clear, detailed todo list before implementation and keep item statuses current through every review and fix cycle.
  • Keep the user updated during long loops, especially before substantial edits and after each review cycle.

Workflow

  1. Understand the task and inspect the relevant repo context.
  2. Create a useful todo list if the harness supports one, with enough detail to track implementation, verification, review, and follow-up fixes.
  3. Implement the requested change using the repo's existing patterns.
  4. Run the most relevant verification available for the change.
  5. Run a review pass against the implementation.
  6. If the review finds actionable issues, fix them.
  7. Re-run affected verification.
  8. Re-run review.
  9. Continue steps 6-8 until the review has no actionable findings.
  10. Finish with the final state, verification performed, and any residual blockers or explicitly deferred non-issues.

Review Mode

Choose the smallest review method that gives credible coverage:

  • Use a self-review pass for narrow, low-risk, single-area changes.
  • Use one or more parallel reviewer agents when available and useful for broad changes, security-sensitive work, cross-cutting behavior, unfamiliar code, or when the user asks for independent review.
  • Split reviewer agents by concern when that improves signal, such as correctness, tests, UX, performance, security, or docs.
  • Give reviewers the task, changed files or diff, and verification output. Do not give them the desired answer or ask them to rubber-stamp the work.

Review Standard

Every review pass should check:

  • The user's request is fully satisfied.
  • The change fits existing architecture, naming, style, and ownership boundaries.
  • Error handling, edge cases, and rollback or failure behavior are reasonable.
  • Tests or verification cover the risky behavior touched by the change.
  • No unrelated edits, secrets, generated noise, or local-only assumptions were introduced.
  • Documentation or user-facing text was updated when the behavior changed.

Fixing Review Findings

For each actionable finding:

  • Reproduce or inspect the issue enough to understand it.
  • Patch the root cause, not only the symptom.
  • Add or update tests when the bug is behavioral and the repo has a suitable test surface.
  • Re-run the narrowest useful verification first, then broader gates when risk or repo norms call for them.
  • Keep a short internal ledger of findings and status so repeated review cycles do not lose track.

If a finding is not fixed, it must have a concrete reason: false positive, duplicate, out of scope, blocked by missing prerequisite, or requires user product judgment. Report that clearly in the final response.

Stopping Criteria

Stop only when one of these is true:

  • A review pass returns no actionable issues and relevant verification has passed or been honestly reported as unavailable.
  • The same blocker prevents progress after serious attempts to resolve it, such as missing credentials, unavailable services, failing external dependencies, or an ambiguous product decision that cannot be inferred safely.
  • The user explicitly asks to pause, stop, or change direction.

Do not stop merely because one review-fix cycle completed. The loop ends when the work is clean, not when the first review has been addressed.

Final Response

Summarize:

  • What changed.
  • How many review cycles ran and what the last review concluded.
  • Verification commands and results.
  • Any unfixed finding, blocker, or intentional deferral.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.