re0-loop

re0-loop is a skill for Claude Code, Codex 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 CodeCodex

Part of the paperthin plugin — 28 skills shipped together

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.

agentmods
npx agentmods add skills/lilmgenius/paperthin/re0-loop
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, Codex.

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00060 $0.00507
Opus 5 $0.00030 $0.00253
Sonnet 5 $0.00012 $0.00101
Haiku 4.5 $0.00006 $0.00051

Measured 4d ago against content hash 31eeb611bf1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.

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. 4d 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,054 stars, last pushed 16d ago), licensed MIT. It adds 60 tokens to every session and 507 once invoked, about $0.0003 per session on Opus 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.

Related

Other skills, from other repositories

mm-init-project

Инициализирует или обновляет проект для mm-системы — создаёт passport.md в корне, копию в Obsidian, dashboard.md, handoff.md (скелет), project-instructions.md для claude.ai. Use when user says "оформи проект", "сделай паспорт", "init project", "/mm-init", "/mm-init-project", "обнови паспорт", "регистрирую проект".…

mworldorg/markdown-memory · 200 tokens

mm-setup

Онбординг/персонализация mm-системы под конкретного пользователя — спрашивает имя, чем занимается, стек, язык, путь к Obsidian vault, и записывает это в личный gitignored-оверлей config/mm-config.local.json + генерирует персональную копию claude.ai-скилла mm-web-bridge. Use when user says "/mm setup", "/mm onboard"…

mworldorg/markdown-memory · 152 tokens

mm-update

Самообновление mm-системы из удалённого репозитория. mm раздаётся через git clone + register-skills (не npm), поэтому update = git pull свежего mm из origin/main + повторный register-skills + notice о перезапуске Claude Code. Use when user says "обнови mm", "обнови систему", "/mm update", "update mm", "подтяни свежий…

mworldorg/markdown-memory · 102 tokens

mm

Диспетчер mm-системы — короткая команда вместо длинных. /mm без аргументов = список всех команд. /mm new = init project, /mm save = save session, /mm next = handoff, /mm prompt = bridge, /mm rules = instructions, /mm check = doctor. Use when user types "/mm" anything OR says "что есть в mm", "какие mm команды"…

mworldorg/markdown-memory · 103 tokens

content-editor

Writes and edits the portfolio's pages. Reads a brief, follows the style guide, and emits the HTML into public/.

crystian/skill-map · 28 tokens

notion-publish

Mirrors the portfolio's pages into Notion after publishing, creating one Notion page per site page via the Notion MCP. Use it from /publish, or when the user asks to sync the site to Notion.

crystian/skill-map · 52 tokens