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.zipInstalls 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.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
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
- Recover recent context
- use available session/thread context if it exists
- read repo handoff files, plans, and state artifacts
- Inspect git state
git status --short --branch- recent commits
git diff --stat
- Verify current health
- run the repo's declared tests or gates
- if the repo has no clear test entrypoint, say so explicitly
- Audit local-only risk
- inspect untracked files
- inspect ignored files if anything looks suspicious
- 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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| repo-state-recovery (this skill) | 0 | 3mo | No flags | Intermediate |
| tmux | 20 | 2mo | Review | Intermediate |
| jira | 11 | 6mo | No flags | Beginner |
| triaging-issues | 5 | 2mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
tmux
openclaw
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
jira
davila7
Use when the user mentions Jira issues (e.g., "PROJ-123"), asks about tickets, wants to create/view/update issues, check sprint status, or manage their Jira workflow. Triggers on keywords like "jira", "issue", "ticket", "sprint", "backlog", or issue key patterns.
triaging-issues
pytorch
Triages GitHub issues by routing to oncall teams, applying labels, and closing questions. Use when processing new PyTorch issues or when asked to triage an issue.
file-manager
Xxiii8322766509
文件管理技能。用于创建、移动、复制、删除文件和文件夹,整理目录结构。当用户需要管理文件、整理文件夹或批量处理文件时使用。
openspec-archive-change
studyzy
归档实验性工作流中已完成的变更。当用户想要在实现完成后最终确定并归档变更时使用。
slash-commands
parcadei
Create and use Claude Code slash commands - quick prompts, bash execution, file references