gsd-workspace

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
<objective> Manage GSD workspaces with a single consolidated command.
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>
<routing>
FlagActionWorkflow
--newCreate workspace with worktree/clone strategynew-workspace
--listScan ~/gsd-workspaces/, show summary tablelist-workspaces
--removeConfirm and remove workspace directoryremove-workspace
</routing>
<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
    --new
    : strip the flag, pass remainder (--name, --repos, --path, --strategy, --branch, --auto flags) to new-workspace workflow
  • If it is
    --list
    : execute list-workspaces workflow (no argument needed)
  • If it is
    --remove
    : strip the flag, pass remainder (workspace-name) to remove-workspace workflow
  • Otherwise (no flag): show usage — one of --new, --list, or --remove is required </context>
<process> 1. Parse the leading flag from $ARGUMENTS. 2. Load and execute the appropriate workflow end-to-end based on the routing table above. 3. Preserve all workflow gates from the target workflow (validation, approvals, commits, routing). </process>
<objective> 通过一个统一的命令管理GSD工作区。
模式路由:
  • --new:创建包含仓库副本和独立.planning/的隔离工作区 → new-workspace 工作流
  • --list:列出活跃的GSD工作区及其状态 → list-workspaces 工作流
  • --remove:移除GSD工作区并清理工作树 → remove-workspace 工作流 </objective>
<routing>
标志操作工作流
--new使用工作树/克隆策略创建工作区new-workspace
--list扫描~/gsd-workspaces/,显示汇总表格list-workspaces
--remove确认并移除工作区目录remove-workspace
</routing>
<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的第一个令牌:
  • 如果是
    --new
    :移除该标志,将剩余部分(--name、--repos、--path、--strategy、--branch、--auto标志)传递给new-workspace工作流
  • 如果是
    --list
    :执行list-workspaces工作流(无需参数)
  • 如果是
    --remove
    :移除该标志,将剩余部分(workspace-name)传递给remove-workspace工作流
  • 其他情况(无标志):显示使用说明——必须指定--new、--list或--remove中的一个 </context>
<process> 1. 从$ARGUMENTS中解析开头的标志。 2. 根据上述路由表加载并完整执行相应的工作流。 3. 保留目标工作流的所有工作流关卡(验证、审批、提交、路由)。 </process>