Loop

From dannys-code-corner/incan · View interactive version

Loop is an AI agent skill from the GitHub repository dannys-code-corner/incan. Orchestrate a named multi-skill loop such as /loop /review /fix until clean or blocked. Use when the user explicitly asks to loop skills, rerun a review/fix cycle, or says /loop with one or more skill names.

How to use this skill

Skill file

Loop — Skill Orchestrator

Purpose

/loop is a thin orchestrator. It does not define domain checks itself. It repeatedly runs a detector skill and a repair skill until the detector reports no remaining blockers/warnings or the work becomes blocked.

The loop should preserve state in the current worktree's persistent report file:

Typical use:

That means:

  1. run /review,
  2. if it reports actionable findings, run /fix,
  3. run /review again,
  4. repeat until clean or blocked.

Contract

Stopping conditions

Stop the loop when one of these is true:

  1. the detector reports no blockers or warnings,
  2. remaining findings are explicitly classified as:
  1. the user interrupts or redirects the work.

Loop discipline

Output format

Produce a compact progress report:

## Loop — <skills>

### Cycle 1
<detector result>
<fix result>

### Cycle 2
...

### Final state
<clean / blocked / needs user direction>
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.