L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Développement · SKILL.md

recover

recover

Automatically detects and resumes incomplete work after CLI crashes, network drops, or agent errors. Use this skill whenever a session is interrupted, or on requests like "recover work", "interrupted task", "continue where you left off", or "what were you doing?"

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: recover description: Automatically detects and resumes incomplete work after CLI crashes, network drops, or agent errors. Use this skill whenever a session is interrupted, or on requests like "recover work", "interrupted task", "continue where you left off", or "what were you doing?" version: 2.3.0 updated: 2026-02-21

Recover Skill

A skill that automatically detects and recovers work interrupted by CLI crashes, network drops, or agent errors.

Unique capabilities:

  • Detects all types of interrupted work and guides the appropriate recovery path
  • Comprehensively analyzes TASKS.md, progress logs, and state files

v2.4.0 update: TASKS.md-first recovery + project-team Hook integration


Trigger Conditions

This skill can be invoked with the following commands or natural language:

  • /recover
  • /복구
  • "Check interrupted tasks"
  • "Continue previous work"

Execution Steps

When this skill is triggered, it performs the following steps in order:

Step 1: State Files and Artifact Inspection (Standalone v2.4)

Searches for traces of previous work, prioritizing TASKS.md:

PrioritySourceFile PathDescription
1 (highest)Task TrackerTASKS.mdTask list with [ ], [/], [x] statuses
2Task Tracker (legacy)docs/planning/06-tasks.md, task.mdLegacy task files
3Progress Log.claude/progress.txtDecision and issue records
4 (optional)Orchestrate State.claude/orchestrate-state.jsonAutomation state (if present)
  • Standalone priority: Incomplete tasks ([ ], [/]) in TASKS.md are checked first.
  • When found, report the list of those items to the user.
# Example output
## Interrupted Work Found

**TASKS.md incomplete tasks:**
- [/] T1.2: Dashboard UI implementation (in progress)
- [ ] T1.3: API integration

**Recommended**: run `/agile run T1.2` or `/agile auto`

Step 2: Recent Conversation History Check

Target: Recent conversation summary list

  • Search for previous conversations on topics similar to the current one.
  • If related conversations are found, report the conversation IDs and summaries.

Step 3: Git Worktree Status Inspection (v1.8.0)

Target: Git Worktree and branch status

# Check worktree status
git worktree list

# Check unmerged branches
git branch --no-merged main
StatusDescriptionRecommended Action
Orphan WorktreeWorktree without a branchgit worktree remove
Unmerged BranchPhase complete but not mergedgit merge → /orchestrate --resume
Dirty WorktreeUncommitted changesgit stash or commit then proceed
Conflict StateMerge conflict in progressResolve conflicts then proceed

Step 4: Project Folder Inspection

Target: User-provided path or current active document path

Detects incomplete files matching the following patterns:

PatternDescription
Open code blockMarkdown with ``` opened but not closed
Unclosed bracketsCode files with unclosed {, [, (
TODO markersIncomplete markers like // TODO:, # FIXME:
Empty functionspass, throw new Error('Not implemented'), etc.

Step 5: Recovery Proposal (v1.8.0)

Based on inspection results, propose situation-specific recovery strategies:

SituationRecommended ActionAuto-execute
Orchestrate interrupted/orchestrate --resumeAuto-recommended
Ultra-Thin interrupted/orchestrate --ultra-thin --resumeAuto-recommended
Agile interrupted/agile status → /agile run {next-task}Manual confirmation
Worktree issueClean up Git then resumeManual confirmation
Incomplete codePer-file fix guidanceManual confirmation

Recovery Options

  • A. Automatic recovery (recommended): Immediately resume and complete detected incomplete items.
  • B. Manual selection: Show the list of recoverable items and let the user choose.
  • C. Start fresh: Run /workflow to receive guidance from the beginning.

Constraints

  1. Unsaved data cannot be recovered: Content lost before being written to a file when the CLI exited cannot be restored.
  2. Terminal commands cannot be restored: Processes that were running (e.g., npm run dev) will not be automatically restarted. The user will be guided to re-run them if needed.

Usage Example

Input:

/recover

Example output:

## Recovery Inspection Results

### Artifact Status
- `task.md` found: 2 incomplete items

### Project Inspection
- `d:\Projects\my-app\src\api\client.ts`: unclosed bracket detected (Line 45)

### Recommended Actions
1. [Auto-recover] Resume incomplete items in task.md
2. [Manual fix] Check client.ts Line 45

How would you like to proceed? (1/2/cancel)

Next Skill Integration (v2.3.0)

After recovery completes, the following skills are automatically suggested based on the situation:

Recovery ResultNext SkillDescription
Orchestrate resume/orchestrate --resumeContinue from the interrupted phase
tmux mode resume/orchestrate --tmux --resumeResume tmux parallel execution (v1.10.0)
Individual task resume/agile run {task-id}Run a specific task
Deficit analysis interrupted/erosResume Diotima ladder (v1.10.0)
Eros planning interrupted/poietesResume 4-phase process (v1.10.0)
Quality check needed/trinity → /code-review or /auditValidate after recovery
Test failure recovery/powerqaAutomated QA cycling
Start fresh/workflowBegin workflow from the start

Step 6: tmux Mode Failure Detection (v1.10.0 NEW)

When using tmux parallel execution mode, check status via /tmp/task-*.done files:

# Check tmux task completion status
ls /tmp/task-*.done 2>/dev/null

# Check result files
ls /tmp/task-*-result.md 2>/dev/null
StatusDescriptionRecommended Action
Some .done missingOnly some tasks failedRe-run only incomplete tasks
All .done missingTotal failure/orchestrate --tmux --resume
tmux session remainsProcess still runningCheck status with tmux attach

Hook Integration (Standalone v2.4)

HookEffect
task-syncDetects and syncs TASKS.md status changes
quality-gateAutomatically triggers quality validation after recovery

Note: Uses the project-team Hook system (project-team/hooks/)


Prevention Tips

  1. Commit frequently: Smaller commits make recovery easier.
  2. Use TASKS.md: Documenting tasks with /tasks-init makes progress tracking straightforward.
  3. Use Worktrees: Per-phase Worktrees keep work cleanly separated.

Last Updated: 2026-03-03 (v2.4.0 - Standalone independence complete)

Skills enregistrées