Reduce cross-artifact duplication in task and template instructions

Aperta
#2,215 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
76/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
76k
Fork
5.2k
Merge medio
1g 5h
PR unite (30g)
58

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Fission-AI/OpenSpec

Tutte le issue di Fission-AI/OpenSpec

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.