specweave 0.10.1 → 0.11.0
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/marketplace.json +2 -2
- package/CLAUDE.md +55 -146
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +69 -58
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/helpers/issue-tracker/index.d.ts.map +1 -1
- package/dist/cli/helpers/issue-tracker/index.js +39 -0
- package/dist/cli/helpers/issue-tracker/index.js.map +1 -1
- package/dist/cli/helpers/issue-tracker/jira.d.ts.map +1 -1
- package/dist/cli/helpers/issue-tracker/jira.js +2 -9
- package/dist/cli/helpers/issue-tracker/jira.js.map +1 -1
- package/package.json +1 -1
- package/plugins/specweave/skills/increment-planner/SKILL.md +13 -92
- package/plugins/specweave/skills/plugin-installer/SKILL.md +22 -7
- package/plugins/specweave-ado/agents/ado-manager/AGENT.md +2 -0
- package/plugins/specweave-ado/commands/specweave-ado-sync.md +102 -9
- package/plugins/specweave-ado/skills/ado-sync/SKILL.md +7 -3
- package/plugins/specweave-github/agents/github-manager/AGENT.md +14 -4
- package/plugins/specweave-github/commands/specweave-github-sync.md +60 -11
- package/plugins/specweave-github/skills/github-sync/SKILL.md +3 -1
- package/plugins/specweave-jira/agents/jira-manager/AGENT.md +18 -8
- package/plugins/specweave-jira/commands/specweave-jira-sync.md +62 -19
- package/plugins/specweave-jira/skills/jira-sync/SKILL.md +5 -3
|
@@ -1,21 +1,36 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: plugin-installer
|
|
3
|
-
description:
|
|
3
|
+
description: DEPRECATED - This skill is no longer needed. All plugins are now installed automatically during specweave init. This skill remains for backward compatibility but should NOT activate.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Plugin Installer -
|
|
6
|
+
# Plugin Installer - DEPRECATED
|
|
7
7
|
|
|
8
|
-
**
|
|
8
|
+
**Status**: ⚠️ **DEPRECATED** - Do not use this skill
|
|
9
9
|
|
|
10
|
-
**
|
|
10
|
+
**Reason**: As of v0.11.0+, ALL SpecWeave plugins (19+) are automatically installed during `specweave init`. There is no need for just-in-time plugin installation anymore.
|
|
11
|
+
|
|
12
|
+
**What Changed**:
|
|
13
|
+
- ❌ Old: Selective plugin loading with just-in-time installation
|
|
14
|
+
- ✅ New: All plugins installed upfront during init
|
|
15
|
+
|
|
16
|
+
**If you see this skill activating**, it means you're using an old SpecWeave installation. Run `specweave init` again to get all plugins installed automatically.
|
|
11
17
|
|
|
12
18
|
---
|
|
13
19
|
|
|
14
|
-
##
|
|
20
|
+
## For Contributors: Why This Was Deprecated
|
|
15
21
|
|
|
16
|
-
**The Problem
|
|
22
|
+
**The Problem with Just-in-Time Installation**:
|
|
23
|
+
- Added complexity to the workflow
|
|
24
|
+
- Users had to wait for installations mid-work
|
|
25
|
+
- Network issues could block work unexpectedly
|
|
26
|
+
- Detection logic was fragile (keyword matching)
|
|
17
27
|
|
|
18
|
-
**The Solution
|
|
28
|
+
**The Solution - Install Everything Upfront**:
|
|
29
|
+
- All 19+ plugins installed during `specweave init`
|
|
30
|
+
- Takes ~30 seconds upfront but saves time later
|
|
31
|
+
- All capabilities available immediately
|
|
32
|
+
- No network dependencies during work
|
|
33
|
+
- Simpler, more predictable user experience
|
|
19
34
|
|
|
20
35
|
---
|
|
21
36
|
|
|
@@ -23,6 +23,8 @@ context: |
|
|
|
23
23
|
- API authentication and rate limiting
|
|
24
24
|
- Error handling and retry strategies
|
|
25
25
|
|
|
26
|
+
**Default Behavior**: **Bidirectional sync** (two-way) - Synchronizes changes in both directions automatically
|
|
27
|
+
|
|
26
28
|
---
|
|
27
29
|
|
|
28
30
|
## 🚨 CRITICAL: Concept Mapping (MANDATORY)
|
|
@@ -1,49 +1,142 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: specweave-ado:sync
|
|
3
|
-
description:
|
|
3
|
+
description: Bidirectional sync between SpecWeave increment and Azure DevOps work item (two-way sync by default)
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Sync ADO Work Item Command
|
|
7
7
|
|
|
8
|
-
**Usage**: `/specweave-ado:sync <increment-id
|
|
8
|
+
**Usage**: `/specweave-ado:sync <increment-id> [options]`
|
|
9
9
|
|
|
10
|
-
**Purpose**:
|
|
10
|
+
**Purpose**: Bidirectional synchronization between SpecWeave increment and Azure DevOps work item
|
|
11
|
+
|
|
12
|
+
**Default**: Two-way sync (bidirectional)
|
|
11
13
|
|
|
12
14
|
---
|
|
13
15
|
|
|
14
|
-
##
|
|
16
|
+
## Options
|
|
17
|
+
|
|
18
|
+
- `--direction <mode>`: Sync direction (default: `bidirectional`)
|
|
19
|
+
- `bidirectional`: SpecWeave ↔ ADO (default - recommended)
|
|
20
|
+
- `to-ado`: SpecWeave → ADO only (push progress)
|
|
21
|
+
- `from-ado`: ADO → SpecWeave only (pull updates)
|
|
22
|
+
|
|
23
|
+
## Examples
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Bidirectional sync (default - two-way)
|
|
27
|
+
/specweave-ado:sync 0005
|
|
28
|
+
|
|
29
|
+
# Push only (one-way to ADO)
|
|
30
|
+
/specweave-ado:sync 0005 --direction to-ado
|
|
31
|
+
|
|
32
|
+
# Pull only (one-way from ADO)
|
|
33
|
+
/specweave-ado:sync 0005 --direction from-ado
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
---
|
|
15
37
|
|
|
16
|
-
|
|
38
|
+
## Command Behavior
|
|
17
39
|
|
|
40
|
+
When user runs this command, invoke `ado-manager` agent to perform bidirectional sync:
|
|
41
|
+
|
|
42
|
+
### Phase 1: Pull FROM ADO (default behavior)
|
|
43
|
+
1. Fetch work item state from ADO API
|
|
44
|
+
2. Detect changes in ADO:
|
|
45
|
+
- State changes (New → Active → Resolved → Closed)
|
|
46
|
+
- Priority changes
|
|
47
|
+
- Iteration/sprint changes
|
|
48
|
+
- Comments from team members
|
|
49
|
+
- Field updates
|
|
50
|
+
3. Apply ADO changes to SpecWeave increment:
|
|
51
|
+
- Update increment status to match ADO state
|
|
52
|
+
- Update priority in metadata
|
|
53
|
+
- Import team comments to increment notes
|
|
54
|
+
- Update iteration tracking
|
|
55
|
+
|
|
56
|
+
### Phase 2: Push TO ADO (default behavior)
|
|
18
57
|
1. Read tasks.md from increment
|
|
19
58
|
2. Calculate completion percentage
|
|
20
59
|
3. Identify recently completed tasks
|
|
21
60
|
4. Format progress update comment
|
|
22
61
|
5. POST comment to ADO work item
|
|
23
62
|
6. Update work item state if needed (New → Active → Resolved)
|
|
63
|
+
7. Update custom fields (completion %, current task, etc.)
|
|
24
64
|
|
|
25
65
|
**Agent Invocation**:
|
|
26
66
|
```
|
|
27
67
|
Use Task tool with subagent_type: "ado-manager"
|
|
28
68
|
|
|
29
|
-
Prompt: "
|
|
69
|
+
Prompt: "Bidirectional sync for increment 0005-payment-integration with ADO.
|
|
30
70
|
|
|
31
|
-
|
|
71
|
+
Phase 1 - Pull FROM ADO:
|
|
72
|
+
1. Fetch work item #12345 from ADO API
|
|
73
|
+
2. Detect changes: state, priority, iteration, comments
|
|
74
|
+
3. Apply ADO changes to increment metadata
|
|
75
|
+
4. Import team comments to increment notes
|
|
76
|
+
|
|
77
|
+
Phase 2 - Push TO ADO:
|
|
32
78
|
1. Read .specweave/increments/0005/tasks.md
|
|
33
79
|
2. Calculate: X/Y tasks complete (Z%)
|
|
34
80
|
3. Identify: Recently completed tasks
|
|
35
81
|
4. Format comment with progress update
|
|
36
82
|
5. Load work item ID from increment-metadata.json
|
|
37
83
|
6. POST comment to ADO API
|
|
38
|
-
7.
|
|
84
|
+
7. Update work item state/fields
|
|
85
|
+
|
|
86
|
+
Display: Bidirectional sync summary"
|
|
39
87
|
```
|
|
40
88
|
|
|
41
89
|
---
|
|
42
90
|
|
|
43
91
|
## Example Output
|
|
44
92
|
|
|
93
|
+
### Bidirectional Sync (Default)
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
🔄 Bidirectional sync for increment 0005...
|
|
97
|
+
|
|
98
|
+
✓ Azure DevOps work item: #12345
|
|
99
|
+
✓ Sync direction: bidirectional (two-way)
|
|
100
|
+
|
|
101
|
+
Detecting changes (both directions)...
|
|
102
|
+
|
|
103
|
+
FROM ADO:
|
|
104
|
+
✓ Work item state changed: Active → Resolved
|
|
105
|
+
✓ Iteration updated: Sprint 23 → Sprint 24
|
|
106
|
+
✓ Priority changed: 2 → 1
|
|
107
|
+
✓ 3 new comments from team
|
|
108
|
+
|
|
109
|
+
FROM SpecWeave:
|
|
110
|
+
✓ 2 new tasks completed (T-005, T-006)
|
|
111
|
+
✓ Progress: 40% → 60% (6/10 tasks)
|
|
112
|
+
✓ Current task: T-007
|
|
113
|
+
|
|
114
|
+
Syncing TO ADO...
|
|
115
|
+
✓ Posted progress comment (ID: 98765)
|
|
116
|
+
✓ Updated completion: 60%
|
|
117
|
+
✓ Updated current task field: T-007
|
|
118
|
+
|
|
119
|
+
Syncing FROM ADO...
|
|
120
|
+
✓ Updated increment status: active → completed
|
|
121
|
+
✓ Updated priority: P2 → P1
|
|
122
|
+
✓ Updated iteration tracking: Sprint 24
|
|
123
|
+
✓ Imported 3 team comments to increment notes
|
|
124
|
+
|
|
125
|
+
✅ Bidirectional Sync Complete!
|
|
126
|
+
|
|
127
|
+
SpecWeave ↔ ADO synchronized
|
|
128
|
+
• Pushed: Progress (60%), 2 task updates
|
|
129
|
+
• Pulled: State (Resolved), priority (P1), iteration, 3 comments
|
|
130
|
+
|
|
131
|
+
ADO Work Item: https://dev.azure.com/myorg/MyProject/_workitems/edit/12345
|
|
132
|
+
Last synced: just now
|
|
133
|
+
Next sync: Automatic (hook-based) or manual when ready
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### One-Way Sync (to-ado)
|
|
137
|
+
|
|
45
138
|
```
|
|
46
|
-
✅
|
|
139
|
+
✅ Pushed to ADO Work Item #12345
|
|
47
140
|
|
|
48
141
|
Progress: 60% complete (6/10 tasks)
|
|
49
142
|
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ado-sync
|
|
3
|
-
description: Bidirectional synchronization between SpecWeave increments and Azure DevOps work items. Creates work items from increments, tracks progress via comments, updates increment status from work item state,
|
|
3
|
+
description: Bidirectional synchronization between SpecWeave increments and Azure DevOps work items (two-way sync by default). Creates work items from increments, tracks progress via comments, updates increment status from work item state, syncs changes in both directions automatically. Activates for: Azure DevOps, ADO, work items, project management, sync to ADO, ADO integration, TFS integration, bidirectional ADO sync.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Azure DevOps Sync Skill
|
|
7
7
|
|
|
8
8
|
**Purpose**: Seamlessly sync SpecWeave increments with Azure DevOps work items for unified project tracking.
|
|
9
9
|
|
|
10
|
+
**Default Behavior**: **Bidirectional (two-way) sync** - Changes in either system are automatically synchronized
|
|
11
|
+
|
|
10
12
|
**Capabilities**:
|
|
13
|
+
- Bidirectional sync: SpecWeave ↔ ADO (default)
|
|
11
14
|
- Create ADO work items from increments
|
|
12
|
-
- Sync task progress → ADO comments
|
|
13
|
-
- Update increment status
|
|
15
|
+
- Sync task progress → ADO comments
|
|
16
|
+
- Update increment status ← ADO state changes
|
|
17
|
+
- Pull ADO comments and field updates → SpecWeave
|
|
14
18
|
- Close work items when increments complete
|
|
15
19
|
- Support for Epics, Features, User Stories
|
|
16
20
|
|
|
@@ -6,23 +6,33 @@
|
|
|
6
6
|
|
|
7
7
|
**Tools**: Read, Write, Edit, Bash (GitHub CLI)
|
|
8
8
|
|
|
9
|
+
**Default Behavior**: **Bidirectional sync** (two-way) - Synchronizes changes in both directions automatically
|
|
10
|
+
|
|
9
11
|
---
|
|
10
12
|
|
|
11
13
|
## Capabilities
|
|
12
14
|
|
|
13
15
|
As the GitHub Manager agent, I specialize in:
|
|
14
16
|
|
|
15
|
-
### 1.
|
|
17
|
+
### 1. Bidirectional Synchronization (Default)
|
|
18
|
+
- **Two-Way Sync**: Keep SpecWeave and GitHub synchronized automatically
|
|
19
|
+
- **FROM GitHub**: Pull status changes, labels, comments, state updates
|
|
20
|
+
- **TO GitHub**: Push task completion, progress updates, metadata
|
|
21
|
+
- **Conflict Resolution**: Detect and resolve conflicts between systems
|
|
22
|
+
- **Smart Merging**: Merge changes from both directions intelligently
|
|
23
|
+
- **Change Detection**: Track what changed in both systems since last sync
|
|
24
|
+
|
|
25
|
+
### 2. Issue Management
|
|
16
26
|
- **Create Issues**: Generate well-formatted GitHub issues from increment specs
|
|
17
|
-
- **Update Issues**: Sync progress, add comments, update labels
|
|
27
|
+
- **Update Issues**: Sync progress, add comments, update labels (bidirectional)
|
|
18
28
|
- **Close Issues**: Close issues with completion summaries
|
|
19
29
|
- **Link Issues**: Connect related issues, PRs, and increments
|
|
20
30
|
- **Bulk Operations**: Batch create/update/close issues
|
|
21
31
|
|
|
22
|
-
###
|
|
32
|
+
### 3. Progress Tracking
|
|
23
33
|
- **Task Checklists**: Generate and update task checklists in issues
|
|
24
34
|
- **Progress Comments**: Post detailed task completion comments
|
|
25
|
-
- **Status Updates**:
|
|
35
|
+
- **Status Updates**: Bidirectional sync of increment status ↔ GitHub issue state
|
|
26
36
|
- **Time Tracking**: Track estimated vs actual time per task
|
|
27
37
|
- **Milestone Progress**: Update milestone completion percentages
|
|
28
38
|
|
|
@@ -26,32 +26,64 @@ Synchronize the current state of a SpecWeave increment with its GitHub issue acr
|
|
|
26
26
|
- `--comment`: Post progress comment (default)
|
|
27
27
|
- `--labels`: Update issue labels based on status
|
|
28
28
|
- `--force`: Force sync even if up-to-date
|
|
29
|
-
- `--direction`: Sync direction (`to-github`, `from-github`, `bidirectional`)
|
|
29
|
+
- `--direction`: Sync direction (`to-github`, `from-github`, `bidirectional` - **default: bidirectional**)
|
|
30
30
|
- `--all`: Sync all active increments
|
|
31
31
|
|
|
32
32
|
### Safety Options
|
|
33
33
|
- `--dry-run`: Preview changes without applying
|
|
34
34
|
- `--skip-rate-check`: Skip rate limit validation (not recommended)
|
|
35
35
|
|
|
36
|
+
## Sync Direction
|
|
37
|
+
|
|
38
|
+
**Default: Bidirectional** (two-way sync)
|
|
39
|
+
|
|
40
|
+
SpecWeave syncs changes in **both directions** by default:
|
|
41
|
+
|
|
42
|
+
| Direction | What It Does | Use When |
|
|
43
|
+
|-----------|-------------|----------|
|
|
44
|
+
| **`bidirectional`** (default) | SpecWeave ↔ GitHub<br>• Pull changes FROM GitHub (status, labels, comments)<br>• Push changes TO GitHub (tasks, progress, metadata) | **Always** (recommended for keeping both systems in sync) |
|
|
45
|
+
| `to-github` | SpecWeave → GitHub only<br>• Push increment progress to GitHub<br>• Don't pull GitHub changes back | Read-only GitHub usage, or when GitHub is downstream |
|
|
46
|
+
| `from-github` | GitHub → SpecWeave only<br>• Pull GitHub issue updates<br>• Don't push SpecWeave changes | Importing GitHub issues, or when SpecWeave is downstream |
|
|
47
|
+
|
|
48
|
+
**Why Bidirectional?**
|
|
49
|
+
- ✅ Keep both systems synchronized automatically
|
|
50
|
+
- ✅ GitHub status changes update SpecWeave (closed issue → completed increment)
|
|
51
|
+
- ✅ SpecWeave task completion updates GitHub (task done → checklist updated)
|
|
52
|
+
- ✅ Team members can work in either tool
|
|
53
|
+
- ✅ No data loss from changes in either system
|
|
54
|
+
|
|
55
|
+
**Override if needed:**
|
|
56
|
+
```bash
|
|
57
|
+
# Push only (one-way to GitHub)
|
|
58
|
+
/specweave-github:sync 0004 --direction to-github
|
|
59
|
+
|
|
60
|
+
# Pull only (one-way from GitHub)
|
|
61
|
+
/specweave-github:sync 0004 --direction from-github
|
|
62
|
+
```
|
|
63
|
+
|
|
36
64
|
## Examples
|
|
37
65
|
|
|
38
66
|
```bash
|
|
39
|
-
# Interactive sync (
|
|
67
|
+
# Interactive bidirectional sync (default - two-way)
|
|
40
68
|
/specweave-github:sync 0004
|
|
41
69
|
|
|
42
|
-
# Use specific profile
|
|
70
|
+
# Use specific profile (still bidirectional by default)
|
|
43
71
|
/specweave-github:sync 0004 --profile specweave-dev
|
|
44
72
|
|
|
45
|
-
# Specify time range
|
|
73
|
+
# Specify time range (bidirectional)
|
|
46
74
|
/specweave-github:sync 0004 --time-range 1M
|
|
47
75
|
|
|
48
|
-
# Full sync with all options
|
|
76
|
+
# Full bidirectional sync with all options
|
|
49
77
|
/specweave-github:sync 0004 --profile main --time-range 1M --tasks --labels
|
|
50
78
|
|
|
79
|
+
# One-way sync examples (override default)
|
|
80
|
+
/specweave-github:sync 0004 --direction to-github # Push only
|
|
81
|
+
/specweave-github:sync 0004 --direction from-github # Pull only
|
|
82
|
+
|
|
51
83
|
# Dry run to preview changes
|
|
52
84
|
/specweave-github:sync 0004 --dry-run
|
|
53
85
|
|
|
54
|
-
# Force sync all increments
|
|
86
|
+
# Force sync all increments (bidirectional)
|
|
55
87
|
/specweave-github:sync --all --force
|
|
56
88
|
```
|
|
57
89
|
|
|
@@ -151,35 +183,52 @@ Continue with sync? [Y/n]:
|
|
|
151
183
|
If confirmed, sync proceeds with progress updates:
|
|
152
184
|
|
|
153
185
|
```
|
|
154
|
-
🔄
|
|
186
|
+
🔄 Bidirectional sync for increment 0004...
|
|
155
187
|
|
|
156
188
|
✓ Profile loaded: specweave-dev
|
|
157
189
|
✓ GitHub repository: anton-abyzov/specweave
|
|
158
190
|
✓ Rate limit check: PASSED (4,850/5,000 remaining)
|
|
191
|
+
✓ Sync direction: bidirectional (two-way)
|
|
159
192
|
|
|
160
193
|
Fetching increment state...
|
|
161
194
|
✓ Increment loaded: 0004-plugin-architecture
|
|
162
195
|
✓ GitHub issue: #130
|
|
163
196
|
✓ Last synced: 30 minutes ago
|
|
164
197
|
|
|
165
|
-
Detecting changes...
|
|
198
|
+
Detecting changes (both directions)...
|
|
199
|
+
|
|
200
|
+
FROM GitHub:
|
|
201
|
+
✓ Issue status changed: open → closed
|
|
202
|
+
✓ Label added: ready-for-release
|
|
203
|
+
✓ 2 new comments from team
|
|
204
|
+
|
|
205
|
+
FROM SpecWeave:
|
|
166
206
|
✓ 3 new tasks completed (T-005, T-006, T-007)
|
|
167
207
|
✓ Progress: 4/48 → 7/48 (15%)
|
|
168
208
|
✓ Current task: T-008
|
|
169
209
|
|
|
170
|
-
Syncing
|
|
210
|
+
Syncing TO GitHub...
|
|
171
211
|
✓ Posted progress comment (ID: 1234567)
|
|
172
212
|
✓ Updated task checklist (7 tasks marked complete)
|
|
173
213
|
✓ Updated labels: +in-progress
|
|
174
214
|
✓ Metadata updated
|
|
175
215
|
|
|
216
|
+
Syncing FROM GitHub...
|
|
217
|
+
✓ Updated increment status: active → completed
|
|
218
|
+
✓ Applied label: ready-for-release
|
|
219
|
+
✓ Imported 2 team comments to increment notes
|
|
220
|
+
|
|
176
221
|
Rate limit after sync: 4,570/5,000 (91% available)
|
|
177
222
|
|
|
178
|
-
✅ Sync Complete!
|
|
223
|
+
✅ Bidirectional Sync Complete!
|
|
224
|
+
|
|
225
|
+
SpecWeave ↔ GitHub synchronized
|
|
226
|
+
• Pushed: 3 task updates, progress comment
|
|
227
|
+
• Pulled: Status change, label, 2 comments
|
|
179
228
|
|
|
180
229
|
GitHub Issue: https://github.com/anton-abyzov/specweave/issues/130
|
|
181
230
|
Last synced: just now
|
|
182
|
-
Next sync:
|
|
231
|
+
Next sync: Automatic (hook-based) or manual when ready
|
|
183
232
|
```
|
|
184
233
|
|
|
185
234
|
## Key Features
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: github-sync
|
|
3
|
-
description: Bidirectional synchronization between SpecWeave increments and GitHub Issues. Creates issues from increments, tracks progress via comments, updates increment status from issue state,
|
|
3
|
+
description: Bidirectional synchronization between SpecWeave increments and GitHub Issues (two-way sync by default). Creates issues from increments, tracks progress via comments, updates increment status from issue state, syncs changes in both directions automatically. Activates for GitHub sync, issue creation, increment tracking, GitHub integration, issue management, sync to GitHub, bidirectional sync.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# GitHub Sync - Bidirectional Increment ↔ Issue Synchronization
|
|
7
7
|
|
|
8
8
|
**Purpose**: Seamlessly synchronize SpecWeave increments with GitHub Issues for team visibility and project management.
|
|
9
9
|
|
|
10
|
+
**Default Behavior**: **Bidirectional (two-way) sync** - Changes in either system are automatically synchronized
|
|
11
|
+
|
|
10
12
|
**When to Use**:
|
|
11
13
|
- Creating new increments (auto-create GitHub issue)
|
|
12
14
|
- Syncing increment progress to GitHub (comments with task completion %)
|
|
@@ -6,31 +6,41 @@
|
|
|
6
6
|
|
|
7
7
|
**Tools**: Read, Write, Edit, Bash (curl for Jira API)
|
|
8
8
|
|
|
9
|
+
**Default Behavior**: **Bidirectional sync** (two-way) - Synchronizes changes in both directions automatically
|
|
10
|
+
|
|
9
11
|
---
|
|
10
12
|
|
|
11
13
|
## Capabilities
|
|
12
14
|
|
|
13
15
|
As the Jira Manager agent, I specialize in:
|
|
14
16
|
|
|
15
|
-
### 1.
|
|
17
|
+
### 1. Bidirectional Synchronization (Default)
|
|
18
|
+
- **Two-Way Sync**: Keep SpecWeave and Jira synchronized automatically
|
|
19
|
+
- **FROM Jira**: Pull status changes, priority updates, sprint assignments, comments
|
|
20
|
+
- **TO Jira**: Push task completion, progress updates, story points, metadata
|
|
21
|
+
- **Conflict Resolution**: Detect and resolve conflicts between systems
|
|
22
|
+
- **Smart Merging**: Merge changes from both directions intelligently
|
|
23
|
+
- **Change Detection**: Track what changed in both systems since last sync
|
|
24
|
+
|
|
25
|
+
### 2. Epic Management
|
|
16
26
|
- **Create Epics**: Generate Jira Epics from SpecWeave increments
|
|
17
|
-
- **Update Epics**:
|
|
27
|
+
- **Update Epics**: Bidirectional sync of progress, status, comments
|
|
18
28
|
- **Close Epics**: Close epics with completion summaries
|
|
19
29
|
- **Link Epics**: Connect related epics, stories, and tasks
|
|
20
30
|
- **Custom Fields**: Handle custom fields, labels, versions
|
|
21
31
|
|
|
22
|
-
###
|
|
32
|
+
### 3. Story & Task Management
|
|
23
33
|
- **Create Stories**: Map SpecWeave specs to Jira Stories (PRD or RFC)
|
|
24
34
|
- **Create Tasks**: Map SpecWeave tasks to Jira Tasks
|
|
25
|
-
- **Update Status**:
|
|
35
|
+
- **Update Status**: Bidirectional sync of task completion
|
|
26
36
|
- **Subtasks**: Handle Jira subtasks and dependencies
|
|
27
37
|
- **Bulk Operations**: Batch create/update stories and tasks
|
|
28
38
|
|
|
29
|
-
###
|
|
30
|
-
- **Sprint Progress**: Track epic progress within sprints
|
|
39
|
+
### 4. Progress Tracking
|
|
40
|
+
- **Sprint Progress**: Track epic progress within sprints (bidirectional)
|
|
31
41
|
- **Story Points**: Calculate and update story points
|
|
32
|
-
- **Status Updates**:
|
|
33
|
-
- **Comments**: Post task completion comments
|
|
42
|
+
- **Status Updates**: Bidirectional sync of status changes
|
|
43
|
+
- **Comments**: Post task completion comments and import Jira comments
|
|
34
44
|
- **Time Tracking**: Track estimated vs actual time
|
|
35
45
|
|
|
36
46
|
### 4. Jira API Operations
|
|
@@ -11,39 +11,60 @@ You are a Jira synchronization expert. Help the user sync between Jira and SpecW
|
|
|
11
11
|
|
|
12
12
|
### Epic-Level Operations
|
|
13
13
|
|
|
14
|
-
**1.
|
|
14
|
+
**1. Bidirectional Sync (Default - Recommended)**
|
|
15
15
|
```
|
|
16
|
-
/specweave:sync-
|
|
16
|
+
/specweave-jira:sync 0003 # Two-way sync (default)
|
|
17
|
+
/specweave-jira:sync 0003 --direction bidirectional # Explicit
|
|
17
18
|
```
|
|
18
19
|
|
|
19
|
-
**2.
|
|
20
|
+
**2. Import Jira Epic as SpecWeave Increment**
|
|
20
21
|
```
|
|
21
|
-
/specweave:sync-
|
|
22
|
+
/specweave-jira:sync import SCRUM-123 # One-time pull
|
|
23
|
+
/specweave-jira:sync SCRUM-123 --direction from-jira # Same as import
|
|
22
24
|
```
|
|
23
25
|
|
|
24
26
|
**3. Export SpecWeave Increment to Jira**
|
|
25
27
|
```
|
|
26
|
-
/specweave:sync
|
|
28
|
+
/specweave-jira:sync export 0001 # One-time push
|
|
29
|
+
/specweave-jira:sync 0001 --direction to-jira # Same as export
|
|
27
30
|
```
|
|
28
31
|
|
|
32
|
+
### Sync Direction Options
|
|
33
|
+
|
|
34
|
+
**Default: `bidirectional`** (two-way sync - recommended)
|
|
35
|
+
|
|
36
|
+
- `--direction bidirectional`: SpecWeave ↔ Jira (default)
|
|
37
|
+
- Pull changes FROM Jira (status, priority, comments)
|
|
38
|
+
- Push changes TO Jira (tasks, progress, metadata)
|
|
39
|
+
|
|
40
|
+
- `--direction to-jira`: SpecWeave → Jira only
|
|
41
|
+
- Push increment progress to Jira
|
|
42
|
+
- Don't pull Jira changes back
|
|
43
|
+
- Same as `export` operation
|
|
44
|
+
|
|
45
|
+
- `--direction from-jira`: Jira → SpecWeave only
|
|
46
|
+
- Pull Jira issue updates
|
|
47
|
+
- Don't push SpecWeave changes
|
|
48
|
+
- Same as `import` operation
|
|
49
|
+
|
|
29
50
|
### Granular Item Operations
|
|
30
51
|
|
|
31
52
|
**4. Add specific Story/Bug/Task to existing Increment**
|
|
32
53
|
```
|
|
33
|
-
/specweave:sync
|
|
34
|
-
/specweave:sync
|
|
54
|
+
/specweave-jira:sync add SCRUM-1 to 0003
|
|
55
|
+
/specweave-jira:sync add SCRUM-1 # Adds to current increment
|
|
35
56
|
```
|
|
36
57
|
|
|
37
58
|
**5. Create Increment from specific items (cherry-pick)**
|
|
38
59
|
```
|
|
39
|
-
/specweave:sync
|
|
40
|
-
/specweave:sync
|
|
60
|
+
/specweave-jira:sync create "User Authentication" from SCRUM-1 SCRUM-5 SCRUM-7
|
|
61
|
+
/specweave-jira:sync create "Bug Fixes Sprint 1" from SCRUM-10 SCRUM-15 SCRUM-20
|
|
41
62
|
```
|
|
42
63
|
|
|
43
64
|
**6. Show sync status**
|
|
44
65
|
```
|
|
45
|
-
/specweave:sync
|
|
46
|
-
/specweave:sync
|
|
66
|
+
/specweave-jira:sync status
|
|
67
|
+
/specweave-jira:sync status 0003 # Status of specific increment
|
|
47
68
|
```
|
|
48
69
|
|
|
49
70
|
## Your Task
|
|
@@ -154,19 +175,39 @@ When the user runs this command:
|
|
|
154
175
|
| Task | SCRUM-7 | Setup provider |
|
|
155
176
|
```
|
|
156
177
|
|
|
157
|
-
### Example 5: Sync
|
|
158
|
-
**User**: `/specweave
|
|
178
|
+
### Example 5: Bidirectional Sync (Default)
|
|
179
|
+
**User**: `/specweave-jira:sync 0003`
|
|
159
180
|
**You**:
|
|
160
181
|
- Read increment 0003
|
|
161
182
|
- Find linked Jira items (from spec.md frontmatter.work_items)
|
|
162
183
|
- Fetch current state from Jira
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
-
|
|
166
|
-
-
|
|
184
|
+
|
|
185
|
+
**Detect changes (both directions)**:
|
|
186
|
+
- FROM Jira: Status changes, priority updates, comments
|
|
187
|
+
- FROM SpecWeave: Task completion, progress updates
|
|
188
|
+
|
|
189
|
+
**Show bidirectional sync summary**:
|
|
190
|
+
```
|
|
191
|
+
✅ Bidirectional Sync Complete: 0003 ↔ Jira
|
|
192
|
+
|
|
193
|
+
FROM Jira:
|
|
194
|
+
• SCRUM-1: Status changed to In Progress
|
|
195
|
+
• SCRUM-10: Priority raised to P1
|
|
196
|
+
|
|
197
|
+
FROM SpecWeave:
|
|
198
|
+
• 3 tasks completed (T-005, T-006, T-007)
|
|
199
|
+
• Progress: 60% → 75%
|
|
200
|
+
|
|
201
|
+
Conflicts: None
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
**Handle conflicts if any**:
|
|
205
|
+
- Show both versions (Jira vs SpecWeave)
|
|
206
|
+
- Ask user which to keep or how to merge
|
|
207
|
+
- Apply resolution bidirectionally
|
|
167
208
|
|
|
168
209
|
### Example 6: Status Overview
|
|
169
|
-
**User**: `/specweave:sync
|
|
210
|
+
**User**: `/specweave-jira:sync status`
|
|
170
211
|
**You**:
|
|
171
212
|
- Scan all increments for Jira metadata
|
|
172
213
|
- Show table:
|
|
@@ -188,10 +229,12 @@ When the user runs this command:
|
|
|
188
229
|
|
|
189
230
|
## Related Commands
|
|
190
231
|
|
|
191
|
-
- `/specweave:sync
|
|
232
|
+
- `/specweave-github:sync` - Sync to GitHub issues (also bidirectional by default)
|
|
192
233
|
- `/specweave:increment` - Create new increment
|
|
193
234
|
- `/specweave:validate` - Validate increment quality
|
|
194
235
|
|
|
195
236
|
---
|
|
196
237
|
|
|
238
|
+
**Bidirectional by Default**: All sync operations are two-way unless you explicitly specify `--direction to-jira` or `--direction from-jira`. This keeps both systems synchronized automatically.
|
|
239
|
+
|
|
197
240
|
**Granular Control**: Unlike simple epic import/export, this command supports cherry-picking individual stories, bugs, and tasks for maximum flexibility.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: jira-sync
|
|
3
|
-
description:
|
|
3
|
+
description: Bidirectional sync between SpecWeave increments and JIRA epics/stories (two-way sync by default). Activates for JIRA sync, create JIRA issue, import from JIRA, sync to JIRA, bidirectional JIRA sync. Coordinates with specweave-jira-mapper agent.
|
|
4
4
|
allowed-tools: Read, Write, Edit, Task, Bash
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -8,11 +8,13 @@ allowed-tools: Read, Write, Edit, Task, Bash
|
|
|
8
8
|
|
|
9
9
|
Coordinates JIRA synchronization by delegating to `specweave-jira-mapper` agent.
|
|
10
10
|
|
|
11
|
+
**Default Behavior**: **Bidirectional (two-way) sync** - Changes synchronized in both directions automatically
|
|
12
|
+
|
|
11
13
|
## Responsibilities
|
|
12
14
|
|
|
13
|
-
1. Detect sync requests (
|
|
15
|
+
1. Detect sync requests (bidirectional by default, or export/import if specified)
|
|
14
16
|
2. Validate prerequisites (JIRA credentials, increment structure)
|
|
15
|
-
3. Invoke `specweave-jira-mapper` agent
|
|
17
|
+
3. Invoke `specweave-jira-mapper` agent with sync direction
|
|
16
18
|
4. Handle errors gracefully
|
|
17
19
|
|
|
18
20
|
---
|