Agent skill

Context Bankruptcy

by mohitagw15856 in mohitagw15856/pm-claude-skills

Declare bankruptcy on a long-lived AI agent's accumulated memory — audit what it currently believes, separate ground truth from stale and wrong, purge deliberately, restate the truths that survive…

MITAuto-check passed

Install Context Bankruptcy

skills CLI
$ npx skills add mohitagw15856/pm-claude-skills --skill context-bankruptcy -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mohitagw15856/pm-claude-skills context-bankruptcy --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mohitagw15856/pm-claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/context-bankruptcy .claude/skills/context-bankruptcy && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
context-bankruptcy
GitHub stars
1.4k
Token cost
~1.4k tokens
SKILL.md length
701 words
Files
1
Skills in repo
1,348
Repo updated
First seen
Licence
MIT

At a glance

Declare bankruptcy on a long-lived AI agent's accumulated memory — audit what it currently believes, separate ground truth from stale and wrong, purge deliberately, restate the truths that survive…

  • Works in 5 steps: Extract beliefs, not text. Convert the… → Sort against current reality. With the… → Find the feeders. For each purged belief… → …
  • An agent keeps acting on outdated facts
  • SKILL.md covers What This Skill Produces, Required Inputs, Process and Output Format, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Context Bankruptcy is an agent skill from mohitagw15856/pm-claude-skills. Declare bankruptcy on a long-lived AI agent's accumulated memory — audit what it currently believes, separate ground truth from stale and wrong, purge deliberately, restate the truths that survive, and log what was lost. Use when an agent keeps acting on outdated facts, contradicts itself across sessions, 'remembers' things wrong, or after a reorg/pivot makes its worldview obsolete. Produces a belief audit, a keep/correct/purge ledger, a restated ground-truth file, and the bankruptcy record.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: 1255 professional Agent Skills for Claude, ChatGPT, Gemini, Cursor & Codex — PRDs, postmortems, leases, medical bills, layoffs, go-bags, new countries. Plain markdown, MIT, in… The licence is MIT.

When your agent uses it

  • An agent keeps acting on outdated facts
  • Contradicts itself across sessions
  • Remembers things wrong
  • After a reorg/pivot makes its worldview obsolete

Example prompts

  • “remembers”
  • “/context-bankruptcy”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Extract beliefs, not text. Convert the memory dump into discrete claims
  2. Sort against current reality. With the user, mark each claim KEEP
  3. Find the feeders. For each purged belief worth the trouble: where did it
  4. Restate ground truth to age well. Write the reload file with dated
  5. Record the bankruptcy. What was purged, why, date, and the guards

What it can do on your machine

Read from SKILL.md and the folder at commit 1cbf1f0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Context Bankruptcy loads about 1.4k tokens when it runs. Until then it costs about 129 tokens; SKILL.md has 701 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~129
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mohitagw15856/pm-claude-skills at commit 1cbf1f0, republished under its MIT licence (© mohitagw15856). 701 words, ~1,448 tokens.

Download SKILL.mdSave it as .claude/skills/context-bankruptcy/SKILL.md (or your agent's skills folder).
name
context-bankruptcy
description
Declare bankruptcy on a long-lived AI agent's accumulated memory — audit what it currently believes, separate ground truth from stale and wrong, purge deliberately, restate the truths that survive, and log what was lost. Use when an agent keeps acting on outdated facts, contradicts itself across sessions, 'remembers' things wrong, or after a reorg/pivot makes its worldview obsolete. Produces a belief audit, a keep/correct/purge ledger, a restated ground-truth file, and the bankruptcy record.

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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
Show full SKILL.md (200 more words)Show less

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)

[[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.

Example Trigger Phrases

  • "My agent keeps acting on outdated beliefs."
  • "Purge my assistant's stale memory."
  • "Audit what my agent currently believes."
  • "Reset the agent's memory after our pivot."

© mohitagw15856, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/context-bankruptcy of mohitagw15856/pm-claude-skills.

Open the folder on GitHubat commit 1cbf1f0

Compare with similar skills

Context Bankruptcy next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Context Bankruptcy compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Context Bankruptcy this skillmohitagw15856/pm-claude-skills1.4k—~1.4kAutomated safety check: PassMIT
Live DashboardNousResearch/hermes-agent252k—~2.1kAutomated safety check: PassMIT
Openclaw Live Updateropenclaw/openclaw392k—~3.7kAutomated safety check: PassMIT
Live Dashboardnexu-io/open-design100k—~2.1kAutomated safety check: PassApache-2.0
Living Docs Governanceaffaan-m/ECC277k1 repos~2.1kAutomated safety check: PassMIT
Declarative Agentsgithub/awesome-copilot40k1 repos~1.2kAutomated safety check: PassMIT

Similar skills

  • Live Dashboard

    NousResearch/hermes-agent

    Build self-updating dashboards from live sources. An agent skill from NousResearch/hermes-agent.

    252k GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Openclaw Live Updater

    openclaw/openclaw

    Maintain the canonical live OpenClaw main checkout, macOS LaunchAgent-managed Gateway, local macOS app, exact-head main CI, and recurring full release validation.

    392k GitHub stars~3.7k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Live Dashboard

    nexu-io/open-design

    Notion-style team dashboard rendered as a Live Artifact. An agent skill from nexu-io/open-design.

    100k GitHub stars~2.1k tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Keep a long-lived project's documentation from rotting by assigning existing project docs clear constitution, map, status, and history roles, then wiring the active agent harness to those canonical…

    277k GitHub starsUsed in 1 repo~2.1k tokens
    DevelopmentAuto-check passed
  • Declarative Agents

    github/awesome-copilot

    Official

    Complete development kit for Microsoft 365 Copilot declarative agents with three comprehensive workflows (basic, advanced, validation), TypeSpec support, and Microsoft 365 Agents Toolkit integration

    40k GitHub starsUsed in 1 repo~1.2k tokens
    Documents & OfficeAuto-check passed
  • Team Live Ops

    Donchitos/Claude-Code-Game-Studios

    Orchestrate the live-ops team — live-ops-designer, economy-designer, analytics-engineer, community-manager, writer — for a season or live event.

    26k GitHub stars~4.2k tokensUpdated 3 days ago
    Game DevelopmentAuto-check: notes

More from mohitagw15856/pm-claude-skills

All 1,348 skills in this repo
  • Car Tco

    mohitagw15856/pm-claude-skills

    Compare the total cost of car ownership across buy-new, buy-used, lease, and keep-your-current-car — depreciation, insurance, maintenance ramp, and fuel over a real horizon, not just the monthly…

    1.4k GitHub stars~1.1k tokensUpdated 2 days ago
    Auto-check passed
  • Cs Health Scorecard

    mohitagw15856/pm-claude-skills

    Build a customer health scorecard for a specific account. An agent skill from mohitagw15856/pm-claude-skills.

    1.4k GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed
  • Exit Waterfall

    mohitagw15856/pm-claude-skills

    Compute who gets what at each exit price from a cap table — liquidation preferences, conversion points, and where the founders' share collapses.

    1.4k GitHub stars~1.1k tokensUpdated 2 days ago
    Auto-check passed
  • Feature Prioritisation

    mohitagw15856/pm-claude-skills

    Apply prioritisation frameworks (RICE, MoSCoW, Kano, ICE, Opportunity Scoring) to rank features and backlog items.

    1.4k GitHub stars~2k tokensUpdated 2 days ago
    Auto-check passed
  • Fire Number

    mohitagw15856/pm-claude-skills

    Compute a financial-independence (FIRE) target and years-to-reach with every assumption labeled as an assumption — plus a sensitivity table instead of a single false-precision answer.

    1.4k GitHub stars~1.1k tokensUpdated 2 days ago
    Auto-check passed
  • Freelance Rate

    mohitagw15856/pm-claude-skills

    Derive a freelance day/hourly rate backwards from target income, honest billable utilization, overhead, and the self-employment tax premium — the arithmetic that proves a rate is not salary÷2000.

    1.4k GitHub stars~1.2k tokensUpdated 2 days ago
    Auto-check passed

Questions about Context Bankruptcy

What does Context Bankruptcy do?

Declare bankruptcy on a long-lived AI agent's accumulated memory — audit what it currently believes, separate ground truth from stale and wrong, purge deliberately, restate the truths that survive…. Context Bankruptcy is an agent skill from mohitagw15856/pm-claude-skills. Declare bankruptcy on a long-lived AI agent's accumulated memory — audit what it currently believes, separate ground truth from stale and wrong, purge deliberately, restate the truths that survive, and log what was lost.

When should I use Context Bankruptcy?

Context Bankruptcy fits situations like: an agent keeps acting on outdated facts; contradicts itself across sessions; remembers things wrong; after a reorg/pivot makes its worldview obsolete.

How do I install Context Bankruptcy in Claude Code?

Run `npx skills add mohitagw15856/pm-claude-skills --skill context-bankruptcy -a claude-code`. Or copy the skill folder (skills/context-bankruptcy in mohitagw15856/pm-claude-skills) into .claude/skills/context-bankruptcy in your project. Claude Code loads it when a task matches its description.

How do I install Context Bankruptcy in Codex?

Run `npx skills add mohitagw15856/pm-claude-skills --skill context-bankruptcy -a codex`. Or copy the skill folder (skills/context-bankruptcy in mohitagw15856/pm-claude-skills) into .agents/skills/context-bankruptcy in your project. Codex loads it when a task matches its description.

Can I use Context Bankruptcy in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mohitagw15856/pm-claude-skills --skill context-bankruptcy -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/context-bankruptcy, .gemini/skills/context-bankruptcy, .github/skills/context-bankruptcy and .opencode/skills/context-bankruptcy in your project.

What does Context Bankruptcy need to run?

SKILL.md names no scripts, command-line tools or credentials: Context Bankruptcy is instructions for the agent only.

Does Context Bankruptcy access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Context Bankruptcy safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Context Bankruptcy use?

Context Bankruptcy is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Context Bankruptcy use?

About 1.4k tokens (SKILL.md is roughly 5.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Context Bankruptcy?

Skills that share tags, products or a category with Context Bankruptcy: Live Dashboard (NousResearch/hermes-agent, 252k stars), Openclaw Live Updater (openclaw/openclaw, 392k stars), Live Dashboard (nexu-io/open-design, 100k stars) and Living Docs Governance (affaan-m/ECC, 277k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Context Bankruptcy?

mohitagw15856 (a GitHub user) maintains it in mohitagw15856/pm-claude-skills, which has 1,434 GitHub stars. The repository holds 1,348 skills in this directory. The repository was last updated on October 9, 2026.

Source: mohitagw15856/pm-claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.