specweave 0.28.3 → 0.28.6
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 +36 -93
- package/dist/src/core/living-docs/feature-consistency-validator.d.ts +129 -0
- package/dist/src/core/living-docs/feature-consistency-validator.d.ts.map +1 -0
- package/dist/src/core/living-docs/feature-consistency-validator.js +445 -0
- package/dist/src/core/living-docs/feature-consistency-validator.js.map +1 -0
- package/dist/src/core/living-docs/index.d.ts +1 -0
- package/dist/src/core/living-docs/index.d.ts.map +1 -1
- package/dist/src/core/living-docs/index.js +1 -0
- package/dist/src/core/living-docs/index.js.map +1 -1
- package/dist/src/core/living-docs/living-docs-sync.d.ts +30 -2
- package/dist/src/core/living-docs/living-docs-sync.d.ts.map +1 -1
- package/dist/src/core/living-docs/living-docs-sync.js +74 -4
- package/dist/src/core/living-docs/living-docs-sync.js.map +1 -1
- package/dist/src/core/repo-structure/prompt-consolidator.js +6 -6
- package/dist/src/core/repo-structure/prompt-consolidator.js.map +1 -1
- package/dist/src/sync/frontmatter-updater.d.ts +8 -0
- package/dist/src/sync/frontmatter-updater.d.ts.map +1 -1
- package/dist/src/sync/frontmatter-updater.js +27 -2
- package/dist/src/sync/frontmatter-updater.js.map +1 -1
- package/dist/src/sync/sync-coordinator.d.ts +1 -0
- package/dist/src/sync/sync-coordinator.d.ts.map +1 -1
- package/dist/src/sync/sync-coordinator.js +6 -3
- package/dist/src/sync/sync-coordinator.js.map +1 -1
- package/package.json +1 -1
- package/plugins/specweave/commands/specweave-sync-specs.md +14 -5
- package/plugins/specweave/commands/specweave-validate-features.md +203 -0
- package/plugins/specweave/commands/specweave-workflow.md +483 -0
- package/plugins/specweave-jira/skills/jira-sync/SKILL.md +4 -4
- package/plugins/specweave-jira/skills/specweave-jira-mapper/SKILL.md +3 -3
- package/plugins/specweave-kafka/skills/kafka-mcp-integration/SKILL.md +17 -0
- package/plugins/specweave-plugin-dev/skills/claude-sdk/SKILL.md +3 -1
- package/plugins/specweave-ui/commands/ui-automate.md +5 -28
- package/src/templates/AGENTS.md.template +92 -9
|
@@ -77,6 +77,48 @@
|
|
|
77
77
|
|
|
78
78
|
**CRITICAL**: Claude Code has automatic hooks. Other tools DO NOT.
|
|
79
79
|
|
|
80
|
+
### Code-First Approach (MANDATORY for Non-Claude Tools)
|
|
81
|
+
|
|
82
|
+
> **Engineering insight**: [Anthropic research](https://www.anthropic.com/engineering/code-execution-with-mcp) shows code execution achieves **98% token reduction** vs MCP tool calls.
|
|
83
|
+
>
|
|
84
|
+
> **For non-Claude tools, this is even MORE important** - MCP support varies, but `npx` works everywhere!
|
|
85
|
+
|
|
86
|
+
**Rule**: Always prefer direct code execution over MCP:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
# ❌ DON'T: Use Playwright MCP for testing
|
|
90
|
+
# ✅ DO: Write Playwright tests and run with npx
|
|
91
|
+
npx playwright test
|
|
92
|
+
|
|
93
|
+
# ❌ DON'T: Use Kafka MCP for messaging
|
|
94
|
+
# ✅ DO: Write kafkajs code
|
|
95
|
+
import { Kafka } from 'kafkajs';
|
|
96
|
+
const kafka = new Kafka({ brokers: ['localhost:9092'] });
|
|
97
|
+
|
|
98
|
+
# ❌ DON'T: Chain multiple MCP tool calls
|
|
99
|
+
# ✅ DO: Write a script that does all the work
|
|
100
|
+
npx ts-node scripts/process-data.ts
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**Why code is better**:
|
|
104
|
+
| Aspect | MCP | Code (`npx`) |
|
|
105
|
+
|--------|-----|--------------|
|
|
106
|
+
| Token cost | High (tool defs + data duplication) | Low (only results) |
|
|
107
|
+
| Reusability | Ephemeral | Committed to git |
|
|
108
|
+
| CI/CD | Usually can't run | Native execution |
|
|
109
|
+
| Debugging | Limited | Full stack traces |
|
|
110
|
+
| Works with | Tools with MCP support | ANY tool |
|
|
111
|
+
|
|
112
|
+
**Pattern for non-Claude tools**:
|
|
113
|
+
```
|
|
114
|
+
1. AI writes code (test, script, automation)
|
|
115
|
+
2. You run: npx <command>
|
|
116
|
+
3. AI analyzes output
|
|
117
|
+
4. Repeat
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
This gives you the SAME experience as Claude Code with MCP, but deterministic and reusable!
|
|
121
|
+
|
|
80
122
|
### What's Different
|
|
81
123
|
|
|
82
124
|
| Feature | Claude Code | Cursor/Copilot |
|
|
@@ -327,7 +369,40 @@ max_context_tokens: 10000
|
|
|
327
369
|
|
|
328
370
|
{SKILLS_SECTION}
|
|
329
371
|
|
|
330
|
-
**Usage**:
|
|
372
|
+
**Usage for Claude Code**: Skills auto-activate based on keywords in your prompt.
|
|
373
|
+
|
|
374
|
+
**Usage for Non-Claude Tools (Cursor, Copilot, etc.)**:
|
|
375
|
+
Skills don't auto-activate. You must manually load them:
|
|
376
|
+
|
|
377
|
+
```bash
|
|
378
|
+
# Step 1: Find relevant skill
|
|
379
|
+
ls plugins/specweave*/skills/
|
|
380
|
+
|
|
381
|
+
# Step 2: Read the skill file
|
|
382
|
+
cat plugins/specweave/skills/increment-planner/SKILL.md
|
|
383
|
+
|
|
384
|
+
# Step 3: Tell AI to follow the skill's workflow
|
|
385
|
+
"Follow the increment-planner skill workflow to create my feature"
|
|
386
|
+
|
|
387
|
+
# Step 4: AI reads skill content and follows instructions
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
**Skill Simulation Pattern**:
|
|
391
|
+
```
|
|
392
|
+
Non-Claude AI Tools simulate skills by:
|
|
393
|
+
1. Reading SKILL.md files from plugins/ folder
|
|
394
|
+
2. Following the workflow instructions inside
|
|
395
|
+
3. Using the patterns and templates provided
|
|
396
|
+
4. Running `npx` commands instead of MCP tools (code-first!)
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
**Example** - Creating increment with Cursor:
|
|
400
|
+
```
|
|
401
|
+
User: "Create an increment for user authentication"
|
|
402
|
+
AI: [Reads plugins/specweave/skills/increment-planner/SKILL.md]
|
|
403
|
+
AI: [Follows PM workflow: research → spec → plan → tasks]
|
|
404
|
+
AI: [Creates .specweave/increments/0001-auth/spec.md, plan.md, tasks.md]
|
|
405
|
+
```
|
|
331
406
|
|
|
332
407
|
---
|
|
333
408
|
|
|
@@ -436,20 +511,28 @@ Or run: `/specweave:sync-tasks`
|
|
|
436
511
|
|
|
437
512
|
### Skills/Agents Not Activating
|
|
438
513
|
|
|
439
|
-
**Non-Claude tools**: Skills don't auto-activate.
|
|
514
|
+
**Non-Claude tools**: Skills don't auto-activate. This is EXPECTED.
|
|
440
515
|
|
|
441
|
-
**Manual activation**:
|
|
516
|
+
**Manual activation (Cursor, Copilot, Windsurf, etc.)**:
|
|
442
517
|
```bash
|
|
443
|
-
# 1.
|
|
444
|
-
|
|
518
|
+
# 1. Find skills in plugins folder (NOT .claude/)
|
|
519
|
+
ls plugins/specweave*/skills/
|
|
520
|
+
|
|
521
|
+
# 2. Read the skill file
|
|
522
|
+
cat plugins/specweave/skills/e2e-playwright/SKILL.md
|
|
445
523
|
|
|
446
|
-
#
|
|
447
|
-
|
|
448
|
-
cat .claude/skills/increment-planner/SKILL.md
|
|
524
|
+
# 3. Tell AI to follow it
|
|
525
|
+
"Read the e2e-playwright skill and write tests for my login page"
|
|
449
526
|
|
|
450
|
-
# 4.
|
|
527
|
+
# 4. AI writes code, YOU run it (code-first!)
|
|
528
|
+
npx playwright test
|
|
451
529
|
```
|
|
452
530
|
|
|
531
|
+
**Remember**: Non-Claude tools get SAME functionality by:
|
|
532
|
+
- Reading skill files manually
|
|
533
|
+
- Following the workflows inside
|
|
534
|
+
- Running `npx` instead of MCP tools (better anyway!)
|
|
535
|
+
|
|
453
536
|
---
|
|
454
537
|
|
|
455
538
|
## Documentation
|