بنقرة واحدة
gse-pause
Auto-commit work, save session checkpoint. Triggered by /gse:pause.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Auto-commit work, save session checkpoint. Triggered by /gse:pause.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Deploy the current project to a Hetzner server via Coolify. Adapts to the user's situation: from zero infrastructure (solo) to a pre-configured shared server (training). Triggered by /gse:deploy.
Reload checkpoint, verify worktrees, brief user. Triggered by /gse:resume.
Deploy the current project to a Hetzner server via Coolify. Adapts to the user's situation: from zero infrastructure (solo) to a pre-configured shared server (training). Triggered by /gse:deploy.
Reload checkpoint, verify worktrees, brief user. Triggered by /gse:resume.
Route capitalized solutions to their targets. Triggered by /gse:integrate after compound.
Full GSE-One orchestrator methodology — load when you need the complete invariant text, failure modes, and edge cases beyond the condensed AGENTS.md summary.
| name | gse-pause |
| description | Auto-commit work, save session checkpoint. Triggered by /gse:pause. |
Arguments: $ARGUMENTS
| Flag / Sub-command | Description |
|---|---|
| (no args) | Auto-commit all active worktrees and save checkpoint |
--no-commit | Save checkpoint without auto-committing |
--note "text" | Attach a note to the checkpoint (context for future resume) |
--help | Show this command's usage summary |
Before executing, read:
.gse/status.yaml — current sprint and lifecycle state.gse/config.yaml — git strategy.gse/backlog.yaml — active tasks and their worktree assignmentsUnless --no-commit was specified:
For each TASK in backlog.yaml with git.worktree_status: active:
.worktrees/{worktree_name}git status --porcelaingit add -A
git commit -m "gse(pause): checkpoint — {task_title}
Sprint: S{NN}
Task: TASK-{ID}
Reason: session pause
"
backlog.yaml:
git.uncommitted_changes: 0git.last_commit: {now ISO 8601}If no worktrees are active (strategy is branch-only or none):
Commit failure handling (applies to the worktree loop and the current-branch fallback alike): if a commit is blocked by a guardrail hook (exit 2 — e.g., the protect-main hook when the current branch is main under branch-only strategy) or fails for any other reason (user pre-commit hooks, git errors), do NOT proceed silently. Present the Pause Commit Gate:
Question: I could not commit your uncommitted changes on
{branch}({reason}). How should I secure them before pausing?Options:
- Rescue branch (recommended, default) — create
gse/pause-rescue-{YYYY-MM-DD-HHMM}from the current branch and commit the changes there. Protects the work without touchingmainand without weakening any guardrail.- Sanctioned override — commit on the current branch after setting
hooks.protect_main: falsein.gse/config.yaml(the hook's own sanctioned exception). Only if you deliberately work directly onmain.- Checkpoint without commit — save the checkpoint and leave the changes uncommitted in the working tree. An explicit WARNING is recorded (Step 4 report + checkpoint
note) so/gse:resumesurfaces it.- Discuss — explore the options.
A refused or failed commit is NEVER counted in the "Auto-committed {N}" figure.
Report: "Auto-committed {N} worktree(s) with changes." — if any location was left uncommitted (Gate option 3, or --no-commit with a dirty state), report instead: "Auto-committed {N}; ⚠ {M} location(s) left with uncommitted changes."
Create a checkpoint file at .gse/checkpoints/checkpoint-{YYYY-MM-DD-HHMM}.yaml using the checkpoint.yaml template (plugin/templates/checkpoint.yaml — authoritative schema). Populate all fields from the current session state:
timestamp: ISO 8601 current time (flat top-level field per checkpoint.yaml schema)user: from profile.yaml → user.namelast_task: current TASK from session context (e.g., task the user was producing)note: from --note flag if provided, else emptystatus_snapshot: extract current_phase, current_sprint, last_activity, last_activity_timestamp, health.score from status.yamlbacklog_sprint_snapshot.tasks: for each TASK in current sprint, record status, complexity, branchgit_state.current_branch: from git branch --show-currentgit_state.head: from git rev-parse HEAD (verification anchor for /gse:resume when no worktrees exist)git_state.clean: from git status --porcelain on the current branch (false if uncommitted changes remain)git_state.worktrees[]: from git worktree list, for each: path, branch, task (from backlog), last_commit (HEAD hash), clean (from git status)If Step 1 left uncommitted changes anywhere (Pause Commit Gate option 3, or --no-commit with a dirty state), append to note: WARNING: uncommitted changes left on {branch} (commit blocked/skipped at pause) — /gse:resume Step 4 displays checkpoint notes, so the warning resurfaces at resume time.
status.yaml session state only:
session_paused: truepause_checkpoint: checkpoint-{YYYY-MM-DD-HHMM}.yamllast_activity, last_activity_timestamp are maintained centrally by the orchestrator after the activity closes — see plugin/agents/gse-orchestrator.md — section "Sprint Plan Maintenance", and gse-one-implementation-design.md §10.1 — Sprint Plan Lifecycle (v0.53.0). PAUSE writes no cursor fields directly.)After the checkpoint is saved and status updated, the orchestrator invokes the coach agent with moment: /gse:pause (per coach.md Invocation contract, design §5.17). The coach activates axes 2–8 (workflow axes) to surface end-of-session observations — particularly the sustainability axis (detecting long session durations, sprint point totals vs spec §8 guidance) and the engagement_pattern axis (accepting defaults without pushback over the session). Coach outputs (bounded by config.yaml → coach.max_advice_per_check, default 3) are included in the pause report (Step 4). If nothing meaningful surfaces, this step is silent.
SESSION PAUSED
Checkpoint: .gse/checkpoints/checkpoint-{YYYY-MM-DD-HHMM}.yaml
Auto-committed: {N} worktree(s)
{if uncommitted changes remain}:
⚠ WARNING: uncommitted changes remain on {branch} — NOT committed.
They stay in your working tree and will be surfaced again by /gse:resume.
Sprint: S{NN} ({current_phase})
Active tasks: {count}
Resume with: /gse:resume