Reduce cross-artifact duplication in task and template instructions

Open
#2,215 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
76/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
TypeScript
Stars
76k
Forks
5.2k
Avg merge
1d 5h
Merged PRs (30d)
58

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Fission-AI/OpenSpec

All issues in Fission-AI/OpenSpec

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.