re0-work

re0-work is a skill for Claude Code, Codex from LilMGenius/paperthin. It costs 63 tokens per session (466 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

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-work
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 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-work

README.md
[![agentmods](https://agentmods.dev/badge/skills/lilmgenius/paperthin/re0-work.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.svg" alt="Measured on agentmods" 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 466 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.1 $0.00063 $0.00466
Opus 5 $0.00032 $0.00233
Sonnet 5 $0.00013 $0.00093
Haiku 4.5 $0.00006 $0.00047

Measured 6d ago against content hash 38ef29777e17, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 6d 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-work/SKILL.md · 38 lines

What it actually says

Start over from what the previous cycle proved, not from what it happened to build.

Goal

re0-work is a controlled restart. It keeps earned knowledge and refuses to copy forward accidental architecture. Starting from scratch is not amnesia: contracts, schemas, vocabulary, real-surface tests, quality gates, and negative corpus survive when they earned it. Scaffold, explanatory UI, debug panels, shallow generated content, and code whose only value was learning what not to do do not.

Workflow

  1. Read the current plan, any lessons or re0-memo notes, local domain notes, QA evidence, and any user complaint that triggered the restart.
  2. Identify what to preserve: contracts, schemas that survived QA, quality gates, vocabulary, reusable services, real-surface tests, and negative corpus.
  3. Identify what to discard: explanatory UI, debug panels, scaffold, shallow generated content, accidental abstractions, and code whose only value was learning what not to do.
  4. Name the first quality gate before planning code.
  5. Write a v0 skeleton plan with one complete vertical loop.
  6. Build only the first loop until it clears the gate.

Rules

  • Starting from scratch means no copy-forward unless the artifact earned it.
  • One complete vertical loop beats many shallow surfaces.
  • Preserve provenance in local docs, not in the shipped product.
  • Do not rebuild around a vague lesson. Turn it into a gate or leave it out.
  • Do not delete negative corpus; archive or reference it where the next cycle will see it.
  • If a reusable module survives, name the contract that proved it survives.

Verification

Before finishing:

  1. The preserve/discard split is explicit and evidence-backed.
  2. The new v0 plan has one complete vertical loop and a named first gate.
  3. No old architecture is copied forward merely because it exists.
  4. A fresh builder can start without rereading the failed codebase.
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. 6d 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,060 stars, last pushed 17d ago), licensed MIT. It adds 63 tokens to every session and 466 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

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

check-links

Validates the portfolio's internal links before publishing. Walks every generated page and reports any link whose target is missing.

crystian/skill-map · 28 tokens

publish

Publishes the portfolio: runs the link check, hands off to the content editor for any last fixes, then follows the deploy runbook.

crystian/skill-map · 31 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