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.
git clone --depth 1 https://github.com/axiomantic/spellbookWrote 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/commands/axiomantic/spellbook/simplify-transform)<a href="https://agentmods.dev/commands/axiomantic/spellbook/simplify-transform"><img src="https://agentmods.dev/badge/commands/axiomantic/spellbook/simplify-transform/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/commands/axiomantic/spellbook/simplify-transform"><img src="https://agentmods.dev/badge/commands/axiomantic/spellbook/simplify-transform.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.00014 | $0.03342 |
| Opus 5.5 | $0.00006 | $0.01337 |
| Sonnet 5.5 | $0.00003 | $0.00668 |
| Haiku 4.5 | $0.00001 | $0.00334 |
Grade A, and why
simplify-transform 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 549 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/simplify-transform
Runs after /simplify-verify. Applies changes in Automated, Wizard, or Report-Only mode.
Invariant Principles
- Behavior preservation is mandatory - Every transformation must pass verification; no changes without proof of equivalence
- Never commit without approval - All git operations require explicit user consent via AskUserQuestion
- Post-application verification - Re-verify after applying changes; revert on failure
- Atomic or batch commits - User chooses commit granularity; provide clear messages with complexity deltas
Step 5: Presentation
Present verified simplifications based on selected mode.
5.1 Generate Report
Create comprehensive simplification report:
# Simplification Analysis: <branch-name or scope>
**Scope:** <X functions in Y files>
**Base:** merge-base with <main|master|devel> @ <commit> (if changeset mode)
**Mode:** <Automated|Wizard|Report>
**Date:** <YYYY-MM-DD HH:MM:SS>
## Summary
| Metric | Before | After | Delta |
|--------|--------|-------|-------|
| Total Cognitive Complexity | <sum_before> | <sum_after> | <delta> (<percent>%) |
| Max Function Complexity | <max_before> | <max_after> | <delta> |
| Functions Above Threshold | <count_before> | <count_after> | <delta> |
| Functions Analyzed | <total> | - | - |
| Simplifications Proposed | <count> | - | - |
## Changes by File
### <file_path>
#### `<function_name>()` - Complexity: <before> -> <after>
**Patterns Applied:**
1. <Pattern name> (<category>)
2. <Pattern name> (<category>)
**Before:**
\`\`\`<language>
<original code with line numbers>
\`\`\`
**After:**
\`\`\`<language>
<transformed code with line numbers>
\`\`\`
**Verification:**
- [x] Syntax valid
- [x] Type check passed
- [x] <N> tests passed
- [x] Complexity reduced by <delta> (<percent>%)
---
## Skipped (No Coverage)
| Function | File | Complexity | Reason |
|----------|------|------------|--------|
| `<function>` | <file> | <score> | 0% test coverage |
Use `--allow-uncovered` to include these functions (higher risk).
## Skipped (Category Disabled)
| Function | File | Pattern | Flag |
|----------|------|---------|------|
| `<function>` | <file> | <pattern> | --no-<category> |
## Skipped (Verification Failed)
| Function | File | Reason |
|----------|------|--------|
| `<function>` | <file> | Parse error: <details> |
| `<function>` | <file> | Type error: <details> |
| `<function>` | <file> | Tests failed: <details> |
## Action Plan
### High Priority (>5 complexity reduction, tested)
- [ ] Apply <N> simplifications in <file>
### Medium Priority (2-5 complexity reduction, tested)
- [ ] Apply <N> simplifications in <file>
### Review Recommended
- [ ] Review <N> flagged dead code blocks
- [ ] Consider adding tests for <N> uncovered functions
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.
- 3mo ago First seen · 549 lines · 14 tokens per session scan A 777e5712f843
simplify-transform is a command published in the GitHub repository axiomantic/spellbook (13 stars, last pushed 4d ago), licensed MIT. It adds 14 tokens to every session and 3,342 once invoked, about $0.0001 per session on Opus 5.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.
simplify-transform compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| simplify-transformaxiomantic/spellbook | Command | 13 | 4d ago | MIT | A | 14 | Claude Code |
| session-reportdamusix/atomic-claude | Command | 118 | yesterday | MIT | A | 31 | Claude Code |
| commitdamusix/atomic-claude | Command | 118 | yesterday | MIT | A | 55 | Claude Code |
| undo-commitdamusix/atomic-claude | Command | 118 | yesterday | MIT | A | 31 | Claude Code |
| commitfuxicodex/Fuxi | Command | 3.2k | 12d ago | none | A | 4 | Claude Code |
| autocommitrandomittin/heimdall | Command | 5 | today | MIT | A | 32 | Claude Code |
| commit-push-prfuxicodex/Fuxi | Command | 3.2k | 12d ago | none | A | 8 | Claude Code |