RE

repo-state-recovery

Reconstructs the current repository state after an interruption by checking git, tests, and local changes.

Install

mkdir -p .claude/skills/repo-state-recovery && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13576" && unzip -o skill.zip -d .claude/skills/repo-state-recovery && rm skill.zip

Installs to .claude/skills/repo-state-recovery

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Recover where repo work stood after an interruption by combining recent context, git state, tests, plan files, and ignored-file auditing. Use when the user asks what was happening before a crash or wants the current repo situation reconstructed reliably.
254 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Recover recent context from session/thread context and repo handoff files.
  • Inspect git state, including status, recent commits, and diffs.
  • Verify current health by running repo tests or gates.
  • Audit local-only risk by inspecting untracked and ignored files.
  • Reconstruct the workstream to identify the last meaningful increment.

How it works

This skill systematically inspects recent context, git state, test results, and local files to reconstruct the repository's workstream after an interruption.

Inputs & outputs

You give it
Recent context, git state, test results, plan files, and ignored files.
You get back
A report on where work had reached, current test status, committed vs local-only state, likely next actions, and recovery-risk findings.

When to use repo-state-recovery

  • Recover state after a crash
  • Check status after interruption
  • Verify local vs committed code state

About this skill

Repo State Recovery

Use this skill when the user cares about what is true now, not what chat folklore says was probably true before the interruption.

Procedure

  1. Recover recent context
    • use available session/thread context if it exists
    • read repo handoff files, plans, and state artifacts
  2. Inspect git state
    • git status --short --branch
    • recent commits
    • git diff --stat
  3. Verify current health
    • run the repo's declared tests or gates
    • if the repo has no clear test entrypoint, say so explicitly
  4. Audit local-only risk
    • inspect untracked files
    • inspect ignored files if anything looks suspicious
  5. Reconstruct the workstream
    • identify the last meaningful increment
    • identify what is committed, what is local, and what is ambiguous

Output

Give the user:

  • where work had reached
  • current test or gate status
  • committed vs local-only state
  • likely next actions
  • any recovery-risk findings

Pitfalls

  • Do not rely only on git history.
  • Do not rely only on prior conversation.
  • Do not skip ignored-file checks when source files seem to be missing.
  • Do not say the repo is probably fine if you can verify it.

When not to use it

  • When the user does not care about the current state of the repo after an interruption.
  • When the task is not about reconstructing the repo situation reliably.

Limitations

  • The skill does not rely only on git history.
  • The skill does not rely only on prior conversation.
  • The skill does not skip ignored-file checks when source files seem to be missing.

How it compares

This skill provides a reliable, evidence-based reconstruction of the repo's state, unlike relying solely on git history or prior conversations.

Compared to similar skills

repo-state-recovery side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
repo-state-recovery (this skill)03moNo flagsIntermediate
tmux202moReviewIntermediate
jira116moNo flagsBeginner
triaging-issues52moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry