re0-style

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

A code-formatting procedure that makes a named change or file set follow the conventions already used by its repository. It uses the project's formatter and linter, then handles style choices those tools do not decide, without changing behavior.

In plain words
What is it for?
It helps fix naming, import order, file layout, error style, and other repository-specific formatting differences in a working change or selected files.
Why use it?
Code that follows different local conventions is harder to read and review. This limits the changes to style so functional behavior stays the same.

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 It helps fix naming, import order, file layout, error style, and other repository-specific formatting differences in a working change or selected files.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lilmgenius/paperthin/re0-style"><img src="https://agentmods.dev/badge/skills/lilmgenius/paperthin/re0-style.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,819 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.
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.00126 $0.01819
Opus 5.5 $0.00050 $0.00728
Sonnet 5.5 $0.00025 $0.00364
Haiku 4.5 $0.00013 $0.00182

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

Security

Grade A, and why

re0-style 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 21d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/scope.mjs, scripts/scope.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.

skills/depth/re0-style/SKILL.md · 45 lines

How it starts

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

Fix a named change or set of files to match the conventions its repository already keeps, changing style and nothing else.

Goal

Code written in one session drifts from the code around it: another quote style, another naming case, imports in another order, errors raised the way the last project raised them. A reader then has to work out whether each difference means something. re0-style makes the code in scope read like its neighbours. It takes every convention from the repository itself, first from the formatter and linter the project configures and then from the pattern neighbouring files follow for what no tool decides, and applies the fixes in place with behavior unchanged. Where the repository itself is split between two conventions, it asks rather than picks. The result is a style-only diff and a report of each change by file and rule.

Workflow

  1. Pin the scope. Name the change (the working diff, or the diff against the base the user names) or the file list the user gave. For a change, the unit is the changed lines: a file the change does not touch is out of scope, and so are the untouched lines of a file it does. Run the project's tests once now, by the command its manifest, task runner or CI workflow names, and record the result, so a failure that was already there is not blamed on the pass.
  2. Drop what is not the repository's own. From this skill's folder, run node scripts/scope.mjs <files...> [--json] on the files in scope. It lists, per file, linguist-generated and linguist-vendored attributes, a generated-file header in the first lines, formatter and linter off markers with their line numbers, and the style config files that apply from the file's folder up to the repository root; exit 0 means no file is flagged, 3 that one or more are, 2 a usage error or an unreadable input. A hit is a lead to read, not a verdict: drop a file that is truly generated or vendored, and leave every region under an off marker as it is.
  3. Read what the tools decide. From the configs step 2 listed and the project's manifests, scripts, lockfile, CI workflows and pre-commit config, name the formatter and linter the repository runs and the options it sets. Resolve each through the project's own resolution (npm exec, bun run, ./node_modules/.bin/, uv run, poetry run, the pinned toolchain), print the version about to run (the tool's --version through that same resolution), and compare it with the one the lockfile or manifest declares. A mismatch, or a tool reachable only as a global binary or a scratch install, stops tool fixes for that tool and goes in the report.
  4. Read what no tool decides. For each question the scope raises that no configured tool settles (identifier case by kind, import grouping and order, file and folder layout, export style, how errors are raised and worded), sample the neighbouring files, nearest first: the same folder, then files of the same kind elsewhere in the repository. Count each pattern. A pattern is the convention when nearly every sampled instance follows it and the exceptions look like drift: scattered single files, often recent. When the other pattern owns a whole folder or module, or recurs across files you cannot call drift, the repository keeps two conventions there; record both counts and where each lives. When you cannot tell, treat it as two conventions and ask. A folder's own consistent convention beats the one the rest of the repository keeps.
  5. Apply the tool fixes. Run the formatter, then the linter's fix mode, on the files in scope only, and only the fixes the tool marks safe. For a change, first run the formatter's check on the base version of each file (read it with git show <base>:<path> into a scratch copy): if the base was already clean, formatting the whole file touches only the change; if it was not, keep only the edits inside the changed lines (the tool's range option, or the hunks that overlap them) and report the earlier drift as left. When the user asked to set up a formatter or linter that the repository lacks, configure the one its ecosystem and manifests already point to, set each option to what step 4 found the code doing, and run it on the scope alone; whatever it would still change outside the scope is reported, never applied.
  6. Apply the hand fixes. Fix the remaining lint findings and each deviation from a step 4 convention inside the scope, preserving behavior. Rename a local or private identifier together with every reference to it. A rename that crosses a public API (an export another module or package imports, a CLI flag, a config key, a route, a serialized field) is proposed in the report with every caller it would touch and applied only when the user confirms it. A lint finding that only a logic change can satisfy is left and reported.
  7. Surface the splits. For each place where step 4 found two conventions, leave the code as it is and write a question into the report: the two patterns, the count of each, where each lives, and the lines in scope that wait on the answer. The run does not stop for it; a later pass applies the answer.
  8. Verify and report as below.

Read the full file on GitHub · 45 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. 21d ago First seen · 45 lines · 126 tokens per session scan A c4b8e9e58f3b

Subscribe to this mod's changes

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

Related

re0-style compared with skills from other repositories

re0-style next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
re0-styleLilMGenius/paperthinSkill1.5k5d agoMITA126Claude Code, Codex
demo-revieweradewale/skill-eval-harnessSkill7815d agoMITA28Claude Code
reviewing-agent-designsaj604/agentic-atlas-pluginSkill61mo agononeA118Claude Code
agent-watchdogBuilderIO/skillsSkill4.7k4d agoMITA115Claude Code, Codex
comet-verifyrpamis/cometSkill3.3kyesterdayMITA32Claude Code, Codex
no-commentsbacknotprop/pstackSkill5.5kyesterdayMITA20Claude Code, Codex, Cursor
interrogatebacknotprop/pstackSkill5.5kyesterdayMITA61Claude Code, Codex, Cursor