Skip to main content
skill CX Codex

re0 — Claude Code skill: refresh an artifact into a clean v0

This skill rewrites an existing artifact as if it were the first clean version, stripping edit residue, duplicates and stale pieces. Useful after long iteration.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add LilMGenius/paperthin --skill re0 -a claude-code
Open on GitHub

What re0 does

The skill takes the target artifact from your request or the active context, reads it end to end, then checks nearby artifacts that must stay aligned with it. It removes scaffolding residue, stale deltas, duplicated process noise and over-specific history, and folds durable lessons into the place they should have lived from the start. Appending is the wrong move here: the skill rewrites instead, because appending preserves noise.

Prose and source get their own pass. A parenthetical that interrupts a sentence is folded into its own clause or cut, and a word repeated within reach of itself stays once. A hard line break splitting a sentence mid-flow gets unwrapped so each paragraph or list item lives on one source line, matching sibling artifacts. Code, tables and quoted material stay as formatted.

One rule is blunt: a pass that finds nothing to genuinely improve changes nothing. Repairs come from the source of truth — the canonical or sibling artifact, not the damaged surface. If the target is missing, the skill reports a MISS rather than a silent no-op. Judgment calls get surfaced to you instead of auto-resolved, and a deliberate look-alike is left alone. It does not create extra files unless you ask.

What it helps with

  • rewrite a draft into a clean version after many edits
  • strip duplicates and deprecated pieces from a document
  • sync nearby artifacts that have drifted apart
  • fold a noisy change history into what is true now
  • fix source formatting without touching code or tables

Example prompts for the agent

  • rewrite docs/architecture.md into a clean v0 and drop the edit traces
  • sync the nearby artifacts with README.md and remove duplicates
  • clean this file of stale deltas, keep the voice and structure

How to install re0

1Skills CLI (Vercel)

npx skills add LilMGenius/paperthin --skill re0 -a claude-code

2Manually: put the files in place

~/.claude/skills/re0/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/re0/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about re0

How do I install re0 in Claude?

Run npx skills add LilMGenius/paperthin --skill re0 -a claude-code. The skill lands at ~/.claude/skills/re0/SKILL.md.

What does re0 do?

It refreshes an existing artifact into the current best version: noise and stale pieces go, durable lessons move where they belong. The result should read as a clean v0, not a patch over an older draft.

What happens if the skill finds nothing to improve?

It changes nothing. A pass without genuine improvements leaves the artifact as is, and ambiguous spots are surfaced to you rather than resolved automatically.

Source text

SKILL.md · MIT
---
name: re0
description: "Refresh an existing artifact into the current best v0. Use when the user asks to clean up, sync up, dedupe, de-noise, smooth, rewrite, or update an artifact after iteration; when nearby artifacts may have drifted; or when changes in one place should be reflected across related artifacts while keeping the result minimal."
---

Refresh the target artifact as if it were the first clean version.

## Goal

The result must be lighter, more current, and more accurate than the input. It should not read like a changelog, cleanup note, or patch over an older draft.

## Workflow

1. Identify the target artifact from the user's request or the active context.
2. Read the target artifact end to end before editing.
3. Check nearby artifacts that must stay aligned with it.
4. Remove scaffolding residue, stale deltas, duplicated process noise, deprecated information, and over-specific history.
5. Fold durable lessons into the place they should have lived from the start.
6. Rewrite instead of appending when appending would preserve noise.
7. Preserve the artifact's useful voice and structure; simplify everything else.
8. Smooth prose noise: fold a parenthetical that interrupts a sentence or list into its own clause or cut it, keep a word or point repeated within reach of itself only once, and unwind padding that adds length but not meaning.
9. Smooth source noise: unwrap a hard line break that splits a sentence mid-flow so each paragraph or list item lives on one source line, matching how sibling artifacts format theirs; make a plain-text pointer to a named section or file followable, a link where the medium supports one; leave code, tables, and quoted material as formatted.
10. Re-read the result and cut again.

## Rules

- A pass that finds nothing to genuinely improve changes nothing.
- Prefer editing existing sections over adding new ones.
- Convert "what changed" into "what is true now".
- Keep only details that improve future execution, accuracy, or recall.
- Do not leave old/new traces unless the artifact is explicitly a changelog.
- Fix machine-clear residue; surface judgment calls — never auto-resolve an ambiguity or "fix" a deliberate look-alike.
- Repair from the source of truth — the canonical or sibling artifact, not the damaged surface — and mutate with edit-safety: assert the target exists (report a MISS, never a silent no-op), edit unicode-safe (`PYTHONUTF8=1`), replace positional targets per occurrence rather than by blanket sweep, and script large structural moves.
- Do not create extra files unless the user asks.

## Verification

The result reads as a clean v0 to fresh eyes — no trace of the older draft, no sign it was patched rather than rewritten. If unsure, re-read it cold, as a stranger with no prior context would. Report what noise was removed and what durable truth was kept.

© LilMGenius · MIT · LilMGenius/paperthin

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set28

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor