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.
npx skills add mystilleef/spae-framework --skill purifygit clone --depth 1 https://github.com/mystilleef/spae-frameworkWrote 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.
[](https://agentmods.dev/skills/mystilleef/spae-framework/purify)<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.
<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>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.
| Model | Per session | Once 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 |
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 --> 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, andHygieneviolations: 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
- GATE—Survey scope and establish baseline. Inspect target code,
tests, build commands, and recent changes. Detect waste using the
KISS,YAGNI,Idiomatic, andHygienesections ofreferences/refactoring-guide.md. Readreferences/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
fallowresolves (fallow --version): rungit --no-pager diff --no-ext-diff HEAD | fallow audit -f json -q --diff-stdinand treat confirmed findings as extra dead-code signal. Treat all findings as unverified candidates, applying judgment during PLAN. Skip silently iffallowdoesn't resolve or the project lacks TS/JS sources. - When scope includes test files, read
references/test-pruning-guide.mdand 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 Changesvia the template below and halt. - When detected waste carries high regression risk resisting safe
verification under existing tests: record in
Findings, omit edits, and emitResult: No Changes.
- If scope resolves to current changes, the project contains
TypeScript or JavaScript sources, and
- 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. - PLAN—Read
references/testing-guide.mdand 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 thereferences/test-pruning-guide.mdorder. Check ambiguous or risky slices before acting. - 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.
- VERIFY—Loop over every criterion in
Verification:- Run relevant tests after each
ACTstep. - 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-enterVERIFY. - 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.
- Run relevant tests after each
- PERSIST—Confirm all edits written. Run final compilation or type-check where applicable.
- REPORT—Emit the result following the result directives and using the result template. Confirm what changed matches ORIENT.
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.
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.
- 5d ago Changed · +19 lines efc6582d24a4
- 9d ago Changed · -19 lines ac071b6004c2
- 13d ago Changed · +2 lines df0e9a163ed4
- 17d ago Changed · +9 lines · +4 tokens per session 8b76a3eb97ed
- 21d ago Changed · +7 lines 96091fa24f36
- 23d ago Changed · +10 lines f8b61343a8e3
- 1mo ago Changed 6457c077df18
- 1mo ago Changed · +25 lines · +7 tokens per session bcb234343082
- 3mo ago First seen · 199 lines · 23 tokens per session scan C f44049e344d6
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.
purify compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| purifymystilleef/spae-framework | Skill | 2 | 4d ago | MIT | C | 34 | Claude Code |
| anywhere-uianywhere-labs/Agents-Anywhere | Skill | 3.9k | yesterday | Apache-2.0 | A | 46 | Claude Code, Codex |
| ahk-reviewenmanuelmag/agent-harness-kit | Skill | 183 | 1mo ago | Apache-2.0 | A | 35 | Claude Code |
| ahk-testenmanuelmag/agent-harness-kit | Skill | 183 | 1mo ago | Apache-2.0 | A | 36 | Claude Code |
| ahk-triageenmanuelmag/agent-harness-kit | Skill | 183 | 1mo ago | Apache-2.0 | A | 29 | Claude Code |
| model-routingverivus-oss/llm-cli-gateway | Skill | 19 | today | MIT | A | 59 | Claude Code |
| agent-codex-gateverivus-oss/llm-cli-gateway | Skill | 19 | today | MIT | A | 50 | Claude Code |