specweave 1.0.392 → 1.0.394
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specweave",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.394",
|
|
4
4
|
"description": "Spec-driven development framework for AI coding agents. Works with Claude Code, Codex, Antigravity, Cursor, Copilot & more. 100+ skills, 49 CLI commands, verified skill certification, autonomous execution, and living documentation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,13 +13,9 @@ model: opus
|
|
|
13
13
|
|
|
14
14
|
## Persona
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Expert ideation facilitator. Combines structured frameworks (Six Thinking Hats, SCAMPER, TRIZ) with engineering judgment. Goal: **expand the solution space** before committing to an implementation path.
|
|
17
17
|
|
|
18
|
-
**
|
|
19
|
-
- Diverge before converging — resist the urge to jump to the "obvious" solution
|
|
20
|
-
- Every approach gets a fair hearing — even unconventional ones
|
|
21
|
-
- Compact output — tables over essays, bullets over paragraphs
|
|
22
|
-
- The brainstorm feeds into `/sw:increment`, never replaces it
|
|
18
|
+
**Principles:** Diverge before converging | Every approach gets fair hearing | Tables over essays | Feeds into `/sw:increment`, never replaces it
|
|
23
19
|
|
|
24
20
|
---
|
|
25
21
|
|
|
@@ -131,41 +127,15 @@ If no topic is provided, ask the user: "What would you like to brainstorm about?
|
|
|
131
127
|
|
|
132
128
|
### Resume Mode (`--resume`)
|
|
133
129
|
|
|
134
|
-
When `--resume`
|
|
135
|
-
|
|
136
|
-
1. **Find the most recent state file** matching the topic:
|
|
137
|
-
```bash
|
|
138
|
-
ls -t .specweave/state/brainstorm-*-${TOPIC_SLUG}*.json 2>/dev/null | head -1
|
|
139
|
-
```
|
|
140
|
-
2. **Read the state file** to determine where the session left off
|
|
141
|
-
3. **Read the brainstorm document** (if one was partially saved)
|
|
142
|
-
4. **Resume from the last completed phase**:
|
|
143
|
-
- If `phase: "frame"` → resume at Phase 2 (Diverge)
|
|
144
|
-
- If `phase: "evaluate"` → show the existing matrix, ask if user wants to re-evaluate or proceed
|
|
145
|
-
- If `phase: "complete"` → show the saved document, offer to explore abandoned branches from the idea tree
|
|
146
|
-
5. **Present abandoned branches**: If the idea tree has approaches marked as abandoned or unexplored, offer to dig into those with a different lens
|
|
147
|
-
|
|
148
|
-
This enables iterative brainstorming — start with quick mode, then `--resume --depth deep` to go deeper on the same topic.
|
|
130
|
+
When `--resume`: find most recent state file (`ls -t .specweave/state/brainstorm-*-${TOPIC_SLUG}*.json | head -1`), read it, resume from last completed phase. If `phase: "complete"`, offer to explore abandoned branches with a different lens. Enables iterative brainstorming: quick first, then `--resume --depth deep`.
|
|
149
131
|
|
|
150
132
|
### Custom Evaluation Criteria (`--criteria`)
|
|
151
133
|
|
|
152
|
-
Override
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
**Preset criteria sets** (auto-detected from context when `--criteria` is not provided):
|
|
160
|
-
|
|
161
|
-
| Context | Criteria |
|
|
162
|
-
|---------|----------|
|
|
163
|
-
| **Engineering** (default) | Complexity, Time, Risk, Extensibility, Alignment |
|
|
164
|
-
| **Marketing/Product** | Brand Fit, Audience Reach, Cost, Differentiation, Time-to-Market |
|
|
165
|
-
| **Infrastructure** | Performance, Reliability, Cost, Operational Complexity, Scalability |
|
|
166
|
-
| **Business** | Revenue Impact, Cost, Time-to-Value, Strategic Alignment, Risk |
|
|
167
|
-
|
|
168
|
-
When custom criteria are provided, use them instead of the defaults in the Phase 3 Evaluation Matrix. Each criterion is still scored on a 1-5 scale.
|
|
134
|
+
Override defaults: `/sw:brainstorm "topic" --criteria "perf,cost,complexity,risk"`. Preset sets auto-detected:
|
|
135
|
+
- **Engineering** (default): Complexity, Time, Risk, Extensibility, Alignment
|
|
136
|
+
- **Marketing/Product**: Brand Fit, Audience Reach, Cost, Differentiation, Time-to-Market
|
|
137
|
+
- **Infrastructure**: Performance, Reliability, Cost, Operational Complexity, Scalability
|
|
138
|
+
- **Business**: Revenue Impact, Cost, Time-to-Value, Strategic Alignment, Risk
|
|
169
139
|
|
|
170
140
|
---
|
|
171
141
|
|
|
@@ -475,195 +445,63 @@ Generate 4-6 independent approaches, each with a different strategic orientation
|
|
|
475
445
|
|
|
476
446
|
### Lens: TRIZ / Inventive Principles + Constraint Inversion
|
|
477
447
|
|
|
478
|
-
Two-part
|
|
479
|
-
|
|
480
|
-
**Part 1: Apply TRIZ Inventive Principles** (select 5-7 most relevant from the 40):
|
|
481
|
-
|
|
482
|
-
| # | Principle | Software Adaptation |
|
|
483
|
-
|---|-----------|-------------------|
|
|
484
|
-
| 1 | Segmentation | Break monolith into microservices; split large features into independent modules |
|
|
485
|
-
| 2 | Taking Out / Extraction | Extract cross-cutting concerns (auth, logging) into middleware or services |
|
|
486
|
-
| 5 | Merging | Combine multiple API calls into batch endpoints; merge related microservices |
|
|
487
|
-
| 10 | Preliminary Action | Pre-compute, cache, warm up; generate at build time instead of runtime |
|
|
488
|
-
| 13 | The Other Way Round | Invert control flow (push vs pull, server-driven vs client-driven, event sourcing) |
|
|
489
|
-
| 15 | Dynamicity | Feature flags, A/B testing, config-driven behavior instead of hardcoded |
|
|
490
|
-
| 17 | Another Dimension | Add time dimension (versioning, audit trails); add abstraction layer |
|
|
491
|
-
| 22 | Blessing in Disguise | Turn a constraint into a feature (rate limiting → fair usage; downtime → maintenance window) |
|
|
492
|
-
| 24 | Intermediary | Add proxy, gateway, adapter, or anti-corruption layer |
|
|
493
|
-
| 25 | Self-Service | User-facing admin panels, self-serve onboarding, API key management |
|
|
494
|
-
| 28 | Mechanics Substitution | Replace manual process with automation; replace polling with webhooks |
|
|
495
|
-
| 35 | Parameter Change | Change data format (JSON→protobuf), protocol (REST→gRPC), storage engine |
|
|
496
|
-
| 40 | Composite Materials | Polyglot persistence, hybrid architectures, best-of-breed tool selection |
|
|
497
|
-
|
|
498
|
-
For each relevant principle, generate ONE approach that applies it to the problem.
|
|
499
|
-
|
|
500
|
-
**Part 2: Constraint Inversion** (the original approach, now enhanced):
|
|
448
|
+
Two-part analysis combining TRIZ inventive principles with assumption negation.
|
|
501
449
|
|
|
502
|
-
1
|
|
503
|
-
2. **For each assumption**, generate an approach where that assumption is **negated**
|
|
504
|
-
3. **Evaluate** which inversions produce viable alternatives
|
|
505
|
-
4. **Cross-reference** with Part 1 — do any TRIZ principles align with the inversions?
|
|
506
|
-
5. **Output**: The 3-4 most promising combined approaches
|
|
450
|
+
**Part 1: TRIZ Inventive Principles** — Select 5-7 most relevant from the 40 (e.g., #1 Segmentation, #2 Extraction, #5 Merging, #10 Preliminary Action, #13 Inversion, #15 Dynamicity, #17 Another Dimension, #24 Intermediary, #28 Automation, #35 Parameter Change). For each, generate ONE approach applying it to the problem.
|
|
507
451
|
|
|
508
|
-
|
|
509
|
-
- Assumption: "Users must authenticate before accessing data"
|
|
510
|
-
- TRIZ #13 (The Other Way Round): Invert the flow — data is public by default with audit trails
|
|
511
|
-
- TRIZ #25 (Self-Service): Users manage their own access permissions
|
|
512
|
-
- Inversion viable? → Assess trade-offs — this is literally how Google Docs sharing works
|
|
452
|
+
**Part 2: Constraint Inversion** — List 3-5 core assumptions → negate each → evaluate which inversions produce viable alternatives → cross-reference with Part 1 → output 3-4 most promising combined approaches.
|
|
513
453
|
|
|
514
|
-
**Deep mode dispatch**:
|
|
454
|
+
**Deep mode dispatch**: Part 1 (principles) and Part 2 (inversions) as 2 parallel `Agent()` calls, then synthesize.
|
|
515
455
|
|
|
516
456
|
### Lens: Adjacent Possible
|
|
517
457
|
|
|
518
458
|
What recently became feasible? Web-search-enhanced analysis:
|
|
519
459
|
|
|
520
|
-
1. **Research
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
2. **Scan recent developments**: Combine web search results with model knowledge about:
|
|
528
|
-
- New APIs and services launched in the last 12 months
|
|
529
|
-
- AI capabilities that crossed a quality/cost threshold
|
|
530
|
-
- Infrastructure cost drops (storage, compute, bandwidth)
|
|
531
|
-
- Regulatory changes that enable/restrict approaches
|
|
532
|
-
- Open-source projects that matured to production-ready
|
|
533
|
-
|
|
534
|
-
3. **Generate 4-6 approaches** that leverage these newly-possible capabilities
|
|
535
|
-
|
|
536
|
-
4. **Focus**: "What was impossible or impractical 12 months ago but is now viable?"
|
|
537
|
-
|
|
538
|
-
5. **Ground each approach** — cite the specific development that enables it:
|
|
539
|
-
```
|
|
540
|
-
### Approach: LLM-Powered Classification
|
|
541
|
-
**Enabled by**: Claude 4/GPT-4o quality + sub-$1/1M token pricing (2025)
|
|
542
|
-
**Previously**: Required custom ML models, labeled datasets, training infra
|
|
543
|
-
**Now**: Zero-shot classification via API call, 95%+ accuracy for most use cases
|
|
544
|
-
```
|
|
545
|
-
|
|
546
|
-
Example prompts:
|
|
547
|
-
- "What if we used LLMs for [X] instead of building rules?"
|
|
548
|
-
- "What if we used edge computing for [Y] instead of centralized?"
|
|
549
|
-
- "What if the cost of [Z] dropped 10x — how would our approach change?"
|
|
550
|
-
- "What open-source tool launched recently that solves [Y] out of the box?"
|
|
460
|
+
1. **Research** — Use `WebSearch` to find new tools, frameworks, cost changes, AI capabilities, regulatory shifts for the topic
|
|
461
|
+
2. **Scan** recent developments: new APIs (12 months), AI cost/quality thresholds, infra cost drops, mature OSS projects
|
|
462
|
+
3. **Generate 4-6 approaches** leveraging newly-possible capabilities
|
|
463
|
+
4. **Ground each** — cite the enabling development: `**Enabled by**: [what changed] | **Previously**: [old approach] | **Now**: [new approach]`
|
|
464
|
+
|
|
465
|
+
Focus: "What was impossible or impractical 12 months ago but is now viable?"
|
|
551
466
|
|
|
552
467
|
---
|
|
553
468
|
|
|
554
469
|
## Output Template
|
|
555
470
|
|
|
471
|
+
Save to `.specweave/docs/brainstorms/YYYY-MM-DD-{topic-slug}.md`. Structure:
|
|
472
|
+
|
|
556
473
|
```markdown
|
|
557
474
|
# Brainstorm: [Topic]
|
|
558
|
-
|
|
559
|
-
**Date**: YYYY-MM-DD
|
|
560
|
-
**Depth**: quick | standard | deep
|
|
561
|
-
**Lens(es)**: [lens names used]
|
|
562
|
-
**Status**: complete
|
|
563
|
-
**Handed off to**: [increment ID or "none"]
|
|
564
|
-
|
|
565
|
-
---
|
|
475
|
+
**Date**: YYYY-MM-DD | **Depth**: [mode] | **Lens(es)**: [names] | **Status**: complete
|
|
566
476
|
|
|
567
477
|
## Problem Frame
|
|
568
|
-
|
|
569
|
-
**Statement**: [One clear sentence]
|
|
570
|
-
|
|
571
|
-
### Starbursting
|
|
572
|
-
- **Who**: [answer]
|
|
573
|
-
- **What**: [answer]
|
|
574
|
-
- **When**: [answer]
|
|
575
|
-
- **Where**: [answer]
|
|
576
|
-
- **Why**: [answer]
|
|
577
|
-
- **How**: [high-level]
|
|
578
|
-
|
|
579
|
-
### Clarifications
|
|
580
|
-
1. Q: [question] — A: [answer]
|
|
581
|
-
|
|
582
|
-
---
|
|
478
|
+
**Statement**: [sentence] | **Who/What/When/Where/Why/How**: [answers] | **Clarifications**: [Q&A]
|
|
583
479
|
|
|
584
480
|
## Approaches
|
|
585
|
-
|
|
586
481
|
### Approach A: [Name]
|
|
587
|
-
**Source**: [lens/facet]
|
|
588
|
-
**
|
|
589
|
-
**Key Steps**:
|
|
590
|
-
1. [step]
|
|
591
|
-
2. [step]
|
|
592
|
-
3. [step]
|
|
593
|
-
**Strengths**: [bullets]
|
|
594
|
-
**Risks**: [bullets]
|
|
595
|
-
**Effort**: [Low/Medium/High]
|
|
596
|
-
|
|
597
|
-
[... more approaches ...]
|
|
598
|
-
|
|
599
|
-
---
|
|
482
|
+
**Source**: [lens/facet] | **Summary**: [2-3 sentences] | **Key Steps**: [numbered]
|
|
483
|
+
**Strengths**: [bullets] | **Risks**: [bullets] | **Effort**: [Low/Medium/High]
|
|
600
484
|
|
|
601
485
|
## Evaluation Matrix
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
|
606
|
-
| Time | 3/5 | 2/5 | 1/5 |
|
|
607
|
-
| Risk | 4/5 | 3/5 | 4/5 |
|
|
608
|
-
| Extensibility | 2/5 | 4/5 | 5/5 |
|
|
609
|
-
| Alignment | 5/5 | 3/5 | 2/5 |
|
|
610
|
-
| **Total** |**16**|**15**|**16**|
|
|
611
|
-
|
|
612
|
-
---
|
|
486
|
+
| Criterion | A | B | C |
|
|
487
|
+
|-----------|:-:|:-:|:-:|
|
|
488
|
+
| Complexity/Time/Risk/Extensibility/Alignment | x/5 | x/5 | x/5 |
|
|
489
|
+
| **Total** | **X** | **X** | **X** |
|
|
613
490
|
|
|
614
491
|
## Recommendation
|
|
615
|
-
|
|
616
|
-
**Selected**: Approach [X] — [Name]
|
|
617
|
-
**Rationale**: [2-3 sentences]
|
|
618
|
-
**Caveats**: [what to watch for]
|
|
619
|
-
|
|
620
|
-
---
|
|
492
|
+
**Selected**: Approach [X] | **Rationale**: [sentences] | **Caveats**: [notes]
|
|
621
493
|
|
|
622
494
|
## Deep Analysis
|
|
623
|
-
|
|
624
|
-
### Abstraction Ladder
|
|
625
|
-
- **Goal above**: [broader goal]
|
|
626
|
-
- **Our problem**: [as stated]
|
|
627
|
-
- **First steps**: [concrete actions]
|
|
628
|
-
|
|
629
|
-
### Analogies
|
|
630
|
-
1. [Domain]: [how they solved similar problem]
|
|
631
|
-
2. [Domain]: [how they solved similar problem]
|
|
632
|
-
|
|
633
|
-
### Hidden Assumptions
|
|
634
|
-
1. [Assumption] — if inverted: [consequence]
|
|
635
|
-
2. [Assumption] — if inverted: [consequence]
|
|
636
|
-
|
|
637
|
-
### Pre-Mortem
|
|
638
|
-
| Failure Mode | Likelihood | Impact | Mitigation |
|
|
639
|
-
|---|:---:|:---:|---|
|
|
640
|
-
| [failure] | Med | High | [action] |
|
|
641
|
-
|
|
642
|
-
---
|
|
495
|
+
(deep mode only) Abstraction Ladder | Analogies | Hidden Assumptions | Pre-Mortem table
|
|
643
496
|
|
|
644
497
|
## Idea Tree
|
|
645
|
-
|
|
646
|
-
[topic]
|
|
647
|
-
├── Approach A: [name] ([status])
|
|
648
|
-
│ └── Variant A1: [brief]
|
|
649
|
-
├── Approach B: [name] (SELECTED)
|
|
650
|
-
│ ├── Variant B1: [brief]
|
|
651
|
-
│ └── Variant B2: [brief]
|
|
652
|
-
└── Approach C: [name] ([status])
|
|
653
|
-
|
|
654
|
-
---
|
|
498
|
+
[topic] tree with approaches, variants, and status markers (SELECTED/abandoned)
|
|
655
499
|
|
|
656
500
|
## Next Steps
|
|
657
|
-
|
|
658
|
-
- [ ] `/sw:increment "[selected approach]"` — Turn into implementation plan
|
|
659
|
-
- [ ] `/sw:brainstorm "[topic]" --depth deep --lens [other]` — Explore further
|
|
660
|
-
- [ ] Park and revisit later
|
|
501
|
+
- `/sw:increment` | Brainstorm deeper | Park for later
|
|
661
502
|
```
|
|
662
503
|
|
|
663
|
-
**Notes
|
|
664
|
-
- Omit "Deep Analysis" section for quick/standard depth
|
|
665
|
-
- Omit "Idea Tree" variants for quick mode
|
|
666
|
-
- The template is a guide — adapt sections to fit the actual brainstorm content
|
|
504
|
+
**Notes:** Omit Deep Analysis for quick/standard. Omit Idea Tree variants for quick.
|
|
667
505
|
|
|
668
506
|
---
|
|
669
507
|
|