@intentsolutionsio/sprint 1.0.0 → 1.0.6

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 (33) hide show
  1. package/README.md +11 -1
  2. package/agents/allpurpose-agent.md +39 -3
  3. package/agents/cicd-agent.md +32 -3
  4. package/agents/nextjs-dev.md +33 -2
  5. package/agents/nextjs-diagnostics-agent.md +41 -3
  6. package/agents/project-architect.md +54 -3
  7. package/agents/python-dev.md +37 -3
  8. package/agents/qa-test-agent.md +31 -3
  9. package/agents/ui-test-agent.md +47 -3
  10. package/agents/website-designer.md +36 -3
  11. package/commands/clean.md +8 -0
  12. package/commands/generate-map.md +5 -0
  13. package/commands/new.md +7 -0
  14. package/commands/setup.md +19 -0
  15. package/commands/sprint.md +38 -16
  16. package/commands/test.md +13 -2
  17. package/package.json +1 -1
  18. package/skills/agent-patterns/SKILL.md +18 -5
  19. package/skills/agent-patterns/references/examples.md +17 -0
  20. package/skills/agent-patterns/references/ui-test-report.md +8 -1
  21. package/skills/api-contract/SKILL.md +16 -5
  22. package/skills/api-contract/references/best-practices.md +3 -1
  23. package/skills/api-contract/references/errors.md +1 -1
  24. package/skills/api-contract/references/examples.md +16 -1
  25. package/skills/api-contract/references/pagination.md +2 -1
  26. package/skills/api-contract/references/typescript-interfaces.md +2 -1
  27. package/skills/api-contract/references/writing-endpoints.md +4 -1
  28. package/skills/spec-writing/SKILL.md +14 -5
  29. package/skills/spec-writing/references/examples.md +7 -0
  30. package/skills/spec-writing/references/testing-configuration.md +6 -1
  31. package/skills/sprint-workflow/SKILL.md +16 -5
  32. package/skills/sprint-workflow/references/examples.md +17 -0
  33. package/skills/sprint-workflow/references/sprint-phases.md +7 -1
@@ -132,7 +132,9 @@ List products with pagination and filtering.
132
132
  ```
133
133
 
134
134
  **Errors:**
135
+
135
136
  - 400: Invalid query parameter → `{ code: "INVALID_PARAM", details: { limit: ["max 100"] } }`
137
+
136
138
  ```
137
139
 
138
140
  ## Example 2: Authentication Contract with Token Flow
@@ -183,22 +185,25 @@ Create a new user account and return authentication tokens.
183
185
  ```
184
186
 
185
187
  **Errors:**
188
+
186
189
  - 400: Invalid email format or weak password → field-level details
187
190
  - 409: Email already registered → `{ code: "EMAIL_EXISTS" }`
188
191
 
189
192
  ---
190
193
 
191
- #### POST /auth/login
194
+ ### POST /auth/login
192
195
 
193
196
  Authenticate with email and password.
194
197
 
195
198
  **Request:**
199
+
196
200
  | Field | Type | Required |
197
201
  |----------|--------|----------|
198
202
  | email | string | yes |
199
203
  | password | string | yes |
200
204
 
201
205
  **Response (200 OK):**
206
+
202
207
  ```json
203
208
  {
204
209
  "user": UserProfile,
@@ -207,6 +212,7 @@ Authenticate with email and password.
207
212
  ```
208
213
 
209
214
  **Errors:**
215
+
210
216
  - 401: Invalid credentials → `{ code: "INVALID_CREDENTIALS" }`
211
217
  (same message for wrong email and wrong password to prevent enumeration)
212
218
  - 429: Too many attempts → `{ code: "RATE_LIMITED", message: "Try again in 60s" }`
@@ -219,11 +225,13 @@ Exchange a valid refresh token for new tokens. The old refresh token is
219
225
  invalidated (rotation).
220
226
 
221
227
  **Request:**
228
+
222
229
  | Field | Type | Required |
223
230
  |--------------|--------|----------|
224
231
  | refreshToken | string | yes |
225
232
 
226
233
  **Response (200 OK):**
234
+
227
235
  ```json
228
236
  {
229
237
  "tokens": AuthTokens
@@ -231,6 +239,7 @@ invalidated (rotation).
231
239
  ```
232
240
 
233
241
  **Errors:**
242
+
234
243
  - 401: Invalid or expired refresh token → `{ code: "INVALID_REFRESH_TOKEN" }`
235
244
  (also triggered if token was already rotated — potential theft detection)
236
245
 
@@ -241,11 +250,13 @@ invalidated (rotation).
241
250
  Invalidate the refresh token for the current session.
242
251
 
243
252
  **Headers:**
253
+
244
254
  | Header | Value |
245
255
  |---------------|----------------------|
246
256
  | Authorization | Bearer {accessToken} |
247
257
 
248
258
  **Request:**
259
+
249
260
  | Field | Type | Required |
250
261
  |--------------|--------|----------|
251
262
  | refreshToken | string | yes |
@@ -254,7 +265,9 @@ Invalidate the refresh token for the current session.
254
265
  Empty body.
255
266
 
256
267
  **Errors:**
268
+
257
269
  - 401: Missing or invalid access token
270
+
258
271
  ```
259
272
 
260
273
  ## Example 3: TypeScript Interface Definitions
@@ -408,8 +421,10 @@ List line items for a specific order.
408
421
  ```
409
422
 
410
423
  **Errors:**
424
+
411
425
  - 403: Order belongs to a different user
412
426
  - 404: Order not found
427
+
413
428
  ```
414
429
 
415
430
  ## Example 5: Contract Section for Webhook Callbacks
@@ -29,6 +29,7 @@ List products with pagination.
29
29
  }
30
30
  }
31
31
  ```
32
+
32
33
  ```
33
34
 
34
35
  ### Pagination Interface
@@ -43,4 +44,4 @@ interface PaginatedResponse<T> {
43
44
  totalPages: number;
44
45
  };
45
46
  }
46
- ```
47
+ ```
@@ -35,6 +35,7 @@ interface ApiError {
35
35
  details?: Record<string, string[]>;
36
36
  }
37
37
  ```
38
+
38
39
  ```
39
40
 
40
41
  ### Type Guidelines
@@ -43,4 +44,4 @@ interface ApiError {
43
44
  - Mark optional fields with `?`
44
45
  - Use union types for nullable: `string | null`
45
46
  - Include all possible response shapes
46
- - Match types to JSON serialization
47
+ - Match types to JSON serialization
@@ -19,6 +19,7 @@ Create a new user account.
19
19
  ```
20
20
 
21
21
  **Response (201):**
22
+
22
23
  ```json
23
24
  {
24
25
  "id": "uuid",
@@ -29,9 +30,11 @@ Create a new user account.
29
30
  ```
30
31
 
31
32
  **Errors:**
33
+
32
34
  - 400: Invalid request body
33
35
  - 409: Email already exists
34
36
  - 422: Validation failed
37
+
35
38
  ```
36
39
 
37
40
  ### Key Elements
@@ -42,4 +45,4 @@ Create a new user account.
42
45
  | Description | What the endpoint does |
43
46
  | Request | Input schema with types and constraints |
44
47
  | Response | Output schema with status code |
45
- | Errors | Possible error responses |
48
+ | Errors | Possible error responses |
@@ -1,13 +1,20 @@
1
1
  ---
2
2
  name: spec-writing
3
- description: |
4
- Execute this skill should be used when the user asks about "writing specs", "specs.md format", "how to write specifications", "sprint requirements", "testing configuration", "scope definition", or needs guidance on creating effective sprint specifications for agentic development. Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.
3
+ description: 'Execute this skill should be used when the user asks about "writing
4
+ specs", "specs.md format", "how to write specifications", "sprint requirements",
5
+ "testing configuration", "scope definition", or needs guidance on creating effective
6
+ sprint specifications for agentic development. Use when appropriate context detected.
7
+ Trigger with relevant phrases based on skill purpose.
8
+
9
+ '
5
10
  allowed-tools: Read
6
11
  version: 1.0.0
7
12
  author: Damien Laine <damien.laine@gmail.com>
8
13
  license: MIT
9
- compatible-with: claude-code, codex, openclaw
10
- tags: [community, spec-writing]
14
+ tags:
15
+ - community
16
+ - spec-writing
17
+ compatibility: Designed for Claude Code, also compatible with Codex and OpenClaw
11
18
  ---
12
19
  # Spec Writing
13
20
 
@@ -55,6 +62,7 @@ Spec Writing provides guidance on authoring effective `specs.md` files that driv
55
62
  ## Examples
56
63
 
57
64
  **Minimal but effective spec:**
65
+
58
66
  ```markdown
59
67
  # Sprint 1: User Authentication
60
68
 
@@ -80,6 +88,7 @@ Add user authentication with email/password login
80
88
  ```
81
89
 
82
90
  **Frontend-only sprint (no QA needed):**
91
+
83
92
  ```markdown
84
93
  # Sprint 3: Dashboard Redesign
85
94
 
@@ -107,4 +116,4 @@ Redesign the admin dashboard with responsive layout
107
116
 
108
117
  - `${CLAUDE_SKILL_DIR}/references/testing-configuration.md` -- Testing section options with guidance on when to use each setting
109
118
  - Sprint workflow skill for understanding how specs feed into the phase lifecycle
110
- - API contract skill for designing endpoint contracts referenced by specs
119
+ - API contract skill for designing endpoint contracts referenced by specs
@@ -35,6 +35,7 @@ Add email/password authentication with JWT tokens and refresh token rotation.
35
35
  ```
36
36
 
37
37
  **Why this works:**
38
+
38
39
  - Goal is one sentence describing the deliverable
39
40
  - In Scope lists every endpoint with its behavior
40
41
  - Out of Scope prevents agent drift toward OAuth or email flows
@@ -74,6 +75,7 @@ Add dark mode with system preference detection and manual toggle.
74
75
  ```
75
76
 
76
77
  **Why manual testing is appropriate here:**
78
+
77
79
  - Visual correctness (contrast, readability) requires human eyes
78
80
  - Theme transitions need subjective quality assessment
79
81
  - System preference detection needs OS-level interaction
@@ -121,6 +123,7 @@ Full-text product search with type-ahead suggestions and faceted filtering.
121
123
  ```
122
124
 
123
125
  **Why this works:**
126
+
124
127
  - Scope is partitioned by domain (Backend / Frontend / Shared)
125
128
  - Each agent gets a clear boundary
126
129
  - Shared types are called out so both agents reference the same contract
@@ -132,6 +135,7 @@ A spec that has been narrowed based on iteration 1 results. Completed items
132
135
  are removed and only remaining work and fixes are listed.
133
136
 
134
137
  **Original specs.md (before sprint):**
138
+
135
139
  ```markdown
136
140
  # Sprint 2: User Dashboard
137
141
 
@@ -157,6 +161,7 @@ Build a user dashboard showing recent activity, notifications, and account setti
157
161
  ```
158
162
 
159
163
  **Updated specs.md (after iteration 1, 2 items remaining):**
164
+
160
165
  ```markdown
161
166
  # Sprint 2: User Dashboard (Iteration 2)
162
167
 
@@ -186,6 +191,7 @@ Fix remaining issues from iteration 1.
186
191
  ```
187
192
 
188
193
  **Why iterative narrowing matters:**
194
+
189
195
  - Removes completed work so agents do not re-implement it
190
196
  - Explicitly describes the two bugs with expected vs actual behavior
191
197
  - "Completed" section tells agents what NOT to touch
@@ -266,6 +272,7 @@ Real-time chat for project collaboration with channel support and presence track
266
272
  ```
267
273
 
268
274
  **Why constraints are valuable:**
275
+
269
276
  - Prevents agents from choosing a different WebSocket library
270
277
  - Ensures new code integrates with existing database stack
271
278
  - Manual UI testing because real-time interactions are hard to automate reliably
@@ -15,26 +15,31 @@ The Testing section controls which testing agents run.
15
15
  ### When to Use Each
16
16
 
17
17
  **QA: required**
18
+
18
19
  - New API endpoints
19
20
  - Business logic changes
20
21
  - Data validation rules
21
22
 
22
23
  **QA: skip**
24
+
23
25
  - Frontend-only changes
24
26
  - Documentation updates
25
27
  - Configuration changes
26
28
 
27
29
  **UI Testing: required**
30
+
28
31
  - User-facing features
29
32
  - Form submissions
30
33
  - Navigation flows
31
34
 
32
35
  **UI Testing Mode: manual**
36
+
33
37
  - Complex interactions
34
38
  - Visual verification needed
35
39
  - Exploratory testing
36
40
 
37
41
  **UI Testing Mode: automated**
42
+
38
43
  - Regression testing
39
44
  - Standard CRUD flows
40
- - Repeatable scenarios
45
+ - Repeatable scenarios
@@ -1,13 +1,21 @@
1
1
  ---
2
2
  name: sprint-workflow
3
- description: |
4
- Execute this skill should be used when the user asks about "how sprints work", "sprint phases", "iteration workflow", "convergent development", "sprint lifecycle", "when to use sprints", or wants to understand the sprint execution model and its convergent diffusion approach. Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.
3
+ description: 'Execute this skill should be used when the user asks about "how sprints
4
+ work", "sprint phases", "iteration workflow", "convergent development", "sprint
5
+ lifecycle", "when to use sprints", or wants to understand the sprint execution model
6
+ and its convergent diffusion approach. Use when appropriate context detected. Trigger
7
+ with relevant phrases based on skill purpose.
8
+
9
+ '
5
10
  allowed-tools: Read
6
11
  version: 1.0.0
7
12
  author: Damien Laine <damien.laine@gmail.com>
8
13
  license: MIT
9
- compatible-with: claude-code, codex, openclaw
10
- tags: [community, workflow, sprint-workflow]
14
+ tags:
15
+ - community
16
+ - workflow
17
+ - sprint-workflow
18
+ compatibility: Designed for Claude Code, also compatible with Codex and OpenClaw
11
19
  ---
12
20
  # Sprint Workflow
13
21
 
@@ -53,6 +61,7 @@ Sprint Workflow describes the convergent diffusion execution model used by the S
53
61
  ## Examples
54
62
 
55
63
  **Starting a new sprint:**
64
+
56
65
  ```bash
57
66
  /sprint:new # Creates .claude/sprint/1/specs.md
58
67
  # Edit specs.md with requirements
@@ -60,6 +69,7 @@ Sprint Workflow describes the convergent diffusion execution model used by the S
60
69
  ```
61
70
 
62
71
  **Resuming after iteration pause:**
72
+
63
73
  ```bash
64
74
  # Review .claude/sprint/1/status.md for blockers
65
75
  # Adjust specs.md to narrow scope or fix conflicts
@@ -67,6 +77,7 @@ Sprint Workflow describes the convergent diffusion execution model used by the S
67
77
  ```
68
78
 
69
79
  **Typical convergence flow:**
80
+
70
81
  ```
71
82
  Iteration 1: Architect plans → 3 agents implement → tests find 2 failures
72
83
  Iteration 2: Architect narrows specs to 2 fixes → agents patch → tests pass
@@ -78,4 +89,4 @@ Iteration 3: All specs satisfied → FINALIZE
78
89
  - `${CLAUDE_SKILL_DIR}/references/sprint-phases.md` -- Detailed reference for all six phases with agent assignments and handoff rules
79
90
  - Agent patterns skill for SPAWN REQUEST format and report structure
80
91
  - Spec writing skill for authoring effective `specs.md` files
81
- - API contract skill for designing the shared interface between agents
92
+ - API contract skill for designing the shared interface between agents
@@ -6,12 +6,14 @@ A complete sprint building a user management API with CRUD endpoints, database
6
6
  integration, and automated testing.
7
7
 
8
8
  **Step 1 — Create the sprint and write specs:**
9
+
9
10
  ```bash
10
11
  /sprint:new
11
12
  # Creates .claude/sprint/1/specs.md
12
13
  ```
13
14
 
14
15
  **Step 2 — Edit specs.md:**
16
+
15
17
  ```markdown
16
18
  # Sprint 1: User Management API
17
19
 
@@ -41,11 +43,13 @@ Build a REST API for user management with CRUD operations and role-based access.
41
43
  ```
42
44
 
43
45
  **Step 3 — Execute the sprint:**
46
+
44
47
  ```bash
45
48
  /sprint
46
49
  ```
47
50
 
48
51
  **Phase 0 — Load Specifications:**
52
+
49
53
  ```
50
54
  Orchestrator reads .claude/sprint/1/specs.md
51
55
  → Goal: User Management API (5 endpoints)
@@ -55,6 +59,7 @@ Orchestrator reads .claude/sprint/1/specs.md
55
59
  ```
56
60
 
57
61
  **Phase 1 — Architectural Planning:**
62
+
58
63
  ```
59
64
  project-architect reads:
60
65
  → .claude/project-map.md (existing codebase structure)
@@ -73,6 +78,7 @@ Architect returns SPAWN REQUEST blocks:
73
78
  ```
74
79
 
75
80
  **Phase 2 — Implementation (Iteration 1):**
81
+
76
82
  ```
77
83
  python-dev agent:
78
84
  → Reads backend-specs.md and api-contract.md
@@ -90,6 +96,7 @@ Conformity: All 5 endpoints implemented per contract
90
96
  ```
91
97
 
92
98
  **Phase 3 — Testing (Iteration 1):**
99
+
93
100
  ```
94
101
  qa-test-agent runs:
95
102
  → pytest tests/test_users.py
@@ -107,6 +114,7 @@ Failures:
107
114
  ```
108
115
 
109
116
  **Phase 4 — Review (Iteration 1):**
117
+
110
118
  ```
111
119
  Architect reviews QA report:
112
120
  → 2 failures identified
@@ -119,6 +127,7 @@ Architect reviews QA report:
119
127
  ```
120
128
 
121
129
  **Iteration 2 — Fix and Re-test:**
130
+
122
131
  ```
123
132
  python-dev agent:
124
133
  → Reads narrowed backend-specs.md (only 2 fixes)
@@ -136,6 +145,7 @@ Architect reviews:
136
145
  ```
137
146
 
138
147
  **Phase 5 — Finalization:**
148
+
139
149
  ```
140
150
  Orchestrator writes final status.md:
141
151
  Sprint 1: COMPLETE
@@ -152,6 +162,7 @@ FINALIZE
152
162
  A sprint that hit the 5-iteration limit and requires manual intervention.
153
163
 
154
164
  **status.md after 5 iterations:**
165
+
155
166
  ```markdown
156
167
  # Sprint 2 Status
157
168
 
@@ -172,6 +183,7 @@ of in-memory state. This is an architectural change beyond the current specs.
172
183
  ```
173
184
 
174
185
  **Manual intervention:**
186
+
175
187
  ```bash
176
188
  # Review the status
177
189
  cat .claude/sprint/2/status.md
@@ -196,6 +208,7 @@ A sprint focused on UI changes where automated E2E tests are impractical
196
208
  and manual visual verification is needed.
197
209
 
198
210
  **specs.md:**
211
+
199
212
  ```markdown
200
213
  # Sprint 3: Dashboard Redesign
201
214
 
@@ -221,6 +234,7 @@ Redesign the admin dashboard with responsive layout and dark mode support.
221
234
  ```
222
235
 
223
236
  **Sprint execution:**
237
+
224
238
  ```
225
239
  Phase 1: Architect produces frontend-specs.md only (no backend)
226
240
  Phase 2: nextjs-dev agent implements layout, dark mode, drag-and-drop
@@ -248,6 +262,7 @@ A sprint where backend and frontend agents work simultaneously on the same featu
248
262
  coordinated through a shared API contract.
249
263
 
250
264
  **specs.md:**
265
+
251
266
  ```markdown
252
267
  # Sprint 4: Product Search
253
268
 
@@ -274,6 +289,7 @@ Full-text search for products with type-ahead suggestions and faceted filtering.
274
289
  ```
275
290
 
276
291
  **Phase 2 — Parallel agent spawns:**
292
+
277
293
  ```
278
294
  SPAWN REQUEST
279
295
  Agent: python-dev
@@ -301,6 +317,7 @@ No file path overlap → safe for parallel execution
301
317
  ```
302
318
 
303
319
  **Phase 3 — Sequential testing:**
320
+
304
321
  ```
305
322
  1. qa-test-agent runs first:
306
323
  → Tests search API returns correct results
@@ -7,6 +7,7 @@ A sprint executes through 6 distinct phases:
7
7
  ### Phase 0: Load Specifications
8
8
 
9
9
  Parse the sprint directory and prepare context:
10
+
10
11
  - Locate sprint directory (`.claude/sprint/[N]/`)
11
12
  - Read `specs.md` for user requirements
12
13
  - Read `status.md` if resuming
@@ -15,6 +16,7 @@ Parse the sprint directory and prepare context:
15
16
  ### Phase 1: Architectural Planning
16
17
 
17
18
  The project-architect agent analyzes requirements:
19
+
18
20
  - Read existing `project-map.md` for architecture context
19
21
  - Read `project-goals.md` for business objectives
20
22
  - Create specification files (`api-contract.md`, `backend-specs.md`, etc.)
@@ -23,6 +25,7 @@ The project-architect agent analyzes requirements:
23
25
  ### Phase 2: Implementation
24
26
 
25
27
  Spawn implementation agents in parallel:
28
+
26
29
  - `python-dev` for Python/FastAPI backend
27
30
  - `nextjs-dev` for Next.js frontend
28
31
  - `cicd-agent` for CI/CD pipelines
@@ -32,6 +35,7 @@ Spawn implementation agents in parallel:
32
35
  ### Phase 3: Testing
33
36
 
34
37
  Execute testing agents:
38
+
35
39
  - `qa-test-agent` runs first (API and unit tests)
36
40
  - `ui-test-agent` runs after (browser-based E2E tests)
37
41
  - Framework-specific diagnostics agents run in parallel with UI tests
@@ -40,6 +44,7 @@ Execute testing agents:
40
44
  ### Phase 4: Review & Iteration
41
45
 
42
46
  Architect reviews all reports:
47
+
43
48
  - Analyze conformity status
44
49
  - Update specifications (remove completed, add fixes)
45
50
  - Update `status.md` with current state
@@ -48,7 +53,8 @@ Architect reviews all reports:
48
53
  ### Phase 5: Finalization
49
54
 
50
55
  Sprint completion:
56
+
51
57
  - Final `status.md` summary
52
58
  - All specs in consistent state
53
59
  - **Clean up manual-test-report.md** (no longer relevant)
54
- - Signal FINALIZE to orchestrator
60
+ - Signal FINALIZE to orchestrator