Pseudolife-MCP: Skill for Claude Code

.claude/skills/derived-state/SKILL.md

derived-state is a skill for Claude Code from Pseudogiant-xr/Pseudolife-MCP. It costs 59 tokens per session (350 once invoked), scanned A, original, Apache-2.0.

A coding guide for indexes, caches, and other stored results derived from changing data. It focuses on finding every way the underlying data changes and keeping derived results correct and efficient.

In plain words
What is it for?
Use it when adding or changing a cache, memoized score, search index, or similar structure over mutable state, especially in a daemon that alternates writes and searches.
Why use it?
Derived data can become stale when a less obvious update path is missed. The guide also helps preserve behaviour that existing code provided implicitly and calls for independent review of these changes.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; mentions subagents.

This is Pseudogiant-xr/Pseudolife-MCP's own configuration. It tells Claude Code how to work on Pseudolife-MCP itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Pseudolife-MCP configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Pseudogiant-xr/Pseudolife-MCP. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Pseudogiant-xr/Pseudolife-MCP/master/.claude/skills/derived-state/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Pseudogiant-xr/Pseudolife-MCP

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pseudogiant-xr/pseudolife-mcp/derived-state"><img src="https://agentmods.dev/badge/skills/pseudogiant-xr/pseudolife-mcp/derived-state.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 350 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.00059 $0.00350
Opus 5.5 $0.00024 $0.00140
Sonnet 5.5 $0.00012 $0.00070
Haiku 4.5 $0.00006 $0.00035

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

Security

Grade A, and why

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 22d 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.

.claude/skills/derived-state/SKILL.md · 28 lines

What it actually says

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.
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. 22d ago First seen · 28 lines · 59 tokens per session scan A 390ad3230b72

Subscribe to this mod's changes

derived-state is a skill published in the GitHub repository Pseudogiant-xr/Pseudolife-MCP (9 stars, last pushed today), licensed Apache-2.0. It adds 59 tokens to every session and 350 once invoked, about $0.0002 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-11-09.

Related

derived-state compared with skills from other repositories

derived-state next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
derived-statePseudogiant-xr/Pseudolife-MCPSkill9todayApache-2.0A59Claude Code
adk-redisredis-developer/adk-redisSkill327d agoApache-2.0A92Claude Code, Codex
another-brainFlowerf19/another-brainSkill317d agoMITA69Claude Code
mem0-statusmem0ai/mem0Skill70k4d agoApache-2.0A44Claude Code, Codex
agent-memory-disciplinesickn33/agentic-awesome-skillsSkill51kyesterdayMITA36Claude Code
browserwing-adminMemTensor/MemOSSkill13kyesterdayApache-2.0B47Claude Code, Codex
memory-recallzilliztech/memsearchSkill3.0kyesterdayMITA38Claude Code, Codex