purity

purity is a skill for Claude Code from mystilleef/spae-framework. It costs 15 tokens per session (895 once invoked), scanned C, original, MIT.

A workflow that repeatedly starts a code-cleanup agent on selected files or folders until that agent reports that no more changes are needed. It stops and reports an error if a pass fails.

In plain words
What is it for?
Use it to run the permitted cleanup agent in sequence on a target file or folder and receive an execution summary.
Why use it?
It coordinates repeated cleanup passes without requiring the user to run each one manually. The provided description does not specify which kinds of code waste the cleanup agent removes.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents.

Good fit Use it to run the permitted cleanup agent in sequence on a target file or folder and receive an execution summary.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mystilleef/spae-framework/purity
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 purity
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 purity

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mystilleef/spae-framework/purity"><img src="https://agentmods.dev/badge/skills/mystilleef/spae-framework/purity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 895 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.00015 $0.00895
Opus 5.5 $0.00006 $0.00358
Sonnet 5.5 $0.00003 $0.00179
Haiku 4.5 $0.00002 $0.00089

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

Security

Grade C, and why

purity 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 -->
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • structure — 89% identical, 21 lines differ
skills/purity/SKILL.md · 112 lines

How it starts

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

Purity

When to use

  • The user wants to remove code waste autonomously using the purify agent.

Goal

  • Run purification subagents sequentially to remove code waste in target code.

Input

  • Accept optional arguments (file or folder paths).

Workflow

Halt on any Halt conditions entry after every spawn.

  1. Purification Loop:
    • Spawn a purify subagent with the optional argument, then await its result.
    • Complete: repeat step 1.
    • No Changes: proceed to step 2.
  2. Report: emit the result per Result directives:
    • Result: Completed when the workflow reaches Report without a halt, Halted when a subagent reports Failed, Failed on any other Halt conditions entry.

Directives

  • Spawn first: open with the subagent tool and skip all preflight—context gathering, environment discovery, path checks, guide or knowledge-base reads, and plan reviews.
  • Prompt each subagent with the argument verbatim, or No arguments without one:
    • Never read, list, or expand file-path arguments.
    • Add no context, summaries, or instructions, since each subagent gathers its own.
  • Route only from each subagent's Result value.
  • Re-spawn the same subagent once, with the same argument, on a result missing or outside the workflow's literals, then route from the replacement's result and list the retry under Findings.
  • Spawn only the subagents the workflow names.
  • IMPORTANT: Return the result to the caller.

Constraints

  • Limit tool calls to the subagent tool, running nothing else—no file reads, writes, listings, searches, shell or git commands, skill activation, or user prompts.
  • Never run subagents in parallel or concurrently.
  • Halt conditions: halt immediately and report per Report, listing the diagnostic under Findings:
    • A subagent Failed result.
    • A replacement subagent result missing or outside the workflow's literals.
    • A process failure (crash, timeout, AgentError).

Read the full file on GitHub · 112 lines

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. 9d ago Changed · -4 lines ee77d7ba5ad7
  2. 13d ago Changed · +1 lines a274a3207e3b
  3. 21d ago Changed · +15 lines 7c0f60d89650
  4. 23d ago Changed · -8 lines 2054e12595e1
  5. 1mo ago First seen · 104 lines · 15 tokens per session scan C 5044f5ae68f4

Subscribe to this mod's changes

purity is a skill published in the GitHub repository mystilleef/spae-framework (2 stars, last pushed 4d ago), licensed MIT. It adds 15 tokens to every session and 895 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-10-31.

Related

purity compared with skills from other repositories

purity next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
puritymystilleef/spae-frameworkSkill24d agoMITC15Claude Code
ahk-triageenmanuelmag/agent-harness-kitSkill1831mo agoApache-2.0A29Claude Code
ahk-askenmanuelmag/agent-harness-kitSkill1831mo agoApache-2.0A37Claude Code
windows-encoding-fixesoleg494/coding-kitSkill313d agoMITA109Claude Code, Codex
fix-and-verifyRyosukeSAMA/github-aiSkill621d agoMITA38Codex
systematic-debuggingRobinBeraud/hermes-skillsSkill11todaynoneA16Claude Code, Codex
sitemap-link-checkerRobinBeraud/hermes-skillsSkill11todaynoneA46Claude Code, Codex