Reduce cross-artifact duplication in task and template instructions

オープン
#2,215 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
58

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Fission-AI/OpenSpec のほかの issue

Fission-AI/OpenSpec の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。