@groupby/ai-dev 0.1.0 → 0.2.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.
Files changed (50) hide show
  1. package/README.md +104 -0
  2. package/dist/index.js +260 -21
  3. package/package.json +15 -10
  4. package/toolsets/rzlv-flow/README.md +57 -0
  5. package/toolsets/rzlv-flow/docs/mcp-setup.md +126 -0
  6. package/toolsets/rzlv-flow/resources/README.md +16 -0
  7. package/toolsets/rzlv-flow/resources/confluence-file-structure.md +179 -0
  8. package/toolsets/rzlv-flow/resources/confluence-page-templates/README.md +19 -0
  9. package/toolsets/rzlv-flow/resources/confluence-page-templates/decisions.md +36 -0
  10. package/toolsets/rzlv-flow/resources/confluence-page-templates/initiative-overview.md +40 -0
  11. package/toolsets/rzlv-flow/resources/confluence-page-templates/strategic-context.md +44 -0
  12. package/toolsets/rzlv-flow/resources/confluence-page-templates/technical-architecture.md +48 -0
  13. package/toolsets/rzlv-flow/resources/fcmp-protocol.md +331 -0
  14. package/toolsets/rzlv-flow/resources/jira-file-structure.md +177 -0
  15. package/toolsets/rzlv-flow/resources/sync-state-format.md +209 -0
  16. package/toolsets/rzlv-flow/skills/atlassian-orchestrator/SKILL.md +643 -0
  17. package/toolsets/rzlv-flow/skills/context-analyst/SKILL.md +265 -0
  18. package/toolsets/rzlv-flow/skills/jira-comment/SKILL.md +89 -0
  19. package/toolsets/rzlv-flow/skills/jira-daily-triage/SKILL.md +135 -0
  20. package/toolsets/rzlv-flow/skills/jira-sprint-status/SKILL.md +116 -0
  21. package/toolsets/rzlv-flow/skills/jira-status/SKILL.md +97 -0
  22. package/toolsets/rzlv-flow/skills/jira-sync/SKILL.md +148 -0
  23. package/toolsets/rzlv-flow/skills/jira-ticket-focus/SKILL.md +240 -0
  24. package/toolsets/rzlv-flow/skills/jira-ticket-trace/SKILL.md +112 -0
  25. package/toolsets/rzlv-flow/skills/jira-wrap-sync/SKILL.md +227 -0
  26. package/toolsets/toolsets/rzlv-flow/README.md +102 -0
  27. package/toolsets/toolsets/rzlv-flow/docs/getting-started.md +102 -0
  28. package/toolsets/toolsets/rzlv-flow/docs/mcp-setup.md +126 -0
  29. package/toolsets/toolsets/rzlv-flow/resources/README.md +16 -0
  30. package/toolsets/toolsets/rzlv-flow/resources/confluence-file-structure.md +285 -0
  31. package/toolsets/toolsets/rzlv-flow/resources/confluence-page-templates/README.md +19 -0
  32. package/toolsets/toolsets/rzlv-flow/resources/confluence-page-templates/decisions.md +36 -0
  33. package/toolsets/toolsets/rzlv-flow/resources/confluence-page-templates/initiative-overview.md +40 -0
  34. package/toolsets/toolsets/rzlv-flow/resources/confluence-page-templates/strategic-context.md +44 -0
  35. package/toolsets/toolsets/rzlv-flow/resources/confluence-page-templates/technical-architecture.md +48 -0
  36. package/toolsets/toolsets/rzlv-flow/resources/fcmp-protocol.md +331 -0
  37. package/toolsets/toolsets/rzlv-flow/resources/jira-file-structure.md +177 -0
  38. package/toolsets/toolsets/rzlv-flow/resources/sync-state-format.md +318 -0
  39. package/toolsets/toolsets/rzlv-flow/skills/atlassian-orchestrator/SKILL.md +643 -0
  40. package/toolsets/toolsets/rzlv-flow/skills/confluence-fetch/SKILL.md +189 -0
  41. package/toolsets/toolsets/rzlv-flow/skills/confluence-publish/SKILL.md +178 -0
  42. package/toolsets/toolsets/rzlv-flow/skills/context-analyst/SKILL.md +265 -0
  43. package/toolsets/toolsets/rzlv-flow/skills/jira-comment/SKILL.md +89 -0
  44. package/toolsets/toolsets/rzlv-flow/skills/jira-daily-triage/SKILL.md +143 -0
  45. package/toolsets/toolsets/rzlv-flow/skills/jira-sprint-status/SKILL.md +143 -0
  46. package/toolsets/toolsets/rzlv-flow/skills/jira-status/SKILL.md +97 -0
  47. package/toolsets/toolsets/rzlv-flow/skills/jira-sync/SKILL.md +148 -0
  48. package/toolsets/toolsets/rzlv-flow/skills/jira-ticket-focus/SKILL.md +245 -0
  49. package/toolsets/toolsets/rzlv-flow/skills/jira-ticket-trace/SKILL.md +112 -0
  50. package/toolsets/toolsets/rzlv-flow/skills/jira-wrap-sync/SKILL.md +260 -0
@@ -0,0 +1,285 @@
1
+ # Confluence File Structure — Local Page Mirrors
2
+
3
+ **Pattern:** Leaf Bundle local mirrors for Confluence pages
4
+
5
+ ---
6
+
7
+ ## Overview
8
+
9
+ Skills that interact with Confluence maintain local mirrors of pages under `docs/confluence/{instance}/{space}/`. Two modes are supported depending on how the content is created:
10
+
11
+ - **Structured mode** — Orchestrator-driven, epic-based hierarchy with predefined page types
12
+ - **Flexible mode** — User-specified location and page structure for ad-hoc documentation
13
+
14
+ Both modes follow the FCMP protocol for safe sync operations and preserve manual edits made directly in Confluence.
15
+
16
+ ---
17
+
18
+ ## Leaf Bundle Pattern
19
+
20
+ Every Confluence page is stored as a **directory** containing an `index.md` file — never as a standalone `.md` file. This is called the Leaf Bundle pattern.
21
+
22
+ ### Why Folders, Not Files?
23
+
24
+ - **Child pages** — A Confluence page can have child pages. The folder naturally represents this hierarchy; child pages become subdirectories.
25
+ - **Assets** — Pages may include attachments, images, or diagrams. These are stored alongside `index.md` in the same folder.
26
+ - **Hierarchy expansion** — New child pages can be added without restructuring. A flat file cannot grow into a parent.
27
+
28
+ ### DO NOT / DO
29
+
30
+ ```
31
+ ❌ DO NOT create flat files:
32
+ docs/confluence/rezolve/ENG/strategic-context.md
33
+
34
+ ✅ DO create Leaf Bundle directories:
35
+ docs/confluence/rezolve/ENG/strategic-context/index.md
36
+ ```
37
+
38
+ This rule applies to **all** Confluence page mirrors, in both structured and flexible modes.
39
+
40
+ ---
41
+
42
+ ## Base Path
43
+
44
+ ```
45
+ docs/confluence/{instance}/{space}/
46
+ ```
47
+
48
+ - `{instance}` — The Atlassian site identifier (e.g. `rezolve`)
49
+ - `{space}` — The Confluence space key (e.g. `ENG`, `PROJ`)
50
+
51
+ ---
52
+
53
+ ## Structured Mode
54
+
55
+ Used when creating Confluence pages from Jira epic structures — typically driven by the `atlassian-orchestrator` skill.
56
+
57
+ ### Hierarchy
58
+
59
+ ```
60
+ docs/confluence/{instance}/{space}/
61
+ └── {initiative-name}/
62
+ ├── index.md # Initiative Overview
63
+ └── {epic-name}/
64
+ ├── overview/
65
+ │ └── index.md
66
+ ├── technical-architecture/
67
+ │ └── index.md
68
+ ├── decisions/
69
+ │ └── index.md
70
+ ├── strategic-context/
71
+ │ └── index.md
72
+ ├── research-and-findings/ # Created only if relevant content exists
73
+ │ └── index.md
74
+ ├── assumptions/ # Created only if relevant content exists
75
+ │ └── index.md
76
+ └── implementation-guidance/
77
+ └── index.md
78
+ ```
79
+
80
+ ### Page Types
81
+
82
+ | Page Type | Folder | Source | Description |
83
+ |-----------|--------|--------|-------------|
84
+ | Initiative Overview | `index.md` (at initiative root) | Initiative metadata | Top-level overview: goals, epic breakdown, navigation |
85
+ | Overview | `overview/index.md` | Epic `_docs/` | High-level epic overview and goals |
86
+ | Technical Architecture | `technical-architecture/index.md` | Epic `_docs/` | Architecture decisions and technical design |
87
+ | Decisions | `decisions/index.md` | Epic `_docs/` | Decision log and rationale |
88
+ | Strategic Context | `strategic-context/index.md` | Epic `_docs/` | Business context and strategic alignment |
89
+ | Research & Findings | `research-and-findings/index.md` | Epic `_docs/` | User research, discoveries, and clarifications* |
90
+ | Assumptions | `assumptions/index.md` | Epic `_docs/` | Assumptions with confidence levels and validation status* |
91
+ | Implementation Guidance | `implementation-guidance/index.md` | Epic `_docs/` | High-value technical guides for development |
92
+
93
+ \* Created only if the source material includes relevant content.
94
+
95
+ ### When to Use
96
+
97
+ - Creating Confluence pages from Jira epic structure with `_docs/` content
98
+ - Orchestrator-driven workflows that generate documentation alongside Jira structures
99
+
100
+ ### Sync Rules (Structured)
101
+
102
+ - Generate Confluence pages from Jira `_docs/` folders
103
+ - Sync BEFORE Jira creation (to get page IDs for linking)
104
+ - Embed Confluence links in Jira ticket descriptions
105
+ - Follow initiative/epic hierarchy
106
+
107
+ ---
108
+
109
+ ## Flexible Mode
110
+
111
+ Used for ad-hoc documentation, user-specified locations, and non-epic-based content.
112
+
113
+ ### Hierarchy
114
+
115
+ ```
116
+ docs/confluence/{instance}/{space}/
117
+ └── {user-specified-path}/
118
+ └── {page-name}/
119
+ └── index.md
120
+ ```
121
+
122
+ No predefined structure beyond the Leaf Bundle requirement — adapts to the user's needs.
123
+
124
+ ### When to Use
125
+
126
+ - Generic documentation and manual publishing
127
+ - Publishing existing local docs to Confluence retroactively
128
+ - Content created by `context-analyst` or other skills outside an epic workflow
129
+ - Any user-driven page creation
130
+
131
+ ### Prompts for Flexible Mode
132
+
133
+ Skills using flexible mode should ask:
134
+ 1. "Where should I place this page in Confluence? (space/parent)"
135
+ 2. "Page title?"
136
+ 3. "Should I link to a Jira ticket?"
137
+
138
+ ### Sync Rules (Flexible)
139
+
140
+ - User specifies target location (space + parent page)
141
+ - Optional: Link back to Jira ticket if provided
142
+ - No predefined structure — adapt to user's needs
143
+ - Can publish existing docs to Confluence retroactively
144
+
145
+ ---
146
+
147
+ ## Ownership
148
+
149
+ ### Generated Pages (Structured Mode)
150
+
151
+ - **Owner:** Orchestrator-type skills (e.g. `atlassian-orchestrator`)
152
+ - **Source:** `_docs/` folders from the Jira file structure
153
+ - **Description:** Automatically generated from epic documentation; synced to Confluence
154
+
155
+ ### Manual / Ad-hoc Pages (Flexible Mode)
156
+
157
+ - **Owner:** User or any skill
158
+ - **Source:** Any markdown file
159
+ - **Location:** User-specified or derived from context
160
+
161
+ ### Manual Edits in Confluence
162
+
163
+ - **Preserved:** Yes, always — regardless of mode
164
+ - **Protocol:** FCMP ensures user edits in Confluence are never overwritten without merge
165
+
166
+ ---
167
+
168
+ ## Sync Rules (Both Modes)
169
+
170
+ - Follow the FCMP protocol when updating existing pages (see `fcmp-protocol.md`)
171
+ - Preserve manual edits made in Confluence
172
+ - Store page ID and URL in frontmatter after sync (see `sync-state-format.md`)
173
+
174
+ ---
175
+
176
+ ## Confluence Link Format
177
+
178
+ When constructing Confluence URLs:
179
+
180
+ - Replace spaces in page titles with `+`
181
+ - Use the `/wiki/display/{SPACE}/{Title}` format for display links
182
+ - Use the `/wiki/spaces/{SPACE}/pages/{pageId}` format for direct links
183
+
184
+ Example: `https://company.atlassian.net/wiki/display/ENG/Technical+Architecture`
185
+
186
+ ---
187
+
188
+ ## Page File Format
189
+
190
+ Each local Confluence mirror file (`index.md` inside a Leaf Bundle directory) uses YAML frontmatter for sync metadata:
191
+
192
+ ```yaml
193
+ ---
194
+ sync:
195
+ confluence_page_id: "123456789"
196
+ confluence_url: "https://company.atlassian.net/wiki/spaces/ENG/pages/123456789"
197
+ confluence_title: "Technical Architecture"
198
+ space: "ENG"
199
+ parent_page_id: "987654321"
200
+ last_synced: "2025-12-11T10:30:00Z"
201
+ version: 5
202
+ remote_updated: "2025-12-11T09:15:00Z"
203
+
204
+ mode: "structured" # structured | flexible
205
+
206
+ source:
207
+ # For structured mode
208
+ jira_ticket: "PROJ-120"
209
+ doc_type: "technical-architecture"
210
+ generated_from: "docs/jira/rezolve/PROJ/user-authentication/_docs/technical-architecture.md"
211
+ bmad_docs_referenced:
212
+ - "docs/jira/rezolve/PROJ/PROJ-120-user-auth/_docs/technical-architecture.md"
213
+ jira_initiative_key: "PROJ-100"
214
+
215
+ # For flexible mode
216
+ # origin: "manual"
217
+ # linked_jira: "PROJ-123"
218
+ ---
219
+
220
+ # Page Title
221
+
222
+ Page content in markdown, converted to Confluence storage format during sync.
223
+ ```
224
+
225
+ ### Frontmatter Field Reference
226
+
227
+ | Field | Type | Required | Description |
228
+ |-------|------|----------|-------------|
229
+ | `sync.confluence_page_id` | string | After first sync | Confluence page ID |
230
+ | `sync.confluence_url` | string | After first sync | Full page URL |
231
+ | `sync.confluence_title` | string | Yes | Exact title as it appears in Confluence (used for page lookups) |
232
+ | `sync.space` | string | Yes | Confluence space key |
233
+ | `sync.parent_page_id` | string | Yes | Parent page ID in Confluence |
234
+ | `sync.last_synced` | ISO8601 | After first sync | Last sync timestamp |
235
+ | `sync.version` | number | After first sync | Confluence page version for optimistic locking |
236
+ | `sync.remote_updated` | ISO8601 | After first sync | Last remote change timestamp |
237
+ | `mode` | enum | Yes | `structured` or `flexible` |
238
+ | `source.jira_ticket` | string | Structured | Associated Jira ticket key |
239
+ | `source.doc_type` | string | Structured | Page type (overview, technical-architecture, decisions, strategic-context) |
240
+ | `source.generated_from` | string | Structured | Path to the `_docs/` source file |
241
+ | `source.bmad_docs_referenced` | string[] | No | BMAD source docs used to generate the page (traceability) |
242
+ | `source.jira_initiative_key` | string | No | Related Jira initiative key (cross-linking) |
243
+ | `source.origin` | string | Flexible | Origin skill or `manual` |
244
+ | `source.linked_jira` | string | Flexible | Optionally linked Jira ticket |
245
+
246
+ > **Note on field naming:** The source rzlv-flow repo uses flat root-level fields (e.g. `confluence_space_key: "ENG"`). This toolset uses nested fields under `sync.*` for consistency with the Jira file schema. Both conventions represent the same data; skills should follow the nested format documented here.
247
+
248
+ ### Post-Sync Frontmatter Example
249
+
250
+ **Before first sync (draft state):**
251
+ ```yaml
252
+ ---
253
+ sync:
254
+ confluence_title: "Technical Architecture"
255
+ space: "ENG"
256
+ parent_page_id: "987654321"
257
+ mode: "structured"
258
+ source:
259
+ jira_ticket: "PROJ-120"
260
+ doc_type: "technical-architecture"
261
+ generated_from: "docs/jira/rezolve/PROJ/PROJ-120-user-auth/_docs/technical-architecture.md"
262
+ ---
263
+ ```
264
+
265
+ **After first sync (populated by sync operation):**
266
+ ```yaml
267
+ ---
268
+ sync:
269
+ confluence_page_id: "123456789"
270
+ confluence_url: "https://company.atlassian.net/wiki/spaces/ENG/pages/123456789"
271
+ confluence_title: "Technical Architecture"
272
+ space: "ENG"
273
+ parent_page_id: "987654321"
274
+ last_synced: "2025-12-11T10:30:00Z"
275
+ version: 1
276
+ remote_updated: "2025-12-11T10:30:00Z"
277
+ mode: "structured"
278
+ source:
279
+ jira_ticket: "PROJ-120"
280
+ doc_type: "technical-architecture"
281
+ generated_from: "docs/jira/rezolve/PROJ/PROJ-120-user-auth/_docs/technical-architecture.md"
282
+ ---
283
+ ```
284
+
285
+ See `sync-state-format.md` for the full frontmatter schema and worked examples.
@@ -0,0 +1,19 @@
1
+ # Confluence Page Templates
2
+
3
+ Starter scaffolds for Confluence pages created by the `atlassian-orchestrator` skill (structured mode). Each template contains standard section headings and placeholder tokens.
4
+
5
+ ## Usage
6
+
7
+ - Templates provide consistent section headings across generated pages.
8
+ - Replace `{tokens}` with actual content during page creation.
9
+ - Skills can load these templates instead of generating page structure from scratch.
10
+ - Users can customize templates to match their team's conventions.
11
+
12
+ ## Templates
13
+
14
+ | Template | File | Description |
15
+ |----------|------|-------------|
16
+ | Initiative Overview | `initiative-overview.md` | Top-level initiative page: goals, epic breakdown, navigation |
17
+ | Strategic Context | `strategic-context.md` | Business goals, product vision, strategic decisions |
18
+ | Technical Architecture | `technical-architecture.md` | System design, tech decisions, implementation patterns |
19
+ | Decisions | `decisions.md` | Consolidated decision log with rationale |
@@ -0,0 +1,36 @@
1
+ ---
2
+ sync:
3
+ confluence_page_id: ""
4
+ confluence_url: ""
5
+ confluence_title: "Decision Log — {Initiative/Epic Name}"
6
+ space: "{SPACE}"
7
+ parent_page_id: ""
8
+ last_synced: ""
9
+ version: 1
10
+ remote_updated: ""
11
+ mode: "structured"
12
+ source:
13
+ jira_ticket: "{EPIC-KEY}"
14
+ doc_type: "decisions"
15
+ generated_from: ""
16
+ ---
17
+
18
+ # Decision Log — {Initiative/Epic Name}
19
+
20
+ ## Active Decisions
21
+
22
+ | ID | Decision | Date | Rationale | Confidence | Impact |
23
+ |----|----------|------|-----------|------------|--------|
24
+ | {id} | {decision} | {date} | {rationale} | {High/Medium/Low} | {impact area} |
25
+
26
+ ## Pending Decisions
27
+
28
+ | ID | Question | Context | Options | Owner | Deadline |
29
+ |----|----------|---------|---------|-------|----------|
30
+ | {id} | {question} | {context} | {options} | {owner} | {deadline} |
31
+
32
+ ## Superseded Decisions
33
+
34
+ | ID | Original Decision | Superseded By | Date | Reason |
35
+ |----|-------------------|---------------|------|--------|
36
+ | {id} | {original} | {new decision} | {date} | {reason} |
@@ -0,0 +1,40 @@
1
+ ---
2
+ sync:
3
+ confluence_page_id: ""
4
+ confluence_url: ""
5
+ confluence_title: "{Initiative Name}"
6
+ space: "{SPACE}"
7
+ parent_page_id: ""
8
+ last_synced: ""
9
+ version: 1
10
+ remote_updated: ""
11
+ mode: "structured"
12
+ source:
13
+ jira_initiative_key: "{INITIATIVE-KEY}"
14
+ ---
15
+
16
+ # {Initiative Name}
17
+
18
+ ## Overview
19
+
20
+ {Brief summary of the initiative — 2-3 sentences covering purpose and strategic goals.}
21
+
22
+ ## Epic Breakdown
23
+
24
+ | Epic | Description | Status | Stories | Confluence |
25
+ |------|-------------|--------|---------|------------|
26
+ | {EPIC-KEY} | {Epic summary} | {status} | {count} | [link]({confluence_url}) |
27
+
28
+ ## Quick Navigation
29
+
30
+ - [{Epic Name} — Overview]({epic-overview-url})
31
+ - [{Epic Name} — Technical Architecture]({epic-tech-arch-url})
32
+ - [{Epic Name} — Decisions]({epic-decisions-url})
33
+
34
+ ## Timeline & Dependencies
35
+
36
+ {Key dates, milestones, and cross-team dependencies.}
37
+
38
+ ## Success Criteria
39
+
40
+ {Measurable outcomes that define initiative success.}
@@ -0,0 +1,44 @@
1
+ ---
2
+ sync:
3
+ confluence_page_id: ""
4
+ confluence_url: ""
5
+ confluence_title: "Strategic Context — {Initiative/Epic Name}"
6
+ space: "{SPACE}"
7
+ parent_page_id: ""
8
+ last_synced: ""
9
+ version: 1
10
+ remote_updated: ""
11
+ mode: "structured"
12
+ source:
13
+ jira_ticket: "{EPIC-KEY}"
14
+ doc_type: "strategic-context"
15
+ generated_from: ""
16
+ ---
17
+
18
+ # Strategic Context — {Initiative/Epic Name}
19
+
20
+ ## Business Objectives
21
+
22
+ {Business goals this work supports. Include measurable targets where possible.}
23
+
24
+ ## Product Vision
25
+
26
+ {Target users, value proposition, and how this fits the broader product strategy.}
27
+
28
+ ## Market Context
29
+
30
+ {Competitive landscape, market timing, and external factors influencing this work.}
31
+
32
+ ## Success Criteria
33
+
34
+ {Measurable outcomes — metrics, thresholds, and how they will be evaluated.}
35
+
36
+ ## Strategic Decisions
37
+
38
+ | Decision | Rationale | Date | Confidence |
39
+ |----------|-----------|------|------------|
40
+ | {decision} | {why} | {date} | {High/Medium/Low} |
41
+
42
+ ## Related Documents
43
+
44
+ - [{Document title}]({url}) — {brief description}
@@ -0,0 +1,48 @@
1
+ ---
2
+ sync:
3
+ confluence_page_id: ""
4
+ confluence_url: ""
5
+ confluence_title: "Technical Architecture — {Initiative/Epic Name}"
6
+ space: "{SPACE}"
7
+ parent_page_id: ""
8
+ last_synced: ""
9
+ version: 1
10
+ remote_updated: ""
11
+ mode: "structured"
12
+ source:
13
+ jira_ticket: "{EPIC-KEY}"
14
+ doc_type: "technical-architecture"
15
+ generated_from: ""
16
+ ---
17
+
18
+ # Technical Architecture — {Initiative/Epic Name}
19
+
20
+ ## System Overview
21
+
22
+ {High-level architecture description. Key components and how they interact.}
23
+
24
+ ## Technology Stack
25
+
26
+ {Languages, frameworks, infrastructure, and key libraries.}
27
+
28
+ ## Architecture Decisions
29
+
30
+ | Decision | Options Considered | Chosen | Rationale |
31
+ |----------|--------------------|--------|-----------|
32
+ | {decision} | {options} | {chosen} | {why} |
33
+
34
+ ## Integration Points
35
+
36
+ {External systems, APIs, data flows, and contract details.}
37
+
38
+ ## Performance & Scalability
39
+
40
+ {Performance targets, scalability strategies, and known constraints.}
41
+
42
+ ## Security Considerations
43
+
44
+ {Authentication, authorization, data protection, and compliance requirements.}
45
+
46
+ ## Implementation Patterns
47
+
48
+ {Key patterns and approaches used in this codebase.}