chore: pause work and save context handoff

This commit is contained in:
2026-03-30 07:32:23 +09:00
parent 509d6cae57
commit add7f40894
577 changed files with 90979 additions and 39 deletions

View File

@@ -0,0 +1,56 @@
<purpose>
List all GSD workspaces found in ~/gsd-workspaces/ with their status.
</purpose>
<required_reading>
Read all files referenced by the invoking prompt's execution_context before starting.
</required_reading>
<process>
## 1. Setup
```bash
INIT=$(node ".agent/get-shit-done/bin/gsd-tools.cjs" init list-workspaces)
if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
```
Parse JSON for: `workspace_base`, `workspaces`, `workspace_count`.
## 2. Display
**If `workspace_count` is 0:**
```
No workspaces found in ~/gsd-workspaces/
Create one with:
/gsd-new-workspace --name my-workspace --repos repo1,repo2
```
Done.
**If workspaces exist:**
Display a table:
```
GSD Workspaces (~/gsd-workspaces/)
| Name | Repos | Strategy | GSD Project |
|------|-------|----------|-------------|
| feature-a | 3 | worktree | Yes |
| feature-b | 2 | clone | No |
Manage:
cd ~/gsd-workspaces/<name> # Enter a workspace
/gsd-remove-workspace <name> # Remove a workspace
```
For each workspace, show:
- **Name** — directory name
- **Repos** — count from init data
- **Strategy** — from WORKSPACE.md
- **GSD Project** — whether `.planning/PROJECT.md` exists (Yes/No)
</process>