specweave 0.23.12 → 0.23.16

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 (90) hide show
  1. package/CLAUDE.md +55 -0
  2. package/dist/src/core/progress/error-logger.d.ts +58 -0
  3. package/dist/src/core/progress/error-logger.d.ts.map +1 -0
  4. package/dist/src/core/progress/error-logger.js +99 -0
  5. package/dist/src/core/progress/error-logger.js.map +1 -0
  6. package/dist/src/core/spec-detector.d.ts +5 -0
  7. package/dist/src/core/spec-detector.d.ts.map +1 -1
  8. package/dist/src/core/spec-detector.js +91 -33
  9. package/dist/src/core/spec-detector.js.map +1 -1
  10. package/package.json +1 -1
  11. package/plugins/specweave/hooks/docs-changed.sh +9 -1
  12. package/plugins/specweave/hooks/docs-changed.sh.backup +79 -0
  13. package/plugins/specweave/hooks/human-input-required.sh +9 -1
  14. package/plugins/specweave/hooks/human-input-required.sh.backup +75 -0
  15. package/plugins/specweave/hooks/post-first-increment.sh.backup +61 -0
  16. package/plugins/specweave/hooks/post-increment-change.sh +6 -1
  17. package/plugins/specweave/hooks/post-increment-change.sh.backup +98 -0
  18. package/plugins/specweave/hooks/post-increment-completion.sh +6 -1
  19. package/plugins/specweave/hooks/post-increment-completion.sh.backup +231 -0
  20. package/plugins/specweave/hooks/post-increment-planning.sh +6 -1
  21. package/plugins/specweave/hooks/post-increment-planning.sh.backup +1048 -0
  22. package/plugins/specweave/hooks/post-increment-status-change.sh +6 -1
  23. package/plugins/specweave/hooks/post-increment-status-change.sh.backup +147 -0
  24. package/plugins/specweave/hooks/post-metadata-change.sh +7 -1
  25. package/plugins/specweave/hooks/post-spec-update.sh.backup +158 -0
  26. package/plugins/specweave/hooks/post-user-story-complete.sh.backup +179 -0
  27. package/plugins/specweave/hooks/pre-command-deduplication.sh.backup +83 -0
  28. package/plugins/specweave/hooks/pre-implementation.sh +9 -1
  29. package/plugins/specweave/hooks/pre-implementation.sh.backup +67 -0
  30. package/plugins/specweave/hooks/pre-task-completion.sh +9 -1
  31. package/plugins/specweave/hooks/pre-task-completion.sh.backup +194 -0
  32. package/plugins/specweave/hooks/pre-tool-use.sh +9 -1
  33. package/plugins/specweave/hooks/pre-tool-use.sh.backup +133 -0
  34. package/plugins/specweave/hooks/user-prompt-submit.sh.backup +386 -0
  35. package/plugins/specweave-ado/hooks/post-living-docs-update.sh +9 -2
  36. package/plugins/specweave-ado/hooks/post-living-docs-update.sh.backup +353 -0
  37. package/plugins/specweave-ado/hooks/post-task-completion.sh +9 -1
  38. package/plugins/specweave-ado/hooks/post-task-completion.sh.backup +172 -0
  39. package/plugins/specweave-github/.claude-plugin/plugin.json +15 -1
  40. package/plugins/specweave-github/hooks/.specweave/logs/hooks-debug.log +16 -0
  41. package/plugins/specweave-github/hooks/post-task-completion.sh +62 -1
  42. package/plugins/specweave-github/hooks/post-task-completion.sh.backup +258 -0
  43. package/plugins/specweave-jira/hooks/post-task-completion.sh +9 -1
  44. package/plugins/specweave-jira/hooks/post-task-completion.sh.backup +172 -0
  45. package/plugins/specweave-release/hooks/.specweave/logs/dora-tracking.log +48 -0
  46. package/plugins/specweave-release/hooks/post-task-completion.sh.backup +110 -0
  47. package/plugins/specweave-alternatives/.claude-plugin/plugin.json +0 -21
  48. package/plugins/specweave-alternatives/skills/bmad-method-expert/SKILL.md +0 -626
  49. package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/analyze-project.js +0 -318
  50. package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/check-setup.js +0 -208
  51. package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/generate-template.js +0 -1149
  52. package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/validate-documents.js +0 -340
  53. package/plugins/specweave-alternatives/skills/spec-kit-expert/SKILL.md +0 -1010
  54. package/plugins/specweave-cost-optimizer/.claude-plugin/plugin.json +0 -20
  55. package/plugins/specweave-cost-optimizer/skills/cost-optimizer/SKILL.md +0 -190
  56. package/plugins/specweave-docs/.claude-plugin/plugin.json +0 -19
  57. package/plugins/specweave-docs/skills/docusaurus/SKILL.md +0 -613
  58. package/plugins/specweave-docs/skills/spec-driven-brainstorming/README.md +0 -264
  59. package/plugins/specweave-docs/skills/spec-driven-brainstorming/SKILL.md +0 -439
  60. package/plugins/specweave-docs/skills/spec-driven-debugging/README.md +0 -479
  61. package/plugins/specweave-docs/skills/spec-driven-debugging/SKILL.md +0 -652
  62. package/plugins/specweave-figma/.claude-plugin/.mcp.json +0 -12
  63. package/plugins/specweave-figma/.claude-plugin/plugin.json +0 -20
  64. package/plugins/specweave-figma/ARCHITECTURE.md +0 -453
  65. package/plugins/specweave-figma/README.md +0 -728
  66. package/plugins/specweave-figma/skills/figma-to-code/SKILL.md +0 -632
  67. package/plugins/specweave-figma/skills/figma-to-code/test-1-token-generation.yaml +0 -29
  68. package/plugins/specweave-figma/skills/figma-to-code/test-2-component-generation.yaml +0 -27
  69. package/plugins/specweave-figma/skills/figma-to-code/test-3-typescript-generation.yaml +0 -28
  70. package/plugins/specweave-frontend/.claude-plugin/plugin.json +0 -21
  71. package/plugins/specweave-frontend/skills/design-system-architect/SKILL.md +0 -107
  72. package/plugins/specweave-frontend/skills/frontend/SKILL.md +0 -177
  73. package/plugins/specweave-frontend/skills/nextjs/SKILL.md +0 -176
  74. package/plugins/specweave-testing/.claude-plugin/plugin.json +0 -20
  75. package/plugins/specweave-testing/skills/e2e-playwright/README.md +0 -506
  76. package/plugins/specweave-testing/skills/e2e-playwright/SKILL.md +0 -457
  77. package/plugins/specweave-testing/skills/e2e-playwright/execute.js +0 -373
  78. package/plugins/specweave-testing/skills/e2e-playwright/lib/utils.js +0 -514
  79. package/plugins/specweave-testing/skills/e2e-playwright/package.json +0 -33
  80. package/plugins/specweave-tooling/.claude-plugin/plugin.json +0 -19
  81. package/plugins/specweave-tooling/skills/skill-creator/LICENSE.txt +0 -202
  82. package/plugins/specweave-tooling/skills/skill-creator/SKILL.md +0 -209
  83. package/plugins/specweave-tooling/skills/skill-creator/scripts/init_skill.py +0 -303
  84. package/plugins/specweave-tooling/skills/skill-creator/scripts/package_skill.py +0 -110
  85. package/plugins/specweave-tooling/skills/skill-creator/scripts/quick_validate.py +0 -65
  86. package/plugins/specweave-tooling/skills/skill-router/SKILL.md +0 -479
  87. package/plugins/specweave-ui/.claude-plugin/plugin.json +0 -26
  88. package/plugins/specweave-ui/.mcp.json +0 -10
  89. package/plugins/specweave-ui/README.md +0 -492
  90. package/plugins/specweave-ui/skills/browser-automation/SKILL.md +0 -676
@@ -1,492 +0,0 @@
1
- # SpecWeave UI Plugin
2
-
3
- **Complete UI/UX Development Toolkit** - Playwright E2E testing, Figma design integration, React/Vue/Angular development, design systems, Storybook component testing.
4
-
5
- ---
6
-
7
- ## What's Included
8
-
9
- ### Skills (7)
10
-
11
- 1. **e2e-playwright** - Browser automation and E2E testing with Playwright
12
- - Write automated tests for web applications
13
- - Cross-browser testing (Chrome, Firefox, Safari, Edge)
14
- - Screenshot and video capture
15
- - Accessibility testing
16
- - Mobile emulation
17
-
18
- 2. **figma-designer** - Figma design integration and mockup creation
19
- - Create production-ready Figma designs
20
- - Design systems with reusable components
21
- - Design tokens (colors, typography, spacing)
22
- - Responsive layouts
23
-
24
- 3. **figma-implementer** - Convert Figma designs to production code
25
- - Pixel-perfect React/Angular components
26
- - Extract design tokens automatically
27
- - Generate TypeScript interfaces from Figma
28
- - Storybook integration
29
-
30
- 4. **figma-mcp-connector** - Connect to Figma via MCP servers
31
- - Read/write Figma files
32
- - Extract design variables
33
- - Sync design changes
34
-
35
- 5. **design-system-architect** - Build scalable design systems
36
- - Atomic design methodology
37
- - Component hierarchy (atoms/molecules/organisms)
38
- - Design token management
39
- - Brand consistency
40
-
41
- 6. **frontend** - React, Vue, Angular development
42
- - Component-driven development
43
- - State management (Redux, Zustand, Pinia)
44
- - Form validation and handling
45
- - Responsive design with Tailwind/CSS modules
46
- - Accessibility (WCAG 2.1 compliance)
47
-
48
- 7. **nextjs** - Next.js 14+ App Router specialist
49
- - Server components and streaming
50
- - Server actions and mutations
51
- - Route handlers and middleware
52
- - Metadata API and SEO
53
- - NextAuth.js authentication
54
- - Prisma ORM integration
55
-
56
- ### Agents (1)
57
-
58
- **ui-ux-specialist** - Unified agent with expertise across all UI/UX tools
59
- - Combines knowledge from all 7 skills
60
- - Coordinates design → implementation → testing workflow
61
- - Provides holistic UI/UX guidance
62
-
63
- ### Commands (3)
64
-
65
- 1. `/ui.test` - Run Playwright E2E tests
66
- 2. `/ui.design` - Generate Figma designs
67
- 3. `/ui.implement` - Convert Figma to code
68
-
69
- ---
70
-
71
- ## Auto-Detection
72
-
73
- This plugin **auto-activates** when your project contains:
74
-
75
- **Package.json dependencies**:
76
- - `@playwright/test`, `playwright`
77
- - `figma`, `@figma/rest-api-types`
78
- - `react`, `react-dom`, `next`
79
- - `vue`, `@vue/core`
80
- - `@angular/core`
81
- - `@storybook/react`
82
-
83
- **Files/directories**:
84
- - `playwright.config.ts`
85
- - `figma.config.json`
86
- - `.storybook/`
87
- - `next.config.js`
88
-
89
- **Keywords in increment descriptions**:
90
- - "playwright", "e2e", "end-to-end"
91
- - "figma", "design", "ui", "ux"
92
- - "react", "next", "vue", "angular"
93
- - "storybook", "design system"
94
-
95
- ---
96
-
97
- ## Installation
98
-
99
- ### Automatic (Recommended)
100
-
101
- ```bash
102
- # SpecWeave detects UI project and suggests plugin
103
- specweave init
104
-
105
- # Detected: React + Playwright
106
- # Installing: specweave-ui
107
- ```
108
-
109
- ### Manual
110
-
111
- ```bash
112
- # Via SpecWeave CLI
113
- specweave plugin enable specweave-ui
114
-
115
- # Via Claude Code
116
- /plugin install specweave-ui
117
-
118
- # Via NPM
119
- npm install -g specweave
120
- cp -r node_modules/specweave/plugins/specweave-ui .claude/plugins/
121
- ```
122
-
123
- ---
124
-
125
- ## Usage
126
-
127
- ### E2E Testing with Playwright
128
-
129
- **Skill auto-activates when you mention:**
130
- - "Add Playwright tests"
131
- - "Create E2E test for login"
132
- - "Test user signup flow"
133
-
134
- **Example interaction**:
135
- ```
136
- User: Add Playwright tests for the login page
137
- AI: I'll create a comprehensive E2E test suite for the login page...
138
- [Generates tests/e2e/login.spec.ts with Playwright tests]
139
- ```
140
-
141
- **Manual command**:
142
- ```bash
143
- /ui.test login
144
- ```
145
-
146
- ---
147
-
148
- ### Figma Design Integration
149
-
150
- **Skill auto-activates when you mention:**
151
- - "Design in Figma"
152
- - "Create mockup"
153
- - "Convert Figma to code"
154
-
155
- **Example interaction**:
156
- ```
157
- User: Convert the Figma dashboard design to React components
158
- AI: I'll extract the Figma design and generate React components...
159
- [Generates components with design tokens and TypeScript types]
160
- ```
161
-
162
- **Manual command**:
163
- ```bash
164
- /ui.design dashboard
165
- /ui.implement dashboard
166
- ```
167
-
168
- ---
169
-
170
- ### Frontend Development
171
-
172
- **Skill auto-activates when you mention:**
173
- - "Create React component"
174
- - "Build Next.js page"
175
- - "Add Vue component"
176
-
177
- **Example interaction**:
178
- ```
179
- User: Create a reusable Button component with variants
180
- AI: I'll create a Button component following atomic design...
181
- [Generates Button.tsx with primary/secondary variants, Storybook stories, tests]
182
- ```
183
-
184
- ---
185
-
186
- ### Design System Architecture
187
-
188
- **Skill auto-activates when you mention:**
189
- - "Design system"
190
- - "Component library"
191
- - "Design tokens"
192
-
193
- **Example interaction**:
194
- ```
195
- User: Set up a design system with Tailwind and design tokens
196
- AI: I'll create a comprehensive design system...
197
- [Generates tokens.ts, color palette, typography scale, spacing system]
198
- ```
199
-
200
- ---
201
-
202
- ## MCP Integration
203
-
204
- ### Playwright MCP (PRIMARY - Local Browser Automation)
205
-
206
- **✅ RECOMMENDED: Use Playwright MCP for local development**
207
-
208
- **What it does**:
209
- - Local browser automation (Chromium, Firefox, WebKit, Edge)
210
- - E2E testing with accessibility-first selectors
211
- - No API keys or credentials needed
212
- - Fast, reliable, works offline
213
-
214
- **Setup** (Automatic via `.mcp.json`):
215
-
216
- The plugin auto-configures Playwright MCP. To verify:
217
-
218
- ```bash
219
- # Check MCP server status
220
- claude mcp list
221
-
222
- # Should show: playwright - ✓ Connected
223
- ```
224
-
225
- **Manual Installation** (if needed):
226
- ```bash
227
- # Install Playwright MCP globally
228
- npm install -g @playwright/mcp
229
-
230
- # Or use npx (recommended)
231
- npx @playwright/mcp@latest
232
- ```
233
-
234
- **Configuration** (`.mcp.json`):
235
- ```json
236
- {
237
- "mcpServers": {
238
- "playwright": {
239
- "command": "npx",
240
- "args": ["-y", "@playwright/mcp@latest"], // ⚠️ -y flag is REQUIRED!
241
- "description": "Local Playwright - PRIMARY"
242
- }
243
- }
244
- }
245
- ```
246
-
247
- **⚠️ IMPORTANT**: The `-y` flag is **required**! Without it, npx waits for user confirmation and the MCP connection hangs.
248
-
249
- **Advanced Options**:
250
- ```json
251
- {
252
- "mcpServers": {
253
- "playwright": {
254
- "command": "npx",
255
- "args": [
256
- "-y", // ⚠️ REQUIRED for auto-install
257
- "@playwright/mcp@latest",
258
- "--browser", "chromium", // or firefox, webkit, msedge
259
- "--headless", // run without UI
260
- "--timeout-action", "5000", // ms
261
- "--timeout-navigation", "60000" // ms
262
- ]
263
- }
264
- }
265
- }
266
- ```
267
-
268
- **Usage Example**:
269
- ```javascript
270
- // Navigate to page
271
- mcp__plugin_specweave-ui_playwright__browser_goto({ url: "https://example.com" })
272
-
273
- // Click button (accessibility-first)
274
- mcp__plugin_specweave-ui_playwright__browser_click({
275
- ref: "button[name='submit']",
276
- element: "Submit button"
277
- })
278
-
279
- // Fill input
280
- mcp__plugin_specweave-ui_playwright__browser_fill({
281
- ref: "input[name='email']",
282
- text: "user@example.com"
283
- })
284
- ```
285
-
286
- **Benefits**:
287
- - ✅ No API keys needed
288
- - ✅ Works offline
289
- - ✅ Fast local execution
290
- - ✅ Full browser control
291
- - ✅ Built-in debugging
292
-
293
- ---
294
-
295
- ### Browserbase (OPTIONAL - Cloud Browser Automation)
296
-
297
- **⚠️ NOT loaded by default. Enable only when needed for CI/CD or cloud scenarios.**
298
-
299
- **What it does**:
300
- - Runs Playwright tests in cloud infrastructure
301
- - Parallel test execution (10x faster at scale)
302
- - No local browser dependencies in CI
303
- - Automatic screenshots/videos
304
-
305
- **Manual Setup** (when needed):
306
-
307
- 1. Get API key from [Browserbase](https://www.browserbase.com/)
308
-
309
- 2. Set environment variables:
310
- ```bash
311
- export BROWSERBASE_API_KEY="bb_xxx"
312
- export BROWSERBASE_PROJECT_ID="proj_xxx"
313
- ```
314
-
315
- 3. **Add to your project's `.claude/settings.json`**:
316
- ```json
317
- {
318
- "mcpServers": {
319
- "browserbase": {
320
- "command": "npx",
321
- "args": ["-y", "@browserbasehq/mcp-server-browserbase"],
322
- "env": {
323
- "BROWSERBASE_API_KEY": "${BROWSERBASE_API_KEY}",
324
- "BROWSERBASE_PROJECT_ID": "${BROWSERBASE_PROJECT_ID}"
325
- }
326
- }
327
- }
328
- }
329
- ```
330
-
331
- 4. Restart Claude Code
332
-
333
- **Why not auto-loaded?**
334
- - Saves ~5,600 tokens per request
335
- - Most developers use Playwright locally, not Browserbase
336
- - Browserbase requires API keys (not needed for most users)
337
- - Can still enable when needed for CI/CD
338
-
339
- **Benefits**:
340
- - ✅ Parallel execution (10x faster)
341
- - ✅ No browser installation in CI
342
- - ✅ Automatic scaling
343
- - ✅ Works in serverless environments
344
-
345
- **When to Use**:
346
- - ✅ CI/CD pipelines
347
- - ✅ Cloud deployments
348
- - ✅ High-scale parallel testing
349
- - ❌ Local development (use Playwright MCP instead)
350
-
351
- ---
352
-
353
- ## Workflow Example
354
-
355
- ### Complete UI Feature Development
356
-
357
- ```bash
358
- # 1. Create increment
359
- /specweave:inc "Add user dashboard with charts"
360
-
361
- # 2. SpecWeave detects UI work, auto-enables plugin
362
- # Installing: specweave-ui (Playwright + Figma + React + Design System)
363
-
364
- # 3. Design phase (Figma skill)
365
- /ui.design dashboard
366
-
367
- # 4. Implementation (Frontend + Next.js skills)
368
- /ui.implement dashboard
369
-
370
- # 5. Testing (Playwright skill)
371
- /ui.test dashboard
372
-
373
- # 6. Storybook documentation (auto-generated)
374
- npm run storybook
375
- ```
376
-
377
- **AI auto-coordinates** across all skills:
378
- 1. **Design System Architect**: Defines tokens, components
379
- 2. **Figma Designer**: Creates mockups
380
- 3. **Frontend**: Implements React components
381
- 4. **Next.js**: Integrates into App Router
382
- 5. **Playwright**: Writes E2E tests
383
- 6. **Storybook**: Documents components
384
-
385
- ---
386
-
387
- ## Configuration
388
-
389
- ### Plugin Settings
390
-
391
- **File**: `.claude/settings.json`
392
-
393
- ```json
394
- {
395
- "plugins": {
396
- "specweave-ui": {
397
- "enabled": true,
398
- "defaults": {
399
- "frontend_framework": "react", // or "vue", "angular"
400
- "test_framework": "playwright",
401
- "design_tool": "figma"
402
- }
403
- }
404
- }
405
- }
406
- ```
407
-
408
- **Note**: Browserbase is NOT auto-loaded. See "Browserbase (OPTIONAL)" section above for manual setup.
409
-
410
- ---
411
-
412
- ## FAQ
413
-
414
- ### Q: Do I need all 7 skills?
415
-
416
- **A**: No! Skills auto-activate based on your project.
417
- - React project? Only `frontend` and `nextjs` activate
418
- - Playwright tests? Only `e2e-playwright` activates
419
- - Design work? Only `figma-*` and `design-system-architect` activate
420
-
421
- ### Q: Can I disable specific skills?
422
-
423
- **A**: Yes, via settings:
424
- ```json
425
- {
426
- "plugins": {
427
- "specweave-ui": {
428
- "skills": {
429
- "figma-designer": { "enabled": false }
430
- }
431
- }
432
- }
433
- }
434
- ```
435
-
436
- ### Q: Does this work without SpecWeave?
437
-
438
- **A**: Yes! This is a **native Claude Code plugin**. Install it directly:
439
- ```bash
440
- /plugin install specweave-ui
441
- ```
442
-
443
- ### Q: How much context does this use?
444
-
445
- **A**:
446
- - **All skills loaded**: ~8K tokens
447
- - **Typical usage** (2-3 skills active): ~3K tokens
448
- - **vs. Monolithic** (loading all 44 skills): 50K tokens
449
-
450
- **Result**: **84-94% context reduction** vs. old architecture.
451
-
452
- ### Q: Can I contribute skills?
453
-
454
- **A**: Yes! Submit a PR:
455
- 1. Add skill to `src/plugins/specweave-ui/skills/`
456
- 2. Update `plugin.json` provides list
457
- 3. Add tests in `test-cases/`
458
- 4. Update this README
459
-
460
- ---
461
-
462
- ## Community Extensions
463
-
464
- ### Available Community Skills
465
-
466
- - **specweave-ui-mobile** - React Native, Flutter, SwiftUI
467
- - **specweave-ui-3d** - Three.js, WebGL, 3D visualization
468
- - **specweave-ui-animation** - Framer Motion, GSAP, Lottie
469
-
470
- **Install**:
471
- ```bash
472
- /plugin marketplace add specweave-community
473
- /plugin install specweave-ui-mobile
474
- ```
475
-
476
- ---
477
-
478
- ## Support
479
-
480
- - **Documentation**: https://spec-weave.com/plugins/ui
481
- - **Issues**: https://github.com/anton-abyzov/specweave/issues
482
- - **Discussions**: https://github.com/anton-abyzov/specweave/discussions
483
-
484
- ---
485
-
486
- ## License
487
-
488
- MIT © Anton Abyzov
489
-
490
- ---
491
-
492
- 🎨 **SpecWeave UI Plugin** - Complete UI/UX toolkit for AI-assisted development