improve

improve is a skill for Claude Code, Codex from owainlewis/blueprint. It costs 33 tokens per session (345 once invoked), scanned A, original, MIT.

A skill for simplifying existing code while preserving what it does. It addresses duplication, dead code, unclear names, unnecessary layers, and overly complicated structure.

In plain words
What is it for?
Reviewing code and its tests, adding focused coverage when needed, removing duplication or unused code, improving names and structure, and verifying that behavior remains unchanged.
Why use it?
Complex code makes behavior harder to understand and changes riskier. This provides a review-and-test process for reducing that complexity without changing public interfaces or user-visible results.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/owainlewis/blueprint/improve
Any agent
npx skills add owainlewis/blueprint --skill improve
Clone the repo
git clone --depth 1 https://github.com/owainlewis/blueprint

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 improve

README.md
[![agentmods](https://agentmods.dev/badge/skills/owainlewis/blueprint/improve.svg)](https://agentmods.dev/skills/owainlewis/blueprint/improve)
Your own site
<a href="https://agentmods.dev/skills/owainlewis/blueprint/improve"><img src="https://agentmods.dev/badge/skills/owainlewis/blueprint/improve.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 345 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00033 $0.00345
Opus 5 $0.00016 $0.00172
Sonnet 5 $0.00007 $0.00069
Haiku 4.5 $0.00003 $0.00034

Measured 5d ago against content hash 3fa3a7093181, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

improve 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 5d 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.

skills/improve/SKILL.md · 31 lines

What it actually says

Improve

Make code easier to understand without changing what it does. Reduce the layers a reader must trace and the hidden state they must remember.

Process

  1. Identify the target from the request, current diff, or recently changed code.
  2. Read the target, its tests, and relevant surrounding code. State the behavior that must not change.
  3. If that behavior lacks tests, add focused coverage and run it against the unchanged code. Commit the passing test-only change before refactoring. If automated tests cannot exercise the behavior, explain why and give other evidence.
  4. Find unnecessary complexity, duplication, dead code, weak names, awkward boundaries, and abstractions that cost more than they help.
  5. Make focused improvements by deleting, deduplicating, renaming, simplifying, extracting, or inlining.
  6. Preserve public interfaces, data shapes, errors, and user-visible behavior unless the user explicitly asks to change them.
  7. Run tests and checks that cover behavior the refactor can affect. Report what improved, what behavior was preserved, and the evidence.

Return

State what became simpler, what behavior stayed the same, and which checks prove it. Name any behavior that remains unverified.

Boundaries

  • Do not add product scope or absorb unrelated cleanup.
  • Prefer a few clear edits over a broad rewrite.
  • Preserve behavior even when a redesign would be easier.
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. 5d ago First seen · 31 lines · 33 tokens per session scan A 3fa3a7093181

Subscribe to this mod's changes

improve is a skill published in the GitHub repository owainlewis/blueprint (375 stars, last pushed 6d ago), licensed MIT. It adds 33 tokens to every session and 345 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-30.

Related

Other skills, from other repositories

build-executor

Govern implementation from an approved execution contract. Invoke when execution-contract.md is approved and the user wants disciplined build work, TDD execution, or guarded batch-by-batch implementation.

MageByte-Zero/spec-superflow · 39 tokens

workflow-start

Primary entry point for the spec-superflow state-machine workflow. Invoke when the user is inside an active spec-superflow change directory (look for .spec-superflow.yaml, changes/ /, proposal.md, specs/, design.md, tasks.md, or execution-contract.md) and asks to start, continue, resume, implement, plan, or figure out…

MageByte-Zero/spec-superflow · 125 tokens

release-archivist

Close out a spec-superflow change with verification, summary, and archive readiness. Invoke when implementation is complete, verification is underway, or the user asks for a final wrap-up.

MageByte-Zero/spec-superflow · 42 tokens

contract-builder

Convert approved planning artifacts into an execution contract. Invoke when the user wants to start building, asks to move from planning to implementation, or when execution-contract.md is missing or stale.

MageByte-Zero/spec-superflow · 39 tokens

need-explorer

Clarify intent, scope, constraints, and success criteria before artifact creation. Invoke when the request is fuzzy, the user is comparing options, or the workflow needs a stable change definition before writing artifacts.

MageByte-Zero/spec-superflow · 44 tokens

review

Adversarial senior review of the spec before any code is written. Constructs a skeptical reviewer whose authority comes from the codebase, §R research, and live best-practice — then tries to REFUTE the spec, not rubber-stamp it. Every finding cites evidence (file:line or source); unverifiable ones are flagged.…

JuliusBrussee/cavekit · 139 tokens