purify

purify is a skill for Claude Code from mystilleef/spae-framework. It costs 34 tokens per session (2,478 once invoked), scanned C, original, MIT.

An agent that simplifies existing code while preserving its intended behavior. It removes dead code, repeated structures, unnecessary abstractions, and non-idiomatic patterns; KISS means keeping things simple, and YAGNI means avoiding code for needs that do not yet exist.

In plain words
What is it for?
Use it on specified files or folders, or on current repository changes, to remove safe complexity and verify the result with tests.
Why use it?
It reduces code that is harder to read, maintain, or run than necessary. It can also strengthen tests when simplification exposes missing coverage.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it on specified files or folders, or on current repository changes, to remove safe complexity and verify the result with tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mystilleef/spae-framework/purify
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 mystilleef/spae-framework --skill purify
Clone the repo
git clone --depth 1 https://github.com/mystilleef/spae-framework

Made for: Claude Code.

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 purify

README.md
[![agentmods](https://agentmods.dev/badge/skills/mystilleef/spae-framework/purify/github.svg)](https://agentmods.dev/skills/mystilleef/spae-framework/purify)
Your own site
<a href="https://agentmods.dev/skills/mystilleef/spae-framework/purify"><img src="https://agentmods.dev/badge/skills/mystilleef/spae-framework/purify/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 purify

Your own site · 80×15
<a href="https://agentmods.dev/skills/mystilleef/spae-framework/purify"><img src="https://agentmods.dev/badge/skills/mystilleef/spae-framework/purify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,478 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00034 $0.02478
Opus 5.5 $0.00014 $0.00991
Sonnet 5.5 $0.00007 $0.00496
Haiku 4.5 $0.00003 $0.00248

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

Security

Grade C, and why

purify scanned grade C 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 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- prettier-ignore-start -->
skills/purify/SKILL.md · 252 lines

How it starts

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

Purification agent

When to use

  • Code contains visible waste, ceremony, duplication, or dead paths.
  • Existing implementation looks correct but heavier than necessary.
  • Performance, readability, or maintainability can improve without changing intended behavior.
  • Test suites carry redundant, obsolete, slow, or flaky tests.

Goal

  • Remove KISS, YAGNI, Idiomatic, and Hygiene violations: dead code, redundant abstractions, over-engineering, non-idiomatic patterns, and hygiene debt.
  • Reduce code to the smallest clear, idiomatic, maintainable form.
  • Improve efficiency only through safe, verified changes.
  • Strengthen tests when simplification or optimization exposes coverage gaps.
  • Keep test suites small, fast, and deterministic: prune redundant and obsolete tests, speed slow ones, stabilize flaky ones, preserve protection.

Input

Determine scope by the first available source:

  • Files or folders provided by the user.
  • Current changes in the repository.

Halt if no scope exists.

Current changes: staged and unstaged edits, deletions, and renames of tracked files, plus new untracked files. Requires a versioned project.

Testing

See references/testing-guide.md for test structure, isolation, mocking, assertion, and performance standards, and for selecting project testing guides (TESTING*.md at the project root). Project guides override it on conflict.

When scope includes test files, see references/test-pruning-guide.md for the test smell catalog, edit order, deletion evidence, and speed and stability fixes.

Shell commands

See references/shell-command-guide.md for command safety, timeouts, redirects, and non-interactive environment directives.

Cleanup

See references/cleanup-guide.md for the Self-cleanup checklist and diff-only audit scope.

Workflow

  1. GATE—Survey scope and establish baseline. Inspect target code, tests, build commands, and recent changes. Detect waste using the KISS, YAGNI, Idiomatic, and Hygiene sections of references/refactoring-guide.md. Read references/shell-command-guide.md. Run relevant tests and, if they fail, identify why verification can't run.
    • If scope resolves to current changes, the project contains TypeScript or JavaScript sources, and fallow resolves (fallow --version): run git --no-pager diff --no-ext-diff HEAD | fallow audit -f json -q --diff-stdin and treat confirmed findings as extra dead-code signal. Treat all findings as unverified candidates, applying judgment during PLAN. Skip silently if fallow doesn't resolve or the project lacks TS/JS sources.
    • When scope includes test files, read references/test-pruning-guide.md and detect test smells using its catalog. Failing obsolete tests count as test smells, not baseline failures.
    • Record one detection line per category: KISS, YAGNI, Idiomatic, Hygiene, and test smells when scope includes test files. Each line names code examined (or why none applies) and violations found.
    • Once every category carries a line, exit if the survey finds none of: dead code, redundant abstractions, unused helpers, over-engineered constructs, non-idiomatic patterns, hygiene debt, or test smells. Emit Result: No Changes via the template below and halt.
    • When detected waste carries high regression risk resisting safe verification under existing tests: record in Findings, omit edits, and emit Result: No Changes.
  2. ORIENT—State goal and scope in one sentence. Name what won't change: behavior, public interfaces, and feature scope. Capture pre-task baseline snapshot per references/cleanup-guide.md.
  3. PLAN—Read references/testing-guide.md and each project testing guide covering the files under test. Declare minimal changes: which violations to remove, which files to edit, and in what order. Test edits follow the references/test-pruning-guide.md order. Check ambiguous or risky slices before acting.
  4. ACT—Execute only what PLAN declared. Nothing more.
    • Remove dead code, unused branches, redundant state, obsolete helpers, and needless comments.
    • Inline thin wrappers, merge duplicate paths, simplify conditions, reduce parameters, and replace overbuilt abstractions.
    • Improve hot or wasteful paths only when output and intended behavior stay unchanged.
    • Add or update tests only when needed to lock behavior around modified code.
    • Prune and stabilize tests per references/test-pruning-guide.md.
  5. VERIFY—Loop over every criterion in Verification:
    • Run relevant tests after each ACT step.
    • Audit task edits against the pre-task baseline using the Self-cleanup checklist in references/cleanup-guide.md, removing every self-introduced artifact before proceeding.
    • For each unmet criterion: backtrack to last known-good state, return to ACT, and re-enter VERIFY.
    • Exit only when all criteria pass.
    • Halt only for out-of-scope blockers (failing baseline tests, compilation errors, or missing runtime environments), never for complex code cleanups.
  6. PERSIST—Confirm all edits written. Run final compilation or type-check where applicable.
  7. REPORT—Emit the result following the result directives and using the result template. Confirm what changed matches ORIENT.

Read the full file on GitHub · 252 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · +19 lines efc6582d24a4
  2. 9d ago Changed · -19 lines ac071b6004c2
  3. 13d ago Changed · +2 lines df0e9a163ed4
  4. 17d ago Changed · +9 lines · +4 tokens per session 8b76a3eb97ed
  5. 21d ago Changed · +7 lines 96091fa24f36
  6. 23d ago Changed · +10 lines f8b61343a8e3
  7. 1mo ago Changed 6457c077df18
  8. 1mo ago Changed · +25 lines · +7 tokens per session bcb234343082
  9. 3mo ago First seen · 199 lines · 23 tokens per session scan C f44049e344d6

Subscribe to this mod's changes

purify is a skill published in the GitHub repository mystilleef/spae-framework (2 stars, last pushed 4d ago), licensed MIT. It adds 34 tokens to every session and 2,478 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

purify compared with skills from other repositories

purify next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
purifymystilleef/spae-frameworkSkill24d agoMITC34Claude Code
anywhere-uianywhere-labs/Agents-AnywhereSkill3.9kyesterdayApache-2.0A46Claude Code, Codex
ahk-reviewenmanuelmag/agent-harness-kitSkill1831mo agoApache-2.0A35Claude Code
ahk-testenmanuelmag/agent-harness-kitSkill1831mo agoApache-2.0A36Claude Code
ahk-triageenmanuelmag/agent-harness-kitSkill1831mo agoApache-2.0A29Claude Code
model-routingverivus-oss/llm-cli-gatewaySkill19todayMITA59Claude Code
agent-codex-gateverivus-oss/llm-cli-gatewaySkill19todayMITA50Claude Code