context-bankruptcy

context-bankruptcy is a skill for Claude Code from mohitagw15856/pm-claude-skills. It costs 108 tokens per session (1,411 once invoked), scanned A, original, MIT.

A review tool for an AI agent's stored beliefs and assumptions. It is intended to find outdated context and reset or remove it after circumstances change.

In plain words
What is it for?
Use it to audit what an agent believes, purge outdated memory, or reset its context after a business or project change.
Why use it?
Agents can continue using information that was true before a project changed. Reviewing and clearing that stale context reduces decisions based on obsolete assumptions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the pm-2027 plugin — 10 skills shipped together

Good fit Use it to audit what an agent believes, purge outdated memory, or reset its context after a business or project change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mohitagw15856/pm-claude-skills/context-bankruptcy
About the project

PM Skills is a collection of plain-Markdown instructions that teach AI assistants structured methods for handling professional, personal, and life-admin tasks. People use it with Claude, ChatGPT, Gemini, Cursor, Codex, and other supported agents for work such as writing product requirements, reviewing documents, or planning difficult situations.

mohitagw15856/pm-claude-skills · 1,624 stars · on GitHub · mohitagw15856.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mohitagw15856/pm-claude-skills --skill context-bankruptcy
Clone the repo
git clone --depth 1 https://github.com/mohitagw15856/pm-claude-skills

Made for: Claude Code.

Or install pm-2027, the plugin that ships this one along with the rest of its 10 skills.

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 context-bankruptcy

README.md
[![agentmods](https://agentmods.dev/badge/skills/mohitagw15856/pm-claude-skills/context-bankruptcy/github.svg)](https://agentmods.dev/skills/mohitagw15856/pm-claude-skills/context-bankruptcy)
Your own site
<a href="https://agentmods.dev/skills/mohitagw15856/pm-claude-skills/context-bankruptcy"><img src="https://agentmods.dev/badge/skills/mohitagw15856/pm-claude-skills/context-bankruptcy/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 context-bankruptcy

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohitagw15856/pm-claude-skills/context-bankruptcy"><img src="https://agentmods.dev/badge/skills/mohitagw15856/pm-claude-skills/context-bankruptcy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,411 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.00108 $0.01411
Opus 5.5 $0.00043 $0.00564
Sonnet 5.5 $0.00022 $0.00282
Haiku 4.5 $0.00011 $0.00141

Measured 1mo ago against content hash c5148e2a0958, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

context-bankruptcy 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 1mo 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.

Origin

Copies of this mod

4 near-identical copies found in the catalogue:

plugins/pm-2027/skills/context-bankruptcy/SKILL.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Working from a brief

Given what the user says is wrong and what is worth keeping, do the clean-up anyway: the facts to delete or correct, the preferences to keep word for word, the fresh memory written out in full, and a short routine to stop it going stale again.

Read the full file on GitHub · 121 lines

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. 1mo ago Changed · +84 lines · +74 tokens per session scan C → A c5148e2a0958
  2. 1mo ago First seen · 37 lines · 34 tokens per session scan C 7efabc0d799e

Subscribe to this mod's changes

context-bankruptcy is a skill published in the GitHub repository mohitagw15856/pm-claude-skills (1,624 stars, last pushed yesterday), licensed MIT. It adds 108 tokens to every session and 1,411 once invoked, about $0.0004 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-10-12.

Related

context-bankruptcy compared with skills from other repositories

context-bankruptcy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-bankruptcymohitagw15856/pm-claude-skillsSkill1.6kyesterdayMITA108Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code