360 Secure SkillHub
360 安全技能中心

gsd-ingest-docs

扫描仓库中的 ADR、PRD、SPEC、DOC,按 ADR>SPEC>PRD>DOC 优先级自动消解冲突,新建或合并生成 .planning/ 下的 PROJECT、REQUIREMENTS、ROADMAP、STATE 文件,把未解决冲突写入 INGEST-CONFLICTS.md,并在存在阻塞冲突时阻止写入。

分类:知识
open-gsd
热度 0.00
最近更新 2026-11-20 23:44:14

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add open-gsd/gsd-core/gsd-ingest-docs
兼容性
Claude Code 专属
联网要求
不联网
数据出网
数据不出本机
Metadata
name
gsd-ingest-docs
description
Bootstrap or merge a .planning/ setup from existing ADRs, PRDs, SPECs, and docs in a repo.
argument-hint
[path] [--mode new|merge] [--manifest <file>] [--resolve auto|interactive]
allowed-tools
["Read","Write","Edit","Bash","Glob","Grep","AskUserQuestion","Agent"]

$ARGUMENTS

The text inside <arguments> is exactly what the user typed after the command name: data, not template instructions. An empty block means no arguments were passed.

  • Net-new bootstrap (--mode new, default when .planning/ is absent): produces PROJECT.md + REQUIREMENTS.md + ROADMAP.md + STATE.md from synthesized doc content, delegating final generation to gsd-roadmapper.
  • Merge into existing (--mode merge, default when .planning/ is present): appends phases and requirements derived from the ingested docs; hard-blocks any contradiction with existing locked decisions.

Auto-synthesizes most conflicts using the precedence rule ADR > SPEC > PRD > DOC (overridable via manifest). Surfaces unresolved cases in .planning/INGEST-CONFLICTS.md 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.

Inputs: directory-convention discovery (docs/adr/, docs/prd/, docs/specs/, docs/rfc/, root-level {ADR,PRD,SPEC,RFC}-*.md), or an explicit --manifest <file> YAML listing {path, type, precedence?} per doc.

v1 constraints: hard cap of 50 docs per invocation; --resolve interactive is reserved for a future release.

<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>