sequant 1.0.0 → 1.1.1

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 (77) hide show
  1. package/README.md +12 -8
  2. package/dist/bin/cli.js +12 -0
  3. package/dist/bin/cli.js.map +1 -1
  4. package/dist/src/commands/doctor.d.ts.map +1 -1
  5. package/dist/src/commands/doctor.js +46 -0
  6. package/dist/src/commands/doctor.js.map +1 -1
  7. package/dist/src/commands/doctor.test.d.ts +2 -0
  8. package/dist/src/commands/doctor.test.d.ts.map +1 -0
  9. package/dist/src/commands/doctor.test.js +140 -0
  10. package/dist/src/commands/doctor.test.js.map +1 -0
  11. package/dist/src/commands/init.d.ts.map +1 -1
  12. package/dist/src/commands/init.js +45 -2
  13. package/dist/src/commands/init.js.map +1 -1
  14. package/dist/src/commands/init.test.d.ts +2 -0
  15. package/dist/src/commands/init.test.d.ts.map +1 -0
  16. package/dist/src/commands/init.test.js +152 -0
  17. package/dist/src/commands/init.test.js.map +1 -0
  18. package/dist/src/commands/logs.d.ts +18 -0
  19. package/dist/src/commands/logs.d.ts.map +1 -0
  20. package/dist/src/commands/logs.js +188 -0
  21. package/dist/src/commands/logs.js.map +1 -0
  22. package/dist/src/commands/run.d.ts +2 -0
  23. package/dist/src/commands/run.d.ts.map +1 -1
  24. package/dist/src/commands/run.js +114 -29
  25. package/dist/src/commands/run.js.map +1 -1
  26. package/dist/src/lib/stacks.d.ts.map +1 -1
  27. package/dist/src/lib/stacks.js +39 -0
  28. package/dist/src/lib/stacks.js.map +1 -1
  29. package/dist/src/lib/stacks.test.d.ts +2 -0
  30. package/dist/src/lib/stacks.test.d.ts.map +1 -0
  31. package/dist/src/lib/stacks.test.js +145 -0
  32. package/dist/src/lib/stacks.test.js.map +1 -0
  33. package/dist/src/lib/system.d.ts +16 -0
  34. package/dist/src/lib/system.d.ts.map +1 -0
  35. package/dist/src/lib/system.js +52 -0
  36. package/dist/src/lib/system.js.map +1 -0
  37. package/dist/src/lib/system.test.d.ts +2 -0
  38. package/dist/src/lib/system.test.d.ts.map +1 -0
  39. package/dist/src/lib/system.test.js +80 -0
  40. package/dist/src/lib/system.test.js.map +1 -0
  41. package/dist/src/lib/workflow/log-writer.d.ts +83 -0
  42. package/dist/src/lib/workflow/log-writer.d.ts.map +1 -0
  43. package/dist/src/lib/workflow/log-writer.js +193 -0
  44. package/dist/src/lib/workflow/log-writer.js.map +1 -0
  45. package/dist/src/lib/workflow/run-log-schema.d.ts +261 -0
  46. package/dist/src/lib/workflow/run-log-schema.d.ts.map +1 -0
  47. package/dist/src/lib/workflow/run-log-schema.js +234 -0
  48. package/dist/src/lib/workflow/run-log-schema.js.map +1 -0
  49. package/package.json +6 -4
  50. package/stacks/astro.yaml +35 -0
  51. package/templates/hooks/post-tool.sh +0 -11
  52. package/templates/hooks/pre-tool.sh +2 -2
  53. package/templates/memory/constitution.md +8 -0
  54. package/templates/scripts/cleanup-worktree.sh +1 -1
  55. package/templates/scripts/new-feature.sh +7 -5
  56. package/templates/skills/assess/SKILL.md +31 -16
  57. package/templates/skills/clean/SKILL.md +17 -2
  58. package/templates/skills/docs/SKILL.md +48 -34
  59. package/templates/skills/exec/SKILL.md +31 -25
  60. package/templates/skills/fullsolve/SKILL.md +34 -16
  61. package/templates/skills/loop/SKILL.md +22 -5
  62. package/templates/skills/qa/SKILL.md +89 -4
  63. package/templates/skills/qa/references/code-quality-exemplars.md +23 -28
  64. package/templates/skills/qa/references/code-review-checklist.md +6 -17
  65. package/templates/skills/qa/scripts/quality-checks.sh +4 -17
  66. package/templates/skills/reflect/SKILL.md +18 -2
  67. package/templates/skills/reflect/references/documentation-tiers.md +3 -3
  68. package/templates/skills/security-review/SKILL.md +15 -0
  69. package/templates/skills/security-review/references/security-checklists.md +10 -8
  70. package/templates/skills/solve/SKILL.md +147 -149
  71. package/templates/skills/spec/SKILL.md +61 -3
  72. package/templates/skills/spec/references/parallel-groups.md +1 -1
  73. package/templates/skills/spec/references/verification-criteria.md +1 -1
  74. package/templates/skills/test/SKILL.md +20 -5
  75. package/templates/skills/testgen/SKILL.md +15 -1
  76. package/templates/skills/verify/SKILL.md +20 -5
  77. package/templates/skills/reflect/scripts/workflow-queries.ts +0 -165
@@ -294,18 +294,18 @@ RECOMMENDATION: Gather more information
294
294
  Provide relevant context to help the next command:
295
295
 
296
296
  **Key Files to Review:**
297
- - `components/admin/FactCheckQueue.tsx` - Main component
298
- - `lib/queries/fact-checks.ts` - Data layer
299
- - `docs/ADMIN_ARCHITECTURE.md` - Related architecture
297
+ - List the main components/files involved
298
+ - Point to relevant data layer code
299
+ - Reference architecture documentation if exists
300
300
 
301
301
  **Similar Patterns:**
302
- - See `components/admin/news/ContentUpdatesList.tsx` for list pattern
303
- - See `components/admin/shops/ApprovalQueue.tsx` for approval flow
302
+ - Reference similar features in the codebase
303
+ - Point to reusable patterns
304
304
 
305
305
  **Potential Risks:**
306
- - No error handling for failed approvals
307
- - Email service integration not yet tested
308
- - Database migration for `fact_checks` table may be needed
306
+ - Identify any error handling gaps
307
+ - Note external integrations not yet tested
308
+ - Flag potential database migrations needed
309
309
 
310
310
  ## Examples
311
311
 
@@ -343,22 +343,22 @@ RECOMMENDATION: Run `/spec 147`
343
343
 
344
344
  ```
345
345
  Issue Summary
346
- - Issue: #145 - Fix neighborhood extraction for Atlanta
346
+ - Issue: #145 - Fix data validation edge cases
347
347
  - Status: Open | in-progress, bug
348
348
  - Last Activity: 10 days ago
349
349
  - Phase: Implementation (Stale)
350
350
 
351
351
  Acceptance Criteria
352
- - AC-1: Extract neighborhoods via ZIP mapping - MET
353
- - AC-2: Handle edge cases (no ZIP, multiple ZIPs) - IN_PROGRESS
354
- - AC-3: Backfill existing Atlanta shops - NOT_STARTED
352
+ - AC-1: Handle basic validation - MET
353
+ - AC-2: Handle edge cases (empty, null, special chars) - IN_PROGRESS
354
+ - AC-3: Add validation tests - NOT_STARTED
355
355
  Coverage: 1/3 complete
356
356
 
357
357
  Artifacts Found
358
358
  Implementation:
359
- - [x] Branch: feature/145-atlanta-neighborhoods (3 commits)
360
- - [x] Worktree: ../worktrees/feature/145-atlanta-neighborhoods/
361
- - [x] Modified: lib/utils/neighborhood-extraction.ts
359
+ - [x] Branch: feature/145-validation-fixes (3 commits)
360
+ - [x] Worktree: ../worktrees/feature/145-validation-fixes/
361
+ - [x] Modified: lib/utils/validation.ts
362
362
  - [ ] Tests not found
363
363
 
364
364
  Blockers & Issues
@@ -370,7 +370,7 @@ Recommendation
370
370
  RECOMMENDATION: Resume `/exec 145`
371
371
  - Implementation is 1/3 complete but stale
372
372
  - Worktree still exists, resume work there
373
- - Focus on AC-2 (edge cases) and AC-3 (backfill)
373
+ - Focus on AC-2 (edge cases) and AC-3 (tests)
374
374
  - Add tests before considering complete
375
375
  ```
376
376
 
@@ -426,3 +426,18 @@ After providing the assessment, briefly note:
426
426
  - Keep the assessment concise - aim for clarity, not exhaustiveness
427
427
  - When in doubt about phase, say so - better to acknowledge uncertainty
428
428
  - Use this to orient yourself, then proceed with the appropriate workflow command
429
+
430
+ ---
431
+
432
+ ## Output Verification
433
+
434
+ **Before responding, verify your output includes ALL of these:**
435
+
436
+ - [ ] **Issue Summary** - Issue number, title, status, last activity, phase
437
+ - [ ] **AC Coverage** - Each AC marked MET/IN_PROGRESS/NOT_STARTED/UNCLEAR
438
+ - [ ] **Artifacts Found** - Planning, implementation, and QA artifacts listed
439
+ - [ ] **Blockers & Issues** - Any blockers or staleness identified
440
+ - [ ] **Recommendation** - Specific next command to run with rationale
441
+ - [ ] **Confidence Level** - High/Medium/Low with information gaps noted
442
+
443
+ **DO NOT respond until all items are verified.**
@@ -59,7 +59,7 @@ These files are always safe to archive - they're historical artifacts:
59
59
  ### Category 2: Review Before Archiving
60
60
 
61
61
  These need a quick check - might still be referenced:
62
- - Files in `migrations/` (check if applied to Supabase)
62
+ - Files in `migrations/` (check if applied to database)
63
63
  - `context/` directory contents
64
64
  - Any `APPLY_*.md` or `apply-*.sh` files
65
65
 
@@ -78,7 +78,7 @@ Never archive these:
78
78
  ```
79
79
  scripts/archive/
80
80
  ├── one-off-migrations/ # Shell scripts for one-time tasks
81
- ├── adhoc-migrations/ # SQL files applied manually (not via Supabase CLI)
81
+ ├── adhoc-migrations/ # SQL files applied manually (not via migrations tool)
82
82
  └── deprecated/ # Old/replaced scripts
83
83
 
84
84
  docs/archive/
@@ -194,3 +194,18 @@ Next cleanup recommended: [date + 30 days]
194
194
  ## BEGIN EXECUTION
195
195
 
196
196
  Execute the cleanup following the steps above. Be thorough but safe - when in doubt, skip a file rather than risk breaking something.
197
+
198
+ ---
199
+
200
+ ## Output Verification
201
+
202
+ **Before responding, verify your output includes ALL of these:**
203
+
204
+ - [ ] **Pre-flight Results** - Branch check, build verification passed
205
+ - [ ] **Cleanup Manifest** - List of files to be archived/removed
206
+ - [ ] **Archive Summary** - Count of files archived by category
207
+ - [ ] **Build Verification** - Post-cleanup build/lint passed
208
+ - [ ] **Commit Details** - Commit hash and push confirmation
209
+ - [ ] **Next Cleanup Date** - Recommended date for next cleanup
210
+
211
+ **DO NOT respond until all items are verified.**
@@ -124,7 +124,7 @@ Generate documentation using this template:
124
124
 
125
125
  ## Common Workflows
126
126
 
127
- ### [Workflow 1: e.g., "Review and Approve Shops"]
127
+ ### [Workflow 1: e.g., "Review and Approve Items"]
128
128
 
129
129
  1. [Step 1]
130
130
  2. [Step 2]
@@ -158,15 +158,15 @@ Generate documentation using this template:
158
158
 
159
159
  **Focus on operational usage, not technical implementation:**
160
160
 
161
- - "Click the 'Approve' button to publish the shop"
162
- - NOT: "The `approveShop` function updates the database"
161
+ - "Click the 'Approve' button to publish the item"
162
+ - NOT: "The `approveItem` function updates the database"
163
163
 
164
164
  - "Wait for the green success message"
165
165
  - NOT: "The API returns a 200 status code"
166
166
 
167
167
  **Be specific and actionable:**
168
168
 
169
- - "Navigate to Admin → Shops → Review Queue"
169
+ - "Navigate to Admin → Items → Review Queue"
170
170
  - NOT: "Go to the review page"
171
171
 
172
172
  **Include visual cues when relevant:**
@@ -176,8 +176,8 @@ Generate documentation using this template:
176
176
 
177
177
  **Document common workflows end-to-end:**
178
178
 
179
- - "To approve a shop: 1. Open Review Queue, 2. Click shop name, 3. Review details in each tab, 4. Click Approve"
180
- - NOT: "Use the approve button to approve shops"
179
+ - "To approve an item: 1. Open Review Queue, 2. Click item name, 3. Review details, 4. Click Approve"
180
+ - NOT: "Use the approve button"
181
181
 
182
182
  ### 5. File Naming Convention
183
183
 
@@ -187,10 +187,10 @@ Generate filename from feature name:
187
187
  - Match the primary feature purpose
188
188
 
189
189
  Examples:
190
- - `shop-review-queue.md` - For shop review admin page
190
+ - `review-queue.md` - For review admin page
191
191
  - `bulk-edit-operations.md` - For bulk editing feature
192
- - `city-configuration.md` - For city config admin
193
- - `feature-gallery.md` - For maps gallery feature
192
+ - `settings-configuration.md` - For settings admin
193
+ - `feature-gallery.md` - For gallery feature
194
194
 
195
195
  ### 6. Output and Summary
196
196
 
@@ -272,22 +272,21 @@ For Issue #180 (City Configuration UI):
272
272
 
273
273
  ## Usage
274
274
 
275
- ### Adding a New City
275
+ ### Adding a New Item
276
276
 
277
- 1. Navigate to Admin → Cities
278
- 2. Click the "Add City" button (top right)
279
- 3. Complete the 4-step wizard:
280
- - **Step 1 - Basic Info:** Enter city name, state, and select status
281
- - **Step 2 - Geography:** Set center coordinates and map bounds
282
- - **Step 3 - Discovery:** Configure shop discovery settings
283
- - **Step 4 - Review:** Confirm all settings
284
- 4. Click "Create City" to save
277
+ 1. Navigate to Admin → Items
278
+ 2. Click the "Add Item" button (top right)
279
+ 3. Complete the form:
280
+ - **Basic Info:** Enter name, description, and select status
281
+ - **Settings:** Configure item-specific options
282
+ - **Review:** Confirm all settings
283
+ 4. Click "Create" to save
285
284
 
286
- ### Editing an Existing City
285
+ ### Editing an Existing Item
287
286
 
288
- 1. Navigate to Admin → Cities
289
- 2. Click on the city card to open details
290
- 3. Click "Edit" in the Config tab
287
+ 1. Navigate to Admin → Items
288
+ 2. Click on the item to open details
289
+ 3. Click "Edit" in the details panel
291
290
  4. Update settings as needed
292
291
  5. Click "Save Changes"
293
292
 
@@ -295,29 +294,44 @@ For Issue #180 (City Configuration UI):
295
294
 
296
295
  | Option | Description | Default |
297
296
  |--------|-------------|---------|
298
- | Status | City visibility (active, in_development, coming_soon) | in_development |
299
- | Timezone | City timezone for hours display | America/New_York |
300
- | Map Bounds | Visible area on city map | Auto-calculated |
297
+ | Status | Item visibility (active, draft, archived) | draft |
298
+ | Category | Item categorization | None |
299
+ | Priority | Display order priority | Normal |
301
300
 
302
301
  ## Common Workflows
303
302
 
304
- ### Launch a New City
303
+ ### Publish an Item
305
304
 
306
- 1. Add city via wizard (status: in_development)
307
- 2. Run shop discovery scripts
308
- 3. Review and approve shops in Review Queue
309
- 4. Change city status to "active"
310
- 5. City appears on homepage
305
+ 1. Add item via form (status: draft)
306
+ 2. Review and approve in Review Queue
307
+ 3. Change status to "active"
308
+ 4. Item appears on public pages
311
309
 
312
310
  ## Troubleshooting
313
311
 
314
- ### City doesn't appear on homepage
312
+ ### Item doesn't appear on page
315
313
 
316
- **Symptoms:** City was added but doesn't show in city selector
314
+ **Symptoms:** Item was added but doesn't show
317
315
 
318
- **Solution:** Check city status is set to "active" in Admin → Cities → [City] → Config
316
+ **Solution:** Check item status is set to "active" in Admin → Items → [Item] → Settings
319
317
 
320
318
  ---
321
319
 
322
320
  *Generated for Issue #180 on 2025-11-25*
323
321
  ```
322
+
323
+ ---
324
+
325
+ ## Output Verification
326
+
327
+ **Before responding, verify your output includes ALL of these:**
328
+
329
+ - [ ] **Documentation File** - Created in correct directory (docs/admin/ or docs/features/)
330
+ - [ ] **Quick Start Section** - 1-2 sentence summary
331
+ - [ ] **Access Section** - URL, menu path, permissions
332
+ - [ ] **Usage Section** - Step-by-step workflows
333
+ - [ ] **Options Table** - Settings with descriptions and defaults
334
+ - [ ] **Troubleshooting** - At least 1-2 common issues
335
+ - [ ] **GitHub Comment** - Summary posted to issue
336
+
337
+ **DO NOT respond until all items are verified.**
@@ -33,12 +33,8 @@ allowed-tools:
33
33
  - Bash(gh issue edit:*)
34
34
  - Bash(gh pr create:*)
35
35
  - Bash(gh pr view:*)
36
- # MCP tools for implementation
37
- - mcp__supabase__list_tables
38
- - mcp__supabase__execute_sql
39
- - mcp__supabase__apply_migration
40
- - mcp__context7__resolve-library-id
41
- - mcp__context7__query-docs
36
+ # Optional MCP tools (enhanced functionality if available)
37
+ # - mcp__context7__* (library documentation lookup)
42
38
  # Task management
43
39
  - Task
44
40
  - TodoWrite
@@ -122,7 +118,7 @@ Invocation:
122
118
  - Create branch: `feature/<issue-number>-<issue-title-slug>`
123
119
  - Create worktree in: `../worktrees/feature/<branch-name>/`
124
120
  - Install dependencies
125
- - Copy `.env.local` if it exists
121
+ - Copy environment files if they exist
126
122
  - Navigate to the worktree directory: `cd ../worktrees/feature/<branch-name>/`
127
123
 
128
124
  3. **Work in the worktree:**
@@ -151,32 +147,28 @@ Invocation:
151
147
  - If it needs modification, extend it rather than creating a new one
152
148
  - Document why existing utilities don't meet requirements before creating new ones
153
149
 
154
- ### Using Sequential Thinking, Context7, or Supabase MCP
150
+ ### Using Optional MCP Tools
155
151
 
156
- Use these specialized tools when appropriate:
152
+ If available, these MCP tools can enhance implementation:
157
153
 
158
- **Sequential Thinking** - For complex problem-solving requiring multi-step reasoning:
154
+ **Context7** (mcp__context7__*) - For understanding external libraries:
155
+ - Learning unfamiliar npm package APIs
156
+ - Understanding third-party library patterns
157
+ - Resolving library-specific type issues
158
+ - **NOT for:** Project's own codebase (use Glob/Grep instead)
159
+
160
+ **Sequential Thinking** (mcp__sequential-thinking__*) - For complex reasoning:
159
161
  - Novel algorithms or data structures
160
162
  - Ambiguous requirements needing exploration
161
163
  - Complex business logic with multiple edge cases
162
- - Multi-step reasoning with dependencies
163
- - **NOT for:** Standard CRUD operations, UI implementation following existing patterns, straightforward feature additions
164
-
165
- **Context7** - For understanding external libraries and packages:
166
- - Learning unfamiliar npm package APIs (react-query, zod, framer-motion, etc.)
167
- - Understanding third-party library patterns
168
- - Resolving library-specific type issues
169
- - **NOT for:** Project's own codebase (use Glob/Grep instead), Next.js patterns (documented in CLAUDE.md)
164
+ - **NOT for:** Standard CRUD operations, straightforward feature additions
170
165
 
171
- **Supabase MCP** - For any database-related implementation:
172
- - **ALWAYS USE** before writing database queries or migrations
173
- - Verify table schemas and column types
174
- - Check RLS policies before data access code
175
- - Understand table relationships
166
+ **Database MCP tools** - If your project uses a database MCP:
167
+ - Verify table schemas before writing queries
168
+ - Check access policies before data access code
176
169
  - Validate data models match TypeScript types
177
- - **USE for:** Every feature touching `content_updates`, `shops`, `pending_shops`, etc.
178
170
 
179
- **General Rule:** If you're implementing a feature similar to an existing one (e.g., new admin card component, new validation function), use Glob/Grep to find patterns rather than Sequential Thinking.
171
+ **General Rule:** If implementing a feature similar to an existing one, use Glob/Grep to find patterns in the codebase first.
180
172
 
181
173
  ### 3. Checks-first Mindset
182
174
 
@@ -424,3 +416,17 @@ At the end of a session:
424
416
  ```
425
417
 
426
418
  You may be invoked multiple times for the same issue. Each time, re-establish context, ensure you're in the correct worktree, and continue iterating until we are as close as practical to meeting the AC.
419
+
420
+ ---
421
+
422
+ ## Output Verification
423
+
424
+ **Before responding, verify your output includes ALL of these:**
425
+
426
+ - [ ] **AC Progress Summary** - Which AC items are satisfied, partially met, or blocked
427
+ - [ ] **Files Changed** - List of key files modified
428
+ - [ ] **Test/Build Results** - Output from `npm test` and `npm run build`
429
+ - [ ] **Progress Update Draft** - Formatted comment for GitHub issue
430
+ - [ ] **Next Steps** - Clear guidance on remaining work
431
+
432
+ **DO NOT respond until all items are verified.**
@@ -14,10 +14,10 @@ allowed-tools:
14
14
  - Bash
15
15
  - TodoWrite
16
16
  - Task
17
- - mcp__chrome-devtools__*
18
- - mcp__supabase__*
19
- - mcp__sequential-thinking__sequentialthinking
20
- - mcp__context7__*
17
+ # Optional MCP tools (enhanced functionality if available)
18
+ # - mcp__chrome-devtools__* (browser testing)
19
+ # - mcp__sequential-thinking__* (complex reasoning)
20
+ # - mcp__context7__* (library documentation)
21
21
  - Bash(gh issue view:*)
22
22
  - Bash(gh issue comment:*)
23
23
  - Bash(gh issue edit:*)
@@ -290,20 +290,19 @@ Post completion comment to issue with:
290
290
 
291
291
  ### 5.3 Merge Workflow (Correct Order)
292
292
 
293
- **IMPORTANT:** Clean up worktree BEFORE merging to avoid "branch used by worktree" error.
293
+ **IMPORTANT:** Merge the PR first, then clean up the worktree.
294
294
 
295
295
  ```bash
296
- # 1. Clean up worktree FIRST (removes worktree + local branch)
297
- ./scripts/dev/cleanup-worktree.sh feature/<issue-number>-*
298
-
299
- # 2. THEN merge (--delete-branch now works since local branch is gone)
296
+ # 1. Merge PR (--delete-branch deletes remote; local deletion will fail but that's OK)
300
297
  gh pr merge <N> --squash --delete-branch
301
298
 
302
- # 3. Close issue (if not auto-closed by "Fixes #N" in commit)
303
- gh issue close <issue-number>
299
+ # 2. Clean up worktree (removes local worktree + branch)
300
+ ./scripts/dev/cleanup-worktree.sh feature/<issue-number>-*
301
+
302
+ # 3. Issue auto-closes if commit message contains "Fixes #N"
304
303
  ```
305
304
 
306
- **Why this order matters:** `gh pr merge --delete-branch` tries to delete the local branch, which fails if a worktree is still using it. Always clean up the worktree first.
305
+ **Why this order matters:** The cleanup script checks if the PR is merged before proceeding. The `--delete-branch` flag will fail to delete the local branch (worktree conflict) but successfully deletes the remote branch. The cleanup script then handles the local branch removal.
307
306
 
308
307
  ## Iteration Tracking
309
308
 
@@ -468,12 +467,31 @@ npx tsx scripts/dev/analyze-hook-logs.ts --tests
468
467
  /fullsolve 218 --max-iterations 5
469
468
  ```
470
469
 
471
- ## Integration with Batch Automation
470
+ ## Batch Processing
472
471
 
473
- For batch automation, `execute-issues.ts` can use fullsolve mode:
472
+ For multiple issues, run `/fullsolve` on each sequentially:
474
473
 
475
474
  ```bash
476
- FULLSOLVE=true npx tsx --env-file=.env.local scripts/dev/execute-issues.ts 218 219 220
475
+ # Process multiple issues one at a time
476
+ /fullsolve 218
477
+ /fullsolve 219
478
+ /fullsolve 220
477
479
  ```
478
480
 
479
- This runs `/fullsolve` for each issue with integrated quality loops.
481
+ Each issue gets its own worktree, PR, and quality validation.
482
+
483
+ ---
484
+
485
+ ## Output Verification
486
+
487
+ **Before responding, verify your output includes ALL of these:**
488
+
489
+ - [ ] **Progress Table** - Phase, iterations, and status for each phase
490
+ - [ ] **AC Coverage** - Each AC marked MET/PARTIALLY_MET/NOT_MET
491
+ - [ ] **Quality Metrics** - Tests passed, build status, type issues
492
+ - [ ] **Iteration Summary** - Test loop and QA loop iteration counts
493
+ - [ ] **Final Verdict** - READY_FOR_MERGE, AC_MET_BUT_NOT_A_PLUS, or AC_NOT_MET
494
+ - [ ] **PR Link** - Pull request URL (if created)
495
+ - [ ] **Final GitHub Comment** - Summary posted to issue
496
+
497
+ **DO NOT respond until all items are verified.**
@@ -13,8 +13,8 @@ allowed-tools:
13
13
  - Grep
14
14
  - Bash
15
15
  - TodoWrite
16
- - mcp__chrome-devtools__*
17
- - mcp__supabase__*
16
+ # Optional MCP tools (enhanced functionality if available)
17
+ # - mcp__chrome-devtools__* (browser testing)
18
18
  - Bash(gh issue view:*)
19
19
  - Bash(gh issue comment:*)
20
20
  - Bash(npm test:*)
@@ -212,10 +212,13 @@ For each iteration, output:
212
212
  /qa 218 # Final QA - READY_FOR_MERGE
213
213
  ```
214
214
 
215
- **Automated usage (execute-issues.ts):**
215
+ **Automated workflow:**
216
216
  ```bash
217
- QUALITY_LOOP=true npx tsx --env-file=.env.local scripts/dev/execute-issues.ts 218
218
- # Phases: spec → testgen → exec test → (loop if needed) → qa → (loop if needed)
217
+ /spec 218 # Plan
218
+ /exec 218 # Implement
219
+ /test 218 # Test - finds issues
220
+ /loop 218 # Fix issues, re-test
221
+ /qa 218 # Final QA
219
222
  ```
220
223
 
221
224
  ## Example Log Parsing
@@ -308,3 +311,17 @@ Please run /exec <N> first to create the worktree.
308
311
  **Max iterations:** 3 (prevents infinite loops)
309
312
  **Re-validation after each fix:** Required
310
313
  **GitHub comment:** Posted after loop completion
314
+
315
+ ---
316
+
317
+ ## Output Verification
318
+
319
+ **Before responding, verify your output includes ALL of these:**
320
+
321
+ - [ ] **Iteration Progress** - Current iteration X/3
322
+ - [ ] **Issues from Previous Phase** - List of issues being fixed
323
+ - [ ] **Fixes Applied** - Each fix with file:line location
324
+ - [ ] **Re-validation Results** - Tests/build/AC status after fixes
325
+ - [ ] **Final Status** - FIXED, NEEDS_MORE_WORK, or MAX_ITERATIONS_REACHED
326
+
327
+ **DO NOT respond until all items are verified.**
@@ -41,6 +41,25 @@ Invocation:
41
41
  - `/qa 123`: Treat `123` as the GitHub issue/PR identifier in context.
42
42
  - `/qa <freeform description>`: Treat the text as context about the change to review.
43
43
 
44
+ ### Pre-flight Sync Check
45
+
46
+ Before starting QA, verify the local branch is in sync with remote:
47
+
48
+ ```bash
49
+ git fetch origin 2>/dev/null || echo "Network unavailable - proceeding with local state"
50
+ git status -sb | head -1 # Shows ahead/behind status
51
+ ```
52
+
53
+ **Status interpretation:**
54
+ - `[ahead N]` - Local has commits not on remote (OK to proceed)
55
+ - `[behind N]` - Remote has commits not pulled locally (recommend sync first)
56
+ - `[ahead N, behind M]` - Branches diverged (recommend sync before QA)
57
+
58
+ If diverged, recommend:
59
+ ```bash
60
+ git pull origin main # Or merge origin/main if pull fails
61
+ ```
62
+
44
63
  ### Feature Worktree Workflow
45
64
 
46
65
  **QA Phase:** Review code in the feature worktree.
@@ -119,11 +138,10 @@ admin_modified=$(git diff main...HEAD --name-only | grep -E "^app/admin/" | head
119
138
 
120
139
  See [quality-gates.md](references/quality-gates.md) for detailed verdict synthesis.
121
140
 
122
- ### Using MCP Tools
141
+ ### Using MCP Tools (Optional)
123
142
 
124
143
  - **Sequential Thinking:** For complex multi-step analysis
125
- - **Context7:** For broader pattern context
126
- - **Supabase MCP:** For database-related code verification
144
+ - **Context7:** For broader pattern context and library documentation
127
145
 
128
146
  ### 1. Context and AC Alignment
129
147
 
@@ -252,10 +270,77 @@ fi
252
270
  # QA detects scripts/ changes
253
271
  # -> Prompt: "Run /verify before READY_FOR_MERGE"
254
272
 
255
- /verify 558 --command "npx tsx scripts/dev/execute-issues.ts 535 --phases spec"
273
+ /verify 558 --command "npx tsx scripts/migrate.ts --dry-run"
256
274
 
257
275
  # Human confirms output looks correct
258
276
  # -> /verify posts evidence to issue
259
277
 
260
278
  /qa 558 # Re-run, now sees verification, can give READY_FOR_MERGE
261
279
  ```
280
+
281
+ ---
282
+
283
+ ## Output Verification
284
+
285
+ **Before responding, verify your output includes ALL of these:**
286
+
287
+ - [ ] **AC Coverage** - Each AC item marked as MET, PARTIALLY_MET, or NOT_MET
288
+ - [ ] **Verdict** - One of: READY_FOR_MERGE, AC_MET_BUT_NOT_A_PLUS, AC_NOT_MET
289
+ - [ ] **Quality Metrics** - Type issues, deleted tests, files changed, additions/deletions
290
+ - [ ] **Code Review Findings** - Strengths, issues, suggestions
291
+ - [ ] **Next Steps** - Clear, actionable recommendations
292
+
293
+ **DO NOT respond until all items are verified.**
294
+
295
+ ## Output Template
296
+
297
+ You MUST include these sections:
298
+
299
+ ```markdown
300
+ ## QA Review for Issue #<N>
301
+
302
+ ### AC Coverage
303
+
304
+ | AC | Description | Status | Notes |
305
+ |----|-------------|--------|-------|
306
+ | AC-1 | [description] | MET/PARTIALLY_MET/NOT_MET | [explanation] |
307
+ | AC-2 | [description] | MET/PARTIALLY_MET/NOT_MET | [explanation] |
308
+
309
+ **Coverage:** X/Y AC items fully met
310
+
311
+ ---
312
+
313
+ ### Quality Metrics
314
+
315
+ | Metric | Value | Status |
316
+ |--------|-------|--------|
317
+ | Type issues (`any`) | X | OK/WARN |
318
+ | Deleted tests | X | OK/WARN |
319
+ | Files changed | X | OK/WARN |
320
+ | Lines added | +X | - |
321
+ | Lines deleted | -X | - |
322
+
323
+ ---
324
+
325
+ ### Code Review
326
+
327
+ **Strengths:**
328
+ - [Positive findings]
329
+
330
+ **Issues:**
331
+ - [Problems found]
332
+
333
+ **Suggestions:**
334
+ - [Improvements recommended]
335
+
336
+ ---
337
+
338
+ ### Verdict: [READY_FOR_MERGE | AC_MET_BUT_NOT_A_PLUS | AC_NOT_MET]
339
+
340
+ [Explanation of verdict]
341
+
342
+ ### Next Steps
343
+
344
+ 1. [Action item 1]
345
+ 2. [Action item 2]
346
+ ```