gsd-ingest-docs
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<objective>
Build the full `.planning/` setup (or merge into an existing one) from multiple pre-existing planning documents — ADRs, PRDs, SPECs, DOCs — in one pass.
- Net-new bootstrap (, default when
--mode newis absent): produces PROJECT.md + REQUIREMENTS.md + ROADMAP.md + STATE.md from synthesized doc content, delegating final generation to.planning/.gsd-roadmapper - Merge into existing (, default when
--mode mergeis present): appends phases and requirements derived from the ingested docs; hard-blocks any contradiction with existing locked decisions..planning/
Auto-synthesizes most conflicts using the precedence rule (overridable via manifest). Surfaces unresolved cases in with three buckets: auto-resolved, competing-variants, unresolved-blockers. The BLOCKER gate from the shared conflict engine prevents any destination file from being written when unresolved contradictions exist.
ADR > SPEC > PRD > DOC.planning/INGEST-CONFLICTS.mdInputs: directory-convention discovery (, , , , root-level ), or an explicit YAML listing per doc.
docs/adr/docs/prd/docs/specs/docs/rfc/{ADR,PRD,SPEC,RFC}-*.md--manifest <file>{path, type, precedence?}v1 constraints: hard cap of 50 docs per invocation; is reserved for a future release.
</objective>
--resolve interactive<execution_context>
@/.claude/gsd-core/workflows/ingest-docs.md
@/.claude/gsd-core/references/ui-brand.md
@/.claude/gsd-core/references/gate-prompts.md
@/.claude/gsd-core/references/doc-conflict-engine.md
</execution_context>
<context>
$ARGUMENTS
</context>
<process>
Execute the ingest-docs workflow end-to-end. Preserve all approval gates (discovery, conflict report, routing) and the BLOCKER safety rule.
</process><objective>
一次性从多种预先存在的规划文档(ADR、PRD、SPEC、DOC)中构建完整的.planning/配置(或合并至现有配置)。
- 全新初始化(,当.planning/不存在时为默认模式):从合成的文档内容生成PROJECT.md + REQUIREMENTS.md + ROADMAP.md + STATE.md,最终生成任务委托给
--mode new。gsd-roadmapper - 合并至现有配置(,当.planning/已存在时为默认模式):追加从导入文档中提取的阶段和需求;若与已锁定的现有决策存在矛盾,则强制阻止操作。
--mode merge
系统会自动根据优先级规则(可通过清单覆盖)解决大多数冲突。未解决的情况会被归类到.planning/INGEST-CONFLICTS.md中,分为三个类别:自动解决、竞争变体、未解决阻塞项。共享冲突引擎中的BLOCKER机制会在存在未解决矛盾时,阻止任何目标文件的写入。
ADR > SPEC > PRD > DOC输入: 按目录约定自动发现(、、、,根目录下的文件),或通过显式的 YAML文件列出每个文档的信息。
docs/adr/docs/prd/docs/specs/docs/rfc/{ADR,PRD,SPEC,RFC}-*.md--manifest <file>{path, type, precedence?}v1版本限制: 每次调用最多处理50份文档;模式预留至未来版本发布。
</objective>
--resolve interactive<execution_context>
@/.claude/gsd-core/workflows/ingest-docs.md
@/.claude/gsd-core/references/ui-brand.md
@/.claude/gsd-core/references/gate-prompts.md
@/.claude/gsd-core/references/doc-conflict-engine.md
</execution_context>
<context>
$ARGUMENTS
</context>
<process>
完整执行ingest-docs工作流。保留所有审批环节(发现、冲突报告、路由)及BLOCKER安全规则。
</process>