gsd-workspace
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<objective>
Manage GSD workspaces with a single consolidated command.
</routing>
Mode routing:
- --new: Create an isolated workspace with repo copies and independent .planning/ → new-workspace workflow
- --list: List active GSD workspaces and their status → list-workspaces workflow
- --remove: Remove a GSD workspace and clean up worktrees → remove-workspace workflow </objective>
| Flag | Action | Workflow |
|---|---|---|
| --new | Create workspace with worktree/clone strategy | new-workspace |
| --list | Scan ~/gsd-workspaces/, show summary table | list-workspaces |
| --remove | Confirm and remove workspace directory | remove-workspace |
<execution_context>
@/.claude/gsd-core/workflows/new-workspace.md
@/.claude/gsd-core/workflows/list-workspaces.md
@/.claude/gsd-core/workflows/remove-workspace.md
@/.claude/gsd-core/references/ui-brand.md
</execution_context>
<context>
Arguments: $ARGUMENTS
Parse the first token of $ARGUMENTS:
- If it is : strip the flag, pass remainder (--name, --repos, --path, --strategy, --branch, --auto flags) to new-workspace workflow
--new - If it is : execute list-workspaces workflow (no argument needed)
--list - If it is : strip the flag, pass remainder (workspace-name) to remove-workspace workflow
--remove - Otherwise (no flag): show usage — one of --new, --list, or --remove is required </context>
<objective>
通过一个统一的命令管理GSD工作区。
</routing>
模式路由:
- --new:创建包含仓库副本和独立.planning/的隔离工作区 → new-workspace 工作流
- --list:列出活跃的GSD工作区及其状态 → list-workspaces 工作流
- --remove:移除GSD工作区并清理工作树 → remove-workspace 工作流 </objective>
| 标志 | 操作 | 工作流 |
|---|---|---|
| --new | 使用工作树/克隆策略创建工作区 | new-workspace |
| --list | 扫描~/gsd-workspaces/,显示汇总表格 | list-workspaces |
| --remove | 确认并移除工作区目录 | remove-workspace |
<execution_context>
@/.claude/gsd-core/workflows/new-workspace.md
@/.claude/gsd-core/workflows/list-workspaces.md
@/.claude/gsd-core/workflows/remove-workspace.md
@/.claude/gsd-core/references/ui-brand.md
</execution_context>
<context>
参数:$ARGUMENTS
解析$ARGUMENTS的第一个令牌:
- 如果是:移除该标志,将剩余部分(--name、--repos、--path、--strategy、--branch、--auto标志)传递给new-workspace工作流
--new - 如果是:执行list-workspaces工作流(无需参数)
--list - 如果是:移除该标志,将剩余部分(workspace-name)传递给remove-workspace工作流
--remove - 其他情况(无标志):显示使用说明——必须指定--new、--list或--remove中的一个 </context>