mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-12 19:44:48 +01:00
context-save/restore: drop rename history; fix command-list branch rule (s09 H11, M1, M2, M3, M4, M5, M6)
Template-only commit: generated SKILL.md is expected red until the regeneration commit.
This commit is contained in:
1 parent
6f12766db6
commit
ff6a6d1f84
2 files changed
+8
-14
No files matched your search
@@ -7,9 +7,7 @@ description: |
|
||||
saved state (preferring the current branch, falling back across branches) so
|
||||
you can pick up where you left off — even across Conductor workspace handoffs.
|
||||
Use when asked to "resume", "restore context", "where was I", or
|
||||
"pick up where I left off". Pair with /context-save.
|
||||
Formerly /checkpoint resume — renamed because Claude Code treats /checkpoint
|
||||
as a native rewind alias in current environments. (gstack)
|
||||
"pick up where I left off". Pair with /context-save. (gstack)
|
||||
allowed-tools:
|
||||
- Bash
|
||||
- Read
|
||||
@@ -55,7 +53,7 @@ branch.)
|
||||
|
||||
Parse the user's input:
|
||||
|
||||
- `/context-restore` → load the most recent saved context (any branch)
|
||||
- `/context-restore` → load the most recent saved context (current branch first, then any branch)
|
||||
- `/context-restore <title-fragment-or-number>` → load a specific saved context
|
||||
- `/context-restore list` → tell the user "Use `/context-save list` — listing
|
||||
lives on the save side" and exit. No mode detection here.
|
||||
@@ -234,9 +232,9 @@ in the old bucket until the user copies them with `gstack-slug --adopt-legacy`.
|
||||
|
||||
- **Never modify code.** This skill only reads saved files and presents them.
|
||||
- **Prefer the current branch's own checkpoint, but keep all branches in the
|
||||
fallback set.** Cross-branch resume (Conductor handoff) still works when the
|
||||
current branch has no checkpoint; it just no longer lets a sibling worktree's
|
||||
newer save shadow this branch's own.
|
||||
fallback set.** Cross-branch resume (Conductor handoff) works when the
|
||||
current branch has no checkpoint, and a sibling worktree's newer save never
|
||||
shadows this branch's own.
|
||||
- **Never present another project's checkpoint as "latest".** Identity is the
|
||||
canonical remote (the root only when there is no remote); a mismatch is
|
||||
reported before any summary.
|
||||
|
||||
@@ -7,8 +7,6 @@ description: |
|
||||
so any future session can pick up without losing a beat.
|
||||
Use when asked to "save progress", "save state", "context save", or
|
||||
"save my work". Pair with /context-restore to resume later.
|
||||
Formerly /checkpoint — renamed because Claude Code treats /checkpoint as a
|
||||
native rewind alias in current environments, which was shadowing this skill.
|
||||
(gstack)
|
||||
allowed-tools:
|
||||
- Bash
|
||||
@@ -48,7 +46,7 @@ If the user provides a title after the command (e.g., `/context-save auth refact
|
||||
use it as the title. Otherwise, infer a title from the current work.
|
||||
|
||||
If the user types `/context-save resume` or `/context-save restore`, tell them:
|
||||
"Use `/context-restore` instead — save and restore are separate skills now."
|
||||
"Use `/context-restore` to resume — restoring is a separate skill."
|
||||
|
||||
---
|
||||
|
||||
@@ -184,8 +182,7 @@ modified files). Use relative paths from the repo root. Do not write `remote:` o
|
||||
`project_root:` yourself; the stamp step below adds them.
|
||||
|
||||
Then stamp the project identity. Several projects can share one checkpoints
|
||||
directory (GitLab nested groups did before #3003), so `/context-restore` needs to
|
||||
know which project wrote each file. The helper adds `remote:` (canonical origin:
|
||||
directory, so `/context-restore` needs to know which project wrote each file. The helper adds `remote:` (canonical origin:
|
||||
lowercased host, no credentials, port or `.git`) and `project_root:` to the
|
||||
frontmatter:
|
||||
|
||||
@@ -281,5 +278,4 @@ If there are no saved contexts, tell the user: "No saved contexts yet. Run
|
||||
- **Infer, don't interrogate.** Use git state and conversation context to fill in
|
||||
the file. Only use AskUserQuestion if the title genuinely cannot be inferred.
|
||||
- **This is a gstack skill, not a Claude Code built-in.** When the user types
|
||||
`/context-save`, invoke this skill via the Skill tool. The old `/checkpoint`
|
||||
name collided with Claude Code's native `/rewind` alias — the rename fixed that.
|
||||
`/context-save`, invoke this skill via the Skill tool.
|
||||
Reference in new issue
Block a user