teamspec 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +252 -0
  3. package/bin/teamspec-init.js +10 -0
  4. package/extensions/teamspec-0.1.0.vsix +0 -0
  5. package/lib/cli.js +1174 -0
  6. package/lib/extension-installer.js +236 -0
  7. package/lib/linter.js +1184 -0
  8. package/lib/prompt-generator.js +409 -0
  9. package/package.json +51 -0
  10. package/teamspec-core/agents/AGENT_BA.md +486 -0
  11. package/teamspec-core/agents/AGENT_BOOTSTRAP.md +447 -0
  12. package/teamspec-core/agents/AGENT_DES.md +623 -0
  13. package/teamspec-core/agents/AGENT_DEV.md +611 -0
  14. package/teamspec-core/agents/AGENT_FA.md +736 -0
  15. package/teamspec-core/agents/AGENT_FEEDBACK.md +202 -0
  16. package/teamspec-core/agents/AGENT_FIX.md +380 -0
  17. package/teamspec-core/agents/AGENT_QA.md +756 -0
  18. package/teamspec-core/agents/AGENT_SA.md +581 -0
  19. package/teamspec-core/agents/AGENT_SM.md +771 -0
  20. package/teamspec-core/agents/README.md +383 -0
  21. package/teamspec-core/context/_schema.yml +222 -0
  22. package/teamspec-core/copilot-instructions.md +356 -0
  23. package/teamspec-core/definitions/definition-of-done.md +129 -0
  24. package/teamspec-core/definitions/definition-of-ready.md +104 -0
  25. package/teamspec-core/profiles/enterprise.yml +127 -0
  26. package/teamspec-core/profiles/platform-team.yml +104 -0
  27. package/teamspec-core/profiles/regulated.yml +97 -0
  28. package/teamspec-core/profiles/startup.yml +85 -0
  29. package/teamspec-core/teamspec.yml +69 -0
  30. package/teamspec-core/templates/README.md +211 -0
  31. package/teamspec-core/templates/active-sprint-template.md +98 -0
  32. package/teamspec-core/templates/adr-template.md +194 -0
  33. package/teamspec-core/templates/bug-report-template.md +188 -0
  34. package/teamspec-core/templates/business-analysis-template.md +164 -0
  35. package/teamspec-core/templates/decision-log-template.md +216 -0
  36. package/teamspec-core/templates/feature-template.md +269 -0
  37. package/teamspec-core/templates/functional-spec-template.md +161 -0
  38. package/teamspec-core/templates/refinement-notes-template.md +133 -0
  39. package/teamspec-core/templates/sprint-goal-template.md +129 -0
  40. package/teamspec-core/templates/sprint-template.md +175 -0
  41. package/teamspec-core/templates/sprints-index-template.md +67 -0
  42. package/teamspec-core/templates/story-template.md +244 -0
  43. package/teamspec-core/templates/storymap-template.md +204 -0
  44. package/teamspec-core/templates/testcases-template.md +147 -0
  45. package/teamspec-core/templates/uat-pack-template.md +161 -0
@@ -0,0 +1,133 @@
1
+ # Refinement Agenda: [Date]
2
+
3
+ <!--
4
+ ⚠️ REFINEMENT RULES
5
+
6
+ All refinement decisions affecting behavior must be synced to Feature Canon.
7
+
8
+ RULES:
9
+ 1. Stories must link to features
10
+ 2. Impact type must be determined
11
+ 3. If behavior changes, Canon sync is scheduled
12
+ 4. No orphan stories allowed
13
+ -->
14
+
15
+ > **Template Version**: 2.0
16
+ > **Last Updated**: 2026-01-07
17
+
18
+ ---
19
+
20
+ **Document Owner:** FA (Functional Analyst)
21
+ **Artifact Type:** Meeting Notes
22
+ **Lifecycle:** Historical after refinement
23
+
24
+ ---
25
+
26
+ **Attendees**: [List]
27
+ **Date**: YYYY-MM-DD
28
+ **Facilitator**: [FA Name]
29
+
30
+ ---
31
+
32
+ ## Stories to Refine
33
+
34
+ | Story ID | Title | Feature(s) | Impact Type | Est | Ready? |
35
+ |:---------|:------|-----------|-------------|:---:|:------:|
36
+ | S-XXX | [Title] | F-XXX | Adds/Changes/Fixes/Tech | ? | [ ] |
37
+ | S-YYY | [Title] | F-YYY | Adds/Changes/Fixes/Tech | ? | [ ] |
38
+
39
+ **Column Definitions**:
40
+ - **Feature(s)**: Which Feature ID(s) from `/features/features-index.md`
41
+ - **Impact Type**: Adds Behavior / Changes Behavior / Fixes Defect / Technical Only
42
+ - **Est**: Estimate in points
43
+ - **Ready?**: Passes DoR checklist
44
+
45
+ ---
46
+
47
+ ## Discussion Notes
48
+
49
+ ### S-XXX: [Story Title]
50
+
51
+ **Discussion**:
52
+ - [Key point 1]
53
+ - [Key point 2]
54
+
55
+ **Decisions**:
56
+ - [Decision made]
57
+
58
+ **Questions for BA/Stakeholders**:
59
+ - [ ] [Open question]
60
+
61
+ **Estimate**: {N} points
62
+
63
+ ---
64
+
65
+ ### S-YYY: [Story Title]
66
+
67
+ **Discussion**:
68
+ - [Key point 1]
69
+
70
+ **Decisions**:
71
+ - [Decision made]
72
+
73
+ **Estimate**: {N} points
74
+
75
+ ---
76
+
77
+ ## Decisions Made
78
+
79
+ | Decision | Feature Impact | Follow-up |
80
+ |----------|----------------|-----------|
81
+ | [Decision 1] | F-XXX: [What changes] | FA will sync to Feature Canon |
82
+ | [Decision 2] | F-YYY: [What changes] | FA will sync to Feature Canon |
83
+
84
+ ---
85
+
86
+ ## Feature Canon Sync Notes (MANDATORY)
87
+
88
+ > ⚠️ Any decision that **changes system behavior** MUST be synced to the Feature Canon.
89
+
90
+ For each story with impact "Adds Behavior" or "Changes Behavior":
91
+
92
+ | Story | Feature | Canon Current? | Sync Needed? | Assigned To |
93
+ |-------|---------|----------------|--------------|-------------|
94
+ | S-XXX | F-XXX | [ ] | [ ] | [FA Name] |
95
+ | S-YYY | F-YYY | [ ] | [ ] | [FA Name] |
96
+
97
+ ---
98
+
99
+ ## Action Items
100
+
101
+ - [ ] [Who] to check [What] by [Date]
102
+ - [ ] FA to run `ts:fa sync` after [Story] is complete
103
+ - [ ] Verify Feature Canon updated before sprint close
104
+
105
+ ---
106
+
107
+ ## Refinement Quality Gate
108
+
109
+ Before approving stories to "Ready":
110
+
111
+ - [ ] All stories linked to Feature ID(s)
112
+ - [ ] Feature files exist for all linked features
113
+ - [ ] Impact type marked (not "unknown")
114
+ - [ ] If behavior changes, Feature Canon update is scheduled
115
+ - [ ] No orphan stories (all have feature links)
116
+ - [ ] Estimates assigned
117
+ - [ ] Acceptance Criteria complete
118
+
119
+ ---
120
+
121
+ ## Stories Ready to Move
122
+
123
+ | Story | From | To | FA Approved |
124
+ |-------|------|----|-------------|
125
+ | S-XXX | backlog | ready-to-refine | [ ] |
126
+ | S-YYY | ready-to-refine | ready-for-development | [ ] |
127
+
128
+ ---
129
+
130
+ ## Next Refinement
131
+
132
+ **Date**: YYYY-MM-DD
133
+ **Stories to prepare**: [List]
@@ -0,0 +1,129 @@
1
+ # Sprint {N} Goal
2
+
3
+ > **Template Version**: 2.0
4
+ > **Last Updated**: 2026-01-07
5
+ > **Sprint Duration**: {YYYY-MM-DD} to {YYYY-MM-DD}
6
+ > **Status**: Planning | Active | Closed
7
+
8
+ ---
9
+
10
+ **Document Owner:** SM (Scrum Master)
11
+ **Artifact Type:** Operational (Sprint-bound)
12
+ **Location:** `sprints/sprint-{N}/sprint-goal.md`
13
+
14
+ ---
15
+
16
+ ## Sprint Goal
17
+
18
+ > {One clear, measurable objective that the team commits to achieving this sprint}
19
+
20
+ **Success Criteria**:
21
+ - [ ] {Specific, measurable outcome 1}
22
+ - [ ] {Specific, measurable outcome 2}
23
+ - [ ] {Specific, measurable outcome 3}
24
+
25
+ ---
26
+
27
+ ## Sprint Metadata
28
+
29
+ | Field | Value |
30
+ |-------|-------|
31
+ | **Sprint Number** | {N} |
32
+ | **Start Date** | {YYYY-MM-DD} |
33
+ | **End Date** | {YYYY-MM-DD} |
34
+ | **Capacity** | {N} points |
35
+ | **Scrum Master** | @{sm} |
36
+
37
+ ---
38
+
39
+ ## Committed Stories
40
+
41
+ | Story ID | Title | Points | Dev Plan | Owner | Status |
42
+ |----------|-------|--------|----------|-------|--------|
43
+ | [S-XXX](../../stories/ready-for-development/S-XXX-*.md) | {Title} | {N} | [Plan](../../dev-plans/story-XXX-tasks.md) | @{dev} | Not Started |
44
+
45
+ **Total Committed**: {N} points
46
+
47
+ ---
48
+
49
+ ## Sprint Scope
50
+
51
+ ### In Scope
52
+ - {Feature/capability being delivered}
53
+ - {Feature/capability being delivered}
54
+
55
+ ### Out of Scope
56
+ - {Explicitly excluded items}
57
+ - {Deferred to future sprint}
58
+
59
+ ### Dependencies
60
+ - {External dependency or blocker}
61
+
62
+ ---
63
+
64
+ ## Acceptance Criteria for Sprint Goal
65
+
66
+ **Given** the sprint is complete
67
+ **When** we review the deliverables
68
+ **Then**:
69
+ - [ ] {Goal criterion 1 is met}
70
+ - [ ] {Goal criterion 2 is met}
71
+ - [ ] All committed stories meet Definition of Done
72
+ - [ ] Feature Canon updated for all behavior-changing stories
73
+
74
+ ---
75
+
76
+ ## Daily Progress
77
+
78
+ | Day | Date | Remaining Pts | Notes |
79
+ |-----|------|---------------|-------|
80
+ | 1 | {YYYY-MM-DD} | {N} | Sprint started |
81
+
82
+ ---
83
+
84
+ ## Blockers & Risks
85
+
86
+ | Issue | Impact | Owner | Status |
87
+ |-------|--------|-------|--------|
88
+ | _None_ | | | |
89
+
90
+ ---
91
+
92
+ ## Canon Sync Tracking
93
+
94
+ | Story | Impact Type | Canon Updated? | FA Verified |
95
+ |-------|-------------|----------------|-------------|
96
+ | S-XXX | Adds/Changes | [ ] | [ ] |
97
+
98
+ ---
99
+
100
+ ## Sprint Review Notes
101
+
102
+ _To be filled at sprint review_
103
+
104
+ ### Demo Items
105
+ - [ ] {Story/feature to demo}
106
+
107
+ ### Stakeholder Feedback
108
+ - {Feedback item}
109
+
110
+ ---
111
+
112
+ ## Retrospective Actions
113
+
114
+ _To be filled at retrospective_
115
+
116
+ | What went well | What to improve | Action item |
117
+ |----------------|-----------------|-------------|
118
+ | | | |
119
+
120
+ ---
121
+
122
+ ## Sprint Closure
123
+
124
+ | Metric | Value |
125
+ |--------|-------|
126
+ | Velocity | _TBD_ |
127
+ | Completion Rate | _TBD_ |
128
+ | Canon Sync Complete | [ ] |
129
+ | Closed Date | _TBD_ |
@@ -0,0 +1,175 @@
1
+ # Sprint {N}
2
+
3
+ <!--
4
+ ⚠️ SPRINT ≠ SCOPE DEFINITION
5
+
6
+ This sprint is a TIME-BOXED execution snapshot.
7
+
8
+ RULES:
9
+ 1. Sprint does not define scope (Features do)
10
+ 2. Sprint does not change priority (BA does)
11
+ 3. Only SM can modify sprint contents
12
+ 4. Scope changes require explicit Decision Log entry
13
+
14
+ After sprint commitment, scope changes must be logged in /decisions/
15
+ -->
16
+
17
+ > **Template Version**: 2.0
18
+ > **Last Updated**: 2026-01-07
19
+ > **Location**: `sprints/sprint-{N}/sprint-goal.md`
20
+
21
+ ---
22
+
23
+ **Document Owner:** SM (Scrum Master)
24
+ **Artifact Type:** Operational (Sprint-bound)
25
+ **Lifecycle:** Active during sprint, archived after close
26
+
27
+ ---
28
+
29
+ ## Sprint Goal
30
+
31
+ > {One-sentence sprint objective that describes what value will be delivered}
32
+
33
+ ---
34
+
35
+ ## Metadata
36
+
37
+ | Field | Value |
38
+ |-------|-------|
39
+ | Sprint | {N} |
40
+ | Start Date | {YYYY-MM-DD} |
41
+ | End Date | {YYYY-MM-DD} |
42
+ | Status | 🟡 Planning / 🟢 Active / ✅ Closed |
43
+ | Capacity | {N} points |
44
+ | Scrum Master | @{sm} |
45
+
46
+ ---
47
+
48
+ ## Success Criteria
49
+
50
+ - [ ] {Measurable outcome 1}
51
+ - [ ] {Measurable outcome 2}
52
+ - [ ] {Measurable outcome 3}
53
+
54
+ ---
55
+
56
+ ## Scope Freeze Notice
57
+
58
+ **Sprint Committed:** [ ] Yes / [ ] No
59
+ **Commitment Date:** ________________
60
+
61
+ > ⚠️ After commitment, any scope change requires:
62
+ > 1. SM to facilitate discussion
63
+ > 2. BA to approve scope change
64
+ > 3. Decision logged in /decisions/DEC-XXX.md
65
+ > 4. Story removed/added with explicit note
66
+
67
+ ---
68
+
69
+ ## Committed Stories
70
+
71
+ <!-- TEAMSPEC RULE: TS-DEVPLAN-001 - Dev plan required before implementation -->
72
+
73
+ | Story ID | Title | Points | Dev Plan | Owner | Status |
74
+ |----------|-------|--------|----------|-------|--------|
75
+ | [S-XXX](../../stories/ready-for-development/S-XXX-*.md) | {Title} | {N} | [Plan](../../dev-plans/story-XXX-tasks.md) | @dev | ⚪ Not Started |
76
+
77
+ > ⚠️ All committed stories must have a Dev Plan before implementation starts.
78
+
79
+ **Total Committed**: {N} points
80
+
81
+ **Status Legend**: 🟢 Done | 🟡 In Progress | ⚪ Not Started | 🔴 Blocked
82
+
83
+ ---
84
+
85
+ ## Burndown
86
+
87
+ | Metric | Value |
88
+ |--------|-------|
89
+ | **Total** | {N} points |
90
+ | **Completed** | {N} points |
91
+ | **Remaining** | {N} points |
92
+ | **Progress** | {N}% |
93
+
94
+ ```
95
+ [░░░░░░░░░░░░░░░░░░░░] 0%
96
+ ```
97
+
98
+ ---
99
+
100
+ ## Scope Changes
101
+
102
+ > ⚠️ All scope changes after commitment must be documented here.
103
+
104
+ | Date | Change | Story | Reason | Decision | Approved By |
105
+ |------|--------|-------|--------|----------|-------------|
106
+ | _None_ | | | | | |
107
+
108
+ ---
109
+
110
+ ## Blockers
111
+
112
+ | Story | Blocker | Days Blocked | Escalated To |
113
+ |-------|---------|--------------|--------------|
114
+ | _None_ | | | |
115
+
116
+ ---
117
+
118
+ ## Daily Progress
119
+
120
+ | Date | Completed | Notes |
121
+ |------|-----------|-------|
122
+ | {YYYY-MM-DD} | — | Sprint kickoff |
123
+
124
+ ---
125
+
126
+ ## Canon Sync Verification
127
+
128
+ > ⚠️ Before sprint close, verify Feature Canon is updated for all behavior-changing stories.
129
+
130
+ | Story | Impact Type | Canon Updated? | FA Verified |
131
+ |-------|-------------|----------------|-------------|
132
+ | S-XXX | Adds/Changes | [ ] | [ ] |
133
+
134
+ ---
135
+
136
+ ## Review Notes
137
+
138
+ _Sprint review observations and stakeholder feedback._
139
+
140
+ ### Demo Items
141
+
142
+ - [ ] {Story/feature to demo}
143
+
144
+ ### Stakeholder Feedback
145
+
146
+ - {Feedback item}
147
+
148
+ ---
149
+
150
+ ## Retrospective Actions
151
+
152
+ - [ ] {Action item from retrospective}
153
+
154
+ ---
155
+
156
+ ## Closure
157
+
158
+ | Metric | Value |
159
+ |--------|-------|
160
+ | Velocity | _TBD_ |
161
+ | Completion Rate | _TBD_ |
162
+ | Bugs Found | _TBD_ |
163
+ | Bugs Fixed | _TBD_ |
164
+ | Canon Sync Complete | [ ] Yes |
165
+ | Closed Date | _TBD_ |
166
+
167
+ ---
168
+
169
+ ## Linter Rules Enforced
170
+
171
+ | Rule | Description |
172
+ |------|-------------|
173
+ | TS-STORY-004 | Only SM can assign stories to sprint |
174
+ | TS-DEVPLAN-001 | Dev plan required before implementation |
175
+ | TS-DOD-001 | Canon sync required before sprint close |
@@ -0,0 +1,67 @@
1
+ # Sprints Index
2
+
3
+ > **Template Version**: 2.0
4
+ > **Last Updated**: 2026-01-07
5
+ > **Note**: This index provides an overview of all sprints. See [active-sprint.md](active-sprint.md) for live status.
6
+
7
+ ---
8
+
9
+ **Document Owner:** SM (Scrum Master)
10
+ **Artifact Type:** Index (Living)
11
+ **Location:** `sprints/sprints-index.md`
12
+
13
+ ---
14
+
15
+ ## Active Sprint
16
+
17
+ | Sprint | Goal | Status | Progress |
18
+ |--------|------|--------|----------|
19
+ | [Sprint {N}](sprint-{N}/sprint-goal.md) | {Goal summary} | 🟢 Active | {N}% |
20
+
21
+ ---
22
+
23
+ ## Sprint History
24
+
25
+ | Sprint | Goal | Velocity | Canon Sync | Status | Dates |
26
+ |--------|------|----------|------------|--------|-------|
27
+ | [Sprint {N-1}](sprint-{N-1}/sprint-goal.md) | {Goal} | {N} pts | ✅ | ✅ Closed | {Start} - {End} |
28
+ | [Sprint {N-2}](sprint-{N-2}/sprint-goal.md) | {Goal} | {N} pts | ✅ | ✅ Closed | {Start} - {End} |
29
+
30
+ ---
31
+
32
+ ## Velocity Trend
33
+
34
+ | Sprint | Committed | Completed | Velocity | Canon Items |
35
+ |--------|-----------|-----------|----------|-------------|
36
+ | Sprint {N-1} | {N} pts | {N} pts | {N} pts | {N} |
37
+ | Sprint {N-2} | {N} pts | {N} pts | {N} pts | {N} |
38
+
39
+ **Average Velocity**: {N} pts
40
+
41
+ ---
42
+
43
+ ## Folder Structure
44
+
45
+ ```
46
+ sprints/
47
+ ├── active-sprint.md # Living doc - current sprint status
48
+ ├── sprints-index.md # This file - sprint history
49
+ ├── sprint-1/
50
+ │ └── sprint-goal.md
51
+ ├── sprint-2/
52
+ │ └── sprint-goal.md
53
+ └── archive/ # Optional: archived sprints
54
+ └── sprint-0/
55
+ └── sprint-goal.md
56
+ ```
57
+
58
+ ---
59
+
60
+ ## Quick Links
61
+
62
+ - [Active Sprint](active-sprint.md)
63
+ - [Definition of Ready](../.teamspec/definitions/definition-of-ready.md)
64
+ - [Definition of Done](../.teamspec/definitions/definition-of-done.md)
65
+ - [Feature Canon](../features/)
66
+ - [Stories Backlog](../stories/backlog/)
67
+ - [Ready for Development](../stories/ready-for-development/)