agentleFS
AbilityaiAbilityai/cornelius/.claude/skills/ref-supersede/SKILL.md

ref-supersede

Skill109 starsChanged 38 days agoMITView on GitHub

Handle a validity transition on a reference entity — a contract renewal, role change, or re-termed price where a full prior snapshot matters. Creates the new status:active note (with valid_from/valid_until), marks the old note status:superseded + superseded_by:[[New]], keeps both for history, and reindexes. Human-gated. Distinct from ref-ingest overwrite (which replaces the body + logs one line); use supersede only when the prior snapshot must be preserved. Company is the default scope.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write the new note; edit the old note to status: superseded + the superseded_by: link.

    line 47
  2. Very specific:

    Write without explicit approval of the specific transition (human-gated in every scope, including market/).

    line 70
  3. Distinctive:

    Delete or overwrite the old snapshot (supersede keeps it — that is the whole point).

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ref Supersede

ℹ️ First, set expectations: before anything else, print one short line with this skill's version and its most recent change — the top entry of metadata.changelog above — e.g. ref-supersede v1.0 — recent: initial version. Then proceed.

A validity transition with history preserved. Overwrite-in-place (ref-ingest) is right when the latest fact simply replaces the old one. Supersede is right when the old snapshot itself matters — you want to be able to answer "what was the term of the 2026 Acme Corp engagement?" after the 2027 renewal exists. It keeps both notes: old superseded, new active, linked by superseded_by:.

Read first: resources/layered-brains/COMPANY-BRAIN-SCHEMA.md → "Canonical source of truth" (overwrite body vs. supersede-with-snapshot) + "The temporal model"; resources/layered-brains/REFERENCE-SCOPE-SCHEMA.md → "History".

Human-gated in every scope. Even in market/, a supersede (a structural, two-note change) is a human act — the autonomous market path overwrites, it never supersedes (ref-ingest flags such cases here instead).

State Dependencies

SourceLocationReadWriteDescription
Company familyBrain/Company/*/*.md✓✓ (gated)Old + new entity notes
LBS indexresources/local-brain-search/data/✓✓ (reindex)Rebuilt after the write

Process

Step 1 — Identify the transition

Resolve the note being superseded (Grep by name/alias). Confirm it is a validity transition (a term/window closed, a role or price was re-termed) and that a prior snapshot is worth keeping — otherwise this is an overwrite; route to /ref-ingest instead.

Step 2 — Draft both notes + get approval

Present the before/after and get explicit approval (AskUserQuestion) before writing:

  • New note (status: active): the current fact, with valid_from: (and valid_until: if it has a term), fresh as_of/updated, provenance: reference, and the entity's relations. Give it a name that disambiguates the window when needed (e.g. Acme Corp - Trinity Enterprise Build 2027).
  • Old note (status: superseded): add superseded_by: "[[<New note title>]]"; leave its body as the historical snapshot; re-stamp updated only.

Step 3 — Write + chain + log

Write the new note; edit the old note to status: superseded + the superseded_by: link. Append a ## Change Log line to both:

## Change Log
- 2026-07-08 — superseded by [[<New>]] on renewal (source: <...>)   # on the old note
- 2026-07-08 — supersedes [[<Old>]]; new term 2027-01 → 2027-12 (source: <...>)   # on the new note

Step 4 — Reindex

cd resources/local-brain-search && ./run_index.sh && ./run_daemon.sh restart   # :7437, RESTART not reload

(No BDG bootstrap — reference notes are BDG-excluded.)

Verification

  • Two notes now exist: the old one status: superseded with a resolving superseded_by:, the new one status: active.
  • /ref-query for the entity returns the new (active) fact by default and can surface the old on "what changed?".
  • Both notes carry a ## Change Log line describing the transition; the old body is intact as the snapshot.
  • /ref-audit reports no status/superseded_by integrity violation for the pair.

This skill must refuse to

  • Write without explicit approval of the specific transition (human-gated in every scope, including market/).
  • Delete or overwrite the old snapshot (supersede keeps it — that is the whole point).
  • Set any provenance but reference, or crystallize/lifecycle-classify/promote a record into a cognitive insight.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.