gsd-config

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
<objective> Configure GSD settings interactively with a single consolidated command.
Mode routing:
  • default (no flag): Common-case toggles (model, research, plan_check, verifier, branching) → settings workflow
  • --advanced: Power-user knobs (planning tuning, timeouts, branch templates, cross-AI execution) → settings-advanced workflow
  • --integrations: Third-party API keys, code-review CLI routing, agent-skill injection → settings-integrations workflow
  • --profile <name>: Switch model profile (quality|balanced|budget|inherit) → set-profile (inline) </objective>
<routing>
FlagActionWorkflow
(none)Interactive 5-question common-case config promptsettings
--advancedPower-user knobs: planning, execution, discussion, cross-AI, git, runtimesettings-advanced
--integrationsAPI keys (Brave/Firecrawl/Exa), review CLI routing, agent skillssettings-integrations
--profile <name>Switch model profile without interactive promptgsd-tools query config-set-model-profile
</routing>
<execution_context> @/.claude/gsd-core/workflows/settings.md @/.claude/gsd-core/workflows/settings-advanced.md @~/.claude/gsd-core/workflows/settings-integrations.md </execution_context>
<context> Arguments: $ARGUMENTS
Parse the first token of $ARGUMENTS:
  • If it is
    --advanced
    : strip the flag, execute settings-advanced workflow
  • If it is
    --integrations
    : strip the flag, execute settings-integrations workflow
  • If it starts with
    --profile
    : extract the profile name (remainder after
    --profile
    ), then:
    1. Verify
      gsd-tools
      is on PATH via
      command -v gsd-tools
      ; if absent, emit the install hint
      Install GSD via 'npm i -g @opengsd/gsd-core'
      and stop.
    2. Run:
      gsd-tools query config-set-model-profile <profile-name> --raw
      and display the output verbatim.
  • Otherwise: execute settings workflow (no argument needed) </context>
<process> 1. Parse the leading flag (if any) from $ARGUMENTS. 2. Load and execute the appropriate workflow end-to-end, or run the inline SDK command for --profile. 3. Preserve all workflow gates from the target workflow. </process>
<objective> 通过单个整合命令交互式配置GSD设置。
模式路由:
  • 默认 (无标志): 通用场景开关(model、research、plan_check、verifier、branching)→ settings工作流
  • --advanced: 高级用户控制项(规划调优、超时设置、分支模板、跨AI执行)→ settings-advanced工作流
  • --integrations: 第三方API密钥、代码审查CLI路由、agent-skill注入 → settings-integrations工作流
  • --profile <name>: 切换模型配置文件(quality|balanced|budget|inherit)→ set-profile(内联方式) </objective>
<routing>
标志操作工作流
交互式5个问题的通用场景配置提示settings
--advanced高级用户控制项:规划、执行、讨论、跨AI、git、运行时settings-advanced
--integrationsAPI密钥(Brave/Firecrawl/Exa)、审查CLI路由、agent技能settings-integrations
--profile <name>无需交互式提示即可切换模型配置文件gsd-tools query config-set-model-profile
</routing>
<execution_context> @/.claude/gsd-core/workflows/settings.md @/.claude/gsd-core/workflows/settings-advanced.md @~/.claude/gsd-core/workflows/settings-integrations.md </execution_context>
<context> 参数: $ARGUMENTS
解析$ARGUMENTS的第一个令牌:
  • 如果是
    --advanced
    : 移除该标志,执行settings-advanced工作流
  • 如果是
    --integrations
    : 移除该标志,执行settings-integrations工作流
  • 如果以
    --profile
    开头: 提取配置文件名称(
    --profile
    之后的剩余部分),然后:
    1. 通过
      command -v gsd-tools
      验证
      gsd-tools
      是否在PATH中;如果不存在,输出安装提示
      Install GSD via 'npm i -g @opengsd/gsd-core'
      并停止。
    2. 运行:
      gsd-tools query config-set-model-profile <profile-name> --raw
      并原样显示输出。
  • 否则: 执行settings工作流(无需参数) </context>
<process> 1. 从$ARGUMENTS中解析开头的标志(如果有)。 2. 加载并完整执行相应的工作流,或针对--profile运行内联SDK命令。 3. 保留目标工作流中的所有工作流门控。 </process>