Skip to content
Back to skills

Derived State

ASecurity

Use when adding or changing an index, cache, memoized score or any other derived structure over mutable state (an index over band entries, a cached graph view). Covers enumerating mutation paths, stating the real read/write interleave, and preserving what the replaced code provided implicitly.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsgocode-reviewapi

Works with

  • api

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add Pseudogiant-xr/Pseudolife-MCP --skill derived-state --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Derived State?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Derived State
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pseudogiant-xr-derived-state/badge)](https://www.skillsdirectory.com/skills/pseudogiant-xr-derived-state)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: derived-state
description: Use when adding or changing an index, cache, memoized score or any other derived structure over mutable state (an index over band entries, a cached graph view). Covers enumerating mutation paths, stating the real read/write interleave, and preserving what the replaced code provided implicitly.
---

# Derived state, caches and indexes

A derived structure over mutable state goes stale by whichever mutation path
the author did not think of, and the daemon's real workload (store, search,
store, search) punishes the wrong maintenance policy. Before adding or
changing one:

1. **Enumerate every mutation path first**, grepping for the state, not the
   API: `hydrate_cms` / `load()` / legacy migration append to `band.entries`
   without `store()`.
2. **State the real read/write interleave and check the maintenance policy
   keeps the win under it.** The daemon alternates store and search, so
   extend in place for additions and rebuild only on removals or
   replacement; invalidate-on-write rebuilds on every read. Measure the
   policy under the actual interleave, not a synthetic one.
3. **List what the replaced code provided implicitly** (tie-break iteration
   order; `bands=` filtering on the holding band, not the stale
   `entry.bank`; live reads of supersession flags) and preserve each, or
   change it consciously and say so in the commit.
4. **Get an independent review before commit** (`/code-review` medium or a
   reviewer subagent), as `CLAUDE.md` "Review discipline" requires for perf,
   cache and index changes.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.