Reduce cross-artifact duplication in task and template instructions

Đang mở
#2,215 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
76/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
76k
Fork
5.2k
Merge trung bình
1 ngày 5 giờ
Pull request đã merge (30 ngày)
58

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Fission-AI/OpenSpec

Tất cả issue của Fission-AI/OpenSpec

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.