re0-loop

re0-loop is a skill for Claude Code from LilMGenius/paperthin. It costs 60 tokens per session (507 once invoked), scanned A, original, MIT.

A repeated workflow for long coding projects: frame the work, build a slice, test it through its real interface, record lessons, and revise the next cycle. A re0 memo is a written record of lessons and recurring mistakes.

In plain words
What is it for?
Running build-and-review cycles, measuring quality-cleared templates and reusable modules, removing recurring mistakes, and choosing the next implementation step.
Why use it?
It prevents activity such as adding files or features from being mistaken for progress when the result has not passed quality checks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the paperthin plugin — 28 skills shipped together

not rated 1.4krepo +70 today A scan Socket: passSnyk: passSkillSpector: pass 60 tokens original MIT

Good fit Running build-and-review cycles, measuring quality-cleared templates and reusable modules, removing recurring mistakes, and choosing the next implementation step.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lilmgenius/paperthin/re0-loop
About the project

Paperthin is a collection of low-level design patterns that coding agents can apply as repeatable checks and actions during software work. It is for people using agents such as Claude Code, Codex, Cursor, or other supported tools, and its catalogue entries package the patterns as skills, an instruction, and a plugin.

LilMGenius/paperthin · 1,351 stars · on GitHub · paperthin.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LilMGenius/paperthin --skill re0-loop
Clone the repo
git clone --depth 1 https://github.com/LilMGenius/paperthin

Made for: Claude Code.

Or install paperthin, the plugin that ships this one along with the rest of its 28 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for re0-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/lilmgenius/paperthin/re0-loop/github.svg)](https://agentmods.dev/skills/lilmgenius/paperthin/re0-loop)
Your own site
<a href="https://agentmods.dev/skills/lilmgenius/paperthin/re0-loop"><img src="https://agentmods.dev/badge/skills/lilmgenius/paperthin/re0-loop/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for re0-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/lilmgenius/paperthin/re0-loop"><img src="https://agentmods.dev/badge/skills/lilmgenius/paperthin/re0-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 507 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 14 Jul 2026
  • Snyk pass 14 Jul 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.00507
Opus 5.5 $0.00024 $0.00203
Sonnet 5.5 $0.00012 $0.00101
Haiku 4.5 $0.00006 $0.00051

Measured 1mo ago against content hash 31eeb611bf1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

re0-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/coil/re0-loop/SKILL.md · 45 lines

What it actually says

Run the cycle so learning compounds and code accumulation does not masquerade as progress.

Goal

re0-loop keeps a project moving through repeated turns:

FRAME -> BUILD -> DRIVE -> RE0-MEMO -> HATE -> RE0-WORK -> BUILD AGAIN

The unit of progress is not hours, files, panels, or features. It is the count of quality-cleared templates, reusable platform modules, and anti-patterns eliminated in later cycles.

Workflow

  1. Frame the thesis and quality gates.
  2. Build one complete vertical slice.
  3. Drive it through the real surface: browser for web apps, HTTP for API contracts, computer-use for desktop apps, and CLI only for data-shaped artifacts.
  4. Run re0-memo to extract lessons, anti-patterns, and next-cycle gates.
  5. Decide whether the next pass iterates in place or uses re0-work; when that call or the next move is unclear, nba reads the cycle state and returns the single next action.
  6. Kill the next plan before build: use the project's adversarial review skill or a human-invoked attack when that skill is user-only.
  7. Version only templates or modules that clear their gates.

Rules

  • Tests are supporting evidence, not the gate; every turn needs a real-surface proof sized to the artifact.
  • Do not widen before the core loop clears.
  • Do not confuse generated variety with structural variety. If many outputs converge to the same shape, the cycle failed the variety gate.
  • Preserve negative corpus so later cycles can prove the same anti-pattern is gone.
  • Let code die. A restart that preserves the right lessons is progress.
  • Stop a lap when no outside truth enters; add evidence before another internal pass.

Verification

Before finishing a lap:

  1. The real surface was driven and evidence was captured.
  2. The re0-memo names at least one lesson, anti-pattern, or gate that affects the next pass.
  3. The keep/iterate/re0-work decision is explicit.
  4. Any version label belongs only to a quality-cleared template or module.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 45 lines · 60 tokens per session scan A 31eeb611bf1e

Subscribe to this mod's changes

re0-loop is a skill published in the GitHub repository LilMGenius/paperthin (1,351 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 507 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.