跳到主要内容
知仓学习社ZHICANG

context-bankruptcy

Declare bankruptcy on a long-lived AI agent's accumulated memory — audit what it currently believes, separate ground truth from stale and wrong, pur…

不碰外部(只输出文字)无严重或高危命中mohitagw15856/pm-claude-skills

它会碰到什么

扫了多少1 个文本文件,5 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Context Bankruptcy Skill

Every long-lived agent slowly fills with sediment: the org chart from two

reorgs ago, the project that got cancelled but still shapes its suggestions,

the preference you expressed once, sarcastically, in March. Deleting everything

loses the genuinely valuable judgment it accumulated; deleting nothing means

arguing with a colleague who lives in the past. Bankruptcy is the middle path

with discipline: audit the beliefs, keep what's true, correct what drifted,

purge what's wrong or expired — and write down what was lost, because silent

memory loss is how the same wrong belief gets re-learned from the same stale

sources next month.

What This Skill Produces

  • A belief audit: what the agent currently holds, organized into facts /

preferences / procedures / relationships, each dated and sourced where

possible

  • A keep / correct / purge ledger with a reason per entry — the artifact

that makes the bankruptcy deliberate instead of a rage-wipe

  • A restated ground-truth file: the clean, current worldview to reload,

written to survive the next drift longer (dated claims, expiry hints)

  • A bankruptcy record: what was purged and why, plus the re-learn guards —

which stale sources fed the bad beliefs and how to stop them refeeding

Required Inputs

Ask for (if not already provided):

  • The agent's memory contents, exported or pasted (memory files, saved

context, custom instructions, whatever the platform exposes) — the audit

works on what it can see, and says so

  • The symptoms: what it keeps getting wrong, where it contradicts itself
  • What changed in reality (reorg, pivot, new stack, new owner) and when
  • What the agent is good at that must survive — the reason this is

bankruptcy, not deletion

Process

  1. Extract beliefs, not text. Convert the memory dump into discrete claims:

"believes the platform team owns billing" · "believes user prefers terse

answers" · "believes deploys happen Fridays". Tag each: fact / preference /

procedure / relationship, with best-guess age. Unstated-but-acted-on

beliefs (visible in the symptoms) go in too, marked inferred.

  1. Sort against current reality. With the user, mark each claim KEEP

(true, valuable) · CORRECT (right shape, wrong details — write the fix) ·

PURGE (wrong, expired, or toxic — including preferences the user no longer

holds). Rule for ties: a belief that can silently misdirect output is

PURGE-by-default; a belief that's merely unused can stay.

  1. Find the feeders. For each purged belief worth the trouble: where did it

come from, and does that source still exist (an old doc it can read, a

stale instruction file, a pinned message)? Purging the belief but not the

feeder schedules the relapse.

  1. Restate ground truth to age well. Write the reload file with dated

claims ("as of Jul 2026, billing is owned by…"), explicit preferences in

the user's own words, and expiry hints ("re-verify org facts quarterly").

Load order matters on most platforms: ground truth in the durable slot

(instructions/memory), not a chat message that scrolls away.

  1. Record the bankruptcy. What was purged, why, date, and the guards

added. Schedule the next audit — sediment accumulates at a knowable rate;

quarterly is the sane default for daily-driver agents.

Output Format

## Belief audit — [agent], [date]
| # | Belief (as a claim) | Type | Age | Source | Inferred? |

## The ledger
| # | Verdict (KEEP / CORRECT→fix / PURGE) | Reason |

## Ground truth v[N] (reload this)
[Dated claims · preferences verbatim · procedures · expiry hints]

## Bankruptcy record
[Purged: what & why · Feeders closed: … · Guards added: … · Next audit: date]

Quality Checks

  • [ ] Beliefs are discrete, checkable claims — not pasted memory prose
  • [ ] Every PURGE has a reason; every CORRECT has the actual correction written
  • [ ] At least one feeder was traced — bankruptcy without closing feeders is a

subscription to this skill

  • [ ] Ground-truth claims are dated and the file says where it should live on

the platform (durable slot, not chat)

  • [ ] What-was-lost is recorded — the user can consciously re-teach, rather

than discover absence mid-task

Anti-Patterns

  • [ ] Do not rage-wipe — full deletion without the audit loses the judgment

that took months to accumulate, which is why this skill exists

  • [ ] Do not keep contradictions to "be safe"; two contradictory beliefs means

the agent picks one at random per session

  • [ ] Do not restate ground truth undated — undated truth is next quarter's

sediment

  • [ ] Do not treat vendor "memory deleted" claims as verified for sensitive

content — note what the platform actually promises (see

[[agent-severance]] for full offboarding)

Related

[[session-handoff]] compresses a session; this resets a worldview.

[[context-budget]] for the token-layout side; [[agent-severance]] when the

answer is offboarding, not bankruptcy.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

同名技能的其他版本

有 3 个不同仓库或目录里都有叫 context-bankruptcy 的技能。它们内容并不相同,别混用: