specweave 1.0.244 → 1.0.246

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 (35) hide show
  1. package/CLAUDE.md +26 -24
  2. package/dist/src/cli/commands/detect-intent.d.ts.map +1 -1
  3. package/dist/src/cli/commands/detect-intent.js +42 -1
  4. package/dist/src/cli/commands/detect-intent.js.map +1 -1
  5. package/dist/src/cli/commands/init.d.ts.map +1 -1
  6. package/dist/src/cli/commands/init.js +42 -1
  7. package/dist/src/cli/commands/init.js.map +1 -1
  8. package/dist/src/cli/helpers/init/plugin-installer.d.ts.map +1 -1
  9. package/dist/src/cli/helpers/init/plugin-installer.js +6 -2
  10. package/dist/src/cli/helpers/init/plugin-installer.js.map +1 -1
  11. package/dist/src/core/config/types.js +3 -3
  12. package/dist/src/core/config/types.js.map +1 -1
  13. package/dist/src/core/lazy-loading/llm-plugin-detector.d.ts +11 -1
  14. package/dist/src/core/lazy-loading/llm-plugin-detector.d.ts.map +1 -1
  15. package/dist/src/core/lazy-loading/llm-plugin-detector.js +32 -6
  16. package/dist/src/core/lazy-loading/llm-plugin-detector.js.map +1 -1
  17. package/dist/src/core/types/plugin-scope.d.ts +12 -1
  18. package/dist/src/core/types/plugin-scope.d.ts.map +1 -1
  19. package/dist/src/core/types/plugin-scope.js +22 -3
  20. package/dist/src/core/types/plugin-scope.js.map +1 -1
  21. package/package.json +1 -1
  22. package/plugins/specweave/hooks/user-prompt-submit.sh +3 -3
  23. package/plugins/specweave/skills/increment-planner/SKILL.md +7 -1
  24. package/plugins/specweave/skills/npm/SKILL.md +0 -1
  25. package/plugins/specweave/skills/team-build/SKILL.md +10 -1
  26. package/plugins/specweave/skills/team-orchestrate/SKILL.md +52 -14
  27. package/plugins/specweave-frontend/commands/component-generate.md +5 -3
  28. package/plugins/specweave-frontend/commands/frontend-scaffold.md +41 -4
  29. package/plugins/specweave-frontend/skills/frontend/SKILL.md +28 -0
  30. package/plugins/specweave-frontend/skills/frontend-architect/SKILL.md +5 -2
  31. package/plugins/specweave-frontend/skills/frontend-design/SKILL.md +22 -0
  32. package/plugins/specweave-mobile/skills/expo/SKILL.md +122 -0
  33. package/plugins/specweave-mobile/skills/react-native-expert/SKILL.md +201 -1
  34. package/src/templates/AGENTS.md.template +27 -29
  35. package/src/templates/CLAUDE.md.template +3 -1
@@ -29,7 +29,7 @@
29
29
  | **Hooks** | `#non-claude-tools` | **CRITICAL: Hook behavior to mimic** |
30
30
  | **User Story** | `#user-story-format` | **CRITICAL: Project/Board fields** |
31
31
  | Sync | `#sync-workflow` | When/how to sync |
32
- | Context | `#context-loading` | Token savings (70%+) |
32
+ | Context | `#context-loading` | Efficient context loading |
33
33
  | Troubleshoot | `#troubleshooting` | Common issues |
34
34
  <!-- /SECTION -->
35
35
 
@@ -344,7 +344,7 @@ SpecWeave v0.28+ introduces powerful automation that **works differently** in no
344
344
  | Feature | Claude Code | Non-Claude Tools |
345
345
  |---------|-------------|------------------|
346
346
  | **Living Docs Builder** | Auto-runs after init | Use `specweave jobs --follow` to monitor |
347
- | **Bidirectional Sync** | Pull sync on session start | Run `/sw:sync-pull` manually |
347
+ | **Bidirectional Sync** | Pull sync on session start | Run `specweave jobs` to check status |
348
348
  | **Background Jobs** | Automatic with hooks | Monitor with `specweave jobs` CLI |
349
349
  | **EDA Hooks** | Auto-detect task completion | Manually update tasks.md + spec.md |
350
350
 
@@ -369,8 +369,10 @@ specweave jobs --resume <job-id> # Resumes from checkpoint
369
369
  **Job Types**:
370
370
  - `clone-repos` - Clone multiple repositories (ADO/GitHub)
371
371
  - `import-issues` - Import work items from external tools
372
- - `living-docs-builder` - Generate documentation from codebase (NEW!)
372
+ - `living-docs-builder` - Generate documentation from codebase
373
373
  - `sync-external` - Bidirectional sync with external tools
374
+ - `brownfield-analysis` - Analyze existing/legacy codebases
375
+ - `codebase-rescan` - Rescan codebase after increment closure
374
376
 
375
377
  **Job Dependencies**: The `living-docs-builder` waits for `clone-repos` and `import-issues` to complete before starting. This is automatic - just monitor with `specweave jobs`.
376
378
 
@@ -432,7 +434,7 @@ This gives you the SAME experience as Claude Code with MCP, but deterministic an
432
434
 
433
435
  #### 1. After EVERY Task Completion
434
436
  ```bash
435
- # Claude hook: PostTaskCompletion
437
+ # Claude Code: PostToolUse hook detects task completion automatically
436
438
  # You must run these commands:
437
439
 
438
440
  # Step 1: Update tasks.md (source of truth)
@@ -449,7 +451,7 @@ This gives you the SAME experience as Claude Code with MCP, but deterministic an
449
451
 
450
452
  #### 2. After User Story Completion (all ACs satisfied)
451
453
  ```bash
452
- # Claude hook: PostUserStoryCompletion
454
+ # Claude Code: PostToolUse hook detects US completion via AC pattern matching
453
455
  # When ALL acceptance criteria for a user story are [x] checked:
454
456
 
455
457
  # Step 1: Sync to living docs
@@ -461,7 +463,7 @@ This gives you the SAME experience as Claude Code with MCP, but deterministic an
461
463
 
462
464
  #### 3. After Increment Completion
463
465
  ```bash
464
- # Claude hook: PostIncrementDone
466
+ # Claude Code: /sw:done skill orchestrates closure automatically
465
467
  # When running /sw:done:
466
468
 
467
469
  # Step 1: Validate all tasks complete
@@ -476,7 +478,7 @@ This gives you the SAME experience as Claude Code with MCP, but deterministic an
476
478
 
477
479
  #### 4. After Writing to spec.md or tasks.md
478
480
  ```bash
479
- # Claude hook: PostToolUse (Write/Edit to spec/tasks files)
481
+ # Claude Code: PostToolUse hook auto-syncs on spec/tasks edits
480
482
  # After any edit to spec.md or tasks.md:
481
483
 
482
484
  # Sync status line cache
@@ -486,24 +488,20 @@ This gives you the SAME experience as Claude Code with MCP, but deterministic an
486
488
  /sw-github:sync <increment-id>
487
489
  ```
488
490
 
489
- #### 5. Bidirectional Sync - PULL from External Tools
491
+ #### 5. Session Start - Check External Changes
490
492
  ```bash
491
493
  # Claude hook: SessionStart (runs automatically)
492
- # For non-Claude tools, run manually to catch external changes:
494
+ # For non-Claude tools, check for external changes manually:
493
495
 
494
- # Pull changes from external tools (status, priority, assignee)
495
- /sw:sync-pull
496
+ # Check if any background sync jobs ran
497
+ specweave jobs
496
498
 
497
- # This does:
498
- # 1. Query ADO/JIRA/GitHub for items changed since last sync
499
- # 2. Pull status/priority/assignee updates to living docs
500
- # 3. Use timestamp-based conflict resolution (latest wins)
501
- # 4. Log all changes with full audit trail
499
+ # Check progress to see current state
500
+ /sw:progress
502
501
 
503
- # When to run:
504
- # - Start of each work session (catch overnight changes)
505
- # - Before starting work on a linked increment
506
- # - After PM updates status in external tool
502
+ # If external tools are configured, sync progress
503
+ /sw-github:sync <increment-id>
504
+ /sw-jira:sync <increment-id>
507
505
  ```
508
506
 
509
507
  #### 6. After Init on Brownfield Project
@@ -568,15 +566,14 @@ cat plugins/specweave/commands/increment.md
568
566
  └─────────────────────────────────────────────────────────────┘
569
567
  ```
570
568
 
571
- ### Quick Reference: Session Start Routine
569
+ ### Quick Reference: Session Start Routine
572
570
  ```
573
571
  ┌─────────────────────────────────────────────────────────────┐
574
572
  │ START OF EVERY SESSION (FOR NON-CLAUDE TOOLS) │
575
573
  ├─────────────────────────────────────────────────────────────┤
576
- │ 1. Pull external changes: /sw:sync-pull
577
- │ 2. Check job status: specweave jobs
578
- │ 3. Check progress: /sw:progress
579
- │ 4. Continue work: /sw:do │
574
+ │ 1. Check job status: specweave jobs
575
+ │ 2. Check progress: /sw:progress
576
+ │ 3. Continue work: /sw:do
580
577
  └─────────────────────────────────────────────────────────────┘
581
578
  ```
582
579
 
@@ -659,10 +656,11 @@ TASK COMPLETED
659
656
 
660
657
  | Hook | Trigger | What It Does |
661
658
  |------|---------|--------------|
662
- | `UserPromptSubmit` | Every prompt | WIP limits, discipline checks |
663
- | `PostToolUse` | File write/edit | Detects task completion, syncs |
664
- | `PostTaskCompletion` | Task done | Updates GitHub/Jira progress |
665
- | `PostIncrementDone` | Increment closed | Closes issues, syncs all docs |
659
+ | `SessionStart` | Session begins | Loads config, checks active increments |
660
+ | `UserPromptSubmit` | Every prompt | WIP limits, discipline checks, intent detection |
661
+ | `PreToolUse` | Before file write/edit | Validates spec constraints |
662
+ | `PostToolUse` | After file write/edit | Detects task completion, syncs progress, updates GitHub/Jira |
663
+ | `Stop` | Session ends | Cleanup, state persistence |
666
664
 
667
665
  **Non-Claude tools**: NO HOOKS EXIST. See "Hook Behavior You Must Mimic" section above.
668
666
  <!-- /SECTION -->
@@ -194,6 +194,8 @@ SpecWeave auto-detects product descriptions and routes to `/sw:increment`:
194
194
  ls docs/ | grep -E '^[0-9]{2}-' | cut -d'-' -f1 | sort -u
195
195
  ```
196
196
  Use next available number. **NEVER create duplicate prefixes.**
197
+ 8. **⛔ Multi-repo**: ALL repos MUST be at `repositories/{org}/{repo-name}/` — NEVER directly under `repositories/`
198
+ Discover org from config: `repository.organization` → `sync.profiles` → `umbrella.childRepos` → filesystem
197
199
  <!-- /SECTION -->
198
200
 
199
201
  <!-- SECTION:workflow required -->
@@ -608,7 +610,7 @@ Claude Code runs hooks automatically. **You must trigger these manually:**
608
610
  | **After EVERY task** | Update tasks.md `[ ]→[x]` + spec.md ACs `[ ]→[x]` + `/sw:sync-tasks` |
609
611
  | **After all ACs done** | `/sw:sync-docs update` to sync living docs |
610
612
  | **On increment close** | `/sw:validate {id}` then `/sw:done {id}` |
611
- | **Session start** | `/sw:sync-pull` to pull external changes |
613
+ | **Session start** | Check `specweave jobs` + `/sw:progress` for current state |
612
614
 
613
615
  **Full hook simulation guide:** See `AGENTS.md` for detailed instructions.
614
616