auto-rewrite

auto-rewrite is a skill for Claude Code, Codex from mr-tbot/Auto-Everything. It costs 97 tokens per session (4,211 once invoked), scanned A, original, MIT.

A code-provenance and originality check for finding parts of a project that may have come from other codebases, Stack Overflow, or AI output. It gathers evidence and considers lawful ways to resolve confirmed matches.

In plain words
What is it for?
Use it to inspect suspect code, establish where it came from, assess the risk, and compare remedies such as permission, attribution, replacement, or rewriting.
Why use it?
It helps you find copyright or plagiarism risks before releasing, selling, open-sourcing, fundraising, or entering an acquisition review. It separates evidence of copying from suspicion.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is --reporters console,json --output ./.audit/jscpd --blame.

Good fit Use it to inspect suspect code, establish where it came from, assess the risk, and compare remedies such as permission, attribution, replacement, or rewriting.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mr-tbot/Auto-Everything
agentmods
npx agentmods add skills/mr-tbot/auto-everything/auto-rewrite

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 auto-rewrite

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mr-tbot/auto-everything/auto-rewrite"><img src="https://agentmods.dev/badge/skills/mr-tbot/auto-everything/auto-rewrite.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,211 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 90
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 106
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 116
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.00097 $0.04211
Opus 5.5 $0.00039 $0.01684
Sonnet 5.5 $0.00019 $0.00842
Haiku 4.5 $0.00010 $0.00421

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

Security

Grade A, and why

auto-rewrite scanned grade A with 1 finding 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 3mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST -H 'Content-Type: application/json' \
skills/auto-rewrite/SKILL.md · 301 lines

How it starts

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

/auto-rewrite

Find code in this repo that came from somewhere else, prove it either way, and give the user real options for clearing it. Two questions per suspect region, in order:

  1. Is it actually copied? — evidence, not vibes.
  2. If so, what is the cheapest lawful remedy? — usually not a rewrite.

Not legal advice, and say so once. You are doing engineering triage: locating code, establishing provenance, and costing remedies. A lawyer decides what it means. Name doctrines and cases by name only — never invent a page cite, a docket number, or a section number. A fabricated citation destroys the credibility of a report whose entire value is credibility.

Step 0 — Scope And Trigger

Ask what prompted this, because it sets the depth and the deadline:

Trigger Depth
Routine hygiene Passes 1–3, report, no escalation
Shipping / open-sourcing soon Full sweep + remediation applied
Acquisition, funding, or enterprise diligence Full sweep. Say plainly that the acquirer will run a commercial snippet scanner (Black Duck, FOSSID/Revenera, FOSSA, Snyk, Mend) against a far larger proprietary corpus than anything free, so treat your result as a floor, not a ceiling
A rightsholder has already made contact Stop. Escalate before writing findings down — see Escalation

Then write down the scope: which paths are the user's own work, which are declared third-party (vendor/, third_party/, Pods/, node_modules/, external/), which are generated, which are test fixtures. Exclusions get stated in the report — a silent exclusion reads as a clean bill of health for code nobody looked at.

Declared third-party code is out of scope here and in scope for auto-license-check. The two skills split on the question: this one asks "did we copy it", that one asks "may we use it".

Pass 1 — Internal Duplication Sweep

Cheap, local, no network. Finds copy-paste inside the repo and gives you the hot files to investigate externally.

Read the full file on GitHub · 301 lines

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. 3mo ago First seen · 301 lines · 97 tokens per session scan A cf8a5ea44ea7

Subscribe to this mod's changes

auto-rewrite is a skill published in the GitHub repository mr-tbot/Auto-Everything (7 stars, last pushed 3mo ago), licensed MIT. It adds 97 tokens to every session and 4,211 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

auto-rewrite compared with skills from other repositories

auto-rewrite next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
auto-rewritemr-tbot/Auto-EverythingSkill73mo agoMITA97Claude Code, Codex
fto-triageanthropics/claude-for-legalSkill10kyesterdayApache-2.0A81Claude Code
legal-holdanthropics/claude-for-legalSkill10kyesterdayApache-2.0A68Claude Code
specification-writingwanshuiyin/Auto-claude-code-research-in-sleepSkill20kyesterdayMITA49Claude Code
terms-of-servicegenspark-ai/genofficeSkill13kyesterdayApache-2.0A32Claude Code, Codex
regulatory-research-fallbackHKUDS/OpenSpaceSkill8.1k19d agoMITA20Claude Code, Codex
x-scorecardx-cmd/x-cmdSkill4.8k7d agoApache-2.0A57Claude Code, Codex