compact-fixlisted
Install: claude install-skill ImTaegan/claude-saas-flow
# Context Recovery After Compaction
Restores full context after a Claude Code chat has been compacted by retrieving the execution plan and current task status.
## Project Configuration
Read project configuration from `.claude/project.json`:
- `projectName`
- `linear.teamId`, `linear.teamName`, `linear.projectId`
- `github.owner`, `github.repo`
If `.claude/project.json` doesn't exist, suggest running `/setup-project` first.
## Instructions for Claude
When this skill is invoked, restore context from the current branch and Linear issue.
### Step 0: Load Configuration
```bash
PROJECT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
```
Read `$PROJECT_ROOT/.claude/project.json`.
### Step 1: Get Current Workflow Status
1. Get the current Git branch: `git branch --show-current`
2. Extract the issue ID (e.g., `ABC-XX` from `feature/ABC-XX-title`)
3. If an issue ID is found, fetch from Linear:
```
Use mcp__linear__get_issue with the extracted ID
```
4. Check sub-issues and their statuses
5. This shows:
- Current branch and workflow
- Linear issue tied to this branch
- All tasks and their statuses
### Step 2: Retrieve the Execution Plan
1. Use the Task tool with `subagent_type="Explore"` and `thoroughness="medium"` to recover codebase context related to the current feature. Pass the issue title and key terms.
2. Look for plan files:
- `.claude/plan.md` or similar
- Recent commit messages mentioning the plan
3. If a Linear issue was found, re