Reduce cross-artifact duplication in task and template instructions

未关闭
#2,215 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
76/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript

调研方向

Read the task guidance in schemas/spec-driven/schema.yaml, the three named skill files, and src/commands/workflow/instructions.ts. Add guidance that keeps tasks actionable while referencing existing requirements and decisions, and permits reference-only or omitted optional sections where the schema allows. Check that required artifact structure and validation behavior are preserved.

由索引模型根据 Issue 内容生成。

描述

bug needs-triage
What you were trying to do

Scaffold OpenSpec files without wasting tokens on overlapping content or turning spec-driven development into a redundant ceremony.

What happened

#1401 (closing #1382) clarified that design.md should reference the proposal and specs instead of restating them. Two gaps remain in the default spec-driven workflow:

  1. Task instructions: The tasks guidance says "Reference specs for what needs to be built, design for how to build it", but never explicitly discourages duplicating requirements or technical decisions in tasks.md.
  2. Template instructions: The generated skills say "Use template as the structure for your output file - fill in its sections" (openspec-propose, openspec-ff-change, openspec-continue-change), and the CLI's <template> block says "Use this as the structure for your output file. Fill in the sections." (instructions.ts). Neither clarifies that a concise cross-reference can satisfy a section when its content already exists elsewhere. This can encourage redundant prose despite #1401's guidance to "point to them instead".
What you expected instead
  • Explicitly instruct agents to keep tasks independently actionable and verifiable: reference existing specs and design decisions rather than reproducing them, while retaining the technical details necessary to implement and verify each task.
  • Clarify that reference-only sections are acceptable when appropriate, and optional sections can be omitted where the schema permits.
  • Preserve required artifact structure and existing validation behavior.

This is a guidance-only follow-up to #1401, not a request to change the artifact dependency graph.

Related: #2167 addresses stable reference IDs, a complementary concern rather than the duplication guidance itself.

Minimal steps to reproduce
  1. In a project using the default spec-driven schema, run the openspec-propose skill for any major feature.
  2. Compare design.md and tasks.md.

Example from one run: tasks restated design decisions instead of referencing them.

  • Job permissions: design D3 said "id-token: write and attestations: write only. No checkout is needed"; task 1.1 said "job-level permissions containing only id-token: write and attestations: write. It gets no checkout".
  • Job order: design D4 defined build-and-verify → attest → prepare-github-release → publish → publish-github-release, and task 1.2 restated the same chain.
OpenSpec version

1.16.1

Coding agent and model

Claude Code 2.1.311, claude-opus-5-5

Agent session trace

No response

OS and Node version

No response

主要语言
TypeScript
星标
76k
派生
5.2k
平均合并
1 天 5 小时
30 天内合并 PR
58

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Fission-AI/OpenSpec 的其他 Issue

查看 Fission-AI/OpenSpec 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。