Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyze a prompt-heavy skill/plugin and produce a prioritized migration plan that moves deterministic instructions out of prose into scripts or structured contracts — improving reliability and cutting token cost. Use when the user says "reduce prompt tokens", "make this skill deterministic", "script-mode this skill", or "audit a skill for token bloat". Outputs a Markdown audit report with a token summary and per-file conversion plan, NOT code. NOT for authoring a skill from scratch (use writing-
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | -3% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 71% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 5% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 31% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 64% | 0% |
Analyze a prompt-heavy skill and produce a migration plan that improves reliability and reduces token cost by moving the deterministic parts of the prose into scripts or structured contracts, leaving only genuine judgment in the prompt.
Accept any of:
claude-code/plugins/core/oncall/alert-rca).../skills/<skill-name>/)SKILL.md or references/*.md)If no path is provided, ask for the target scope before continuing.
Gather SKILL.md + all references/*.md for each target. Include other markdown only when it directly affects runtime behavior. Ignore tests/scripts for token sizing, but read them to check whether logic is already deterministic.
Tag each section as one of: strict workflow, fixed mappings, arg/call contracts, output templates, retry/error policy, partial (mixed rules + judgment), narrative / human explanation, context, or interpretation guidance. Attach an evidence snippet from the exact file/section for every tag.
Default line-based estimate: tokens ≈ non_empty_lines × 11 — show a low/high range with multipliers 9 and 13. Break the count down by file, by section, and by execution path (fast path vs full path) when the skill has conditional flows.
Apply reducibility by classification:
| Class | Reducible | |---|---| | Deterministic (strict workflow, fixed mappings, contracts, templates) | 80–95% | | Partial (mixed rules + judgment) | 30–60% | | Narrative / interpretation | 10–20% |
Return conservative and aggressive totals, and highlight the top 5 sections by absolute token savings.
For each high-impact deterministic section, propose a target artifact:
Include the expected reliability benefit and the dependency risk.
For each convertible file: what (exact sections/rules to extract), why (determinism / reliability / token rationale), how (script/module shape, inputs/outputs, integration path). Plus metadata: suggested script path, estimated savings (conservative/aggressive), priority (P0/P1/P2), risk (low/med/high), dependencies/blockers.
post_refactor_tokens = original_tokens − reducible_tokensimprovement_percent = (reducible_tokens / original_tokens) × 100file | what | why | how | script path | savings (cons/agg) | priority | riskIf multiple paths are given, separate reports with clear ## <path> headings.
| Issue | Fix | |---|---| | No path given | Ask for the target skill/plugin/file before analyzing. | | Skill is already lean (mostly judgment) | Report low reducibility honestly; recommend leaving it as prose. | | Can't measure real tokens | Use the line-based estimate and label it an estimate with the multiplier range. | | User wants the code, not a plan | This skill outputs the plan; hand off to an implementer to write the scripts. | | target repo/plugin path unreadable (permissions/sandbox) | report which paths were skipped; never guess their contents |
Other measured skills in the registry, with their headline benchmark lift.