Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Recovers broken agent state via crash recovery, context overflow, and merge conflict protocols. Use when an agent session fails or a worktree is corrupted.
.claude/skills/athola-damage-control/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-12 | ✗→✓ | ▲ Improved | 46% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -18% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -30% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 14% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 25% | 0% |
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.
git merge or git rebase produced conflicts the agent cannotresolve automatically
with expected state
been produced upstream
Skill(leyline:risk-classification) instead)
Skill(attune:war-room) instead)
Skill(leyline:error-patterns) instead)
Use this decision tree to route to the correct module:
mermaidflowchart TD A[Failure detected] --> B{Agent process crashed\nor exited unexpectedly?} B -->|Yes| C[modules/crash-recovery.md] B -->|No| D{Context limit hit or\nprior decisions unavailable?} D -->|Yes| E[modules/context-overflow.md] D -->|No| F{git merge / rebase /\ncherry-pick conflicts?} F -->|Yes| G[modules/merge-conflict-resolution.md] F -->|No| H{State internally inconsistent?\ntask list vs disk vs git index} H -->|Yes| I[modules/state-reconciliation.md] H -->|No| J[No damage-control needed]
When multiple failure types overlap, start with state-reconciliation.md to establish a known baseline, then address the specific failure class.
Before executing Level 1+ tasks, complete the risk assessment checklist from modules/risk-assessment-checklist.md. Answer these five questions:
scenarios.
logs.
procedure.
dependencies.
the plan.
Required for Level 1 (Watch) and above. See modules/risk-assessment-checklist.md for the full template and examples.
safe resume or rollback after an agent crash.
decision context when the window is exhausted.
resolution strategies for git conflicts, including escalation to human review.
divergent state across task list, git index, and on-disk artifacts.
Level 1+ tasks.
yaml# In your skill's frontmatter dependencies: [leyline:damage-control]
Invoke a specific module when a failure class is identified:
# Crash detected
Skill(leyline:damage-control) → modules/crash-recovery.md
# Context limit reached
Skill(leyline:damage-control) → modules/context-overflow.mdFor orchestrators managing multiple agents, invoke state-reconciliation at session boundaries regardless of whether a failure occurred. This establishes a verified checkpoint before the next work phase begins.
verified
reverted scope is documented in the task list
record exists before the session closes
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-13 | pass→pass | 12,782 | 8,796 | -31% | 1 | 1 | 0% | 1,935 | 2,484 | +28% | 0 | 0 | — |
case-14 | pass→pass | 11,846 | 9,036 | -24% | 1 | 1 | 0% | 1,881 | 2,660 | +41% | 0 | 0 | — |
case-12 | fail→pass | 9,994 | 6,873 | -31% | 1 | 1 | 0% | 1,624 | 2,366 | +46% | 0 | 0 | — |
case-01 | fail→fail | 16,315 | 11,593 | -29% | 1 | 1 | 0% | 2,616 | 2,936 | +12% | 0 | 0 | — |
case-02 | fail→fail | 17,610 | 15,961 | -9% | 1 | 1 | 0% | 2,913 | 3,752 | +29% | 0 | 0 | — |
case-03 | fail→fail | 16,895 | 13,959 | -17% | 1 | 1 | 0% | 2,566 | 3,269 | +27% | 0 | 0 | — |
case-04 | fail→pass | 13,724 | 4,046 | -71% | 1 | 1 | 0% | 2,196 | 1,810 | -18% | 0 | 0 | — |
case-05 | fail→pass | 17,350 | 5,042 | -71% | 1 | 1 | 0% | 2,678 | 1,881 | -30% | 0 | 0 | — |
case-06 | fail→pass | 10,958 | 4,412 | -60% | 1 | 1 | 0% | 1,654 | 1,893 | +14% | 0 | 0 | — |
case-07 | fail→pass | 8,836 | 2,892 | -67% | 1 | 1 | 0% | 1,293 | 1,618 | +25% | 0 | 0 | — |
case-08 | fail→pass | 11,148 | 2,842 | -75% | 1 | 1 | 0% | 1,767 | 1,546 | -13% | 0 | 0 | — |
case-09 | fail→pass | 11,189 | 3,198 | -71% | 1 | 1 | 0% | 1,791 | 1,719 | -4% | 0 | 0 | — |
case-10 | fail→pass | 10,078 | 3,209 | -68% | 1 | 1 | 0% | 1,523 | 1,629 | +7% | 0 | 0 | — |
case-11 | pass→pass | 11,107 | 11,258 | +1% | 1 | 1 | 0% | 1,892 | 3,078 | +63% | 0 | 0 | — |
case-15 | fail→pass | 7,281 | 4,308 | -41% | 1 | 1 | 0% | 1,199 | 1,849 | +54% | 0 | 0 | — |
case-16 | pass→pass | 8,631 | 6,023 | -30% | 1 | 1 | 0% | 1,344 | 2,085 | +55% | 0 | 0 | — |
case-17 | pass→pass | 7,221 | 2,579 | -64% | 1 | 1 | 0% | 1,187 | 1,556 | +31% | 0 | 0 | — |
case-18 | pass→fail | 11,474 | 2,419 | -79% | 1 | 1 | 0% | 741 | 1,552 | +109% | 0 | 0 | — |
case-19 | fail→pass | 6,725 | 1,711 | -75% | 1 | 1 | 0% | 989 | 1,336 | +35% | 0 | 0 | — |
case-20 | fail→pass | 7,365 | 1,266 | -83% | 1 | 1 | 0% | 1,042 | 1,320 | +27% | 0 | 0 | — |
case-21 | pass→fail | 9,922 | 1,631 | -84% | 1 | 1 | 0% | 1,558 | 1,307 | -16% | 0 | 0 | — |
case-22 | fail→pass | 9,620 | 1,877 | -80% | 1 | 1 | 0% | 1,476 | 1,341 | -9% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +45 percentage points is the difference between those two pass rates over the 22 comparable cases. 2 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.