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 agentmods add commands/axiomantic/spellbook/simplify-transformgit 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.svg" alt="Measured on agentmods" 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 | $0.00007 | $0.01671 |
| Sonnet 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 2d 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.
- 2d ago First seen · 549 lines · 14 tokens per session scan A 777e5712f843
simplify-transform is a command published in the GitHub repository axiomantic/spellbook (10 stars, last pushed 2d ago), licensed MIT. It adds 14 tokens to every session and 3,342 once invoked, about $0.0001 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-09-03.
Other commands, from other repositories
undo-commit
Soft-undo the last commit. Restores its changes as staged, leaves working tree intact. Refuses if HEAD is already pushed to a tracked remote.
session-report
Capture what changed this session and why, scoped to the current branch. Read by ship verbs when synthesizing the commit message; deleted after a successful commit.
commit
Stage, commit, and optionally ship further. Pass an escalation token (push, pr, merge, squash, squash merge) to skip the prompt. With no token, commits then asks how far to ship. Delegates message format to the atomic-git-discipline skill.
autocommit
Toggle auto git commits on/off for this project. Run without args to see status, or with "on"/"off" to set.
commit-push-pr
머지 전 /sync-docs 문서 동기화 의무 게이트 → 검증 → 커밋 & PR & 머지 + MCP 알림 (v7).
quick-commit
간단한 수정용 빠른 커밋 (v6).