specweave 1.0.261 → 1.0.263
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/.claude-plugin/README.md +0 -2
- package/CLAUDE.md +27 -27
- package/bin/specweave.js +14 -85
- package/dist/dashboard/assets/index-Cv1XUAKk.css +1 -0
- package/dist/dashboard/assets/index-DHOztQSu.js +11 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/src/adapters/README.md +1 -1
- package/dist/src/adapters/agents-md-generator.js +1 -1
- package/dist/src/adapters/agents-md-generator.js.map +1 -1
- package/dist/src/adapters/claude/README.md +8 -8
- package/dist/src/adapters/claude/adapter.js +2 -2
- package/dist/src/adapters/claude-md-generator.js +2 -2
- package/dist/src/adapters/claude-md-generator.js.map +1 -1
- package/dist/src/adapters/cursor/README.md +7 -7
- package/dist/src/adapters/generic/README.md +2 -2
- package/dist/src/cli/commands/create-increment.d.ts +1 -1
- package/dist/src/cli/commands/create-increment.js +1 -1
- package/dist/src/cli/commands/update.d.ts.map +1 -1
- package/dist/src/cli/commands/update.js +64 -1
- package/dist/src/cli/commands/update.js.map +1 -1
- package/dist/src/cli/helpers/init/api-docs-config.js +7 -7
- package/dist/src/cli/helpers/init/api-docs-config.js.map +1 -1
- package/dist/src/core/config/types.d.ts +18 -0
- package/dist/src/core/config/types.d.ts.map +1 -1
- package/dist/src/core/config/types.js +4 -0
- package/dist/src/core/config/types.js.map +1 -1
- package/dist/src/core/external-tools/external-items-display.d.ts.map +1 -1
- package/dist/src/core/external-tools/external-items-display.js +1 -11
- package/dist/src/core/external-tools/external-items-display.js.map +1 -1
- package/dist/src/core/increment/increment-archiver.js +1 -1
- package/dist/src/core/increment/increment-archiver.js.map +1 -1
- package/dist/src/core/increment/metadata-manager.js +2 -2
- package/dist/src/core/increment/metadata-manager.js.map +1 -1
- package/dist/src/core/increment/template-creator.d.ts +1 -1
- package/dist/src/core/increment/template-creator.js +4 -4
- package/dist/src/core/lazy-loading/llm-plugin-detector.d.ts +2 -2
- package/dist/src/core/lazy-loading/llm-plugin-detector.d.ts.map +1 -1
- package/dist/src/core/lazy-loading/llm-plugin-detector.js +15 -5
- package/dist/src/core/lazy-loading/llm-plugin-detector.js.map +1 -1
- package/dist/src/core/living-docs/feature-consistency-validator.js +1 -1
- package/dist/src/core/living-docs/feature-consistency-validator.js.map +1 -1
- package/dist/src/core/living-docs/scaffolding/scaffold.js +3 -3
- package/dist/src/core/notifications/command-integration.d.ts.map +1 -1
- package/dist/src/core/notifications/command-integration.js +0 -1
- package/dist/src/core/notifications/command-integration.js.map +1 -1
- package/dist/src/core/reflection/reflect-handler.js +2 -2
- package/dist/src/core/reflection/reflect-handler.js.map +1 -1
- package/dist/src/core/validators/ac-presence-validator.d.ts +1 -1
- package/dist/src/core/validators/ac-presence-validator.js +3 -3
- package/dist/src/core/validators/ac-presence-validator.js.map +1 -1
- package/dist/src/dashboard/server/command-runner.d.ts.map +1 -1
- package/dist/src/dashboard/server/command-runner.js +2 -2
- package/dist/src/dashboard/server/command-runner.js.map +1 -1
- package/dist/src/dashboard/server/dashboard-server.d.ts.map +1 -1
- package/dist/src/dashboard/server/dashboard-server.js +22 -10
- package/dist/src/dashboard/server/dashboard-server.js.map +1 -1
- package/dist/src/dashboard/server/data/dashboard-data-aggregator.d.ts +9 -1
- package/dist/src/dashboard/server/data/dashboard-data-aggregator.d.ts.map +1 -1
- package/dist/src/dashboard/server/data/dashboard-data-aggregator.js +140 -13
- package/dist/src/dashboard/server/data/dashboard-data-aggregator.js.map +1 -1
- package/dist/src/dashboard/server/data/plugin-scanner.d.ts +1 -1
- package/dist/src/dashboard/server/data/plugin-scanner.d.ts.map +1 -1
- package/dist/src/dashboard/server/data/plugin-scanner.js +2 -2
- package/dist/src/dashboard/server/data/plugin-scanner.js.map +1 -1
- package/dist/src/utils/agents-md-compiler.js +1 -1
- package/dist/src/utils/agents-md-compiler.js.map +1 -1
- package/dist/src/utils/find-project-root.d.ts +5 -4
- package/dist/src/utils/find-project-root.d.ts.map +1 -1
- package/dist/src/utils/find-project-root.js +8 -10
- package/dist/src/utils/find-project-root.js.map +1 -1
- package/dist/src/utils/generate-skills-index.js +3 -3
- package/dist/src/utils/notification-constants.js +1 -1
- package/dist/src/utils/notification-constants.js.map +1 -1
- package/package.json +1 -1
- package/plugins/FINAL-AUDIT-RECOMMENDATIONS.md +3 -3
- package/plugins/specweave/PLUGIN.md +0 -22
- package/plugins/specweave/commands/analytics.md +1 -1
- package/plugins/specweave/commands/discrepancies.md +0 -1
- package/plugins/specweave/commands/living-docs.md +0 -1
- package/plugins/specweave/commands/reconcile.md +1 -1
- package/plugins/specweave/hooks/hooks.json +19 -0
- package/plugins/specweave/hooks/pre-compact.sh +39 -0
- package/plugins/specweave/hooks/stop-sync.sh +23 -1
- package/plugins/specweave/hooks/universal/fail-fast-wrapper.sh +4 -0
- package/plugins/specweave/hooks/user-prompt-submit.sh +193 -59
- package/plugins/specweave/hooks/v2/dispatchers/post-tool-use-analytics.sh +83 -0
- package/plugins/specweave/hooks/v2/dispatchers/session-start.sh +7 -0
- package/plugins/specweave/hooks/v2/guards/spec-template-enforcement-guard.sh +1 -1
- package/plugins/specweave/hooks/v2/handlers/ac-sync-dispatcher.sh +25 -6
- package/plugins/specweave/hooks/v2/handlers/universal-auto-create-dispatcher.sh +21 -3
- package/plugins/specweave/hooks/v2/lib/check-provider-enabled.sh +52 -0
- package/plugins/specweave/lib/vendor/core/increment/metadata-manager.js +2 -2
- package/plugins/specweave/lib/vendor/core/increment/metadata-manager.js.map +1 -1
- package/plugins/specweave/scripts/track-analytics.sh +4 -0
- package/plugins/specweave/skills/do/SKILL.md +1 -1
- package/plugins/specweave/skills/done/SKILL.md +1 -1
- package/plugins/specweave/skills/framework/SKILL.md +4 -4
- package/plugins/specweave/skills/increment/SKILL.md +192 -25
- package/plugins/specweave/skills/next/SKILL.md +36 -630
- package/plugins/specweave/skills/pm/phases/00-deep-interview.md +2 -2
- package/plugins/specweave/skills/progress-sync/SKILL.md +7 -25
- package/plugins/specweave/skills/spec-generator/SKILL.md +44 -626
- package/plugins/specweave/skills/tdd-green/SKILL.md +10 -798
- package/plugins/specweave/skills/tdd-red/SKILL.md +8 -136
- package/plugins/specweave/skills/tdd-refactor/SKILL.md +15 -147
- package/plugins/specweave-github/hooks/github-auto-create-handler.sh +23 -5
- package/src/templates/AGENTS.md.template +11 -11
- package/src/templates/CLAUDE.md.template +1 -1
- package/dist/dashboard/assets/index-CDl14O5G.css +0 -1
- package/dist/dashboard/assets/index-CmqBqnWd.js +0 -11
- package/plugins/specweave/commands/api-docs.md +0 -672
- package/plugins/specweave/commands/check-hooks.md +0 -241
- package/plugins/specweave/commands/embed-acs.md +0 -445
- package/plugins/specweave/commands/external.md +0 -145
- package/plugins/specweave/commands/import-docs.md +0 -212
- package/plugins/specweave/commands/migrate-config.md +0 -104
- package/plugins/specweave/commands/notifications.md +0 -94
- package/plugins/specweave/commands/plugin-validator.md +0 -429
- package/plugins/specweave/commands/revert-wip-limit.md +0 -82
- package/plugins/specweave/commands/sync-acs.md +0 -342
- package/plugins/specweave/commands/sync-specs.md +0 -339
- package/plugins/specweave/commands/sync-tasks.md +0 -255
- package/plugins/specweave/commands/update-scope.md +0 -351
- package/plugins/specweave/commands/validate-features.md +0 -207
- package/plugins/specweave/skills/archive-increments/SKILL.md +0 -209
- package/plugins/specweave/skills/code-review/SKILL.md +0 -598
- package/plugins/specweave/skills/increment-planner/SKILL.md +0 -238
- package/plugins/specweave/skills/increment-work-router/SKILL.md +0 -562
- package/plugins/specweave/skills/multi-project-spec-mapper/SKILL.md +0 -423
- package/plugins/specweave/skills/pm-closure-validation/SKILL.md +0 -542
- package/plugins/specweave/skills/smart-reopen-detector/SKILL.md +0 -245
- package/plugins/specweave/skills/tdd-orchestrator/SKILL.md +0 -228
- package/plugins/specweave/skills/umbrella-repo-detector/SKILL.md +0 -301
|
@@ -1,429 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Validates SpecWeave plugin installation when EXPLICITLY requested by user. Use for checking if plugins are installed correctly, validating marketplace registration, or troubleshooting missing plugins. Only triggers on explicit requests to avoid false positives during normal workflow.
|
|
3
|
-
allowed-tools: Read, Bash, Grep
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Plugin Validator Skill
|
|
7
|
-
|
|
8
|
-
**Purpose**: Validate and install SpecWeave plugins when explicitly requested by the user.
|
|
9
|
-
|
|
10
|
-
**Activation**: Triggers ONLY when user explicitly requests plugin validation (e.g., "validate plugins", "check plugins", or runs `specweave validate-plugins` command). Does NOT auto-activate for workflow commands to prevent false positive errors.
|
|
11
|
-
|
|
12
|
-
## What This Skill Does
|
|
13
|
-
|
|
14
|
-
This skill ensures that your SpecWeave environment is properly configured with all required plugins BEFORE you start working. It prevents frustrating errors and wasted time from missing components.
|
|
15
|
-
|
|
16
|
-
### Key Features
|
|
17
|
-
|
|
18
|
-
1. **Marketplace Validation**: Ensures SpecWeave marketplace is registered in `~/.claude/settings.json`
|
|
19
|
-
2. **Core Plugin Check**: Verifies `specweave` plugin is installed
|
|
20
|
-
3. **Context Detection**: Analyzes your increment description and suggests relevant plugins
|
|
21
|
-
4. **Auto-Installation**: Can automatically install missing components (with your permission)
|
|
22
|
-
5. **Clear Guidance**: Shows exactly what's missing and how to fix it
|
|
23
|
-
|
|
24
|
-
## When This Skill Activates
|
|
25
|
-
|
|
26
|
-
✅ **ONLY activates when explicitly requested**:
|
|
27
|
-
- You mention "plugin validation" or "validate plugins"
|
|
28
|
-
- You mention "environment setup" or "check plugins"
|
|
29
|
-
- You run: `specweave validate-plugins`
|
|
30
|
-
- You ask: "Can you validate my plugins?"
|
|
31
|
-
- You report: "I'm getting plugin errors"
|
|
32
|
-
- During: `specweave init` (initial setup only)
|
|
33
|
-
|
|
34
|
-
❌ **Does NOT auto-activate for**:
|
|
35
|
-
- `/sw:increment` commands
|
|
36
|
-
- `/sw:do` commands
|
|
37
|
-
- Any other workflow commands
|
|
38
|
-
- Reason: Prevents false positive errors when plugins are installed but detection fails
|
|
39
|
-
|
|
40
|
-
## Validation Process
|
|
41
|
-
|
|
42
|
-
### Phase 1: Marketplace Check
|
|
43
|
-
|
|
44
|
-
**What**: Checks if SpecWeave marketplace is registered in Claude Code
|
|
45
|
-
**Where**: `~/.claude/settings.json`
|
|
46
|
-
**Expected**:
|
|
47
|
-
```json
|
|
48
|
-
{
|
|
49
|
-
"extraKnownMarketplaces": {
|
|
50
|
-
"specweave": {
|
|
51
|
-
"source": {
|
|
52
|
-
"source": "github",
|
|
53
|
-
"repo": "anton-abyzov/specweave",
|
|
54
|
-
"path": ".claude-plugin"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
**If missing**: Auto-creates the configuration
|
|
62
|
-
|
|
63
|
-
### Phase 2: Core Plugin Check
|
|
64
|
-
|
|
65
|
-
**What**: Verifies `specweave` plugin is installed
|
|
66
|
-
**Command**: `/plugin list --installed | grep "specweave"`
|
|
67
|
-
**Expected**: Plugin appears in the list
|
|
68
|
-
|
|
69
|
-
**If missing**: Suggests `/plugin install specweave`
|
|
70
|
-
|
|
71
|
-
### Phase 3: Context-Aware Plugin Detection
|
|
72
|
-
|
|
73
|
-
**What**: Scans your increment description for keywords
|
|
74
|
-
**Examples**:
|
|
75
|
-
|
|
76
|
-
| Your Description | Detected Keywords | Suggested Plugin |
|
|
77
|
-
|-----------------|-------------------|------------------|
|
|
78
|
-
| "Add GitHub sync" | github, sync | specweave-github |
|
|
79
|
-
| "Stripe billing with React UI" | stripe, billing, react, ui | specweave-payments, specweave-frontend |
|
|
80
|
-
| "Deploy to Kubernetes" | kubernetes, deploy | specweave-kubernetes |
|
|
81
|
-
| "Add Jira integration" | jira, integration | specweave-jira |
|
|
82
|
-
|
|
83
|
-
**Full Keyword Map** (15+ plugins):
|
|
84
|
-
- **specweave-github**: github, git, issues, pull request, pr, repository
|
|
85
|
-
- **specweave-jira**: jira, epic, story, sprint, backlog
|
|
86
|
-
- **specweave-ado**: azure devops, ado, work item, boards
|
|
87
|
-
- **specweave-payments**: stripe, billing, payment, subscription, invoice
|
|
88
|
-
- **specweave-frontend**: react, nextjs, vue, angular, frontend, ui
|
|
89
|
-
- **specweave-kubernetes**: kubernetes, k8s, helm, pod, deployment
|
|
90
|
-
- **specweave-ml**: machine learning, ml, tensorflow, pytorch, model
|
|
91
|
-
- **specweave-observability**: prometheus, grafana, monitoring, metrics
|
|
92
|
-
- **specweave-security**: security, owasp, vulnerability, audit
|
|
93
|
-
- **specweave-diagrams**: diagram, c4, mermaid, architecture
|
|
94
|
-
- **specweave-backend-nodejs**: nodejs, express, fastify, nestjs, backend
|
|
95
|
-
- **specweave-backend-python**: python, fastapi, django, flask
|
|
96
|
-
- **specweave-backend-dotnet**: dotnet, .net, aspnet, c#
|
|
97
|
-
- **specweave-e2e-testing**: playwright, e2e, end-to-end, browser
|
|
98
|
-
|
|
99
|
-
## Usage Examples
|
|
100
|
-
|
|
101
|
-
### Example 1: Fresh Environment
|
|
102
|
-
|
|
103
|
-
**Scenario**: You cloned a project to a new VM and want to start working.
|
|
104
|
-
|
|
105
|
-
**Action**: Run `/sw:increment "Add authentication"`
|
|
106
|
-
|
|
107
|
-
**What Happens**:
|
|
108
|
-
```
|
|
109
|
-
🔍 Validating SpecWeave environment...
|
|
110
|
-
|
|
111
|
-
❌ Missing components detected:
|
|
112
|
-
• SpecWeave marketplace not registered
|
|
113
|
-
• Core plugin (specweave) not installed
|
|
114
|
-
|
|
115
|
-
📦 Installing missing components...
|
|
116
|
-
✅ Marketplace registered (.claude/settings.json)
|
|
117
|
-
✅ Core plugin installed (specweave v0.9.4)
|
|
118
|
-
|
|
119
|
-
🎉 Environment ready! Proceeding with increment planning...
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
### Example 2: Context Detection
|
|
123
|
-
|
|
124
|
-
**Scenario**: You're adding a new feature that uses GitHub and React.
|
|
125
|
-
|
|
126
|
-
**Action**: Run `/sw:increment "Add GitHub sync with React UI"`
|
|
127
|
-
|
|
128
|
-
**What Happens**:
|
|
129
|
-
```
|
|
130
|
-
🔍 Validating SpecWeave environment...
|
|
131
|
-
|
|
132
|
-
✅ Marketplace registered
|
|
133
|
-
✅ Core plugin installed (specweave v0.9.4)
|
|
134
|
-
|
|
135
|
-
🔎 Detected context plugins from your description:
|
|
136
|
-
• specweave-github (keywords: github, sync)
|
|
137
|
-
• specweave-frontend (keywords: react, ui)
|
|
138
|
-
|
|
139
|
-
❌ Missing context plugins:
|
|
140
|
-
• specweave-github
|
|
141
|
-
• specweave-frontend
|
|
142
|
-
|
|
143
|
-
📦 Would you like to install these plugins?
|
|
144
|
-
They provide specialized expertise for your use case.
|
|
145
|
-
|
|
146
|
-
1. Yes, install now (recommended)
|
|
147
|
-
2. No, skip for now (limited capabilities)
|
|
148
|
-
|
|
149
|
-
Your choice [1]:
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
### Example 3: Manual Validation
|
|
153
|
-
|
|
154
|
-
**Scenario**: You want to check your environment without running a command.
|
|
155
|
-
|
|
156
|
-
**Action**: Run `specweave validate-plugins --verbose`
|
|
157
|
-
|
|
158
|
-
**What Happens**:
|
|
159
|
-
```
|
|
160
|
-
[PluginValidator] Checking marketplace registration...
|
|
161
|
-
[PluginValidator] Marketplace registered ✓
|
|
162
|
-
[PluginValidator] Checking core plugin (specweave)...
|
|
163
|
-
[PluginValidator] Core plugin installed ✓ (0.9.4)
|
|
164
|
-
|
|
165
|
-
✅ All plugins validated!
|
|
166
|
-
• Core plugin: installed (v0.9.4)
|
|
167
|
-
• Cache: miss
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
### Example 4: Dry-Run Mode
|
|
171
|
-
|
|
172
|
-
**Scenario**: You want to see what would be installed without actually installing.
|
|
173
|
-
|
|
174
|
-
**Action**: Run `specweave validate-plugins --context="Add Stripe billing" --dry-run`
|
|
175
|
-
|
|
176
|
-
**What Happens**:
|
|
177
|
-
```
|
|
178
|
-
🔍 Validating SpecWeave environment...
|
|
179
|
-
|
|
180
|
-
✅ Marketplace registered
|
|
181
|
-
✅ Core plugin installed
|
|
182
|
-
|
|
183
|
-
🔎 Detected context plugins:
|
|
184
|
-
• specweave-payments (keywords: stripe, billing)
|
|
185
|
-
|
|
186
|
-
❌ Missing: specweave-payments
|
|
187
|
-
|
|
188
|
-
💡 Dry-run mode: No changes made.
|
|
189
|
-
To install, remove --dry-run flag.
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
## CLI Command Reference
|
|
193
|
-
|
|
194
|
-
**Basic validation**:
|
|
195
|
-
```bash
|
|
196
|
-
specweave validate-plugins
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
**Auto-install missing components**:
|
|
200
|
-
```bash
|
|
201
|
-
specweave validate-plugins --auto-install
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
**With context detection**:
|
|
205
|
-
```bash
|
|
206
|
-
specweave validate-plugins --context="Add GitHub sync for mobile app"
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
**Dry-run (preview only)**:
|
|
210
|
-
```bash
|
|
211
|
-
specweave validate-plugins --dry-run --context="Add Stripe billing"
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
**Verbose mode**:
|
|
215
|
-
```bash
|
|
216
|
-
specweave validate-plugins --verbose
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
**Combined flags**:
|
|
220
|
-
```bash
|
|
221
|
-
specweave validate-plugins --auto-install --context="Deploy to Kubernetes" --verbose
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
## Troubleshooting
|
|
225
|
-
|
|
226
|
-
### Error: "Claude CLI not available"
|
|
227
|
-
|
|
228
|
-
**Symptom**: Validation fails with "command not found"
|
|
229
|
-
|
|
230
|
-
**Solution**:
|
|
231
|
-
1. Ensure Claude Code is installed
|
|
232
|
-
2. Restart your terminal
|
|
233
|
-
3. Verify: `claude --version`
|
|
234
|
-
4. If still failing, install plugins manually using `/plugin install` command
|
|
235
|
-
|
|
236
|
-
### Error: "Marketplace configuration invalid"
|
|
237
|
-
|
|
238
|
-
**Symptom**: Marketplace is registered but validation fails
|
|
239
|
-
|
|
240
|
-
**Solution**:
|
|
241
|
-
1. Check `~/.claude/settings.json` structure
|
|
242
|
-
2. Ensure marketplace points to GitHub source
|
|
243
|
-
3. If using local marketplace (dev mode), this is expected
|
|
244
|
-
4. Re-run validation to auto-fix configuration
|
|
245
|
-
|
|
246
|
-
### Error: "Plugin installation failed"
|
|
247
|
-
|
|
248
|
-
**Symptom**: Auto-install tries but fails
|
|
249
|
-
|
|
250
|
-
**Solution**:
|
|
251
|
-
1. Check internet connection (GitHub access required)
|
|
252
|
-
2. Verify Claude Code is running
|
|
253
|
-
3. Try manual installation: `/plugin install specweave`
|
|
254
|
-
4. Check Claude Code logs for detailed errors
|
|
255
|
-
|
|
256
|
-
### False Positive: Wrong Plugin Suggested
|
|
257
|
-
|
|
258
|
-
**Symptom**: Context detection suggests irrelevant plugin
|
|
259
|
-
|
|
260
|
-
**Example**: Description "Add GitHub Actions" suggests specweave-github (but you meant CI/CD, not issue tracking)
|
|
261
|
-
|
|
262
|
-
**Solution**:
|
|
263
|
-
1. Skip the suggestion (choose option 2)
|
|
264
|
-
2. Install correct plugin manually later
|
|
265
|
-
3. This is rare (2+ keyword matches required for suggestion)
|
|
266
|
-
|
|
267
|
-
## Performance
|
|
268
|
-
|
|
269
|
-
**Validation Speed**:
|
|
270
|
-
- ✅ With cache: <2 seconds
|
|
271
|
-
- ✅ Without cache: <5 seconds
|
|
272
|
-
- ✅ With auto-install: <30 seconds (1-2 plugins)
|
|
273
|
-
|
|
274
|
-
**Caching**:
|
|
275
|
-
- Results cached for 5 minutes
|
|
276
|
-
- Speeds up repeated commands
|
|
277
|
-
- Invalidated after plugin changes
|
|
278
|
-
- Cache location: `~/.specweave/validation-cache.json`
|
|
279
|
-
|
|
280
|
-
## Configuration
|
|
281
|
-
|
|
282
|
-
**Validation can be configured** in `.specweave/config.json`:
|
|
283
|
-
|
|
284
|
-
```json
|
|
285
|
-
{
|
|
286
|
-
"pluginValidation": {
|
|
287
|
-
"enabled": true, // Enable/disable validation (default: true)
|
|
288
|
-
"autoInstall": true, // Auto-install missing components (default: true)
|
|
289
|
-
"verbose": false, // Show detailed logs (default: false)
|
|
290
|
-
"cacheValidation": true, // Cache results (default: true)
|
|
291
|
-
"cacheTTL": 300 // Cache TTL in seconds (default: 300 = 5 min)
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
```
|
|
295
|
-
|
|
296
|
-
**Disable validation** (not recommended):
|
|
297
|
-
```json
|
|
298
|
-
{
|
|
299
|
-
"pluginValidation": {
|
|
300
|
-
"enabled": false
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
```
|
|
304
|
-
|
|
305
|
-
## Integration with Commands
|
|
306
|
-
|
|
307
|
-
**All SpecWeave commands validate plugins** before execution (STEP 0):
|
|
308
|
-
|
|
309
|
-
- `/sw:increment` - Validates before PM agent runs
|
|
310
|
-
- `/sw:do` - Validates before task execution
|
|
311
|
-
- `/sw:next` - Validates before next increment
|
|
312
|
-
- `/sw:done` - Validates before completion
|
|
313
|
-
- ... (all 22 commands)
|
|
314
|
-
|
|
315
|
-
**Workflow**:
|
|
316
|
-
```
|
|
317
|
-
User: /sw:increment "Add feature"
|
|
318
|
-
↓
|
|
319
|
-
[STEP 0: Plugin Validation]
|
|
320
|
-
↓ (only proceeds if valid)
|
|
321
|
-
[STEP 1: PM Agent Planning]
|
|
322
|
-
↓
|
|
323
|
-
[STEP 2: Architect Design]
|
|
324
|
-
↓
|
|
325
|
-
[STEP 3: Implementation]
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
## Benefits
|
|
329
|
-
|
|
330
|
-
✅ **Zero manual setup** - Plugins install automatically
|
|
331
|
-
✅ **Seamless migration** - Works across local/VM/Cloud IDE
|
|
332
|
-
✅ **Context-aware** - Suggests relevant plugins based on your work
|
|
333
|
-
✅ **Clear errors** - No more cryptic "command not found" messages
|
|
334
|
-
✅ **Fast** - Caching ensures minimal overhead (<2s cached, <5s uncached)
|
|
335
|
-
✅ **Non-blocking** - Can skip validation if needed (not recommended)
|
|
336
|
-
|
|
337
|
-
## Edge Cases
|
|
338
|
-
|
|
339
|
-
**1. Offline Mode**
|
|
340
|
-
- Validation detects missing plugins but can't install
|
|
341
|
-
- Shows manual instructions instead
|
|
342
|
-
- Validation still useful (identifies what's missing)
|
|
343
|
-
|
|
344
|
-
**2. Development Mode**
|
|
345
|
-
- Local marketplace detected (not GitHub)
|
|
346
|
-
- Shows warning: "Development mode detected"
|
|
347
|
-
- Validation passes (assumes dev knows what they're doing)
|
|
348
|
-
|
|
349
|
-
**3. Concurrent Validation**
|
|
350
|
-
- Multiple commands run simultaneously
|
|
351
|
-
- Uses cache to prevent duplicate validations
|
|
352
|
-
- Race conditions handled gracefully
|
|
353
|
-
|
|
354
|
-
**4. Partial Installation**
|
|
355
|
-
- Marketplace exists, but plugin missing (or vice versa)
|
|
356
|
-
- Installs only missing components
|
|
357
|
-
- Doesn't reinstall existing components
|
|
358
|
-
|
|
359
|
-
## Manual Installation (Fallback)
|
|
360
|
-
|
|
361
|
-
**If auto-install fails**, follow these steps:
|
|
362
|
-
|
|
363
|
-
### Step 1: Register Marketplace
|
|
364
|
-
|
|
365
|
-
Edit `~/.claude/settings.json`:
|
|
366
|
-
```json
|
|
367
|
-
{
|
|
368
|
-
"extraKnownMarketplaces": {
|
|
369
|
-
"specweave": {
|
|
370
|
-
"source": {
|
|
371
|
-
"source": "github",
|
|
372
|
-
"repo": "anton-abyzov/specweave",
|
|
373
|
-
"path": ".claude-plugin"
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
```
|
|
379
|
-
|
|
380
|
-
### Step 2: Install Core Plugin
|
|
381
|
-
|
|
382
|
-
In Claude Code, run:
|
|
383
|
-
```
|
|
384
|
-
/plugin install specweave
|
|
385
|
-
```
|
|
386
|
-
|
|
387
|
-
### Step 3: Restart Claude Code
|
|
388
|
-
|
|
389
|
-
Close and reopen Claude Code for changes to take effect.
|
|
390
|
-
|
|
391
|
-
### Step 4: Verify Installation
|
|
392
|
-
|
|
393
|
-
Run:
|
|
394
|
-
```bash
|
|
395
|
-
specweave validate-plugins
|
|
396
|
-
```
|
|
397
|
-
|
|
398
|
-
Should show:
|
|
399
|
-
```
|
|
400
|
-
✅ All plugins validated!
|
|
401
|
-
• Core plugin: installed (v0.9.4)
|
|
402
|
-
```
|
|
403
|
-
|
|
404
|
-
### Step 5: Install Context Plugins (Optional)
|
|
405
|
-
|
|
406
|
-
If you need specific plugins:
|
|
407
|
-
```
|
|
408
|
-
/plugin install sw-github@specweave
|
|
409
|
-
/plugin install sw-payments@specweave
|
|
410
|
-
/plugin install sw-frontend@specweave
|
|
411
|
-
```
|
|
412
|
-
|
|
413
|
-
## Summary
|
|
414
|
-
|
|
415
|
-
**This skill ensures you NEVER waste time debugging plugin issues.**
|
|
416
|
-
|
|
417
|
-
It proactively validates your environment, auto-installs missing components, and suggests relevant plugins based on your work. The result: you focus on building features, not troubleshooting setup.
|
|
418
|
-
|
|
419
|
-
**Questions?**
|
|
420
|
-
- Check troubleshooting section above
|
|
421
|
-
- Run `specweave validate-plugins --help`
|
|
422
|
-
- Visit: https://spec-weave.com/docs/plugin-validation
|
|
423
|
-
|
|
424
|
-
---
|
|
425
|
-
|
|
426
|
-
**Skill Version**: 1.0.0
|
|
427
|
-
**Introduced**: SpecWeave v0.9.4
|
|
428
|
-
**Last Updated**: 2025-11-09
|
|
429
|
-
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Revert WIP limit to original value after temporary adjustment
|
|
3
|
-
disable-model-invocation: true
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Revert WIP Limit Command
|
|
7
|
-
|
|
8
|
-
**Purpose**: Restore WIP (Work In Progress) limit to original value after temporary adjustment
|
|
9
|
-
|
|
10
|
-
## What This Command Does
|
|
11
|
-
|
|
12
|
-
When you temporarily adjust the WIP limit using the migration system:
|
|
13
|
-
```bash
|
|
14
|
-
bash plugins/specweave/hooks/lib/migrate-increment-work.sh adjust-wip 3
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
This command reverts it back to the original value (usually 2).
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
/sw:revert-wip-limit
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## What Gets Reverted
|
|
26
|
-
|
|
27
|
-
1. **WIP Limit**: Restored to original `hardCap` value (stored in `config.limits.originalHardCap`)
|
|
28
|
-
2. **Timestamp**: Cleared (`wipAdjustedAt` removed)
|
|
29
|
-
3. **Backup**: Original config backup is kept for safety
|
|
30
|
-
|
|
31
|
-
## Example Workflow
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
# 1. WIP limit reached, temporarily adjust
|
|
35
|
-
bash plugins/specweave/hooks/lib/migrate-increment-work.sh adjust-wip 3
|
|
36
|
-
|
|
37
|
-
# 2. Work on both increments (20% productivity cost)
|
|
38
|
-
|
|
39
|
-
# 3. Complete one increment
|
|
40
|
-
/sw:done 0026
|
|
41
|
-
|
|
42
|
-
# 4. Revert WIP limit back to 2
|
|
43
|
-
/sw:revert-wip-limit
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## Output
|
|
47
|
-
|
|
48
|
-
```
|
|
49
|
-
✅ WIP limit reverted to original value: 2
|
|
50
|
-
Previous limit: 3
|
|
51
|
-
Adjusted at: 2025-11-11T15:30:00Z
|
|
52
|
-
Duration: 2 hours 15 minutes
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Implementation
|
|
56
|
-
|
|
57
|
-
You should:
|
|
58
|
-
|
|
59
|
-
1. Read `.specweave/config.json`
|
|
60
|
-
2. Check if `limits.originalHardCap` exists
|
|
61
|
-
3. If yes:
|
|
62
|
-
- Restore `limits.hardCap = limits.originalHardCap`
|
|
63
|
-
- Remove `limits.wipAdjustedAt`
|
|
64
|
-
- Remove `limits.originalHardCap`
|
|
65
|
-
- Save config
|
|
66
|
-
4. If no: Show "No temporary WIP adjustment to revert"
|
|
67
|
-
|
|
68
|
-
## Safety
|
|
69
|
-
|
|
70
|
-
- Creates backup before reverting (`.specweave/config.json.bak`)
|
|
71
|
-
- Validates config structure
|
|
72
|
-
- Shows confirmation message
|
|
73
|
-
- Non-destructive (can manually restore from backup if needed)
|
|
74
|
-
|
|
75
|
-
## Best Practice
|
|
76
|
-
|
|
77
|
-
**Revert ASAP!** Temporary WIP adjustments are for emergencies only. The longer you work with 3+ active increments, the more productivity suffers.
|
|
78
|
-
|
|
79
|
-
**Research shows**:
|
|
80
|
-
- 1 active increment = 100% productivity
|
|
81
|
-
- 2 active increments = 80% productivity (20% cost)
|
|
82
|
-
- 3+ active increments = 60% productivity (40% cost)
|