Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
athola avatar

Damage Control

  • 79 installs
  • 325 repo stars
  • Updated August 2, 2026
  • athola/claude-night-market

Damage Control is an agent skill that reconstructs decision context when the context window is exhausted mid-session—usable whenever a solo builder needs to checkpoint and continue without replaying lost agen

About

Damage Control (context-overflow) is an agent skill module that teaches procedures for reconstructing decision context when the context window is exhausted mid-session. Solo and indie builders running long Claude Code, Cursor, or Codex sessions install it for the silent failure mode where the agent continues but cannot see earlier reasoning, tool results, or user constraints. The skill applies whenever symptoms appear—references to missing decisions, duplicated implementation, or outputs that disagree with the first half of the session—not only after a hard crash. It prescribes stopping immediately, anchoring known state to durable artifacts (especially the task list), and continuing without replaying lost context. That makes it journey-wide procedural knowledge usable during Build integrations, Ship review marathons, or Operate debugging, whenever window pressure erodes reliability.

  • Stop-and-checkpoint recovery protocol with task list as durable ground truth outside the context window
  • Symptom checklist: missing prior decisions, repeated work, invisible tool results, contradictory second-half outputs
  • Explains why overflow is worse than a crash—no error surface, agent keeps running with amnesia
  • Handoff summaries and safe continuation without re-deriving constraints agreed with the user
  • Parent leyline:damage-control module; ~260-token procedural slice for infrastructure context recovery

Damage Control by the numbers

  • 79 all-time installs (skills.sh)
  • Ranked #5,292 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/athola/claude-night-market --skill damage-control

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs79
repo stars325
Security audit3 / 3 scanners passed
Last updatedAugust 2, 2026
Repositoryathola/claude-night-market

What it does

Recover safely when an agent session hits context limits so you do not duplicate work or contradict earlier decisions.

Who is it for?

Long multi-step agent sessions where task lists or specs live outside the chat and you need a explicit overflow recovery ritual.

Skip if: Sessions that already ended cleanly with an approved handoff document, or one-shot tasks with no prior in-session decisions worth reconstructing.

When should I use this skill?

Context window is near or at its limit and the agent cannot reliably recall earlier decisions, completed steps, or rationale—especially when it redoes work or contradicts the first half of the session.

What you get

You stop safely, persist current state to durable anchors like the task list, and resume with a handoff summary so the next stretch of work aligns with prior decisions.

  • Checkpoint of known state anchored to task list or external doc
  • Handoff summary for safe continuation without replaying lost context

By the numbers

  • Recovery protocol Step 1: stop and checkpoint to durable anchors with task list as primary ground truth
  • Parent module leyline:damage-control; SKILL frontmatter estimates ~260 tokens for this slice

Files

SKILL.mdMarkdownGitHub ↗

Table of Contents

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 Use

  • Proactive risk assessment before work starts (use

Skill(leyline:risk-classification) instead)

  • Strategic architectural decisions after a failure (use

Skill(attune:war-room) instead)

  • Routine error handling within a single tool call (use

Skill(leyline:error-patterns) instead)

Damage Triage

Use this decision tree to route to the correct module:

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

Risk Assessment Checklist

Before executing Level 1+ tasks, complete the risk assessment checklist from modules/risk-assessment-checklist.md. Answer these five questions:

1. What could fail in production? List specific failure scenarios. 2. How would we detect it quickly? Monitoring, alerts, logs. 3. What is the fastest safe rollback? Step-by-step procedure. 4. What dependency could invalidate this plan? External dependencies. 5. What assumption is least certain? Weakest link in the plan.

Required for Level 1 (Watch) and above. See modules/risk-assessment-checklist.md for the full template and examples.

Module Reference

  • crash-recovery.md: Triage, checkpoint inspection, and

safe resume or rollback after an agent crash.

  • context-overflow.md: Procedures for reconstructing

decision context when the window is exhausted.

  • merge-conflict-resolution.md: Classification and

resolution strategies for git conflicts, including escalation to human review.

  • state-reconciliation.md: Protocol for reconciling

divergent state across task list, git index, and on-disk artifacts.

  • risk-assessment-checklist.md: Pre-execution checklist for

Level 1+ tasks.

Integration Pattern

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

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

Exit Criteria

  • Agent state is unambiguously known (no unknown partial writes)
  • Git index is clean or all conflicts are resolved
  • Task list reflects actual completion status of all tasks
  • All artifacts expected by downstream agents are present and

verified

  • If rollback was taken, the rollback is committed and the

reverted scope is documented in the task list

  • If escalation to human review was required, the escalation

record exists before the session closes

Related skills

How it compares

Use as structured overflow recovery instead of hoping the model remembers—or blindly continuing chat after contradictory outputs.

FAQ

Who is damage-control for?

Developers who run lengthy agent coding sessions and need a repeatable way to survive context window limits without silent rework.

When should I use damage-control?

Use it when the window is near capacity or symptoms show—missing earlier decisions, repeated completed work, invisible tool output, or contradictory answers—in Build, Ship, or Operate sessions alike.

Is damage-control safe to install?

It is procedural guidance only; review the Security Audits panel on this Prism page before installing any skill from the repo.

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.