xp-simple-design-refactor

xp-simple-design-refactor is a skill for Claude Code, Codex from saski/arnesto. It costs 41 tokens per session (299 once invoked), scanned A, original, Unlicense.

A guide for simplifying code and improving its maintainability through small refactoring steps. Refactoring changes the code's structure without changing what it is meant to do.

In plain words
What is it for?
Use it to review code structure, prioritize high-value refactors, improve names and boundaries, and make focused changes that are easier to verify.
Why use it?
It helps reduce duplication, confusing logic, and unnecessary complexity while keeping tests as a safety net.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to review code structure, prioritize high-value refactors, improve names and boundaries, and make focused changes that are easier to verify.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saski/arnesto/xp-simple-design-refactor
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 saski/arnesto --skill xp-simple-design-refactor
Clone the repo
git clone --depth 1 https://github.com/saski/arnesto

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 xp-simple-design-refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/saski/arnesto/xp-simple-design-refactor.svg)](https://agentmods.dev/skills/saski/arnesto/xp-simple-design-refactor)
Your own site
<a href="https://agentmods.dev/skills/saski/arnesto/xp-simple-design-refactor"><img src="https://agentmods.dev/badge/skills/saski/arnesto/xp-simple-design-refactor.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 299 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.00041 $0.00299
Opus 5 $0.00020 $0.00150
Sonnet 5 $0.00008 $0.00060
Haiku 4.5 $0.00004 $0.00030

Measured 3d ago against content hash 4f403ebc127d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

xp-simple-design-refactor 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 3d 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/skills/xp-simple-design-refactor/SKILL.md · 38 lines

What it actually says

Senior XP Developer — Maintainability & Simple Design Refactoring

Act as a Senior XP Developer applying XP Simple Design principles:

  • Passes all tests
  • Clearly expresses intent
  • Contains no duplication
  • Has the fewest elements needed

Task

  1. Analyze the code and identify refactorings that:

    • Reduce duplication and accidental complexity
    • Improve naming, clarity, cohesion, and boundaries
    • Simplify logic and reveal intent
    • Align with small, incremental design
  2. Prioritize refactors by ROI, considering:

    • Impact on readability and future evolution
    • Frequency of change
    • Risk and complexity reduction
    • Feasibility in small, safe steps
  3. Implement the highest-ROI refactor using:

    • Tiny, reversible changes
    • A strong test safety net; add or refine tests if needed
    • Strict adherence to simple design principles
  4. Explain briefly:

    • Why this refactor gives the highest ROI
    • How it improves maintainability through simple design
    • The next small improvement step

The final result must be simpler and more maintainable than before.

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. 3d ago First seen · 38 lines · 41 tokens per session scan A 4f403ebc127d

Subscribe to this mod's changes

xp-simple-design-refactor is a skill published in the GitHub repository saski/arnesto (5 stars, last pushed yesterday), licensed Unlicense. It adds 41 tokens to every session and 299 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-09-03.

Related

Other skills, from other repositories

runtime-evidence-and-tracing

Use when connecting observed behavior, logs, metrics, request IDs, run IDs, screenshots, traces, external dependency results, or artifacts into a runtime evidence loop.

yfge/agent-harness-skills · 39 tokens

html-ppt-zhangzara-block-frame

Rescuing a messy startup deck into a board-grade system — the diagnosis, the page grammar, and the rebuilt proof pages. Built as a decision-grade design craft deck for founders, exec presenter.

nexu-io/open-design · 51 tokens

build-test

Run the project's build / typecheck / lint / test commands and emit the build.passing + tests.passing signals devloop convergence reads.

nexu-io/open-design · 31 tokens

doca-flow

Build and debug DOCA Flow applications on supported NVIDIA NICs/DPUs: define match/action pipes, initialize ports and representors, choose forwarding targets, validate pipes before hardware programming, read counters, match the Flow version to the installed DOCA release, and diagnose Flow API errors. Trigger on DOCA…

NVIDIA/skills · 140 tokens

mcore-create-issue

Investigate a failing GitHub Actions run or job and create a GitHub issue for the failure.

NVIDIA/skills · 26 tokens

doca-dpa-hl-tracer

Use this skill when the user runs docadpahltracer to capture/decode DPA-side traces at the programming-events layer (kernel entry/exit, sync points, comm primitive calls, RDMA WR submission, completion drain) — picking TRACE vs CRIT, tuning the JSON config (file-size limits + filesizelimitpolicy, thread…

NVIDIA/skills · 242 tokens