Agent skill · AI & Agents

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill damage-control --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Path: skills/agent/damage-control/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

## 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

What's inside
Steps it walks through
  1. Table of Contents
  2. Overview
  3. When To Use
  4. When NOT to Use
  5. Damage Triage
  6. Risk Assessment Checklist
  7. Module Reference
  8. Integration Pattern
  9. Exit Criteria
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going