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.
- package/README.md +12 -8
- package/dist/bin/cli.js +12 -0
- package/dist/bin/cli.js.map +1 -1
- package/dist/src/commands/doctor.d.ts.map +1 -1
- package/dist/src/commands/doctor.js +46 -0
- package/dist/src/commands/doctor.js.map +1 -1
- package/dist/src/commands/doctor.test.d.ts +2 -0
- package/dist/src/commands/doctor.test.d.ts.map +1 -0
- package/dist/src/commands/doctor.test.js +140 -0
- package/dist/src/commands/doctor.test.js.map +1 -0
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +45 -2
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/init.test.d.ts +2 -0
- package/dist/src/commands/init.test.d.ts.map +1 -0
- package/dist/src/commands/init.test.js +152 -0
- package/dist/src/commands/init.test.js.map +1 -0
- package/dist/src/commands/logs.d.ts +18 -0
- package/dist/src/commands/logs.d.ts.map +1 -0
- package/dist/src/commands/logs.js +188 -0
- package/dist/src/commands/logs.js.map +1 -0
- package/dist/src/commands/run.d.ts +2 -0
- package/dist/src/commands/run.d.ts.map +1 -1
- package/dist/src/commands/run.js +114 -29
- package/dist/src/commands/run.js.map +1 -1
- package/dist/src/lib/stacks.d.ts.map +1 -1
- package/dist/src/lib/stacks.js +39 -0
- package/dist/src/lib/stacks.js.map +1 -1
- package/dist/src/lib/stacks.test.d.ts +2 -0
- package/dist/src/lib/stacks.test.d.ts.map +1 -0
- package/dist/src/lib/stacks.test.js +145 -0
- package/dist/src/lib/stacks.test.js.map +1 -0
- package/dist/src/lib/system.d.ts +16 -0
- package/dist/src/lib/system.d.ts.map +1 -0
- package/dist/src/lib/system.js +52 -0
- package/dist/src/lib/system.js.map +1 -0
- package/dist/src/lib/system.test.d.ts +2 -0
- package/dist/src/lib/system.test.d.ts.map +1 -0
- package/dist/src/lib/system.test.js +80 -0
- package/dist/src/lib/system.test.js.map +1 -0
- package/dist/src/lib/workflow/log-writer.d.ts +83 -0
- package/dist/src/lib/workflow/log-writer.d.ts.map +1 -0
- package/dist/src/lib/workflow/log-writer.js +193 -0
- package/dist/src/lib/workflow/log-writer.js.map +1 -0
- package/dist/src/lib/workflow/run-log-schema.d.ts +261 -0
- package/dist/src/lib/workflow/run-log-schema.d.ts.map +1 -0
- package/dist/src/lib/workflow/run-log-schema.js +234 -0
- package/dist/src/lib/workflow/run-log-schema.js.map +1 -0
- package/package.json +6 -4
- package/stacks/astro.yaml +35 -0
- package/templates/hooks/post-tool.sh +0 -11
- package/templates/hooks/pre-tool.sh +2 -2
- package/templates/memory/constitution.md +8 -0
- package/templates/scripts/cleanup-worktree.sh +1 -1
- package/templates/scripts/new-feature.sh +7 -5
- package/templates/skills/assess/SKILL.md +31 -16
- package/templates/skills/clean/SKILL.md +17 -2
- package/templates/skills/docs/SKILL.md +48 -34
- package/templates/skills/exec/SKILL.md +31 -25
- package/templates/skills/fullsolve/SKILL.md +34 -16
- package/templates/skills/loop/SKILL.md +22 -5
- package/templates/skills/qa/SKILL.md +89 -4
- package/templates/skills/qa/references/code-quality-exemplars.md +23 -28
- package/templates/skills/qa/references/code-review-checklist.md +6 -17
- package/templates/skills/qa/scripts/quality-checks.sh +4 -17
- package/templates/skills/reflect/SKILL.md +18 -2
- package/templates/skills/reflect/references/documentation-tiers.md +3 -3
- package/templates/skills/security-review/SKILL.md +15 -0
- package/templates/skills/security-review/references/security-checklists.md +10 -8
- package/templates/skills/solve/SKILL.md +147 -149
- package/templates/skills/spec/SKILL.md +61 -3
- package/templates/skills/spec/references/parallel-groups.md +1 -1
- package/templates/skills/spec/references/verification-criteria.md +1 -1
- package/templates/skills/test/SKILL.md +20 -5
- package/templates/skills/testgen/SKILL.md +15 -1
- package/templates/skills/verify/SKILL.md +20 -5
- 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
|
-
-
|
|
298
|
-
-
|
|
299
|
-
-
|
|
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
|
-
-
|
|
303
|
-
-
|
|
302
|
+
- Reference similar features in the codebase
|
|
303
|
+
- Point to reusable patterns
|
|
304
304
|
|
|
305
305
|
**Potential Risks:**
|
|
306
|
-
-
|
|
307
|
-
-
|
|
308
|
-
-
|
|
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
|
|
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:
|
|
353
|
-
- AC-2: Handle edge cases (
|
|
354
|
-
- AC-3:
|
|
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-
|
|
360
|
-
- [x] Worktree: ../worktrees/feature/145-
|
|
361
|
-
- [x] Modified: lib/utils/
|
|
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 (
|
|
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
|
|
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
|
|
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
|
|
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
|
|
162
|
-
- NOT: "The `
|
|
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 →
|
|
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
|
|
180
|
-
- NOT: "Use the approve button
|
|
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
|
-
- `
|
|
190
|
+
- `review-queue.md` - For review admin page
|
|
191
191
|
- `bulk-edit-operations.md` - For bulk editing feature
|
|
192
|
-
- `
|
|
193
|
-
- `feature-gallery.md` - For
|
|
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
|
|
275
|
+
### Adding a New Item
|
|
276
276
|
|
|
277
|
-
1. Navigate to Admin →
|
|
278
|
-
2. Click the "Add
|
|
279
|
-
3. Complete the
|
|
280
|
-
- **
|
|
281
|
-
- **
|
|
282
|
-
- **
|
|
283
|
-
|
|
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
|
|
285
|
+
### Editing an Existing Item
|
|
287
286
|
|
|
288
|
-
1. Navigate to Admin →
|
|
289
|
-
2. Click on the
|
|
290
|
-
3. Click "Edit" in the
|
|
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 |
|
|
299
|
-
|
|
|
300
|
-
|
|
|
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
|
-
###
|
|
303
|
+
### Publish an Item
|
|
305
304
|
|
|
306
|
-
1. Add
|
|
307
|
-
2.
|
|
308
|
-
3.
|
|
309
|
-
4.
|
|
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
|
-
###
|
|
312
|
+
### Item doesn't appear on page
|
|
315
313
|
|
|
316
|
-
**Symptoms:**
|
|
314
|
+
**Symptoms:** Item was added but doesn't show
|
|
317
315
|
|
|
318
|
-
**Solution:** Check
|
|
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
|
|
37
|
-
-
|
|
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
|
|
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
|
|
150
|
+
### Using Optional MCP Tools
|
|
155
151
|
|
|
156
|
-
|
|
152
|
+
If available, these MCP tools can enhance implementation:
|
|
157
153
|
|
|
158
|
-
**
|
|
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
|
-
-
|
|
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
|
-
**
|
|
172
|
-
-
|
|
173
|
-
-
|
|
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
|
|
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
|
-
|
|
18
|
-
-
|
|
19
|
-
- mcp__sequential-
|
|
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:**
|
|
293
|
+
**IMPORTANT:** Merge the PR first, then clean up the worktree.
|
|
294
294
|
|
|
295
295
|
```bash
|
|
296
|
-
# 1.
|
|
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
|
-
#
|
|
303
|
-
|
|
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:**
|
|
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
|
-
##
|
|
470
|
+
## Batch Processing
|
|
472
471
|
|
|
473
|
-
For
|
|
472
|
+
For multiple issues, run `/fullsolve` on each sequentially:
|
|
474
473
|
|
|
475
474
|
```bash
|
|
476
|
-
|
|
475
|
+
# Process multiple issues one at a time
|
|
476
|
+
/fullsolve 218
|
|
477
|
+
/fullsolve 219
|
|
478
|
+
/fullsolve 220
|
|
477
479
|
```
|
|
478
480
|
|
|
479
|
-
|
|
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
|
-
|
|
17
|
-
-
|
|
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
|
|
215
|
+
**Automated workflow:**
|
|
216
216
|
```bash
|
|
217
|
-
|
|
218
|
-
|
|
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/
|
|
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
|
+
```
|