re0-work

re0-work is a skill for Claude Code, Codex from LilMGenius/paperthin. It costs 63 tokens per session (1,845 once invoked), scanned A, original, MIT.

A controlled way to restart a project while keeping lessons that were proved useful, such as contracts, tests, terminology, and quality checks. It discards code and design choices that only reflected mistakes or temporary scaffolding.

In plain words
What is it for?
Use it to plan a fresh first working slice, decide what evidence and rules to preserve, and rebuild only after the first quality check passes.
Why use it?
It prevents a bad foundation from making the next version harder to build. The restart keeps verified knowledge without carrying forward misleading architecture.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the paperthin plugin — 45 skills shipped together

Good fit Use it to plan a fresh first working slice, decide what evidence and rules to preserve, and rebuild only after the first quality check passes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lilmgenius/paperthin/re0-work
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,481 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-work
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 45 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-work

README.md
[![agentmods](https://agentmods.dev/badge/skills/lilmgenius/paperthin/re0-work/github.svg)](https://agentmods.dev/skills/lilmgenius/paperthin/re0-work)
Your own site
<a href="https://agentmods.dev/skills/lilmgenius/paperthin/re0-work"><img src="https://agentmods.dev/badge/skills/lilmgenius/paperthin/re0-work/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-work

Your own site · 80×15
<a href="https://agentmods.dev/skills/lilmgenius/paperthin/re0-work"><img src="https://agentmods.dev/badge/skills/lilmgenius/paperthin/re0-work.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,845 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 15 Nov 2026
  • Snyk fail 15 Nov 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.00063 $0.01845
Opus 5.5 $0.00025 $0.00738
Sonnet 5.5 $0.00013 $0.00369
Haiku 4.5 $0.00006 $0.00185

Measured 14d ago against content hash c53ba71ce7d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

re0-work 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 14d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/restart-handoff.mjs, scripts/restart-handoff.test.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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-work/SKILL.md · 52 lines

How it starts

The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Restart a project or artifact at v0, carrying forward only what the previous cycle proved.

Goal

Restart from what the previous cycle proved. Keep the proven contracts, schemas, vocabulary, real-surface tests, quality gates and negative corpus. Leave behind accidental architecture, scaffold, explanatory UI, debug panels, shallow generated content, and code whose only value was learning what not to do. Reach for it when the foundation is wrong, accumulated code is misleading progress, or a new pass should learn from the old one without inheriting its accidental architecture.

Workflow

  1. Read the re0-memo of the cycle being replaced, then the current plan, local domain notes, QA evidence, and the user complaint that triggered the restart, if any. A restart with no memo measuring where the old cycle stands stops here and asks for one, since a restart aimed without that measurement repeats the old plan's picture of itself.
  2. Judge restart scope from several independent cold reads of the old work (for example reviewers on different models or with different briefs), and decide it per layer: a layer whose responsibilities sit in the wrong places restarts; a layer that proved itself carries forward verbatim. Before reading an outcome of zero as a fact about the code, check whether any input reached that step; a step nothing reached says nothing about its code. Scope is also judged in time. A span of work that ran without the harness, hook or gate it depends on stays and gets one more pass under that harness: name the commit where the gap began with its evidence, keep every correction of fact and mechanical edit the repository's gates and CI passed, and redo only an artifact that set a new plan or direction, by a session that never read the first, laid beside it.
  3. Name what to preserve: contracts, schemas that survived QA, quality gates, vocabulary, reusable services, real-surface tests, negative corpus.
  4. Name what to discard: explanatory UI, debug panels, scaffold, shallow generated content, accidental abstractions, code whose only value was learning what not to do. A module the brief mandates is never discarded for being unexercised; it carries forward with the phase that first exercises it. When the mechanism behind a mandated requirement is blocked, discard the mechanism and plan another; the requirement stays until its owner removes it.
  5. For a live system (a service, deployment or scheduled job), build v0 beside it on its own orphan branch and worktree. The old line takes only the fixes the live service needs, each mirrored into the v0 plan. v0 takes over only after a rehearsal on a copy of live data, a data migration the old code can still open, and a rollback drill that moves the main line back and forward again, all inside a window where the service can afford a missed run.
  6. To replace a repository's main line, preserve the old main history on the archive branch archive/<YYYYMMDD-HHMMSS>, named from the old tip's own commit time, never the wall clock. Snapshot the gitignored rotating ledgers outside the checkout: the script's defaults are the paths one loop harness writes (.omo/evidence/*/ROUNDS.md, .omo/ulw-execute/ledger.jsonl and .omo/ulw-loop/*/ledger.jsonl), and --ledger adds the ones this repository keeps. Where the repository keeps loop state out of every commit, or is public, the snapshot is the ledgers' address and the archive branch is the old tip with no commit of its own (--snapshot-only). Otherwise copy the snapshot back into the checkout while the archive branch is checked out and force-add it there, in that branch's final ledger commit before pushing, so negative corpus and ledger share one address. Reject a tracked ledger under docs/, since it would make a gitignored working file tracked on the live branch.
  7. Prepare the v0 line in the shape the repository's commit contract wants: a separate directory that becomes one root commit (--prepared), or, where the contract commits per unit, an orphan branch with one commit per unit (--prepared-branch). Carry forward only the preserve set and the ignore rules, without .git or the archive's ledger snapshot. Keep discarded tracked material on the archive branch; move any untracked negative corpus to an archive location before replacing the checkout, and never delete it. Choose the snapshot directory, the intended remote and an unused temporary orphan branch name, and resolve pending checkout changes, branch collisions, or a remote main that differs from the recorded old tip before preparing the handoff. Then run, from this skill's folder:

Read the full file on GitHub · 52 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 14d ago Changed c53ba71ce7d3
  2. 21d ago Changed · +14 lines 0dffc73a7c74
  3. 3mo ago First seen · 38 lines · 63 tokens per session scan A 38ef29777e17

Subscribe to this mod's changes

re0-work is a skill published in the GitHub repository LilMGenius/paperthin (1,481 stars, last pushed 5d ago), licensed MIT. It adds 63 tokens to every session and 1,845 once invoked, about $0.0003 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.

Related

re0-work compared with skills from other repositories

re0-work next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
re0-workLilMGenius/paperthinSkill1.5k5d agoMITA63Claude Code, Codex
modular-skillsathola/claude-night-marketSkill358yesterdayMITA24Claude Code
evaluate-skilledonadei/caliperSkill2392d agoMITA70Claude Code
context-boundary-reporteredonadei/caliperSkill2392d agoMITA20Claude Code, Codex
alertedonadei/caliperSkill2392d agoMITA20Claude Code, Codex
grill-skilledonadei/caliperSkill2392d agoMITA58Claude Code
hillclimb-skilledonadei/caliperSkill2392d agoMITA66Claude Code