@nextsparkjs/ai-workflow 0.1.0-beta.86
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/LICENSE +21 -0
- package/README.md +86 -0
- package/claude/_docs/workflows-optimizations.md +359 -0
- package/claude/agents/api-tester.md +636 -0
- package/claude/agents/architecture-supervisor.md +1381 -0
- package/claude/agents/backend-developer.md +1021 -0
- package/claude/agents/backend-validator.md +417 -0
- package/claude/agents/bdd-docs-writer.md +737 -0
- package/claude/agents/block-developer.md +677 -0
- package/claude/agents/code-reviewer.md +1460 -0
- package/claude/agents/db-developer.md +721 -0
- package/claude/agents/db-validator.md +407 -0
- package/claude/agents/demo-video-generator.md +493 -0
- package/claude/agents/documentation-writer.md +1291 -0
- package/claude/agents/frontend-developer.md +1259 -0
- package/claude/agents/frontend-validator.md +777 -0
- package/claude/agents/functional-validator.md +630 -0
- package/claude/agents/mock-analyst.md +387 -0
- package/claude/agents/product-manager.md +971 -0
- package/claude/agents/qa-automation.md +1762 -0
- package/claude/agents/release-manager.md +634 -0
- package/claude/agents/selectors-translator.md +262 -0
- package/claude/agents/unit-test-writer.md +785 -0
- package/claude/agents/visual-comparator.md +329 -0
- package/claude/agents/workflow-maintainer.md +373 -0
- package/claude/commands/do/README.md +88 -0
- package/claude/commands/do/create-api.md +64 -0
- package/claude/commands/do/create-entity.md +66 -0
- package/claude/commands/do/create-migration.md +64 -0
- package/claude/commands/do/create-plugin.md +56 -0
- package/claude/commands/do/create-theme.md +70 -0
- package/claude/commands/do/mock-data.md +67 -0
- package/claude/commands/do/reset-db.md +71 -0
- package/claude/commands/do/setup-scheduled-action.md +75 -0
- package/claude/commands/do/sync-code-review.md +117 -0
- package/claude/commands/do/update-selectors.md +112 -0
- package/claude/commands/do/use-skills.md +90 -0
- package/claude/commands/do/validate-blocks.md +69 -0
- package/claude/commands/how-to/README.md +261 -0
- package/claude/commands/how-to/add-metadata.md +692 -0
- package/claude/commands/how-to/add-taxonomies.md +806 -0
- package/claude/commands/how-to/add-translations.md +571 -0
- package/claude/commands/how-to/create-api.md +577 -0
- package/claude/commands/how-to/create-block.md +575 -0
- package/claude/commands/how-to/create-child-entities.md +771 -0
- package/claude/commands/how-to/create-entity.md +597 -0
- package/claude/commands/how-to/create-migrations.md +605 -0
- package/claude/commands/how-to/create-plugin.md +654 -0
- package/claude/commands/how-to/customize-app.md +481 -0
- package/claude/commands/how-to/customize-dashboard.md +553 -0
- package/claude/commands/how-to/customize-theme.md +438 -0
- package/claude/commands/how-to/define-features-flows.md +632 -0
- package/claude/commands/how-to/deploy.md +507 -0
- package/claude/commands/how-to/handle-file-uploads.md +681 -0
- package/claude/commands/how-to/implement-search.md +1001 -0
- package/claude/commands/how-to/install-plugins.md +352 -0
- package/claude/commands/how-to/manage-test-coverage.md +984 -0
- package/claude/commands/how-to/run-tests.md +400 -0
- package/claude/commands/how-to/set-app-languages.md +601 -0
- package/claude/commands/how-to/set-plans-and-permissions.md +575 -0
- package/claude/commands/how-to/set-scheduled-actions.md +527 -0
- package/claude/commands/how-to/set-user-roles-and-permissions.md +550 -0
- package/claude/commands/how-to/setup-authentication.md +388 -0
- package/claude/commands/how-to/setup-claude-code.md +512 -0
- package/claude/commands/how-to/setup-database.md +274 -0
- package/claude/commands/how-to/setup-email-providers.md +598 -0
- package/claude/commands/how-to/setup-mobile-dev.md +627 -0
- package/claude/commands/how-to/start.md +455 -0
- package/claude/commands/how-to/use-devtools.md +639 -0
- package/claude/commands/how-to/use-superadmin.md +622 -0
- package/claude/commands/session/README.md +193 -0
- package/claude/commands/session/block-create.md +190 -0
- package/claude/commands/session/block-list.md +203 -0
- package/claude/commands/session/block-update.md +192 -0
- package/claude/commands/session/block-validate.md +218 -0
- package/claude/commands/session/close.md +146 -0
- package/claude/commands/session/commit.md +174 -0
- package/claude/commands/session/db-entity.md +206 -0
- package/claude/commands/session/db-fix.md +212 -0
- package/claude/commands/session/db-sample.md +206 -0
- package/claude/commands/session/demo.md +178 -0
- package/claude/commands/session/doc-bdd.md +207 -0
- package/claude/commands/session/doc-feature.md +218 -0
- package/claude/commands/session/doc-read.md +225 -0
- package/claude/commands/session/execute.md +204 -0
- package/claude/commands/session/explain.md +202 -0
- package/claude/commands/session/fix-bug.md +210 -0
- package/claude/commands/session/fix-build.md +182 -0
- package/claude/commands/session/fix-test.md +189 -0
- package/claude/commands/session/pending.md +232 -0
- package/claude/commands/session/refine.md +188 -0
- package/claude/commands/session/resume.md +192 -0
- package/claude/commands/session/review.md +192 -0
- package/claude/commands/session/scope-change.md +181 -0
- package/claude/commands/session/start-blocks.md +347 -0
- package/claude/commands/session/start.md +476 -0
- package/claude/commands/session/status.md +169 -0
- package/claude/commands/session/test-fix.md +221 -0
- package/claude/commands/session/test-run.md +203 -0
- package/claude/commands/session/test-write.md +242 -0
- package/claude/commands/session/validate.md +162 -0
- package/claude/config/context.json +54 -0
- package/claude/config/github.json +69 -0
- package/claude/config/github.schema.json +106 -0
- package/claude/config/team.json +46 -0
- package/claude/config/team.schema.json +106 -0
- package/claude/config/workspace.json +49 -0
- package/claude/config/workspace.schema.json +64 -0
- package/claude/scripts/.gitkeep +0 -0
- package/claude/sessions/.gitkeep +0 -0
- package/claude/skills/README.md +228 -0
- package/claude/skills/accessibility/SKILL.md +573 -0
- package/claude/skills/api-bypass-layers/SKILL.md +550 -0
- package/claude/skills/asana-integration/SKILL.md +499 -0
- package/claude/skills/better-auth/SKILL.md +666 -0
- package/claude/skills/billing-subscriptions/SKILL.md +660 -0
- package/claude/skills/block-decision-matrix/SKILL.md +359 -0
- package/claude/skills/clickup-integration/SKILL.md +434 -0
- package/claude/skills/core-theme-responsibilities/SKILL.md +485 -0
- package/claude/skills/create-plugin/SKILL.md +425 -0
- package/claude/skills/create-theme/SKILL.md +331 -0
- package/claude/skills/cypress-api/SKILL.md +511 -0
- package/claude/skills/cypress-api/scripts/generate-api-controller.py +329 -0
- package/claude/skills/cypress-api/scripts/generate-api-test.py +930 -0
- package/claude/skills/cypress-e2e/SKILL.md +526 -0
- package/claude/skills/cypress-e2e/scripts/extract-selectors.py +383 -0
- package/claude/skills/cypress-e2e/scripts/generate-uat-test.py +788 -0
- package/claude/skills/cypress-selectors/SKILL.md +309 -0
- package/claude/skills/cypress-selectors/scripts/extract-missing.py +243 -0
- package/claude/skills/cypress-selectors/scripts/generate-block-selectors.py +283 -0
- package/claude/skills/cypress-selectors/scripts/validate-selectors.py +145 -0
- package/claude/skills/database-migrations/SKILL.md +335 -0
- package/claude/skills/database-migrations/scripts/generate-sample-data.py +284 -0
- package/claude/skills/database-migrations/scripts/validate-migration.py +323 -0
- package/claude/skills/design-system/SKILL.md +682 -0
- package/claude/skills/documentation/SKILL.md +540 -0
- package/claude/skills/entity-api/SKILL.md +482 -0
- package/claude/skills/entity-system/SKILL.md +635 -0
- package/claude/skills/entity-system/scripts/generate-child-migration.py +298 -0
- package/claude/skills/entity-system/scripts/generate-metas-migration.py +233 -0
- package/claude/skills/entity-system/scripts/generate-migration.py +382 -0
- package/claude/skills/entity-system/scripts/generate-sample-data.py +418 -0
- package/claude/skills/entity-system/scripts/scaffold-entity.py +661 -0
- package/claude/skills/github/SKILL.md +467 -0
- package/claude/skills/i18n-nextintl/SKILL.md +302 -0
- package/claude/skills/i18n-nextintl/scripts/add-translation.py +243 -0
- package/claude/skills/i18n-nextintl/scripts/extract-hardcoded.py +246 -0
- package/claude/skills/i18n-nextintl/scripts/validate-translations.py +260 -0
- package/claude/skills/impact-analysis/SKILL.md +203 -0
- package/claude/skills/jest-unit/SKILL.md +306 -0
- package/claude/skills/jest-unit/references/component-testing.md +371 -0
- package/claude/skills/jest-unit/references/mocking-patterns.md +380 -0
- package/claude/skills/jest-unit/references/service-hook-testing.md +454 -0
- package/claude/skills/jira-integration/SKILL.md +539 -0
- package/claude/skills/mock-analysis/SKILL.md +276 -0
- package/claude/skills/monorepo-architecture/SKILL.md +162 -0
- package/claude/skills/nextjs-api-development/SKILL.md +364 -0
- package/claude/skills/nextjs-api-development/scripts/generate-crud-tests.py +456 -0
- package/claude/skills/nextjs-api-development/scripts/scaffold-endpoint.py +481 -0
- package/claude/skills/nextjs-api-development/scripts/validate-api.py +283 -0
- package/claude/skills/notion-integration/SKILL.md +641 -0
- package/claude/skills/npm-development-workflow/SKILL.md +480 -0
- package/claude/skills/page-builder-blocks/SKILL.md +483 -0
- package/claude/skills/page-builder-blocks/scripts/scaffold-block.py +444 -0
- package/claude/skills/permissions-system/SKILL.md +619 -0
- package/claude/skills/plugins/SKILL.md +340 -0
- package/claude/skills/plugins/references/plugin-templates.md +414 -0
- package/claude/skills/plugins/references/plugin-testing.md +353 -0
- package/claude/skills/plugins/references/plugin-types.md +198 -0
- package/claude/skills/plugins/scripts/scaffold-plugin.py +443 -0
- package/claude/skills/pom-patterns/SKILL.md +452 -0
- package/claude/skills/pom-patterns/scripts/generate-pom.py +392 -0
- package/claude/skills/rate-limiting/SKILL.md +342 -0
- package/claude/skills/react-best-practices/AGENTS.md +2410 -0
- package/claude/skills/react-best-practices/README.md +123 -0
- package/claude/skills/react-best-practices/SKILL.md +125 -0
- package/claude/skills/react-best-practices/metadata.json +15 -0
- package/claude/skills/react-best-practices/rules/_sections.md +46 -0
- package/claude/skills/react-best-practices/rules/_template.md +28 -0
- package/claude/skills/react-best-practices/rules/advanced-event-handler-refs.md +55 -0
- package/claude/skills/react-best-practices/rules/advanced-use-latest.md +49 -0
- package/claude/skills/react-best-practices/rules/async-api-routes.md +38 -0
- package/claude/skills/react-best-practices/rules/async-defer-await.md +80 -0
- package/claude/skills/react-best-practices/rules/async-dependencies.md +36 -0
- package/claude/skills/react-best-practices/rules/async-parallel.md +28 -0
- package/claude/skills/react-best-practices/rules/async-suspense-boundaries.md +99 -0
- package/claude/skills/react-best-practices/rules/bundle-barrel-imports.md +59 -0
- package/claude/skills/react-best-practices/rules/bundle-conditional.md +31 -0
- package/claude/skills/react-best-practices/rules/bundle-defer-third-party.md +49 -0
- package/claude/skills/react-best-practices/rules/bundle-dynamic-imports.md +35 -0
- package/claude/skills/react-best-practices/rules/bundle-preload.md +50 -0
- package/claude/skills/react-best-practices/rules/client-event-listeners.md +74 -0
- package/claude/skills/react-best-practices/rules/client-localstorage-schema.md +71 -0
- package/claude/skills/react-best-practices/rules/client-passive-event-listeners.md +48 -0
- package/claude/skills/react-best-practices/rules/client-swr-dedup.md +56 -0
- package/claude/skills/react-best-practices/rules/js-batch-dom-css.md +82 -0
- package/claude/skills/react-best-practices/rules/js-cache-function-results.md +80 -0
- package/claude/skills/react-best-practices/rules/js-cache-property-access.md +28 -0
- package/claude/skills/react-best-practices/rules/js-cache-storage.md +70 -0
- package/claude/skills/react-best-practices/rules/js-combine-iterations.md +32 -0
- package/claude/skills/react-best-practices/rules/js-early-exit.md +50 -0
- package/claude/skills/react-best-practices/rules/js-hoist-regexp.md +45 -0
- package/claude/skills/react-best-practices/rules/js-index-maps.md +37 -0
- package/claude/skills/react-best-practices/rules/js-length-check-first.md +49 -0
- package/claude/skills/react-best-practices/rules/js-min-max-loop.md +82 -0
- package/claude/skills/react-best-practices/rules/js-set-map-lookups.md +24 -0
- package/claude/skills/react-best-practices/rules/js-tosorted-immutable.md +57 -0
- package/claude/skills/react-best-practices/rules/rendering-activity.md +26 -0
- package/claude/skills/react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
- package/claude/skills/react-best-practices/rules/rendering-conditional-render.md +40 -0
- package/claude/skills/react-best-practices/rules/rendering-content-visibility.md +38 -0
- package/claude/skills/react-best-practices/rules/rendering-hoist-jsx.md +46 -0
- package/claude/skills/react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
- package/claude/skills/react-best-practices/rules/rendering-svg-precision.md +28 -0
- package/claude/skills/react-best-practices/rules/rerender-defer-reads.md +39 -0
- package/claude/skills/react-best-practices/rules/rerender-dependencies.md +45 -0
- package/claude/skills/react-best-practices/rules/rerender-derived-state.md +29 -0
- package/claude/skills/react-best-practices/rules/rerender-functional-setstate.md +74 -0
- package/claude/skills/react-best-practices/rules/rerender-lazy-state-init.md +58 -0
- package/claude/skills/react-best-practices/rules/rerender-memo.md +44 -0
- package/claude/skills/react-best-practices/rules/rerender-transitions.md +40 -0
- package/claude/skills/react-best-practices/rules/server-after-nonblocking.md +73 -0
- package/claude/skills/react-best-practices/rules/server-cache-lru.md +41 -0
- package/claude/skills/react-best-practices/rules/server-cache-react.md +76 -0
- package/claude/skills/react-best-practices/rules/server-parallel-fetching.md +83 -0
- package/claude/skills/react-best-practices/rules/server-serialization.md +38 -0
- package/claude/skills/react-patterns/SKILL.md +677 -0
- package/claude/skills/registry-system/SKILL.md +331 -0
- package/claude/skills/scheduled-actions/SKILL.md +431 -0
- package/claude/skills/scope-enforcement/SKILL.md +542 -0
- package/claude/skills/scope-enforcement/scripts/validate-scope.py +357 -0
- package/claude/skills/server-actions/SKILL.md +493 -0
- package/claude/skills/service-layer/SKILL.md +587 -0
- package/claude/skills/session-management/SKILL.md +266 -0
- package/claude/skills/session-management/scripts/create-session.py +166 -0
- package/claude/skills/session-management/scripts/iteration-close.sh +105 -0
- package/claude/skills/session-management/scripts/iteration-init.sh +180 -0
- package/claude/skills/session-management/scripts/session-archive.sh +87 -0
- package/claude/skills/session-management/scripts/session-close.sh +133 -0
- package/claude/skills/session-management/scripts/session-init.sh +225 -0
- package/claude/skills/session-management/scripts/session-list.sh +163 -0
- package/claude/skills/session-management/scripts/split-plan.sh +116 -0
- package/claude/skills/shadcn-components/SKILL.md +586 -0
- package/claude/skills/shadcn-theming/SKILL.md +446 -0
- package/claude/skills/suspense-loading/SKILL.md +280 -0
- package/claude/skills/tailwind-theming/SKILL.md +479 -0
- package/claude/skills/tanstack-query/SKILL.md +608 -0
- package/claude/skills/test-coverage/SKILL.md +239 -0
- package/claude/skills/web-design-guidelines/SKILL.md +39 -0
- package/claude/skills/zod-validation/SKILL.md +537 -0
- package/claude/templates/blocks/progress.md +86 -0
- package/claude/templates/iteration/changes.md +61 -0
- package/claude/templates/iteration/progress.md +55 -0
- package/claude/templates/log.md +31 -0
- package/claude/templates/story/context.md +77 -0
- package/claude/templates/story/pendings.md +37 -0
- package/claude/templates/story/plan.md +299 -0
- package/claude/templates/story/requirements.md +109 -0
- package/claude/templates/story/scope.json +10 -0
- package/claude/templates/story/tests.md +91 -0
- package/claude/templates/task/progress.md +58 -0
- package/claude/templates/task/requirements.md +54 -0
- package/claude/workflows/README.md +154 -0
- package/claude/workflows/blocks.md +614 -0
- package/claude/workflows/story.md +1207 -0
- package/claude/workflows/task.md +927 -0
- package/claude/workflows/tweak.md +527 -0
- package/cursor/.gitkeep +0 -0
- package/package.json +34 -0
- package/scripts/setup.mjs +282 -0
- package/scripts/sync.mjs +209 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
# /session:fix:test
|
|
2
|
+
|
|
3
|
+
Fix failing tests automatically.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Syntax
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
/session:fix:test [--spec <pattern>] [--max-iterations <n>]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Behavior
|
|
16
|
+
|
|
17
|
+
Runs tests, analyzes failures, and fixes them iteratively until all pass.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Flow
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
25
|
+
│ /session:fix:test │
|
|
26
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
27
|
+
│ │
|
|
28
|
+
│ 1. Run test suite │
|
|
29
|
+
│ ↓ │
|
|
30
|
+
│ 2. Parse failures │
|
|
31
|
+
│ - Unit tests (Jest) │
|
|
32
|
+
│ - API tests (Cypress) │
|
|
33
|
+
│ - UAT tests (Cypress) │
|
|
34
|
+
│ ↓ │
|
|
35
|
+
│ 3. Analyze each failure │
|
|
36
|
+
│ - Is it test code issue? │
|
|
37
|
+
│ - Is it implementation bug? │
|
|
38
|
+
│ ↓ │
|
|
39
|
+
│ 4. Apply fix │
|
|
40
|
+
│ - Update test assertion │
|
|
41
|
+
│ - Fix implementation │
|
|
42
|
+
│ - Update selectors │
|
|
43
|
+
│ ↓ │
|
|
44
|
+
│ 5. Re-run failed tests │
|
|
45
|
+
│ │ │
|
|
46
|
+
│ ├─► Still failing: Go to step 3 │
|
|
47
|
+
│ │ │
|
|
48
|
+
│ └─► All pass: Done │
|
|
49
|
+
│ ↓ │
|
|
50
|
+
│ 6. Show summary │
|
|
51
|
+
│ │
|
|
52
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Example Output
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
🧪 FIX FAILING TESTS
|
|
61
|
+
|
|
62
|
+
─────────────────────────────────────────
|
|
63
|
+
|
|
64
|
+
📋 ITERATION 1
|
|
65
|
+
|
|
66
|
+
Running tests...
|
|
67
|
+
❌ 3 of 15 tests failing
|
|
68
|
+
|
|
69
|
+
Failures:
|
|
70
|
+
1. [Jest] ProductsService.test.ts
|
|
71
|
+
"should calculate price with discount"
|
|
72
|
+
Expected: 90, Received: 89.99
|
|
73
|
+
|
|
74
|
+
2. [Cypress API] products.cy.ts
|
|
75
|
+
"POST /products - should create product"
|
|
76
|
+
Expected status 201, got 400
|
|
77
|
+
|
|
78
|
+
3. [Cypress UAT] products.cy.ts
|
|
79
|
+
"should display product list"
|
|
80
|
+
Element [data-cy=product-row] not found
|
|
81
|
+
|
|
82
|
+
─────────────────────────────────────────
|
|
83
|
+
|
|
84
|
+
🔍 ANALYZING FAILURES
|
|
85
|
+
|
|
86
|
+
[1/3] ProductsService.test.ts - Price calculation
|
|
87
|
+
Analysis: Floating point precision issue
|
|
88
|
+
Type: Test assertion needs update
|
|
89
|
+
Fix: Use toBeCloseTo instead of toBe
|
|
90
|
+
|
|
91
|
+
[2/3] products.cy.ts - POST /products
|
|
92
|
+
Analysis: Missing required field 'categoryId'
|
|
93
|
+
Type: Test data incomplete
|
|
94
|
+
Fix: Add categoryId to test fixture
|
|
95
|
+
|
|
96
|
+
[3/3] products.cy.ts - Display list
|
|
97
|
+
Analysis: Selector changed in implementation
|
|
98
|
+
Type: Test selector outdated
|
|
99
|
+
Fix: Update from [data-cy=product-row] to [data-cy=products-row]
|
|
100
|
+
|
|
101
|
+
─────────────────────────────────────────
|
|
102
|
+
|
|
103
|
+
🔧 APPLYING FIXES
|
|
104
|
+
|
|
105
|
+
[1/3] ProductsService.test.ts
|
|
106
|
+
✓ Updated assertion to use toBeCloseTo(90, 2)
|
|
107
|
+
|
|
108
|
+
[2/3] products.cy.ts (API)
|
|
109
|
+
✓ Added categoryId to fixture
|
|
110
|
+
|
|
111
|
+
[3/3] products.cy.ts (UAT)
|
|
112
|
+
✓ Updated selector
|
|
113
|
+
|
|
114
|
+
─────────────────────────────────────────
|
|
115
|
+
|
|
116
|
+
📋 ITERATION 2
|
|
117
|
+
|
|
118
|
+
Running failed tests...
|
|
119
|
+
✓ All 3 tests now passing
|
|
120
|
+
|
|
121
|
+
Running full suite...
|
|
122
|
+
✓ 15/15 tests passing
|
|
123
|
+
|
|
124
|
+
─────────────────────────────────────────
|
|
125
|
+
|
|
126
|
+
📊 SUMMARY
|
|
127
|
+
|
|
128
|
+
Iterations: 2
|
|
129
|
+
Tests fixed: 3
|
|
130
|
+
Files modified: 2
|
|
131
|
+
- ProductsService.test.ts
|
|
132
|
+
- products.cy.ts
|
|
133
|
+
|
|
134
|
+
All tests passing.
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Test Types Handled
|
|
140
|
+
|
|
141
|
+
| Type | Runner | Fix Approach |
|
|
142
|
+
|------|--------|--------------|
|
|
143
|
+
| Unit Tests | Jest | Update assertions, fix mocks |
|
|
144
|
+
| API Tests | Cypress | Fix endpoints, update fixtures |
|
|
145
|
+
| UAT Tests | Cypress | Update selectors, fix flows |
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Fix vs Implementation Bug
|
|
150
|
+
|
|
151
|
+
```
|
|
152
|
+
🔍 FAILURE ANALYSIS
|
|
153
|
+
|
|
154
|
+
Test: "should return products for authenticated user"
|
|
155
|
+
|
|
156
|
+
Analysis:
|
|
157
|
+
This appears to be an IMPLEMENTATION BUG, not a test issue.
|
|
158
|
+
|
|
159
|
+
Evidence:
|
|
160
|
+
- Test was passing before
|
|
161
|
+
- Recent change to ProductsService
|
|
162
|
+
- Error: "Unauthorized" when should succeed
|
|
163
|
+
|
|
164
|
+
Recommended action:
|
|
165
|
+
Fix implementation in ProductsService.ts:45
|
|
166
|
+
|
|
167
|
+
Proceed with implementation fix? [Yes/Fix test instead]
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## Options
|
|
173
|
+
|
|
174
|
+
| Option | Description |
|
|
175
|
+
|--------|-------------|
|
|
176
|
+
| `--spec <pattern>` | Run specific test files |
|
|
177
|
+
| `--max-iterations <n>` | Max fix attempts (default: 5) |
|
|
178
|
+
| `--unit-only` | Only fix Jest tests |
|
|
179
|
+
| `--e2e-only` | Only fix Cypress tests |
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## Related Commands
|
|
184
|
+
|
|
185
|
+
| Command | Action |
|
|
186
|
+
|---------|--------|
|
|
187
|
+
| `/session:fix:build` | Fix build errors |
|
|
188
|
+
| `/session:fix:bug` | Fix reported bug |
|
|
189
|
+
| `/session:validate` | Full validation |
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
# /session:pending
|
|
2
|
+
|
|
3
|
+
Document pending items discovered during development.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Syntax
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
/session:pending [add|list|resolve] [description]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Behavior
|
|
16
|
+
|
|
17
|
+
Manages pending items that are discovered during implementation but are out of scope for the current session.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Flow
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
25
|
+
│ /session:pending add │
|
|
26
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
27
|
+
│ │
|
|
28
|
+
│ 1. Load session context │
|
|
29
|
+
│ ↓ │
|
|
30
|
+
│ 2. Categorize pending item │
|
|
31
|
+
│ - Bug discovered │
|
|
32
|
+
│ - Enhancement idea │
|
|
33
|
+
│ - Technical debt │
|
|
34
|
+
│ - Missing feature │
|
|
35
|
+
│ ↓ │
|
|
36
|
+
│ 3. Assess priority │
|
|
37
|
+
│ - Critical / Important / Nice-to-have │
|
|
38
|
+
│ ↓ │
|
|
39
|
+
│ 4. Add to pendings.md │
|
|
40
|
+
│ ↓ │
|
|
41
|
+
│ 5. Optionally create task in manager │
|
|
42
|
+
│ │
|
|
43
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Example: Add Pending
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
/session:pending add "Performance optimization needed for product list"
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Output:
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
📌 ADD PENDING ITEM
|
|
58
|
+
|
|
59
|
+
Session: stories/2026-01-11-new-products-entity
|
|
60
|
+
|
|
61
|
+
─────────────────────────────────────────
|
|
62
|
+
|
|
63
|
+
📝 NEW PENDING ITEM
|
|
64
|
+
|
|
65
|
+
Description: Performance optimization needed for product list
|
|
66
|
+
|
|
67
|
+
Category?
|
|
68
|
+
[1] Bug discovered
|
|
69
|
+
[2] Enhancement idea
|
|
70
|
+
[3] Technical debt
|
|
71
|
+
[4] Missing feature
|
|
72
|
+
|
|
73
|
+
> 3
|
|
74
|
+
|
|
75
|
+
Priority?
|
|
76
|
+
[1] Critical - Must fix before release
|
|
77
|
+
[2] Important - Should fix soon
|
|
78
|
+
[3] Nice-to-have - Future improvement
|
|
79
|
+
|
|
80
|
+
> 2
|
|
81
|
+
|
|
82
|
+
Additional context?
|
|
83
|
+
> List becomes slow with 100+ products, consider pagination
|
|
84
|
+
|
|
85
|
+
─────────────────────────────────────────
|
|
86
|
+
|
|
87
|
+
📄 ITEM RECORDED
|
|
88
|
+
|
|
89
|
+
```markdown
|
|
90
|
+
## P-003: Performance optimization for product list
|
|
91
|
+
|
|
92
|
+
**Category:** Technical debt
|
|
93
|
+
**Priority:** Important
|
|
94
|
+
**Discovered:** 2026-01-14
|
|
95
|
+
**Session:** new-products-entity
|
|
96
|
+
|
|
97
|
+
### Description
|
|
98
|
+
Performance optimization needed for product list.
|
|
99
|
+
List becomes slow with 100+ products.
|
|
100
|
+
|
|
101
|
+
### Suggested Action
|
|
102
|
+
Consider pagination or virtual scrolling.
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
─────────────────────────────────────────
|
|
106
|
+
|
|
107
|
+
Create task in ClickUp? [Yes/No]
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## Example: List Pending
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
/session:pending list
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Output:
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
📌 PENDING ITEMS
|
|
122
|
+
|
|
123
|
+
Session: stories/2026-01-11-new-products-entity
|
|
124
|
+
|
|
125
|
+
─────────────────────────────────────────
|
|
126
|
+
|
|
127
|
+
## Critical (0)
|
|
128
|
+
(none)
|
|
129
|
+
|
|
130
|
+
## Important (2)
|
|
131
|
+
|
|
132
|
+
P-001: Add search index for products table
|
|
133
|
+
[Technical debt] Discovered: 2026-01-12
|
|
134
|
+
|
|
135
|
+
P-003: Performance optimization for product list
|
|
136
|
+
[Technical debt] Discovered: 2026-01-14
|
|
137
|
+
|
|
138
|
+
## Nice-to-have (1)
|
|
139
|
+
|
|
140
|
+
P-002: Add bulk import for products
|
|
141
|
+
[Enhancement] Discovered: 2026-01-13
|
|
142
|
+
|
|
143
|
+
─────────────────────────────────────────
|
|
144
|
+
|
|
145
|
+
Total: 3 pending items
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## Example: Resolve Pending
|
|
151
|
+
|
|
152
|
+
```
|
|
153
|
+
/session:pending resolve P-001
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Output:
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
📌 RESOLVE PENDING
|
|
160
|
+
|
|
161
|
+
Item: P-001 - Add search index for products table
|
|
162
|
+
|
|
163
|
+
─────────────────────────────────────────
|
|
164
|
+
|
|
165
|
+
How was this resolved?
|
|
166
|
+
[1] Fixed in this session
|
|
167
|
+
[2] Fixed in another session
|
|
168
|
+
[3] Won't fix (explain why)
|
|
169
|
+
[4] Duplicate
|
|
170
|
+
|
|
171
|
+
> 1
|
|
172
|
+
|
|
173
|
+
Additional notes?
|
|
174
|
+
> Added GIN index in migration 009
|
|
175
|
+
|
|
176
|
+
─────────────────────────────────────────
|
|
177
|
+
|
|
178
|
+
✓ P-001 marked as resolved
|
|
179
|
+
Resolution: Fixed in this session
|
|
180
|
+
Notes: Added GIN index in migration 009
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## pendings.md Format
|
|
186
|
+
|
|
187
|
+
```markdown
|
|
188
|
+
# Pending Items
|
|
189
|
+
|
|
190
|
+
## Active
|
|
191
|
+
|
|
192
|
+
### P-003: Performance optimization for product list
|
|
193
|
+
- **Category:** Technical debt
|
|
194
|
+
- **Priority:** Important
|
|
195
|
+
- **Discovered:** 2026-01-14
|
|
196
|
+
- **Session:** new-products-entity
|
|
197
|
+
|
|
198
|
+
#### Description
|
|
199
|
+
List becomes slow with 100+ products.
|
|
200
|
+
|
|
201
|
+
#### Suggested Action
|
|
202
|
+
Consider pagination or virtual scrolling.
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## Resolved
|
|
207
|
+
|
|
208
|
+
### P-001: Add search index for products table
|
|
209
|
+
- **Resolved:** 2026-01-15
|
|
210
|
+
- **Resolution:** Fixed in session
|
|
211
|
+
- **Notes:** Added GIN index in migration 009
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
## Options
|
|
217
|
+
|
|
218
|
+
| Option | Description |
|
|
219
|
+
|--------|-------------|
|
|
220
|
+
| `add` | Add new pending item |
|
|
221
|
+
| `list` | List all pending items |
|
|
222
|
+
| `resolve <id>` | Mark item as resolved |
|
|
223
|
+
| `--priority <level>` | Filter by priority |
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
## Related Commands
|
|
228
|
+
|
|
229
|
+
| Command | Action |
|
|
230
|
+
|---------|--------|
|
|
231
|
+
| `/session:close` | Shows pending items summary |
|
|
232
|
+
| `/session:scope-change` | For in-scope changes |
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
# /session:refine
|
|
2
|
+
|
|
3
|
+
Refine requirements or plan before continuing execution.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Syntax
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
/session:refine [requirements|plan]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Behavior
|
|
16
|
+
|
|
17
|
+
Opens refinement mode to adjust requirements or technical plan without creating a new iteration.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## When to Use
|
|
22
|
+
|
|
23
|
+
| Situation | Action |
|
|
24
|
+
|-----------|--------|
|
|
25
|
+
| Minor clarification needed | `/session:refine requirements` |
|
|
26
|
+
| Technical approach adjustment | `/session:refine plan` |
|
|
27
|
+
| Add missing AC | `/session:refine requirements` |
|
|
28
|
+
| Change implementation detail | `/session:refine plan` |
|
|
29
|
+
|
|
30
|
+
**Note:** For major scope changes, use `/session:scope-change` instead.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Flow
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
38
|
+
│ /session:refine │
|
|
39
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
40
|
+
│ │
|
|
41
|
+
│ 1. Load current session │
|
|
42
|
+
│ ↓ │
|
|
43
|
+
│ 2. Show current state │
|
|
44
|
+
│ - requirements.md or plan.md │
|
|
45
|
+
│ ↓ │
|
|
46
|
+
│ 3. Ask for refinements │
|
|
47
|
+
│ - What needs to change? │
|
|
48
|
+
│ - Why? │
|
|
49
|
+
│ ↓ │
|
|
50
|
+
│ 4. Apply changes │
|
|
51
|
+
│ - Update file │
|
|
52
|
+
│ - Log change in progress.md │
|
|
53
|
+
│ ↓ │
|
|
54
|
+
│ 5. Show diff and confirm │
|
|
55
|
+
│ │
|
|
56
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## Example: Refine Requirements
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
/session:refine requirements
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Output:
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
📝 REFINE REQUIREMENTS
|
|
71
|
+
|
|
72
|
+
Session: stories/2026-01-11-new-products-entity
|
|
73
|
+
|
|
74
|
+
─────────────────────────────────────────
|
|
75
|
+
|
|
76
|
+
📋 CURRENT ACCEPTANCE CRITERIA
|
|
77
|
+
|
|
78
|
+
AC1: Admin can create a new product ✓
|
|
79
|
+
AC2: Admin can upload product images ✓
|
|
80
|
+
AC3: Admin can assign products to categories
|
|
81
|
+
AC4: Products are listed with pagination
|
|
82
|
+
AC5: Team members can view products
|
|
83
|
+
|
|
84
|
+
─────────────────────────────────────────
|
|
85
|
+
|
|
86
|
+
What would you like to refine?
|
|
87
|
+
> Add AC for product search functionality
|
|
88
|
+
|
|
89
|
+
─────────────────────────────────────────
|
|
90
|
+
|
|
91
|
+
📝 PROPOSED CHANGES
|
|
92
|
+
|
|
93
|
+
+ AC6: Products can be searched by name and SKU
|
|
94
|
+
|
|
95
|
+
Why this change?
|
|
96
|
+
> Client requested search feature during review
|
|
97
|
+
|
|
98
|
+
─────────────────────────────────────────
|
|
99
|
+
|
|
100
|
+
Apply these changes? [Yes/Edit/Cancel]
|
|
101
|
+
|
|
102
|
+
> Yes
|
|
103
|
+
|
|
104
|
+
✓ requirements.md updated
|
|
105
|
+
✓ Change logged in progress.md
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Example: Refine Plan
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
/session:refine plan
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Output:
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
📐 REFINE PLAN
|
|
120
|
+
|
|
121
|
+
Session: stories/2026-01-11-new-products-entity
|
|
122
|
+
|
|
123
|
+
─────────────────────────────────────────
|
|
124
|
+
|
|
125
|
+
📋 CURRENT PLAN
|
|
126
|
+
|
|
127
|
+
## Phase 2: Backend
|
|
128
|
+
- [ ] Configure entity in entities.config.ts
|
|
129
|
+
- [ ] Add translations
|
|
130
|
+
|
|
131
|
+
─────────────────────────────────────────
|
|
132
|
+
|
|
133
|
+
What would you like to refine?
|
|
134
|
+
> Need custom service for price calculation
|
|
135
|
+
|
|
136
|
+
─────────────────────────────────────────
|
|
137
|
+
|
|
138
|
+
📝 PROPOSED CHANGES
|
|
139
|
+
|
|
140
|
+
## Phase 2: Backend
|
|
141
|
+
- [ ] Configure entity in entities.config.ts
|
|
142
|
+
+ - [ ] Create ProductsService with price calculation
|
|
143
|
+
- [ ] Add translations
|
|
144
|
+
|
|
145
|
+
Estimated impact: +2 files
|
|
146
|
+
|
|
147
|
+
─────────────────────────────────────────
|
|
148
|
+
|
|
149
|
+
Apply these changes? [Yes/Edit/Cancel]
|
|
150
|
+
|
|
151
|
+
> Yes
|
|
152
|
+
|
|
153
|
+
✓ plan.md updated
|
|
154
|
+
✓ scope.json updated (2 new files)
|
|
155
|
+
✓ Change logged in progress.md
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Refinement vs Scope Change
|
|
161
|
+
|
|
162
|
+
| Refinement | Scope Change |
|
|
163
|
+
|------------|--------------|
|
|
164
|
+
| Minor clarifications | Major new requirements |
|
|
165
|
+
| Implementation details | New ACs that change scope |
|
|
166
|
+
| Same T-Shirt size | T-Shirt size increases |
|
|
167
|
+
| No new iteration | Creates new iteration |
|
|
168
|
+
| `/session:refine` | `/session:scope-change` |
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## Options
|
|
173
|
+
|
|
174
|
+
| Option | Description |
|
|
175
|
+
|--------|-------------|
|
|
176
|
+
| `requirements` | Refine requirements.md |
|
|
177
|
+
| `plan` | Refine plan.md |
|
|
178
|
+
| `--interactive` | Guided refinement mode |
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
## Related Commands
|
|
183
|
+
|
|
184
|
+
| Command | Action |
|
|
185
|
+
|---------|--------|
|
|
186
|
+
| `/session:scope-change` | For major scope changes |
|
|
187
|
+
| `/session:execute` | Continue after refinement |
|
|
188
|
+
| `/session:status` | View current state |
|