refine-loop SKILL.md skillA

refine-loop from geiserx/agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add geiserx/agent-skills/refine-loop@git:20260804.b5d02ed

Pins git:20260804.b5d02ed in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
geiserx/agent-skills
Path
skills/refine-loop/SKILL.md
Versions recorded
5
Latest version
git:20260804.b5d02ed, committed Aug 4, 2026
First version recorded
Jul 30, 2026
Size
17,834 bytes
Repository stars
4
License
GPL-3.0

Runs a safe, resumable refinement loop over a working repository. It discovers behavior-preserving improvements through four evidence-based lenses, ranks them by ROI, applies one small change at a time, verifies independently, and stops deterministically at diminishing returns or a safety limit. Use when explicitly asked to run refine-loop on an existing project.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# refine-loop

Refine a working repository through small changes that preserve observable behavior. The loop is
not a feature, bug-fix, security-remediation, migration, or rewrite workflow.
Apply [the shared loop contract](references/loop-contract.md) to every operation.

## Contract

- Execute only behavior-preserving refinements.
- Discover broadly, execute serially, and accept at most one candidate per round.
- Keep durable state outside project documentation by default.
- Preserve all pre-existing user work.
- Verify each accepted change with repository checks and a fresh reviewer.
- Stop with exactly one outcome: `SUCCESS`, `BUDGET`, `ERROR`, `NEEDS-FIX`, or `CANCELLED`.

Defaults:

- `theta=2.0`
- `plateau_limit=3`
- `max_rounds=25`
- `failure_limit=3`
- `state_dir=.refine-loop/`

## Parse the request

Parse only consecutive leading configuration tokens, in any order: `--continue`, `--target=PATH`,
`--state-dir=PATH`, `theta=N`, and `focus=LENS,...`. Stop at the first other token; all remaining text
is the refinement intent. Option-looking text after intent begins is intent text, not configuration.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add geiserx/agent-skills/refine-loop@sha256:16e0c2877eeeb874

The line at the top of this page pins the label git:20260804.b5d02ed, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_3rm5vcrrpe6w64nx.svg)](https://markdownregistry.com/a/art_3rm5vcrrpe6w64nx)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Jul 30, 2026 and Aug 4, 2026, about one every day.

versioncommittedcommitsizeaudit
git:20260804.b5d02ed latest2026-08-04 b5d02ed 17,834 BA view · diff
git:20260730.8a5f0a62026-07-30 8a5f0a6 17,552 BA view · diff
git:20260730.ee144c22026-07-30 ee144c2 16,690 BA view · diff
git:20260730.8c20b172026-07-30 8c20b17 14,232 BA view · diff
git:20260730.049bd7c2026-07-30 049bd7c 14,263 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (17834 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

geiserx/agent-skills · 4 stars · license GPL-3.0 · pushed 2026-10-14 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_3rm5vcrrpe6w64nx
GET https://markdownregistry.com/api/v1/resolve?ref=geiserx/agent-skills/refine-loop
GET https://markdownregistry.com/api/v1/blob/16e0c2877eeeb874e23008d8c9864f7d647ac8c30e9dd408ea17f5a458859d03

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from geiserx/agent-skills

AGENTS.md AGENTS.md file
geiserx/agent-skills · AGENTS.md
git:20261004.2335f15 · audit A · 4 stars
CLAUDE.md CLAUDE.md file
geiserx/agent-skills · CLAUDE.md
git:20261004.2335f15 · audit A · 4 stars
docs-loop SKILL.md skill
geiserx/agent-skills · codex/skills/docs-loop/SKILL.md · Audits repository documentation against current default-branch evidence, reports stale claims, and optionally applies…
git:20260929.133011b · audit A · 4 stars
eli5 SKILL.md skill
geiserx/agent-skills · codex/skills/eli5/SKILL.md · Explain work, a system or a situation to Sergio in plain words with real names, so he understands it on one read. Use…
git:20261006.717893e · audit A · 4 stars
file-pr SKILL.md skill
geiserx/agent-skills · codex/skills/file-pr/SKILL.md · Open a pull request whose title says why the change matters and whose body opens with the problem in the requester's…
git:20261010.d1c0ff8 · audit A · 4 stars
grow-my-repo SKILL.md skill
geiserx/agent-skills · codex/skills/grow-my-repo/SKILL.md · Plan and carry out where an open-source repository gets listed so people find it, from GitHub itself to registries…
git:20261014.bfc7f9f · audit A · 4 stars
help-decide SKILL.md skill
geiserx/agent-skills · codex/skills/help-decide/SKILL.md · Lay a decision out for Sergio so one word answers it, recommendation and pros and cons first, then how the thing works…
git:20261010.d1c0ff8 · audit A · 4 stars
implement SKILL.md skill
geiserx/agent-skills · codex/skills/implement/SKILL.md · Implements a requested change with the smallest complete diff, splitting genuinely independent work across parallel…
git:20260929.133011b · audit A · 4 stars
investigate SKILL.md skill
geiserx/agent-skills · codex/skills/investigate/SKILL.md · Investigates a bug or unexpected behavior from reproduction to root cause with a panel of independent hypothesis…
git:20260929.133011b · audit A · 4 stars
kb-research SKILL.md skill
geiserx/agent-skills · codex/skills/kb-research/SKILL.md · Answers a question from the team's own record (chat archives, call transcripts, tickets, wiki pages, notes, any mix)…
git:20260929.133011b · audit A · 4 stars
kb-review SKILL.md skill
geiserx/agent-skills · codex/skills/kb-review/SKILL.md · Reviews a pull request the way the team's reviewers do, grounded in reviewer learnings and past decisions captured in…
git:20260929.133011b · audit A · 4 stars
refine-loop SKILL.md skill
geiserx/agent-skills · codex/skills/refine-loop/SKILL.md · Runs a safe, resumable refinement loop over a working repository. It discovers behavior-preserving improvements through…
git:20260929.133011b · audit A · 4 stars

Every file in geiserx/agent-skills

Other files named refine-loop

refine-loop SKILL.md skill
geiserx/agent-skills · codex/skills/refine-loop/SKILL.md · Runs a safe, resumable refinement loop over a working repository. It discovers behavior-preserving improvements through…
git:20260929.133011b · audit A · 4 stars

Browse by kind, by grade A, or by owner.