@groupby/ai-dev 0.2.1 → 0.3.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/README.md +3 -1
- package/dist/index.js +86 -19
- package/package.json +4 -4
- package/skills/library/implementation-plan/README.md +19 -0
- package/skills/library/implementation-plan/SKILL.md +337 -0
- package/skills/library/jira-plan/README.md +17 -0
- package/skills/library/jira-plan/SKILL.md +163 -0
- package/toolsets/rzlv-flow/README.md +54 -9
- package/toolsets/rzlv-flow/resources/confluence-file-structure.md +129 -23
- package/toolsets/rzlv-flow/resources/sync-state-format.md +109 -0
- package/toolsets/rzlv-flow/skills/jira-daily-triage/SKILL.md +13 -5
- package/toolsets/rzlv-flow/skills/jira-sprint-status/SKILL.md +28 -1
- package/toolsets/rzlv-flow/skills/jira-ticket-focus/SKILL.md +6 -1
- package/toolsets/rzlv-flow/skills/jira-wrap-sync/SKILL.md +41 -8
- package/skills/skills/README.md +0 -61
- package/skills/skills/archived/README.md +0 -3
- package/skills/skills/library/README.md +0 -3
- package/skills/skills/library/frontend-design/LICENSE.txt +0 -177
- package/skills/skills/library/frontend-design/SKILL.md +0 -42
- package/teams/teams/brain-studio/skills/code-review/SKILL.md +0 -46
- package/toolsets/toolsets/rzlv-flow/README.md +0 -102
- package/toolsets/toolsets/rzlv-flow/docs/mcp-setup.md +0 -126
- package/toolsets/toolsets/rzlv-flow/resources/README.md +0 -16
- package/toolsets/toolsets/rzlv-flow/resources/confluence-file-structure.md +0 -285
- package/toolsets/toolsets/rzlv-flow/resources/confluence-page-templates/README.md +0 -19
- package/toolsets/toolsets/rzlv-flow/resources/confluence-page-templates/decisions.md +0 -36
- package/toolsets/toolsets/rzlv-flow/resources/confluence-page-templates/initiative-overview.md +0 -40
- package/toolsets/toolsets/rzlv-flow/resources/confluence-page-templates/strategic-context.md +0 -44
- package/toolsets/toolsets/rzlv-flow/resources/confluence-page-templates/technical-architecture.md +0 -48
- package/toolsets/toolsets/rzlv-flow/resources/fcmp-protocol.md +0 -331
- package/toolsets/toolsets/rzlv-flow/resources/jira-file-structure.md +0 -177
- package/toolsets/toolsets/rzlv-flow/resources/sync-state-format.md +0 -318
- package/toolsets/toolsets/rzlv-flow/skills/atlassian-orchestrator/SKILL.md +0 -643
- package/toolsets/toolsets/rzlv-flow/skills/context-analyst/SKILL.md +0 -265
- package/toolsets/toolsets/rzlv-flow/skills/jira-comment/SKILL.md +0 -89
- package/toolsets/toolsets/rzlv-flow/skills/jira-daily-triage/SKILL.md +0 -143
- package/toolsets/toolsets/rzlv-flow/skills/jira-sprint-status/SKILL.md +0 -143
- package/toolsets/toolsets/rzlv-flow/skills/jira-status/SKILL.md +0 -97
- package/toolsets/toolsets/rzlv-flow/skills/jira-sync/SKILL.md +0 -148
- package/toolsets/toolsets/rzlv-flow/skills/jira-ticket-focus/SKILL.md +0 -245
- package/toolsets/toolsets/rzlv-flow/skills/jira-ticket-trace/SKILL.md +0 -112
- package/toolsets/toolsets/rzlv-flow/skills/jira-wrap-sync/SKILL.md +0 -260
- /package/toolsets/{toolsets/rzlv-flow → rzlv-flow}/docs/getting-started.md +0 -0
- /package/toolsets/{toolsets/rzlv-flow → rzlv-flow}/skills/confluence-fetch/SKILL.md +0 -0
- /package/toolsets/{toolsets/rzlv-flow → rzlv-flow}/skills/confluence-publish/SKILL.md +0 -0
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: jira-wrap-sync
|
|
3
|
-
description: Wrap up your current work on a Jira ticket. Analyzes local ticket changes and code changes (git diff), drafts a comprehensive Jira comment, runs FCMP sync, and presents multi-select actions (sync fields, add comment, transition status, create PR, update Confluence). Use when you're done working on a ticket or want to sync progress.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
Wrap up work on the currently focused Jira ticket. Detects what changed (ticket fields and code), drafts a Jira comment summarizing progress, runs the FCMP protocol before syncing, and presents a multi-select action menu so you can sync fields, comment, transition status, and create a PR in one pass.
|
|
7
|
-
|
|
8
|
-
## Requirements
|
|
9
|
-
|
|
10
|
-
Requires: Atlassian MCP (`atlassian-rovo`). See the rzlv-flow toolset README for setup.
|
|
11
|
-
Optional: GitHub MCP for Pull Request creation (action 4).
|
|
12
|
-
|
|
13
|
-
## Resources to Load
|
|
14
|
-
|
|
15
|
-
Before executing, read these resource files:
|
|
16
|
-
|
|
17
|
-
- `docs/ai/resources/fcmp-protocol.md` — **critical** for the sync protocol before any Jira writes
|
|
18
|
-
- `docs/ai/resources/sync-state-format.md` — YAML frontmatter schema for reading/updating ticket files
|
|
19
|
-
|
|
20
|
-
## Process
|
|
21
|
-
|
|
22
|
-
### Step 1: Identify the Ticket
|
|
23
|
-
|
|
24
|
-
- Use `focused_ticket` from conversation context (set by `jira-ticket-focus`).
|
|
25
|
-
- If not available, ask the user for the ticket key.
|
|
26
|
-
- Locate the local ticket file at the path stored in `focused_ticket_path`, or find it using the `jira-file-structure.md` rules.
|
|
27
|
-
|
|
28
|
-
### Step 2: Analyze All Changes
|
|
29
|
-
|
|
30
|
-
**a) Local ticket file changes:**
|
|
31
|
-
- Read the current `{TICKET-KEY}.md` file.
|
|
32
|
-
- Compare the content against the last synced state stored in the `sync` frontmatter fields.
|
|
33
|
-
- Detect changes to: description, story points, acceptance criteria, labels, priority.
|
|
34
|
-
- Note which fields were modified locally.
|
|
35
|
-
|
|
36
|
-
**b) Code changes:**
|
|
37
|
-
- Run `git diff --stat` for an overview of changes.
|
|
38
|
-
- Run `git diff` (or `git diff --staged` if changes are staged) for details.
|
|
39
|
-
- Check recent commits on the working branch: `git log --oneline -10`.
|
|
40
|
-
- Map code changes to acceptance criteria where possible.
|
|
41
|
-
- Summarize: files changed, insertions, deletions.
|
|
42
|
-
|
|
43
|
-
**c) Acceptance criteria progress:**
|
|
44
|
-
- Read the AC list from the ticket file.
|
|
45
|
-
- Based on code changes and commit messages, infer which AC items have been completed.
|
|
46
|
-
- Show checkbox progress:
|
|
47
|
-
```
|
|
48
|
-
- [x] AC 1 — Completed (matches changes in auth-controller.ts)
|
|
49
|
-
- [x] AC 2 — Completed (matches changes in rate-limiter.ts)
|
|
50
|
-
- [ ] AC 3 — Not yet addressed
|
|
51
|
-
```
|
|
52
|
-
- Note: this is a best-effort inference. The user confirms the final state.
|
|
53
|
-
|
|
54
|
-
### Step 3: Draft Jira Comment
|
|
55
|
-
|
|
56
|
-
Build a comprehensive comment with the standardized prefix `[rzlv-flow Update]`:
|
|
57
|
-
|
|
58
|
-
```
|
|
59
|
-
[rzlv-flow Update]
|
|
60
|
-
|
|
61
|
-
{IF TICKET FIELD CHANGES:}
|
|
62
|
-
**Ticket Updates:**
|
|
63
|
-
- {field change 1}
|
|
64
|
-
- {field change 2}
|
|
65
|
-
|
|
66
|
-
{IF CODE CHANGES:}
|
|
67
|
-
**Implementation Progress:**
|
|
68
|
-
- {code change summary line 1}
|
|
69
|
-
- {code change summary line 2}
|
|
70
|
-
|
|
71
|
-
**Files Modified:**
|
|
72
|
-
- {file1}: {brief description}
|
|
73
|
-
- {file2}: {brief description}
|
|
74
|
-
|
|
75
|
-
**Acceptance Criteria:**
|
|
76
|
-
- [x] {completed AC 1}
|
|
77
|
-
- [x] {completed AC 2}
|
|
78
|
-
- [ ] {remaining AC 3}
|
|
79
|
-
**Progress:** {X}/{Y} completed
|
|
80
|
-
|
|
81
|
-
**Next Steps:** {suggested next action}
|
|
82
|
-
|
|
83
|
-
Context: {optional PR link or Confluence doc link}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### Step 4: FCMP Preview (Prepare PUSH — Dry Run)
|
|
87
|
-
|
|
88
|
-
Before executing any write operations, run the full FCMP cycle and present a dry-run preview:
|
|
89
|
-
|
|
90
|
-
1. **FETCH** — Get the current ticket state from Jira via MCP.
|
|
91
|
-
2. **COMPARE** — Check for remote changes since last sync (compare `sync.version` and `sync.remote_updated`).
|
|
92
|
-
3. **MERGE** — If conflicts detected, show a diff of remote changes vs local changes and resolve with the user.
|
|
93
|
-
4. **Preview** — Show a dry-run diff of what will change if the user proceeds:
|
|
94
|
-
|
|
95
|
-
```
|
|
96
|
-
### FCMP Preview (Dry Run)
|
|
97
|
-
{IF NO REMOTE CHANGES:}
|
|
98
|
-
✓ Remote is unchanged since last sync — safe to push.
|
|
99
|
-
|
|
100
|
-
{IF REMOTE CHANGES DETECTED:}
|
|
101
|
-
⚠️ Remote changes detected since last sync:
|
|
102
|
-
- {field}: {old_value} → {new_value}
|
|
103
|
-
|
|
104
|
-
**Proposed local → remote changes:**
|
|
105
|
-
- Description: {diff summary}
|
|
106
|
-
- Story Points: {old} → {new}
|
|
107
|
-
- Status: {current} (no change)
|
|
108
|
-
|
|
109
|
-
Proceed with sync? (y/n)
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
Only proceed to the action menu after the FCMP preview is confirmed.
|
|
113
|
-
|
|
114
|
-
### Step 5: Present Multi-Select Action Menu
|
|
115
|
-
|
|
116
|
-
Present all detected changes, the draft comment, and a multi-select numbered menu. The user picks multiple actions via comma-separated numbers.
|
|
117
|
-
|
|
118
|
-
```
|
|
119
|
-
### Available Actions (Multi-Select)
|
|
120
|
-
|
|
121
|
-
{IF TICKET FIELD CHANGES DETECTED:}
|
|
122
|
-
1. Sync ticket fields to Jira (description, points, AC)
|
|
123
|
-
|
|
124
|
-
{IF CODE CHANGES OR TICKET CHANGES:}
|
|
125
|
-
2. Add comment to Jira (with the draft summary above)
|
|
126
|
-
|
|
127
|
-
3. Transition status (you'll specify the target status)
|
|
128
|
-
|
|
129
|
-
{IF CODE CHANGES AND COMMITS EXIST:}
|
|
130
|
-
4. Create Pull Request (via GitHub MCP)
|
|
131
|
-
|
|
132
|
-
{IF SIGNIFICANT CHANGES:}
|
|
133
|
-
5. Update Confluence technical docs
|
|
134
|
-
|
|
135
|
-
6. Cancel (do nothing)
|
|
136
|
-
|
|
137
|
-
**Choose actions (comma-separated):** [1,2,3,4]
|
|
138
|
-
|
|
139
|
-
Examples:
|
|
140
|
-
- "1,2,3,4" = Sync ticket + comment + transition + create PR
|
|
141
|
-
- "2,3" = Comment + transition only
|
|
142
|
-
- "6" = Cancel all actions
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
### Step 6: Execute Selected Actions
|
|
146
|
-
|
|
147
|
-
Parse the comma-separated input. Execute each selected action in order:
|
|
148
|
-
|
|
149
|
-
**Action 1 — Sync ticket fields:**
|
|
150
|
-
- Update description, story points, AC, and any other changed fields via MCP.
|
|
151
|
-
- Include the `version` field for optimistic locking per FCMP.
|
|
152
|
-
- On 409 conflict, re-run FCMP from Fetch.
|
|
153
|
-
|
|
154
|
-
**Action 2 — Add comment:**
|
|
155
|
-
- Push the draft comment via MCP.
|
|
156
|
-
- For detailed comment procedures, see the `jira-comment` skill.
|
|
157
|
-
|
|
158
|
-
**Action 3 — Transition status:**
|
|
159
|
-
- Fetch available transitions via MCP.
|
|
160
|
-
- Present as a numbered list for the user to select target status.
|
|
161
|
-
- Execute the transition via MCP.
|
|
162
|
-
- For detailed transition procedures, see the `jira-status` skill.
|
|
163
|
-
|
|
164
|
-
**Action 4 — Create Pull Request (via GitHub MCP):**
|
|
165
|
-
1. Check for unpushed commits: `git log origin/{branch}..HEAD`
|
|
166
|
-
2. If unpushed commits exist, ask: "Push commits first? (y/n)"
|
|
167
|
-
3. If yes: `git push origin {branch}`
|
|
168
|
-
4. Detect base branch (check git config or default to `main`).
|
|
169
|
-
5. Build PR details:
|
|
170
|
-
- **Title:** `{TICKET-KEY}: {ticket summary}`
|
|
171
|
-
- **Body:**
|
|
172
|
-
```
|
|
173
|
-
## {TICKET-KEY}: {Ticket Summary}
|
|
174
|
-
|
|
175
|
-
**Jira:** https://{instance}/browse/{TICKET-KEY}
|
|
176
|
-
{IF CONFLUENCE DOCS:}
|
|
177
|
-
**Confluence:** {confluence_link}
|
|
178
|
-
|
|
179
|
-
### Changes
|
|
180
|
-
{ticket updates + code changes from the draft comment}
|
|
181
|
-
|
|
182
|
-
### Acceptance Criteria
|
|
183
|
-
- [x] {completed criterion}
|
|
184
|
-
- [ ] {remaining criterion}
|
|
185
|
-
|
|
186
|
-
### Testing Notes
|
|
187
|
-
{Any notes from _work/ folder if they exist}
|
|
188
|
-
```
|
|
189
|
-
6. Create PR via GitHub MCP: `create_pull_request()`
|
|
190
|
-
7. Return and display the PR URL.
|
|
191
|
-
|
|
192
|
-
**Action 5 — Update Confluence:**
|
|
193
|
-
- Prompt the user for what to update and where.
|
|
194
|
-
- Follow FCMP protocol for the Confluence update.
|
|
195
|
-
|
|
196
|
-
**Action 6 — Cancel:**
|
|
197
|
-
- Exit without performing any actions. Ignore all other selections if "6" is included.
|
|
198
|
-
|
|
199
|
-
### Step 7: Post-Execution
|
|
200
|
-
|
|
201
|
-
After all selected MCP operations:
|
|
202
|
-
|
|
203
|
-
1. **FETCH** the final ticket state from Jira.
|
|
204
|
-
2. Update the local `{TICKET-KEY}.md` with the new sync state (version, last_synced, status).
|
|
205
|
-
3. Confirm what was completed:
|
|
206
|
-
- List each action and its result.
|
|
207
|
-
- If a PR was created, display the PR URL.
|
|
208
|
-
- Suggest a next action if remaining work exists.
|
|
209
|
-
|
|
210
|
-
### Error Handling
|
|
211
|
-
|
|
212
|
-
- If any MCP operation fails, report which step failed and continue with remaining operations.
|
|
213
|
-
- If the GitHub MCP is not configured, skip PR creation with a warning: "GitHub MCP not configured. Skipping PR creation."
|
|
214
|
-
- On optimistic locking conflicts (409), re-run FCMP from Fetch and retry.
|
|
215
|
-
|
|
216
|
-
## Output Format
|
|
217
|
-
|
|
218
|
-
```
|
|
219
|
-
## 🎬 Wrap Up: {TICKET-KEY}
|
|
220
|
-
|
|
221
|
-
### Local Ticket Changes Detected
|
|
222
|
-
{IF FIELD CHANGES:}
|
|
223
|
-
- **Description:** {change summary or "No changes"}
|
|
224
|
-
- **Story Points:** {old} → {new} (or "No change")
|
|
225
|
-
- **Acceptance Criteria:** {added/removed items} (or "No changes")
|
|
226
|
-
|
|
227
|
-
{IF NO CHANGES:}
|
|
228
|
-
_(No local ticket changes detected)_
|
|
229
|
-
|
|
230
|
-
### Code Changes Detected
|
|
231
|
-
{IF GIT DIFF:}
|
|
232
|
-
{n} files changed, {lines added} insertions(+), {lines deleted} deletions(-)
|
|
233
|
-
|
|
234
|
-
Modified files:
|
|
235
|
-
- {file1}
|
|
236
|
-
- {file2}
|
|
237
|
-
|
|
238
|
-
{IF NO CHANGES:}
|
|
239
|
-
_(No code changes detected)_
|
|
240
|
-
|
|
241
|
-
### Acceptance Criteria Status
|
|
242
|
-
- [x] {Completed criterion}
|
|
243
|
-
- [ ] {Remaining criterion}
|
|
244
|
-
|
|
245
|
-
**Progress:** {X}/{Y} completed
|
|
246
|
-
|
|
247
|
-
### Draft Comment for Jira
|
|
248
|
-
{The full draft comment from Step 3}
|
|
249
|
-
|
|
250
|
-
---
|
|
251
|
-
|
|
252
|
-
### Available Actions (Multi-Select)
|
|
253
|
-
{Numbered action list from Step 5}
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
## Session Context
|
|
257
|
-
|
|
258
|
-
After running, update conversational context:
|
|
259
|
-
- **last_wrap_actions** — Which actions were executed
|
|
260
|
-
- **pr_url** — The PR URL if one was created
|
|
File without changes
|
|
File without changes
|
|
File without changes
|