reversa-simplify

reversa-simplify is a skill for Claude Code, Codex from sandeco/reversa. It costs 53 tokens per session (1,322 once invoked), scanned A, original, MIT.

A code-refactoring tool that replaces complicated logic with clearer logic while keeping the same result. It requires a proof that the old and new versions are equivalent.

In plain words
What is it for?
Use it to simplify a selected piece of code, review the proposed change, and verify that its behavior has not changed.
Why use it?
It reduces the mental effort needed to understand code without making correctness an assumption. It also separates clarity improvements from performance optimization.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex; mentions Gemini CLI.

Good fit Use it to simplify a selected piece of code, review the proposed change, and verify that its behavior has not changed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sandeco/reversa/reversa-simplify
About the project

Reversa is a reverse-engineering framework that analyzes legacy software and turns its hidden business rules, code flows, and architectural decisions into executable specifications for AI coding agents. Teams use it to help agents safely understand and change systems that lack reliable documentation. The catalogue skills provide the specialized agent workflows used to perform this analysis.

sandeco/reversa · 1,579 stars · on GitHub

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 sandeco/reversa --skill reversa-simplify
Clone the repo
git clone --depth 1 https://github.com/sandeco/reversa

Made for: Claude Code, Codex.

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 reversa-simplify

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sandeco/reversa/reversa-simplify"><img src="https://agentmods.dev/badge/skills/sandeco/reversa/reversa-simplify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,322 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
  • 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.00053 $0.01322
Opus 5 $0.00026 $0.00661
Sonnet 5 $0.00011 $0.00264
Haiku 4.5 $0.00005 $0.00132

Measured 7d ago against content hash 1a4cd617e8b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

reversa-simplify 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 7d 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.

agents/reversa-simplify/SKILL.md · 80 lines

How it starts

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

Você é o simplificador. Sua missão é trocar uma lógica complexa por uma solução mais simples e clara, sem mudar o resultado. Seu objetivo primário é reduzir a complexidade cognitiva de quem lê a lógica; costuma reduzir também o custo de recurso, mas isso é efeito colateral, não a meta.

Antes de começar

  1. Leia .reversa/state.json (output_folder, chat_language, doc_language, user_name)
  2. Leia _reversa_refactor/README.md (control_mode, safety_net_policy). Se _reversa_refactor/ não existir, aborte: "Rode /reversa-refactor primeiro."
  3. Converse em chat_language; escreva artefatos em doc_language; nunca use travessão

Seleção da oportunidade

  1. Com argumento (/reversa-simplify OPP-...): resolva no opportunities/ do contexto
  2. Sem argumento: aceite um alvo natural, resolva o contexto, crie a oportunidade simplify se preciso
  3. Se o alvo real é ganho de desempenho medido (não clareza da lógica), reencaminhe a /reversa-optimize

Modo de controle

Siga o control_mode do README (gated por padrão): análise e prova fluem; todo passo que toca o código passa por gate com diff.

Rede de segurança e equivalência (obrigatórias antes de tocar o código)

  1. Exija testes que fixem a saída do alvo; sem cobertura, ofereça testes de caracterização verdes antes de simplificar
  2. Equivalência de saída: comprove que o algoritmo simples produz a mesma saída para o mesmo conjunto de entradas, incluindo edge cases (vazio, nulo, limites, concorrência). Simplificar que muda um edge case não é simplificação, é bug
  3. Recusada a rede, rebaixe para 🔴 e registre a ausência de prova

Preservação de comportamento

Consulte <output_folder>/soul.md e as specs confirmadas. Uma lógica complexa às vezes esconde uma regra de negócio confirmada (caso especial que existe por um motivo). Antes de simplificar, verifique se a complexidade é acidental (dá para remover) ou essencial (a regra exige). Complexidade essencial não é simplificada; é documentada.

Read the full file on GitHub · 80 lines

Files

What ships with it

1 file 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. 7d ago Changed · +10 lines 1a4cd617e8b1
  2. 7d ago First seen · 70 lines · 53 tokens per session scan A cf5f3f0d8fd6

Subscribe to this mod's changes

reversa-simplify is a skill published in the GitHub repository sandeco/reversa (1,579 stars, last pushed 3d ago), licensed MIT. It adds 53 tokens to every session and 1,322 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-09-03.

Related

Other skills, from other repositories

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

diagnose

Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.

emdash-cms/emdash · 43 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

byted-util-volcengine-detect-retry

An orchestration workflow for Volcengine Cloud Detect, a service that checks websites or network endpoints from test locations.

bytedance/agentkit-samples · 101 tokens