gsd-docs-update
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<objective>
Generate and update up to 9 documentation files for the current project. Each doc type is written by a gsd-doc-writer subagent that explores the codebase directly — no hallucinated paths, phantom endpoints, or stale signatures.
Flag handling rule:
- The optional flags documented below are available behaviors, not implied active behaviors
- A flag is active only when its literal token appears in
$ARGUMENTS - If a documented flag is absent from , treat it as inactive
$ARGUMENTS - : skip preservation prompts, regenerate all docs regardless of existing content or GSD markers
--force - : check existing docs for accuracy against codebase, no generation (full verification requires Phase 4 verifier)
--verify-only - If and
--forceboth appear in--verify-only,$ARGUMENTStakes precedence </objective>--force
<execution_context>
@~/.claude/gsd-core/workflows/docs-update.md
</execution_context>
<context>
Arguments: $ARGUMENTS
Available optional flags (documentation only — not automatically active):
- — Regenerate all docs. Overwrites hand-written and GSD docs alike. No preservation prompts.
--force - — Check existing docs for accuracy against the codebase. No files are written. Reports VERIFY marker count. Full codebase fact-checking requires the gsd-doc-verifier agent (Phase 4).
--verify-only
Active flags must be derived from :
$ARGUMENTS- is active only if the literal
--forcetoken is present in--force$ARGUMENTS - is active only if the literal
--verify-onlytoken is present in--verify-only$ARGUMENTS - If neither token appears, run the standard full-phase generation flow
- Do not infer that a flag is active just because it is documented in this prompt </context>
<objective>
为当前项目生成并更新最多9份文档文件。每种文档类型由gsd-doc-writer子代理编写,该代理会直接探索代码库——不会出现虚构路径、虚假端点或过时签名。
标志处理规则:
- 下文记录的可选标志是可用行为,并非默认激活的行为
- 只有当中包含标志的字面令牌时,该标志才处于激活状态
$ARGUMENTS - 如果中缺少某一已记录的标志,则视为未激活
$ARGUMENTS - : 跳过保留提示,无论现有内容或GSD标记如何,重新生成所有文档
--force - : 检查现有文档与代码库的一致性,不进行生成(完整校验需要Phase 4验证器)
--verify-only - 如果中同时包含
$ARGUMENTS和--force,则--verify-only优先 </objective>--force
<execution_context>
@~/.claude/gsd-core/workflows/docs-update.md
</execution_context>
<context>
参数: $ARGUMENTS
可用可选标志(仅作文档记录——不会自动激活):
- — 重新生成所有文档。覆盖手写文档和GSD文档。无保留提示。
--force - — 检查现有文档与代码库的一致性。不写入任何文件。报告VERIFY标记数量。完整的代码库事实校验需要gsd-doc-verifier代理(Phase 4)。
--verify-only
激活标志必须从中推导:
$ARGUMENTS- 处于激活状态当且仅当
--force中存在字面令牌$ARGUMENTS--force - 处于激活状态当且仅当
--verify-only中存在字面令牌$ARGUMENTS--verify-only - 如果两个令牌都不存在,则运行标准的全阶段生成流程
- 请勿仅因本提示中记录了某一标志就推断该标志处于激活状态 </context>