Skip to content

Commit 4fdb2a5

Browse files
clay-goodclaude
andauthored
fix(schemas): include spec content guidance from concepts docs in specs instructions (#1326)
Closes #1289 Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 18cbf5d commit 4fdb2a5

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

schemas/spec-driven/schema.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,23 @@ artifacts:
3434
instruction: |
3535
Create specification files that define WHAT the system should do.
3636
37+
A spec is a behavior contract, not an implementation plan.
38+
39+
Good spec content:
40+
- Observable behavior users or downstream systems rely on
41+
- Inputs, outputs, and error conditions
42+
- External constraints (security, privacy, reliability, compatibility)
43+
- Scenarios that can be tested or explicitly validated
44+
45+
Avoid in specs:
46+
- Internal class/function names
47+
- Library or framework choices
48+
- Step-by-step implementation details
49+
- Detailed execution plans (those belong in design.md or tasks.md)
50+
51+
Quick test: if the implementation can change without changing externally
52+
visible behavior, it likely does not belong in the spec.
53+
3754
Create one spec file per capability listed in the proposal's Capabilities section.
3855
- New capabilities: use the exact kebab-case name from the proposal (specs/<capability>/spec.md).
3956
- Modified capabilities: use the existing spec folder name from openspec/specs/<capability>/ when creating the delta spec at specs/<capability>/spec.md.

0 commit comments

Comments
 (0)