Skip to content
Back to skills

Mini Loop

ASecurity

deliver a PR yourself through cross-harness review rounds and green CI and review gates

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
ai-agentsgoshellrailsgitperformance

Works with

  • claude code

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nicholas-greenwood/agentic-engineering-skills --skill mini-loop --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mini Loop?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mini Loop
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nicholas-greenwood-mini-loop/badge)](https://www.skillsdirectory.com/skills/nicholas-greenwood-mini-loop)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mini-loop
description: deliver a PR yourself through cross-harness review rounds and green CI and review gates
disable-model-invocation: true
---

you write, verify and package the change yourself, with no worker. 1 reviewer agent of the other harness reviews each pushed head, and you repeat review, gates, triage and fixes until a round leaves nothing to address. CI, the github AI review bots and PR threads still gate the PR. merging stays with the owner

## loop or mini loop

this list is the 1 place that decides; other skills link here. use `.agents/skills/loop/SKILL.md` instead when the change meets any of these:

1. 1-way door: shipping it does something a revert cannot undo: it changes or deletes existing rows, makes a schema change that cannot be rolled back, or has an irreversible external effect such as a send or a provider write
2. access: it changes who can see or act on what, groupco scoping or outbound recipients
3. open design call: the request leaves open a choice between reasonable approaches with materially different outcomes for users or data, or a product choice. implementation choices with the same outcome are yours
4. not verifiable on this machine: proof needs something only another environment has, such as a staging deploy, a real provider callback or production-scale data

everything else takes the mini loop, whatever its size, including retries, locks, jobs and spend paths. the owner's explicit choice of loop or mini loop wins over this list

when a finding during the run shows the change meets 1 of these, and the owner has not chosen the mini loop, switch: read and follow the loop skill from where your work stands (it skips the steps that completed work and an open PR already cover) and say why in the final report

## updates

this is a silent run: read and follow `.agents/skills/silent-run/SKILL.md`. chat holds the start line (1 sentence: PR or branch and the goal), `BLOCKED` when only the owner can unblock you, the final report and answers to the owner

when another agent dispatched you, chat means that agent: skip the start line and send it only a blocker question and the final report

## steps

1. save an exact copy of the request to `playground/mini-loops/<name>/request.md`. if the change has a measurable effect, capture the before number now with where you measured it
   - done when you can name 1-3 checks that will prove the change works
2. implement and verify: `/tdd` for business logic, `/diagnosing-bugs` for a hard bug or a performance regression, then prove the behaviour through the real surface (`/agent-browser` for UI, curl, `rails runner`, read-only production reads). commit in small steps. write `verification.md` beside `request.md`: the commit, each command, its result and every number with its source
   - done when every check from step 1 passed at the committed `HEAD` and the worktree is clean
3. open the PR with `/pr`, targeting the parent branch when stacked
4. start the round's review on the pushed head, read-only, with its report saved to `playground/mini-loops/<name>/review/`. `<review-base>` is `origin/<base>` until a review report lands, then the SHA in `last-reviewed-head`, which you update once each report lands:
   - claude code: `bin/codex-native-review <review-base> playground/mini-loops/<name>/review playground/mini-loops/<name>/verification.md` as a background shell command outside the sandbox
   - codex: a claude reviewer through `/cross-harness-sub-agent` with a short broad review prompt you write: the goal, the range `<review-base>..<head>`, the risky paths and `verification.md`. later rounds resume the same reviewer
   - while it runs, wait on the gates: `bin/ai-review-status --wait <pr>` (exit codes in its `--help`), then `gh pr checks <pr> --watch`. if the first exited 2, run both once more. when its output shows a provider quota, auth or infra failure, record it in `verification.md` and treat that provider as timed out. exit 64 is a github or tool error, not a provider result: rerun it once, then report it as a blocker
   - if the review has not reported 30 minutes after it started (claude code: a background `sleep 1800` timer; codex: the elapsed time of your waits), check its process and log, stop it and rerun it once, then carry on without it and name the missing review in the final report. a loop once lost 11 hours waiting on 1 silent reviewer
5. once the review has reported or the 30-minute rule has given up on it, triage the review report, `bin/unresolved-pr-comments <pr>` and CI failures (fetched per `/fix-ci-failures`) in 1 pass with `/triaging-feedback`
6. when nothing passed triage, run `bin/resolve-pr-comments --confirm <pr>` and go to step 7. otherwise fix what passed in small commits, rerun the checks it touches, update `verification.md`, run `bin/resolve-pr-comments --confirm <pr>`, push and start the next round at step 4. resolving before the push keeps comments on the new head unresolved until you triage them
7. finish when, for the head from `gh pr view <pr> --json headRefOid`, the latest review round covers it with nothing left to address or is named as missing under the 30-minute rule, `gh pr checks <pr>` has no failing or pending check apart from failures evidenced as unrelated, `bin/ai-review-status <pr>` exits 0 or a provider timed out on 2 waits, `bin/unresolved-pr-comments <pr>` lists no unresolved thread, and `gh pr view <pr> --json mergeable` says `MERGEABLE`. refresh the PR description per `/pr` where the fixes changed what it says, then send the final report

- resumed: continue from `playground/mini-loops/<name>/`; an open PR skips step 3 and a saved report for the current head skips that round's review
- stacked PR: follow the stacked PR bullets in `.agents/skills/loop/SKILL.md`, which touch only your own branch
- side findings, such as an unrelated bug or odd data, stay unfixed and go to the final report

## final report

save it as `final-report.md` beside `request.md`:

- the PR link and head SHA
- what changed, 1 bullet per behaviour change
- verification with before and after numbers and their source
- the review: rounds, findings fixed and findings skipped with why, or which review is missing
- changes vs `request.md`, unverified items and side findings, or `none`
- 1-3 token-efficient commands that confirm the result

Files in this skill

  • SKILL.md6.2 KB
  • agents/openai.yaml179 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.