refactor-maintainability

refactor-maintainability is a skill for Claude Code, Codex from Pantani/ableton-mind. It costs 42 tokens per session (257 once invoked), scanned A, original, MIT.

A skill for auditing and improving the maintainability of the ableton-mind project. Maintainability means keeping code understandable, modular, and safe to change.

In plain words
What is it for?
Use it for maintainability audits, focused refactoring, dependency-boundary reviews, and code-quality hardening with appropriate tests.
Why use it?
It helps identify duplication, dead code, complex functions, unclear boundaries, and other issues that make future changes risky.

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/pantani/ableton-mind/refactor-maintainability
Any agent
npx skills add Pantani/ableton-mind --skill refactor-maintainability
Clone the repo
git clone --depth 1 https://github.com/Pantani/ableton-mind

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 refactor-maintainability

README.md
[![agentmods](https://agentmods.dev/badge/skills/pantani/ableton-mind/refactor-maintainability.svg)](https://agentmods.dev/skills/pantani/ableton-mind/refactor-maintainability)
Your own site
<a href="https://agentmods.dev/skills/pantani/ableton-mind/refactor-maintainability"><img src="https://agentmods.dev/badge/skills/pantani/ableton-mind/refactor-maintainability.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 257 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.00042 $0.00257
Opus 5 $0.00021 $0.00129
Sonnet 5 $0.00008 $0.00051
Haiku 4.5 $0.00004 $0.00026

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

Security

Grade A, and why

refactor-maintainability 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 4d 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.

.claude/skills/refactor-maintainability/SKILL.md · 34 lines

What it actually says

Refactor Maintainability

Use this skill for maintainability audits and bounded refactor work.

Workflow

  1. Run or inspect complexity and dependency checks when available.
  2. Search for duplicated validation, repeated command parsing, oversized functions, stale TODOs and unclear ownership boundaries.
  3. Rank refactor candidates by risk, user impact and test coverage.
  4. Before changing behavior, coordinate with test-coverage-expansion.
  5. Refactor in small slices that preserve public contracts.
  6. Verify with focused tests plus lint/typecheck/build as needed.

Refactor Rules

  • Do not rename MCP tools, JSON-RPC methods, recipe formats or public docs paths without an ADR and explicit scope.
  • Do not introduce abstractions unless they remove real duplication or clarify a boundary.
  • Do not mix formatting-only churn with behavior fixes.

Report Format

Write _workspace/quality-audit/maintainability-{N}.md with:

  • Candidate.
  • Evidence.
  • Risk.
  • Suggested slice.
  • Required tests.
  • Verification.
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. 4d ago First seen · 34 lines · 42 tokens per session scan A 3ef84743d728

Subscribe to this mod's changes

refactor-maintainability is a skill published in the GitHub repository Pantani/ableton-mind (5 stars, last pushed 2mo ago), licensed MIT. It adds 42 tokens to every session and 257 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

groove-builder

Use when the user wants drum patterns by genre - kick, snare, hi-hat, percussion. Examples - "give me a trap beat", "house drum pattern", "DnB drums at 174", "lo-fi drums with swing", "boom-bap pattern".

glincker/ableton-skills · 60 tokens

ableton-live

Connect and operate the Loophole Bridge (Ableton Live MCP server). Use when the user wants to check Live/bridge prerequisites, wire an MCP client to Loophole, or run a Live editing recipe (humanize, build arrangement, batch rename, chord from prompt). Triggers: "is my Ableton bridge working", "set up loophole"…

OthmanAdi/loophole · 90 tokens

midi-cleanup

Use when the user asks to humanize a MIDI part, fix voice leading, quantize notes, clean up timing, fix stuck/duplicate notes, or generally polish a MIDI clip they recorded or wrote. Examples - "humanize this hat", "voice these chords better", "the timing is too stiff", "fix the voice leading on the strings".

glincker/ableton-skills · 76 tokens

mixer-doctor

Use when the user describes a mix problem ("muddy", "harsh", "no headroom", "vocals get lost", "kick and bass fighting") or asks for a mix audit. Diagnoses the issue from session state and proposes specific corrective moves with EQ, compression, sends, and routing.

glincker/ableton-skills · 67 tokens

producer-mode

Use when the user asks to set up tracks, pick instruments, scaffold an arrangement, build a project template, or describe a track they want to make in Ableton Live. Examples - "make me a 4-bar lo-fi loop", "set up a film score template", "I want to start a hip-hop beat in C minor".

glincker/ableton-skills · 72 tokens

arrangement-coach

Use when the user has a Session-view loop and wants to promote it to a full Arrangement, build sections (intro/verse/drop/break/outro), or extend a 4-bar idea into a 3-minute track. Examples - "turn this loop into a full song", "build me a 2-minute arrangement from this", "promote session to arrangement".

glincker/ableton-skills · 79 tokens