Session recovery via 5-Question Reboot Test — read persistence files, rebuild context, report next action
Recovers interrupted coding sessions by reading persistence files and answering the 5-Question Reboot Test to determine the next action.
npx claudepluginhub jugrajsingh/skillgardenThis skill is limited to using the following tools:
Recover session state by reading persistence files and answering the 5-Question Reboot Test.
$ARGUMENTS = optional slug name.
If $ARGUMENTS is empty, find the most recently modified plan files:
ls -t docs/plans/*-progress.md 2>/dev/null | head -5
If multiple found, offer selection:
AskUserQuestion:
question: "Which plan should I resume?"
header: "Select Plan"
options:
- label: "{SLUG_1}"
description: "Last modified: {date}"
- label: "{SLUG_2}"
description: "Last modified: {date}"
If none found, report: "No plan files found in docs/plans/. Use /planner:plan to create one."
Check for all 3 files:
test -f docs/plans/{SLUG}-task_plan.md && echo "task_plan: found" || echo "task_plan: MISSING"
test -f docs/plans/{SLUG}-findings.md && echo "findings: found" || echo "findings: MISSING"
test -f docs/plans/{SLUG}-progress.md && echo "progress: found" || echo "progress: MISSING"
If any file is missing, report which ones and offer:
AskUserQuestion:
question: "Some persistence files are missing. How should I proceed?"
header: "Missing Files"
options:
- label: "Create from template"
description: "Generate missing files using templates"
- label: "Continue without"
description: "Work with available files only"
If creating from template, read ${CLAUDE_PLUGIN_ROOT}/templates/ and generate the missing files with the slug as title.
Read each file that exists:
docs/plans/{SLUG}-task_plan.md — tasks, batches, dependenciesdocs/plans/{SLUG}-findings.md — patterns, open questions, research notesdocs/plans/{SLUG}-progress.md — task statuses, batch logConstruct answers from the persistence files:
From progress.md: identify the current batch and current task (first non-done task in the active batch).
From task_plan.md: identify the next incomplete task after the current one, following batch order.
From task_plan.md header: extract the project title and design doc reference. Read the design doc if referenced and accessible.
From findings.md: summarize key patterns found and resolved questions. Highlight any open questions that may affect the next task.
From progress.md: list all tasks with status "done" and their notes. Count completed vs total tasks.
Present the reboot test results:
## 5-Question Reboot Test
1. WHERE AM I?
Batch {N}, Task {ID}: {description}
Status: {status}
2. WHERE AM I GOING?
Next: Task {ID}: {description}
Batch {N} has {X} remaining tasks
3. WHAT IS THE GOAL?
{project title} -- {1-sentence summary from design doc}
4. WHAT HAVE I LEARNED?
- {key finding 1}
- {key finding 2}
- Open: {unresolved question}
5. WHAT HAVE I DONE?
{completed}/{total} tasks complete
- {done task 1}
- {done task 2}
From the current/next task in task_plan.md, identify the files listed. Read each one to rebuild working context:
test -f {FILE_PATH} && echo "exists" || echo "not yet created"
Read existing files referenced by the current and next task.
Summarize the recovered state and recommend the next action based on progress:
AskUserQuestion:
question: "Session recovered. What would you like to do?"
header: "Next Action"
options:
- label: "Continue execution"
description: "Pick up from {CURRENT_TASK}"
- label: "Review plan"
description: "Display the full task plan for review"
- label: "Update findings"
description: "Add new findings or resolve open questions"
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.