Skip to content
Skills Library
Programming · Review & audit

derived-state

/derived-state

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.

Licence
Apache-2.0
Last repository change
14.11.2026

Assessment and security

86/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content21 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 14.11.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

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.

Original author 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.

How it works

SKILL.md has no level-two headings · 24 lines, 181 words

SKILL.md preview
---
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.

Versions

The database has no other skills named derived-state.

Database snapshot: 13.11.2026 · package version f258a65c22fa (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

No similar skills in the database.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.