damage-control
Recovers broken agent state via crash recovery, context overflow, and merge conflict protocols. Use when an agent session fails or a worktree is corrupted.
npx skills add majiayu000/claude-skill-registry --skill damage-control --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
## Table of Contents - [Overview](#overview) - [When To Use](#when-to-use) - [When NOT To Use](#when-not-to-use) - [Damage Triage](#damage-triage) - [Module Reference](#module-reference) - [Integration Pattern](#integration-pattern) - [Exit Criteria](#exit-criteria) # Damage Control ## Overview Provides recovery protocols for agents that encounter broken state mid-session. Damage control covers four failure classes: agent crashes with partial work on disk, context window overflow that causes state loss, merge conflicts blocking forward progress, and general session state corruption requiring reconciliation. The skill does not prevent failures. It defines what to do after one has already happened, so recovery is consistent, auditable, and does not silently discard work. ## When To Use - An agent process crashed and left files in an unknown state - A session hit the context limit and cannot load prior decisions - `git merge` or `git rebase` produced conflicts the agent cannot resolve automatically - Observed state (files on disk, task list, git index) disagrees with expected state - A downstream agent reports missing artifacts that should have been produced upstream ## When NOT to Us
- Table of Contents
- Overview
- When To Use
- When NOT to Use
- Damage Triage
- Risk Assessment Checklist
- Module Reference
- Integration Pattern
- Exit Criteria
What does the damage-control skill do?
Recovers broken agent state via crash recovery, context overflow, and merge conflict protocols. Use when an agent session fails or a worktree is corrupted.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill damage-control --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
