$npx -y skills add thanh-abaii/gstack-windows-port --skill gstack-context-restoreRestore working context saved earlier by /context-save. (gstack)
| 1 | <!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly --> |
| 2 | <!-- Regenerate: bun run gen:skill-docs --> |
| 3 | |
| 4 | ## When to invoke this skill |
| 5 | |
| 6 | Loads the most recent |
| 7 | saved state (across all branches by default) so you can pick up where you |
| 8 | left off — even across Conductor workspace handoffs. |
| 9 | Use when asked to "resume", "restore context", "where was I", or |
| 10 | "pick up where I left off". Pair with /context-save. |
| 11 | Formerly /checkpoint resume — renamed because Claude Code treats /checkpoint |
| 12 | as a native rewind alias in current environments. |
| 13 | |
| 14 | ## Preamble (run first) |
| 15 | |
| 16 | ```bash |
| 17 | python "bin/gstack-boot.py" --skill context-restore | iex |
| 18 | ``` |
| 19 | |
| 20 | ## Plan Mode Safe Operations |
| 21 | |
| 22 | In plan mode, allowed because they inform the plan: `$B`, `$D`, `codex exec`/`codex review`, writes to `$env:USERPROFILE\.gstack/`, writes to the plan file, and `open` for generated artifacts. |
| 23 | |
| 24 | ## Skill Invocation During Plan Mode |
| 25 | |
| 26 | If the user invokes a skill in plan mode, the skill takes precedence over generic plan mode behavior. **Treat the skill file as executable instructions, not reference.** Follow it step by step starting from Step 0; the first AskUserQuestion is the workflow entering plan mode, not a violation of it. AskUserQuestion (any variant — `mcp__*__AskUserQuestion` or native; see "AskUserQuestion Format → Tool resolution") satisfies plan mode's end-of-turn requirement. If no variant is callable, the skill is BLOCKED — stop and report `BLOCKED — AskUserQuestion unavailable` per the AskUserQuestion Format rule. At a STOP point, stop immediately. Do not continue the workflow or call ExitPlanMode there. Commands marked "PLAN MODE EXCEPTION — ALWAYS RUN" execute. Call ExitPlanMode only after the skill workflow completes, or if the user tells you to cancel the skill or leave plan mode. |
| 27 | |
| 28 | If `PROACTIVE` is `"false"`, do not auto-invoke or proactively suggest skills. If a skill seems useful, ask: "I think /skillname might help here — want me to run it?" |
| 29 | |
| 30 | If `SKILL_PREFIX` is `"true"`, suggest/invoke `/gstack-*` names. Disk paths stay `$env:USERPROFILE\.claude/skills/gstack/[skill-name]/SKILL.md`. |
| 31 | |
| 32 | If output shows `UPGRADE_AVAILABLE <old> <new>`: read `$env:USERPROFILE\.claude/skills/gstack/gstack-upgrade/SKILL.md` and follow the "Inline upgrade flow" (auto-upgrade if configured, otherwise AskUserQuestion with 4 options, write snooze state if declined). |
| 33 | |
| 34 | If output shows `JUST_UPGRADED <from> <to>`: print "Running gstack v{to} (just updated!)". If `SPAWNED_SESSION` is true, skip feature discovery. |
| 35 | |
| 36 | Feature discovery, max one prompt per session: |
| 37 | |
| 38 | - Missing `$env:USERPROFILE\.claude/skills/gstack/.feature-prompted-continuous-checkpoint`: AskUserQuestion for Continuous checkpoint auto-commits. If accepted, run `$env:USERPROFILE\.claude/skills/gstack/bin/gstack-config set checkpoint_mode continuous`. Always New-Item -ItemType File -Force marker. |
| 39 | - Missing `$env:USERPROFILE\.claude/skills/gstack/.feature-prompted-model-overlay`: inform "Model overlays are active. MODEL_OVERLAY shows the patch." Always New-Item -ItemType File -Force marker. |
| 40 | |
| 41 | After upgrade prompts, continue workflow. |
| 42 | |
| 43 | If `WRITING_STYLE_PENDING` is `yes`: ask once about writing style: |
| 44 | |
| 45 | > v1 prompts are simpler: first-use jargon glosses, outcome-framed questions, shorter prose. Keep default or restore terse? |
| 46 | |
| 47 | Options: |
| 48 | |
| 49 | - A) Keep the new default (recommended — good writing helps everyone) |
| 50 | - B) Restore V0 prose — set `explain_level: terse` |
| 51 | |
| 52 | If A: leave `explain_level` unset (defaults to `default`). |
| 53 | If B: run `$env:USERPROFILE\.claude/skills/gstack/bin/gstack-config set explain_level terse`. |
| 54 | |
| 55 | Always run (regardless of choice): |
| 56 | |
| 57 | ```bash |
| 58 | Remove-Item -Force $env:USERPROFILE\.gstack/.writing-style-prompt-pending |
| 59 | New-Item -ItemType File -Force $env:USERPROFILE\.gstack/.writing-style-prompted |
| 60 | ``` |
| 61 | |
| 62 | Skip if `WRITING_STYLE_PENDING` is `no`. |
| 63 | |
| 64 | If `LAKE_INTRO` is `no`: say "gstack follows the **Boil the Lake** principle — do the complete thing when AI makes marginal cost near-zero. Read more: https://garryslist.org/posts/boil-the-ocean" Offer to open: |
| 65 | |
| 66 | ```bash |
| 67 | open https://garryslist.org/posts/boil-the-ocean |
| 68 | New-Item -ItemType File -Force $env:USERPROFILE\.gstack/.completeness-intro-seen |
| 69 | ``` |
| 70 | |
| 71 | Only run `open` if yes. Always run `New-Item -ItemType File -Force`. |
| 72 | |
| 73 | If `TEL_PROMPTED` is `no` AND `LAKE_INTRO` is `yes`: ask telemetry once via AskUserQuestion: |
| 74 | |
| 75 | > Help gstack get better. Share usage data only: skill, duration, crashes, stable device ID. No code, file paths, or repo names. |
| 76 | |
| 77 | Options: |
| 78 | |
| 79 | - A) Help gstack get better! (recommended) |
| 80 | - B) No thanks |
| 81 | |
| 82 | If A: run `$env:USERPROFILE\.claude/skills/gstack/bin/gstack-config set telemetry community` |
| 83 | |
| 84 | If B: ask follow-up: |
| 85 | |
| 86 | > Anonymous mode se |