tier-decay

tier-decay is a skill for Claude Code from alebgl77/tierdecay. It costs 71 tokens per session (1,276 once invoked), scanned A, original, MIT.

A post-task process that records coding outcomes and turns successful high-tier solutions into shorter playbook instructions for future tasks. A playbook is a reusable set of steps for a recurring problem.

In plain words
What is it for?
Use it after [T2] or [T3] work, when recording routing results, or when checking whether a reusable solution should be added.
Why use it?
It helps the routing system learn from completed work so recurring problems can require less expensive reasoning over time.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it after [T2] or [T3] work, when recording routing results, or when checking whether a reusable solution should be added.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alebgl77/tierdecay/tier-decay
Install

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.

Any agent
npx skills add alebgl77/tierdecay --skill tier-decay
Clone the repo
git clone --depth 1 https://github.com/alebgl77/tierdecay

Made for: Claude Code.

Wrote 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.

agentmods badge for tier-decay

README.md
[![agentmods](https://agentmods.dev/badge/skills/alebgl77/tierdecay/tier-decay/github.svg)](https://agentmods.dev/skills/alebgl77/tierdecay/tier-decay)
Your own site
<a href="https://agentmods.dev/skills/alebgl77/tierdecay/tier-decay"><img src="https://agentmods.dev/badge/skills/alebgl77/tierdecay/tier-decay/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.

agentmods 80×15 button for tier-decay

Your own site · 80×15
<a href="https://agentmods.dev/skills/alebgl77/tierdecay/tier-decay"><img src="https://agentmods.dev/badge/skills/alebgl77/tierdecay/tier-decay.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,276 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.01276
Opus 5.5 $0.00028 $0.00510
Sonnet 5.5 $0.00014 $0.00255
Haiku 4.5 $0.00007 $0.00128

Measured 21d ago against content hash c4f660258ad1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tier-decay 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 21d 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.

adapters/claude-code/.claude/skills/tier-decay/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Tier Decay — amortize reasoning

Goal: solve a recurring problem CLASS at a high tier, then test whether its distilled pattern is executable one tier lower. Failed probes escalate normally. Expensive tokens are capital expenditure; this protocol is the amortization schedule. The routing rubric is only the cold-start prior — the ledger is the posterior.

1. Ledger — one row per task, every tier

Append to the LOG table in .claude/routing-ledger.md:

| date | class | predicted | executed | outcome | escalations | playbook |

Class signature: 2–4 hyphenated tokens, <verb>-<object>-<surface> (e.g. add-endpoint-rest, write-migration-postgres, fix-flaky-test-jest). Before minting a new class, scan the LOG and reuse an existing signature — matching power depends on signature discipline.

When a class reaches ≥3 rows, compute/update its row in the PRIORS table: its empirical default tier now OVERRIDES the scoring rubric.

2. Distill — after [T2]/[T3] success only

Distill iff the class will plausibly recur (expected ≥2 future occurrences). Write a ≤15-line entry into the repo-playbook skill, following its format, including risk: (the class's rubric risk) and epoch: (the current binding epoch). An entry earns its distillation cost only where the lower tier fails or struggles without it; if a cold lower-tier attempt already passes, routing alone captures the saving. Distill the DECISIONS — invariants, order of operations, the trap and its avoidance — never diffs, never secrets, never volatile business values. A wrong pattern costs more than no pattern: when in doubt, don't distill.

3. Probe — the downgrade test

On the NEXT occurrence of a distilled class, dispatch one tier below the entry's provenance tier, with the entry quoted verbatim in the brief's CONTEXT and acceptance criteria mandatory.

  • Pass → hits +1 on the entry. Downgrade is confidence-gated by the entry's risk: — 3 / 4 / 5 hits for risk 0 / 1 / 2; risk-3 classes never decay; no risk: line counts as risk 2. (Quarantine-on-failure means the evidence is always k/k passes; k is the smallest count whose 80% Clopper–Pearson lower bound 0.2^(1/k) reaches 0.5 / 0.6 / 0.7.) At the threshold the class's default tier is lowered in PRIORS and the entry's provenance: is rewritten to the new lower tier. Decay is iterative: the counter resets and — because a live entry outranks PRIORS (model-routing §0) — the class probes the next tier down on later occurrences (T3→T2→T1), until provenance reaches T1.
  • Recertify → an entry whose epoch: differs from the current binding epoch (a model or effort changed, .tierdecay/MODELS.md) runs at its provenance tier, entry quoted. Pass → set epoch: to the current epoch, hits: 0. Fail → quarantine as below.
  • Fail → escalate normally, move the entry to QUARANTINE with a one-line failure cause. The failed tier becomes the class's floor (sticky tier); revise or delete the entry on next encounter.

Read the full file on GitHub · 94 lines

Changes

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.

  1. 21d ago Changed c4f660258ad1
  2. 1mo ago Changed · +16 lines 9c137976ac13
  3. 2mo ago Changed · +5 lines 3863ee6820c3
  4. 3mo ago First seen · 73 lines · 71 tokens per session scan A b7654f079ddf

Subscribe to this mod's changes

tier-decay is a skill published in the GitHub repository alebgl77/tierdecay (1 stars, last pushed 21d ago), licensed MIT. It adds 71 tokens to every session and 1,276 once invoked, about $0.0003 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-31.

Related

tier-decay compared with skills from other repositories

tier-decay next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tier-decayalebgl77/tierdecaySkill121d agoMITA71Claude Code
mem0-vercel-ai-sdkmem0ai/mem0Skill70k3d agoApache-2.0A146Claude Code, Codex
mempalace-recallMemPalace/mempalaceSkill61k3d agoMITA94Claude Code
pausemem0ai/mem0Skill70k3d agoApache-2.0A30Claude Code
mineMemPalace/mempalaceSkill61k3d agoMITA21Claude Code
agent-carnetyamadashy/repomixSkill30kyesterdayMITA67Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k3d agoApache-2.0A217Claude Code, Codex