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 edimuj/tokenlean --skill migrate-frameworkgit clone --depth 1 https://github.com/edimuj/tokenleanWrote 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/edimuj/tokenlean/migrate-framework)<a href="https://agentmods.dev/skills/edimuj/tokenlean/migrate-framework"><img src="https://agentmods.dev/badge/skills/edimuj/tokenlean/migrate-framework/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/edimuj/tokenlean/migrate-framework"><img src="https://agentmods.dev/badge/skills/edimuj/tokenlean/migrate-framework.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.00058 | $0.00689 |
| Opus 5.5 | $0.00023 | $0.00276 |
| Sonnet 5.5 | $0.00012 | $0.00138 |
| Haiku 4.5 | $0.00006 | $0.00069 |
Grade A, and why
migrate-framework 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 — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Migrate Framework
Migrate incrementally — never change more than one batch without running tests.
Workflow
Survey → Plan → Migrate → Verify → Clean up
1. Survey
Map the migration surface:
tl parallel \
"structure=tl structure" \
"search=tl search '<old-api-pattern>'" \
"stack=tl stack"
tl context7 <framework> "migration guide" -t 5000 # Official migration path
# Or: tl browse <migration-guide-url>
2. Plan
Group the work into safe increments:
tl parallel "impact=tl impact <file>" "related=tl related <file>"
Order: leaf files (0 dependents) first, shared utilities last. Each increment must leave the codebase in a working state.
3. Migrate
One batch at a time:
tl symbols <file> # Know the shape before modifying
tl snippet <function> <file> # Read each usage site
# Apply the migration pattern from the guide
tl diff --breaking # Catch accidental API changes after each batch
4. Verify
After every batch, not at the end:
tl parallel \
"test=tl run '<test command>'" \
"guard=tl guard" \
"exports=tl exports <file>"
# Commit after each passing batch
5. Clean up
Remove old-world artifacts:
tl parallel \
"search=tl search '<old-api-pattern>'" \
"unused=tl unused" \
"deps=tl deps <file>"
Decision tree
Migration request → How big is the surface?
├─ Small (<10 usages) → Single batch
│ → tl search to find all, migrate, tl run tests
├─ Medium (10-50 usages) → Batch by directory
│ → tl related to group files
│ → Migrate + test one directory at a time
│ → Commit after each batch
└─ Large (50+ usages) → Batch by dependency order
→ tl impact to sort files by dependents
→ Leaf files first, shared modules last
→ Migrate + test + commit per batch
→ tl search "<old-pattern>" to track remaining count
Tips
- Never start migrating without the migration guide — tl context7 or tl browse first
- Commit after each passing batch — if batch 7 breaks, you bisect to batch 7
- Use
tl search "<old-pattern>"to track how many usages remain after each batch - Leaf files first reduces risk — they have no dependents to break
- For large migrations,
tl impactoutput determines the safest execution order
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 · 98 lines · 58 tokens per session scan A 2ef4ff925acf
migrate-framework is a skill published in the GitHub repository edimuj/tokenlean (14 stars, last pushed 4mo ago), licensed MIT. It adds 58 tokens to every session and 689 once invoked, about $0.0002 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-08-30.
migrate-framework compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| migrate-frameworkedimuj/tokenlean | Skill | 14 | 4mo ago | MIT | A | 58 | Claude Code, Codex |
| zerodustandresdefi/zerodust | Skill | 2 | 24d ago | MIT | A | 124 | Claude Code, Codex |
| ctx2imgKoukyosyumei/h5i-ctx2img | Skill | 3 | 4mo ago | Apache-2.0 | A | 103 | Claude Code, Codex |
| r3f-animationzebbern/claude-code-guide | Skill | 4.7k | today | MIT | A | 43 | Claude Code, Codex |
| r3f-best-practiceszebbern/claude-code-guide | Skill | 4.7k | today | MIT | A | 74 | Claude Code, Codex |
| code-documenterzebbern/claude-code-guide | Skill | 4.7k | today | MIT | A | 39 | Claude Code, Codex |
| vs-searchvolcengine/SearchCLI | Skill | 1.2k | 19d ago | Apache-2.0 | A | 27 | Claude Code, Codex |