api-rewrite-sweep

api-rewrite-sweep is a skill for Claude Code, Codex from AllanWessels/Bratan. It costs 41 tokens per session (1,196 once invoked), scanned A, original, no licence file.

A code-change rule for updates that alter a component's public API, meaning the interface other code uses. It requires tests for removed parts of that interface to be updated in the same commit.

In plain words
What is it for?
Checking API changes and keeping related tests updated in the same commit.
Why use it?
It prevents a commit from leaving continuous integration—the automated build and test system—in a broken state.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Checking API changes and keeping related tests updated in the same commit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/allanwessels/bratan/api-rewrite-sweep
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 AllanWessels/Bratan --skill api-rewrite-sweep
Clone the repo
git clone --depth 1 https://github.com/AllanWessels/Bratan

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 api-rewrite-sweep

README.md
[![agentmods](https://agentmods.dev/badge/skills/allanwessels/bratan/api-rewrite-sweep.svg)](https://agentmods.dev/skills/allanwessels/bratan/api-rewrite-sweep)
Your own site
<a href="https://agentmods.dev/skills/allanwessels/bratan/api-rewrite-sweep"><img src="https://agentmods.dev/badge/skills/allanwessels/bratan/api-rewrite-sweep.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,196 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 unknown 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.00041 $0.01196
Opus 5 $0.00020 $0.00598
Sonnet 5 $0.00008 $0.00239
Haiku 4.5 $0.00004 $0.00120

Measured 8d ago against content hash c86a54c5f2c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

api-rewrite-sweep 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 8d 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.

docs/build-skills/api-rewrite-sweep/SKILL.md · 113 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 8d ago First seen · 113 lines · 41 tokens per session scan A c86a54c5f2c3

Subscribe to this mod's changes

api-rewrite-sweep is a skill published in the GitHub repository AllanWessels/Bratan (2 stars, last pushed 2mo ago), with no licence file. It adds 41 tokens to every session and 1,196 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

chimera

Use this skill for post-session code quality review of files added or modified during a WrongStack session. It runs automatically when a session ends, and on demand. Trigger on the explicit vocabulary — "review", "code review", "quality check", "post-session review", "chimeric review", "chimera" — and on the task…

WrongStack/WrongStack · 182 tokens

auto-review

Use this skill to configure and understand the built-in auto-review plugin (wstack-auto-review) that fires automated code review subagents on every code change during a session. Triggers: user says "auto review", "otomatik review", "auto code review", "her değişiklikte review", "/auto-review".

WrongStack/WrongStack · 67 tokens

reviewing-changes

Use when a review package asks you to review a plan step's change set (todo.startReview): you are the REVIEWER, not the author. How to judge an agent-written diff, file findings with addreviewcomment, and settle with exactly one reviewverdict.

JetBrains/thinkrail · 59 tokens

reflecting-findings

Use when a reflection package hands you another agent's review findings to verify (before they become a fix request): you are the REFLECTOR, an independent skeptic. Judge each finding against the real code and settle it with reflectfinding — kept or refuted.

JetBrains/thinkrail · 58 tokens

verify

Answer "is this shippable / done?" with evidence before a commit or PR — fires on "verify", "is this done", "ready to ship?", pre-commit or pre-PR. Part of the Agentsmith harness; runs the project's verify phases and never claims "passing" without showing the output (R5).

PromptPartner/agentsmith · 69 tokens

review

Review Playwright tests for quality. Use when user says "review tests", "check test quality", "audit tests", "improve tests", "test code review", or "playwright best practices check".

adriannoes/awesome-agentic-ai · 44 tokens