stale-derived-state

stale-derived-state is a skill for Claude Code from CrumbtrailDev/crumbtrail-cli. It costs 85 tokens per session (1,705 once invoked), scanned A, original, MIT.

A guide for finding stale data that remains visible after a successful change because cached or calculated state was not refreshed. A cache is stored data reused instead of being read again from its source.

In plain words
What is it for?
Use it to investigate settings, names, permissions, records, lists, and other changes that appear only after a reload, logout, or return to the page.
Why use it?
It separates a failed save from a display or lookup that is still using an older value. Reloading or navigating away may hide the problem by rebuilding that state.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the crumbtrail-skills plugin — 13 skills shipped together

Good fit Use it to investigate settings, names, permissions, records, lists, and other changes that appear only after a reload, logout, or return to the page.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/crumbtraildev/crumbtrail-cli/stale-derived-state
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 CrumbtrailDev/crumbtrail-cli --skill stale-derived-state
Clone the repo
git clone --depth 1 https://github.com/CrumbtrailDev/crumbtrail-cli

Made for: Claude Code.

Or install crumbtrail-skills, the plugin that ships this one along with the rest of its 13 skills.

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 stale-derived-state

README.md
[![agentmods](https://agentmods.dev/badge/skills/crumbtraildev/crumbtrail-cli/stale-derived-state/github.svg)](https://agentmods.dev/skills/crumbtraildev/crumbtrail-cli/stale-derived-state)
Your own site
<a href="https://agentmods.dev/skills/crumbtraildev/crumbtrail-cli/stale-derived-state"><img src="https://agentmods.dev/badge/skills/crumbtraildev/crumbtrail-cli/stale-derived-state/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 stale-derived-state

Your own site · 80×15
<a href="https://agentmods.dev/skills/crumbtraildev/crumbtrail-cli/stale-derived-state"><img src="https://agentmods.dev/badge/skills/crumbtraildev/crumbtrail-cli/stale-derived-state.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,705 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.00085 $0.01705
Opus 5.5 $0.00034 $0.00682
Sonnet 5.5 $0.00017 $0.00341
Haiku 4.5 $0.00009 $0.00170

Measured 1mo ago against content hash 58612a969342, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

stale-derived-state 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 1mo 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.

plugins/crumbtrail-skills/skills/stale-derived-state/SKILL.md · 148 lines

How it starts

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

The stale cache or derived state that never invalidates

Something is written. Something else is derived from it and was computed earlier. The write path never tells the derived thing to recompute, so the screen, the session config, the lookup table or the client store keeps serving the value it already had. A reload rebuilds everything from source and the problem disappears, which is exactly why it gets reported as intermittent when it is not.

The diagnostic move is to prove the write landed and the read did not reflect it. Crumbtrail is good at the first half and only partly good at the second.

Symptom

A user changes a setting, renames something, toggles a permission or saves a record. The interface accepts it. The new value does not appear. Reloading the page, logging out and back in, or navigating away and returning makes it appear.

A second phrasing is the opposite direction: a value that should have been cleared keeps coming back, or a list that should now be empty keeps rendering its previous contents.

What Crumbtrail can see

The honest limitation first, because it decides how you spend the next few turns. The cache that failed to invalidate is usually an in memory object: a client store, a module scoped map, a memoized selector, a server side lookup table. None of that is recorded. Crumbtrail instruments the boundaries a value crosses, not the heap it sits in. If the value never crossed a boundary, the recording cannot show it to you.

What the recording does carry, all of which are boundaries a stale value tends to cross:

  • Storage writes with the storage type, the operation, the key, and the old and new values. Keys and values that look sensitive come back replaced with a redaction marker, so you may see that a key changed without seeing what it changed to.
  • Cookie changes.
  • Every request and response, so the write and the later read are both present with their bodies. This is the strongest available proxy: a read issued after the write that returns the old value proves the staleness is on the server or in a shared cache rather than in the browser, and a read that never happens at all proves the opposite.
  • Navigation events, which matter because this archetype is defined by what a reload fixes.
  • Database row changes with before and after column values, but only where the database adapter is installed. This is what turns "the write probably landed" into a fact.

Read the full file on GitHub · 148 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. 1mo ago First seen · 148 lines · 85 tokens per session scan A 58612a969342

Subscribe to this mod's changes

stale-derived-state is a skill published in the GitHub repository CrumbtrailDev/crumbtrail-cli (0 stars, last pushed 1mo ago), licensed MIT. It adds 85 tokens to every session and 1,705 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

Other skills, from other repositories

qdrant-monitoring-debugging

Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high', 'OOM crash', 'queries are slow', 'latency spike', or 'search was fast now it's slow'. Also use when performance degrades without obvious config changes.

qdrant/skills · 75 tokens

huawei-cloud-mrs-redis-meta-check

A checker for Redis cluster metadata files named nodes-*.conf. Redis is an in-memory data store, and a cluster uses these files to record nodes, slots, and master-replica relationships.

huaweicloud/huaweicloud-skills · 167 tokens

flutter-dio-cache-interceptor-engineering

Use when adding, reviewing, debugging, testing, or tuning diocacheinterceptor in a Flutter or Dart Dio client. Covers CacheOptions, CachePolicy, HTTP revalidation, cache stores, offline fallback, authenticated-user key isolation, invalidation, platform compatibility, and 4.x migration. Trigger for stale Dio responses…

ariaramin/flutter-skills · 126 tokens

performance

Use when optimizing application performance — caching strategies, eager loading, query optimization, Redis patterns, or background job design.

event4u-app/agent-config · 25 tokens

flutter-caching

Design, implement, review, debug, test, and measure production caching in Flutter/Dart apps across Android, iOS, Web, Windows, macOS, and Linux. Use when a Flutter task mentions caching, offline data, stale data, TTL, invalidation, request deduplication, cache keys, response storage, cache directories, HTTP…

ariaramin/flutter-skills · 143 tokens

troubleshoot-proxysql

Use when diagnosing issues with Proxysql: backend connection starvation, multiplexing collapse, monitor false decisions, query rule cpu overload, or configuration drift. Queries Netdata via MCP for backend server health status, monitor health check results, backend connection pool usage, client connection metrics…

netdata/skills · 81 tokens