@smartsoft001-mobilems/claude-plugins 2.84.0 → 2.86.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 (136) hide show
  1. package/.claude-plugin/marketplace.json +2 -6
  2. package/README.md +97 -0
  3. package/package.json +2 -2
  4. package/plugins/flow/scripts/refresh-mobilems-api-spec.sh +372 -0
  5. package/plugins/flow/skills/mobilems-docs-reader/SKILL.md +116 -0
  6. package/plugins/flow-external/scripts/refresh-mobilems-api-spec.sh +372 -0
  7. package/plugins/flow-external/skills/mobilems-docs-reader/SKILL.md +116 -0
  8. package/plugins/flow-legacy/scripts/refresh-mobilems-api-spec.sh +372 -0
  9. package/plugins/flow-legacy/skills/mobilems-docs-reader/SKILL.md +116 -0
  10. package/plugins/mobilems/.claude-plugin/README.md +30 -0
  11. package/plugins/mobilems/.claude-plugin/plugin.json +5 -0
  12. package/plugins/mobilems/scripts/refresh-mobilems-api-spec.sh +372 -0
  13. package/plugins/mobilems/skills/mobilems-docs-reader/SKILL.md +116 -0
  14. package/plugins/flow/.claude-plugin/README.md +0 -91
  15. package/plugins/flow/.claude-plugin/merge-permissions.js +0 -97
  16. package/plugins/flow/.claude-plugin/plugin.json +0 -5
  17. package/plugins/flow/.claude-plugin/settings.template.json +0 -86
  18. package/plugins/flow/agents/angular-component-scaffolder.md +0 -175
  19. package/plugins/flow/agents/angular-directive-builder.md +0 -153
  20. package/plugins/flow/agents/angular-guard-builder.md +0 -243
  21. package/plugins/flow/agents/angular-jest-test-writer.md +0 -474
  22. package/plugins/flow/agents/angular-pipe-builder.md +0 -169
  23. package/plugins/flow/agents/angular-resolver-builder.md +0 -286
  24. package/plugins/flow/agents/angular-service-builder.md +0 -161
  25. package/plugins/flow/agents/angular-signal-state-builder.md +0 -339
  26. package/plugins/flow/agents/angular-test-diagnostician.md +0 -279
  27. package/plugins/flow/agents/angular-testbed-configurator.md +0 -315
  28. package/plugins/flow/agents/arch-scaffolder.md +0 -278
  29. package/plugins/flow/agents/e2e-data-testid-injector.md +0 -197
  30. package/plugins/flow/agents/e2e-project-scaffolder.md +0 -194
  31. package/plugins/flow/agents/e2e-test-writer.md +0 -350
  32. package/plugins/flow/agents/shared-agent-evolver.md +0 -294
  33. package/plugins/flow/agents/shared-build-verifier.md +0 -160
  34. package/plugins/flow/agents/shared-config-updater.md +0 -310
  35. package/plugins/flow/agents/shared-coverage-enforcer.md +0 -184
  36. package/plugins/flow/agents/shared-error-handler.md +0 -217
  37. package/plugins/flow/agents/shared-file-creator.md +0 -344
  38. package/plugins/flow/agents/shared-impl-orchestrator.md +0 -312
  39. package/plugins/flow/agents/shared-impl-reporter.md +0 -339
  40. package/plugins/flow/agents/shared-impl-teammate.md +0 -201
  41. package/plugins/flow/agents/shared-linear-subtask-iterator.md +0 -337
  42. package/plugins/flow/agents/shared-logic-implementer.md +0 -243
  43. package/plugins/flow/agents/shared-maia-api.md +0 -26
  44. package/plugins/flow/agents/shared-parallelization-analyzer.md +0 -343
  45. package/plugins/flow/agents/shared-performance-validator.md +0 -168
  46. package/plugins/flow/agents/shared-plan-perspective.md +0 -269
  47. package/plugins/flow/agents/shared-project-standardizer.md +0 -205
  48. package/plugins/flow/agents/shared-report-synthesizer.md +0 -188
  49. package/plugins/flow/agents/shared-review-teammate.md +0 -189
  50. package/plugins/flow/agents/shared-security-scanner.md +0 -186
  51. package/plugins/flow/agents/shared-style-enforcer.md +0 -230
  52. package/plugins/flow/agents/shared-subtask-dependency-analyzer.md +0 -188
  53. package/plugins/flow/agents/shared-tdd-developer.md +0 -350
  54. package/plugins/flow/agents/shared-team-coordinator.md +0 -189
  55. package/plugins/flow/agents/shared-test-fixer.md +0 -186
  56. package/plugins/flow/agents/shared-test-runner.md +0 -191
  57. package/plugins/flow/agents/shared-ui-classifier.md +0 -263
  58. package/plugins/flow/agents/shared-verification-orchestrator.md +0 -194
  59. package/plugins/flow/agents/shared-verification-runner.md +0 -140
  60. package/plugins/flow/agents/ui-a11y-validator.md +0 -305
  61. package/plugins/flow/agents/ui-screenshot-reporter.md +0 -329
  62. package/plugins/flow/agents/ui-web-designer.md +0 -214
  63. package/plugins/flow/skills/a11y-audit/SKILL.md +0 -214
  64. package/plugins/flow/skills/angular-patterns/SKILL.md +0 -191
  65. package/plugins/flow/skills/browser-capture/SKILL.md +0 -238
  66. package/plugins/flow/skills/commit/SKILL.md +0 -259
  67. package/plugins/flow/skills/debug-helper/SKILL.md +0 -375
  68. package/plugins/flow/skills/impl/SKILL.md +0 -992
  69. package/plugins/flow/skills/linear-suggestion/SKILL.md +0 -132
  70. package/plugins/flow/skills/maia-files-delete/SKILL.md +0 -59
  71. package/plugins/flow/skills/maia-files-upload/SKILL.md +0 -57
  72. package/plugins/flow/skills/nx-conventions/SKILL.md +0 -326
  73. package/plugins/flow/skills/plan/SKILL.md +0 -1003
  74. package/plugins/flow/skills/push/SKILL.md +0 -737
  75. package/plugins/flow/skills/review/SKILL.md +0 -443
  76. package/plugins/flow/skills/test-e2e/SKILL.md +0 -161
  77. package/plugins/flow/skills/test-unit/SKILL.md +0 -456
  78. package/plugins/flow-external/.claude-plugin/README.md +0 -152
  79. package/plugins/flow-external/.claude-plugin/merge-permissions.js +0 -80
  80. package/plugins/flow-external/.claude-plugin/plugin.json +0 -5
  81. package/plugins/flow-external/.claude-plugin/settings.template.json +0 -78
  82. package/plugins/flow-external/agents/angular-component-scaffolder.md +0 -269
  83. package/plugins/flow-external/agents/angular-directive-builder.md +0 -130
  84. package/plugins/flow-external/agents/angular-guard-builder.md +0 -70
  85. package/plugins/flow-external/agents/angular-pipe-builder.md +0 -82
  86. package/plugins/flow-external/agents/angular-resolver-builder.md +0 -74
  87. package/plugins/flow-external/agents/angular-service-builder.md +0 -160
  88. package/plugins/flow-external/agents/angular-state-builder.md +0 -254
  89. package/plugins/flow-external/agents/shared-build-verifier.md +0 -67
  90. package/plugins/flow-external/agents/shared-impl-orchestrator.md +0 -88
  91. package/plugins/flow-external/agents/shared-impl-reporter.md +0 -107
  92. package/plugins/flow-external/agents/shared-linear-subtask-iterator.md +0 -70
  93. package/plugins/flow-external/agents/shared-ui-classifier.md +0 -38
  94. package/plugins/flow-external/agents/ui-web-designer.md +0 -179
  95. package/plugins/flow-external/skills/a11y-audit/SKILL.md +0 -96
  96. package/plugins/flow-external/skills/angular-cli-conventions/SKILL.md +0 -267
  97. package/plugins/flow-external/skills/angular-patterns/SKILL.md +0 -170
  98. package/plugins/flow-external/skills/browser-capture/SKILL.md +0 -68
  99. package/plugins/flow-external/skills/commit/SKILL.md +0 -114
  100. package/plugins/flow-external/skills/debug-helper/SKILL.md +0 -131
  101. package/plugins/flow-external/skills/impl/SKILL.md +0 -217
  102. package/plugins/flow-external/skills/linear-suggestion/SKILL.md +0 -62
  103. package/plugins/flow-external/skills/maia-files-delete/SKILL.md +0 -34
  104. package/plugins/flow-external/skills/maia-files-upload/SKILL.md +0 -41
  105. package/plugins/flow-external/skills/plan/SKILL.md +0 -302
  106. package/plugins/flow-external/skills/push/SKILL.md +0 -210
  107. package/plugins/flow-legacy/.claude-plugin/README.md +0 -143
  108. package/plugins/flow-legacy/.claude-plugin/merge-permissions.js +0 -94
  109. package/plugins/flow-legacy/.claude-plugin/plugin.json +0 -5
  110. package/plugins/flow-legacy/.claude-plugin/settings.template.json +0 -79
  111. package/plugins/flow-legacy/agents/angular-component-scaffolder.md +0 -323
  112. package/plugins/flow-legacy/agents/angular-directive-builder.md +0 -258
  113. package/plugins/flow-legacy/agents/angular-guard-builder.md +0 -322
  114. package/plugins/flow-legacy/agents/angular-pipe-builder.md +0 -227
  115. package/plugins/flow-legacy/agents/angular-resolver-builder.md +0 -332
  116. package/plugins/flow-legacy/agents/angular-service-builder.md +0 -271
  117. package/plugins/flow-legacy/agents/angular-state-builder.md +0 -479
  118. package/plugins/flow-legacy/agents/shared-impl-orchestrator.md +0 -174
  119. package/plugins/flow-legacy/agents/shared-impl-reporter.md +0 -204
  120. package/plugins/flow-legacy/agents/shared-linear-subtask-iterator.md +0 -187
  121. package/plugins/flow-legacy/agents/shared-tdd-developer.md +0 -306
  122. package/plugins/flow-legacy/agents/shared-test-runner.md +0 -131
  123. package/plugins/flow-legacy/agents/shared-ui-classifier.md +0 -145
  124. package/plugins/flow-legacy/skills/a11y-audit/SKILL.md +0 -214
  125. package/plugins/flow-legacy/skills/angular-patterns/SKILL.md +0 -346
  126. package/plugins/flow-legacy/skills/browser-capture/SKILL.md +0 -238
  127. package/plugins/flow-legacy/skills/commit/SKILL.md +0 -215
  128. package/plugins/flow-legacy/skills/debug-helper/SKILL.md +0 -395
  129. package/plugins/flow-legacy/skills/impl/SKILL.md +0 -710
  130. package/plugins/flow-legacy/skills/linear-suggestion/SKILL.md +0 -132
  131. package/plugins/flow-legacy/skills/maia-files-delete/SKILL.md +0 -59
  132. package/plugins/flow-legacy/skills/maia-files-upload/SKILL.md +0 -57
  133. package/plugins/flow-legacy/skills/nx-conventions/SKILL.md +0 -368
  134. package/plugins/flow-legacy/skills/plan/SKILL.md +0 -708
  135. package/plugins/flow-legacy/skills/push/SKILL.md +0 -623
  136. package/plugins/flow-legacy/skills/test-unit/SKILL.md +0 -500
@@ -1,623 +0,0 @@
1
- ---
2
- name: push
3
- description: Push local changes to remote repository, update Linear task status, monitor CI pipeline, verify QA deployment, and optionally create pull requests for feature branches. Uses Angular 14 legacy patterns.
4
- allowed-tools:
5
- - Bash
6
- - Read
7
- - Glob
8
- - Grep
9
- - AskUserQuestion
10
- - WebFetch
11
- - TaskCreate
12
- - TaskUpdate
13
- - TaskList
14
- - TaskGet
15
- - mcp__linear__get_issue
16
- - mcp__linear__list_issues
17
- - mcp__linear__list_comments
18
- - mcp__linear__save_comment
19
- - mcp__linear__save_issue
20
- - mcp__linear__list_issue_statuses
21
- ---
22
-
23
- # Push Skill
24
-
25
- Push local changes to remote and optionally update Linear task status.
26
-
27
- ## Execution Checklist
28
-
29
- Execute each step in order. Do not skip any step marked as MANDATORY.
30
-
31
- ### Pre-Push
32
-
33
- - [ ] **1. Check git status** — verify branch, commits ahead, warn about uncommitted changes
34
- - [ ] **2. Get commits to push** — `git log origin/<branch>..HEAD --oneline`; exit if none
35
- - [ ] **3. Fetch Linear task** — get title, status, subtasks and their statuses via MCP
36
- - [ ] **4. Analyze subtasks** — classify completed vs incomplete, find reasons for incomplete ones
37
- - [ ] **5. MANDATORY: Show summary to user** — present commits + subtask status, ask about status change
38
- - [ ] **6. Update Linear status** — BEFORE push: set completed subtasks to "In Review", post summary comment in Polish
39
- - [ ] **7. MANDATORY: Write Linear comments in Polish** — all comments must be in Polish language
40
-
41
- ### Push
42
-
43
- - [ ] **8. Push to remote** — `git push`; handle errors gracefully
44
-
45
- ### Post-Push (branch-specific)
46
-
47
- #### If `development` branch:
48
-
49
- - [ ] **9a. Ask about deployment verification** — offer optional CI monitoring + QA check
50
- - [ ] **10a. Monitor CI pipeline** — poll `gh run view` every 30s until completion
51
- - [ ] **11a. Handle CI failure** — revert task to "To Do", post error comment to Linear
52
- - [ ] **12a. Verify package.json update** — `git pull`, compare versions
53
- - [ ] **13a. Verify QA deployment** — wait 5 min, check `<meta name="app-version">` matches
54
-
55
- #### If feature branch:
56
-
57
- - [ ] **9b. Check for existing PR** — `gh pr list --head <branch> --base development`
58
- - [ ] **10b. Ask about PR creation** — if no PR exists and subtasks are ready
59
- - [ ] **11b. Create PR** — `gh pr create` with structured summary including Angular 14 tech stack
60
-
61
- ### Final
62
-
63
- - [ ] **12. Show final status** — complete summary of all actions taken
64
-
65
- ### Task Progress Tracking
66
-
67
- **MANDATORY**: Use Claude Code's built-in task tracking to provide real-time progress visibility.
68
-
69
- **Task naming convention**: Every task subject MUST be prefixed with the Linear task ID:
70
-
71
- ```
72
- <linearTaskId> <step description>
73
- ```
74
-
75
- **At skill start**: Create tasks for each checklist step using `TaskCreate`:
76
-
77
- ```
78
- TaskCreate({
79
- subject: "MM-123 Check git status",
80
- description: "Verify branch, commits ahead, warn about uncommitted changes",
81
- activeForm: "MM-123 Checking git status"
82
- })
83
- TaskCreate({
84
- subject: "MM-123 Push to remote",
85
- description: "Execute git push and handle errors",
86
- activeForm: "MM-123 Pushing to remote"
87
- })
88
- ```
89
-
90
- **During execution**:
91
-
92
- - Before starting a step → `TaskUpdate({ taskId, status: "in_progress" })`
93
- - After completing a step → `TaskUpdate({ taskId, status: "completed" })`
94
- - For branch-specific steps, only create tasks for the applicable branch path (development OR feature)
95
-
96
- **Before user decisions**: Use `TaskList` to show progress overview before asking user about status changes or PR creation.
97
-
98
- ## Usage
99
-
100
- ```
101
- /push [linearTaskId]
102
- ```
103
-
104
- ## Parameters
105
-
106
- - `linearTaskId` - Linear task ID (e.g., MOB-123)
107
-
108
- ## Instructions
109
-
110
- You are tasked with pushing local changes to the remote repository, summarizing what was done, and optionally moving the Linear task to "In Review".
111
-
112
- ### Step 1: Check Git Status
113
-
114
- Run `git status` to verify:
115
-
116
- - Current branch name
117
- - Number of commits ahead of remote
118
- - Any uncommitted changes (warn user if present)
119
-
120
- If there are uncommitted changes, warn the user and ask if they want to proceed or commit first.
121
-
122
- ### Step 2: Get Commits to Push
123
-
124
- Run `git log origin/<branch>..HEAD --oneline` to get the list of commits that will be pushed.
125
-
126
- If no commits to push, inform the user and exit.
127
-
128
- ### Step 3: Fetch Linear Task Details (if linearTaskId provided)
129
-
130
- If `linearTaskId` was provided, use MCP Linear server to fetch:
131
-
132
- - Task title
133
- - Current status
134
- - Subtasks (if any) and their statuses
135
- - Comments on subtasks (to find reasons for incomplete items)
136
-
137
- ### Step 4: Analyze Subtasks Status
138
-
139
- For each subtask, determine:
140
-
141
- 1. **Completed subtasks**: Status is "Done", "In Review", or has implementation completed
142
- 2. **Incomplete subtasks**: Status is "To Do", "Blocked", or was not implemented
143
-
144
- For incomplete subtasks, find the reason by:
145
-
146
- - Reading comments on the subtask (look for "Analiza problemu", "Blocker", "Status: Blocked")
147
- - Checking if it was marked as backend issue, external dependency, etc.
148
-
149
- Build a summary of incomplete items with reasons.
150
-
151
- ### Step 5: Show Summary and Ask About Status Update
152
-
153
- Show summary of what will be pushed and ask user:
154
-
155
- ```markdown
156
- ## Podsumowanie
157
-
158
- ### Commity do wysłania (X)
159
-
160
- | Commit | Opis |
161
- | ------- | -------------------------- |
162
- | abc1234 | feat(scope): description 1 |
163
- | def5678 | fix(scope): description 2 |
164
-
165
- ### Podzadania
166
-
167
- #### Zrealizowane
168
-
169
- - ✅ MOB-549: Naprawić szerokość logo
170
- - ✅ MOB-550: Usunąć zdublowane zdjęcia
171
-
172
- #### Niezrealizowane
173
-
174
- - ⚠️ MOB-554: Obsłużyć zdjęcia PNG → Problem backendu
175
-
176
- ---
177
-
178
- **Task**: [linearTaskId] - [Task Title]
179
- **Aktualny status**: [Current Status]
180
-
181
- Czy przenieść task do "In Review" i wysłać zmiany?
182
- ```
183
-
184
- Use `AskUserQuestion` tool with options:
185
-
186
- - "Tak, przenieś do In Review i wyślij" (Recommended)
187
- - "Tylko wyślij, bez zmiany statusu"
188
- - "Anuluj"
189
-
190
- ### Step 6: Update Linear Status (if confirmed)
191
-
192
- **BEFORE pushing**, if user confirmed status change:
193
-
194
- 1. **For tasks with subtasks**: Update all completed subtasks to "In Review"
195
- 2. **For tasks without subtasks**: Update the task itself to "In Review"
196
-
197
- Create a comment on the **parent task** summarizing:
198
-
199
- ```markdown
200
- ## Podsumowanie Implementacji
201
-
202
- ### Branch
203
-
204
- `<branch-name>`
205
-
206
- ### Zrealizowane Podzadania
207
-
208
- | Podzadanie | Tytuł | Status |
209
- | ---------- | ------------------------- | --------------- |
210
- | MOB-549 | Naprawić szerokość logo | ✅ Zrealizowane |
211
- | MOB-550 | Usunąć zdublowane zdjęcia | ✅ Zrealizowane |
212
-
213
- ### Niezrealizowane Podzadania
214
-
215
- | Podzadanie | Tytuł | Powód |
216
- | ---------- | -------------------- | ------------------------------------------------------- |
217
- | MOB-554 | Obsłużyć zdjęcia PNG | ⚠️ Problem backendu - wymaga naprawy po stronie serwera |
218
-
219
- ### Commity
220
-
221
- | Commit | Opis |
222
- | ------- | -------------------------- |
223
- | abc1234 | feat(scope): description 1 |
224
- | def5678 | fix(scope): description 2 |
225
-
226
- ### Angular Version
227
-
228
- Angular 14 (legacy patterns)
229
-
230
- ### Status
231
-
232
- Task przeniesiony do "In Review".
233
-
234
- ---
235
-
236
- _Raport wygenerowany przez Claude Code (flow-legacy)_
237
- ```
238
-
239
- ### Step 7: Push to Remote
240
-
241
- Execute `git push` to push the commits to the remote repository.
242
-
243
- If push fails:
244
-
245
- - Show the error message
246
- - Suggest possible solutions (pull first, force push if appropriate, etc.)
247
- - Note: Linear status was already updated, may need to revert if push ultimately fails
248
-
249
- ### Step 8: Final Confirmation
250
-
251
- Show final status to user:
252
-
253
- ```markdown
254
- ## Gotowe
255
-
256
- ✅ Linear task [linearTaskId] przeniesiony do "In Review"
257
- ✅ Zmiany wysłane do `origin/<branch-name>`
258
-
259
- ### Następne kroki
260
-
261
- - Oczekiwanie na code review
262
- ```
263
-
264
- ### Step 9: Branch-Specific Post-Push Actions
265
-
266
- After successful push, determine the next action based on the current branch:
267
-
268
- 1. **If branch is `development`**: Proceed to **Step 10** (Deployment Verification)
269
- 2. **If branch is a feature branch** (matches Linear issue ID pattern like `MOB-123`, `mob-123`, etc.): Proceed to **Step 9a** (PR Workflow)
270
-
271
- #### Step 9a: Feature Branch - Check/Create Pull Request
272
-
273
- **Applicable only when on a feature branch (not `development`).**
274
-
275
- 1. **Check if all subtasks are completed**:
276
-
277
- Review the subtask analysis from Step 4. Consider a task "ready for PR" if:
278
-
279
- - All subtasks are in "Done" or "In Review" status, OR
280
- - Incomplete subtasks have documented reasons (backend issue, external dependency, etc.)
281
-
282
- 2. **Check if PR already exists**:
283
-
284
- ```bash
285
- gh pr list --head <branch-name> --base development --json number,title,state,url
286
- ```
287
-
288
- 3. **If PR exists**:
289
-
290
- ```markdown
291
- ## Pull Request Already Exists
292
-
293
- **PR**: #<number> - <title>
294
- **Status**: <state>
295
- **URL**: <url>
296
-
297
- No action needed - PR already created.
298
- ```
299
-
300
- 4. **If PR does NOT exist**, ask user:
301
-
302
- ```markdown
303
- ## Create Pull Request?
304
-
305
- Branch `<branch-name>` has no open PR to `development`.
306
-
307
- ### Subtasks Status
308
-
309
- - ✅ Completed: X
310
- - ⚠️ Incomplete: Y (with documented reasons)
311
-
312
- Do you want to create a Pull Request?
313
- ```
314
-
315
- Use `AskUserQuestion` tool with options:
316
-
317
- - "Tak, utwórz PR do development" (Recommended)
318
- - "Nie, zakończ bez PR"
319
-
320
- 5. **If user confirms PR creation**:
321
-
322
- Create PR using `gh pr create`:
323
-
324
- ```bash
325
- gh pr create --base development --head <branch-name> --title "<Linear-ID>: <Task Title>" --body "$(cat <<'EOF'
326
- ## Summary
327
-
328
- Implementation for [<Linear-ID>](https://linear.app/issue/<Linear-ID>)
329
-
330
- ### Technology Stack
331
-
332
- - Angular 14 (legacy patterns)
333
- - Nx 14 with @nrwl/* packages
334
-
335
- ### Completed Subtasks
336
-
337
- - ✅ <subtask-id>: <title>
338
- - ✅ <subtask-id>: <title>
339
-
340
- ### Incomplete Subtasks (with reasons)
341
-
342
- - ⚠️ <subtask-id>: <title> → <reason>
343
-
344
- ### Commits
345
-
346
- | Commit | Description |
347
- |--------|-------------|
348
- | abc123 | feat: ... |
349
-
350
- ---
351
-
352
- 🤖 Generated with [Claude Code](https://claude.com/claude-code) (flow-legacy)
353
- EOF
354
- )"
355
- ```
356
-
357
- 6. **Show PR creation result**:
358
-
359
- ```markdown
360
- ## ✅ Pull Request Created
361
-
362
- **PR**: #<number> - <title>
363
- **URL**: <url>
364
- **Base**: development
365
- **Head**: <branch-name>
366
-
367
- ### Następne kroki
368
-
369
- - Oczekiwanie na code review
370
- - Po zatwierdzeniu: merge do development
371
- ```
372
-
373
- **End the command here for feature branches.**
374
-
375
- ### Step 10: Ask About Deployment Verification (development branch only)
376
-
377
- **Applicable only when on `development` branch.**
378
-
379
- After successful push, ask the user if they want to verify deployment:
380
-
381
- ```markdown
382
- ## Deployment Verification
383
-
384
- Do you want to verify the deployment on QA environment?
385
-
386
- Verification process:
387
-
388
- 1. Monitor GitHub Actions CI pipeline until completion
389
- 2. Git pull and check if package.json was updated
390
- 3. Wait 5 minutes for deployment
391
- 4. Verify app version on QA site
392
- ```
393
-
394
- Use `AskUserQuestion` tool with options:
395
-
396
- - "Yes, verify deployment" (Recommended)
397
- - "No, finish now"
398
-
399
- If user chooses not to verify, end the command here.
400
-
401
- ### Step 11: Monitor CI Pipeline via GitHub Actions
402
-
403
- **Do NOT wait a fixed time.** Instead, actively monitor GitHub Actions workflows using `gh` CLI.
404
-
405
- 1. **Get the latest workflow run for the current branch**:
406
-
407
- ```bash
408
- gh run list --branch <branch-name> --limit 1 --json databaseId,status,conclusion,workflowName
409
- ```
410
-
411
- 2. **Poll workflow status** every 30 seconds until it completes:
412
-
413
- ```bash
414
- gh run view <run-id> --json status,conclusion
415
- ```
416
-
417
- 3. **Show progress to user**:
418
-
419
- ```markdown
420
- ## CI/CD Pipeline Monitoring
421
-
422
- 🔄 Monitoring GitHub Actions workflow...
423
-
424
- **Workflow**: <workflow-name>
425
- **Run ID**: <run-id>
426
- **Status**: in_progress | queued | completed
427
- ```
428
-
429
- 4. **Check workflow result**:
430
-
431
- **If workflow FAILED**:
432
-
433
- 1. **Get failed job logs**:
434
-
435
- ```bash
436
- gh run view <run-id> --log-failed 2>&1 | tail -100
437
- ```
438
-
439
- 2. **Revert Linear task to "To Do"**:
440
-
441
- If Linear task was provided and status was changed to "In Review":
442
-
443
- - Move the parent task back to "To Do" status
444
- - For tasks with subtasks: Move all subtasks that were changed to "In Review" back to "To Do"
445
-
446
- 3. **Add error comment to Linear task**:
447
-
448
- Create a comment on the **parent task** with CI error details:
449
-
450
- ```markdown
451
- ## ❌ CI Build Failed
452
-
453
- ### Branch
454
-
455
- `<branch-name>`
456
-
457
- ### Workflow
458
-
459
- **Name**: <workflow-name>
460
- **Run ID**: <run-id>
461
- **URL**: https://github.com/<owner>/<repo>/actions/runs/<run-id>
462
-
463
- ### Error Details
464
- ```
465
-
466
- <last 50-100 lines of error logs from gh run view --log-failed>
467
-
468
- ```
469
-
470
- ### Status
471
-
472
- Task przywrócony do "To Do" z powodu błędu CI.
473
-
474
- ---
475
-
476
- _Raport wygenerowany przez Claude Code (flow-legacy)_
477
- ```
478
-
479
- 4. **Show error to user**:
480
-
481
- ```markdown
482
- ## ❌ CI Pipeline Failed
483
-
484
- **Workflow**: <workflow-name>
485
- **Run ID**: <run-id>
486
- **Conclusion**: failure
487
-
488
- ### Linear Task Status
489
-
490
- ⚠️ Task [linearTaskId] przywrócony do "To Do"
491
- ✅ Komentarz z błędem dodany do taska
492
-
493
- ### View logs
494
-
495
- Run `gh run view <run-id> --log-failed` to see error details.
496
-
497
- Or visit: https://github.com/<owner>/<repo>/actions/runs/<run-id>
498
-
499
- ### Następne kroki
500
-
501
- 1. Przeanalizuj błędy w CI
502
- 2. Napraw problemy lokalnie
503
- 3. Uruchom `/push` ponownie
504
- ```
505
-
506
- Stop here if workflow failed.
507
-
508
- **If workflow SUCCEEDED**, run:
509
-
510
- ```bash
511
- git fetch origin
512
- git pull origin <branch-name>
513
- ```
514
-
515
- Check if `package.json` version has changed and proceed to Step 12.
516
-
517
- ### Step 12: Verify Deployment on QA (App Version Check)
518
-
519
- Wait 5 minutes for deployment to complete:
520
-
521
- ```markdown
522
- ## QA Deployment Verification
523
-
524
- ⏳ Waiting 5 minutes for QA deployment...
525
- ```
526
-
527
- Use `sleep 300` or equivalent to wait.
528
-
529
- After waiting, read SITE_URL from `.env.dev` file and fetch the page to verify app version.
530
-
531
- ### Step 13: Final Deployment Status
532
-
533
- Show complete summary:
534
-
535
- ```markdown
536
- ## Complete Process Summary
537
-
538
- ### Git
539
-
540
- ✅ Changes pushed to `origin/<branch-name>`
541
-
542
- ### Linear
543
-
544
- ✅ Task [linearTaskId] moved to "In Review"
545
-
546
- ### CI/CD Pipeline
547
-
548
- ✅ Package.json updated to version X.X.X
549
-
550
- ### QA Deployment
551
-
552
- ✅ Application deployed to <SITE_URL>
553
- ✅ Version: X.X.X
554
-
555
- ### Technology
556
-
557
- Angular 14 (legacy patterns)
558
- ```
559
-
560
- ## Guidelines
561
-
562
- 1. **Write comments in Polish**: All Linear comments must be written in Polish
563
- 2. **Always confirm before status change**: Never change Linear status without user confirmation
564
- 3. **Update Linear BEFORE push**: Status change happens before git push
565
- 4. **Handle errors gracefully**: If push fails after status update, inform user
566
- 5. **Warn about uncommitted changes**: Don't push if there are uncommitted changes without user acknowledgment
567
- 6. **Show clear summaries**: Always show what commits will be pushed and subtask status
568
- 7. **Document incomplete subtasks**: Always explain WHY a subtask wasn't completed
569
- 8. **Deployment verification is optional**: Always ask user before starting the verification process
570
- 9. **Read SITE_URL from .env.dev**: Use the SITE_URL variable from `.env.dev` file for QA verification
571
- 10. **Revert on CI failure**: If CI pipeline fails, move task back to "To Do" and add error comment
572
- 11. **Branch-specific post-push actions**:
573
- - **`development` branch**: Offer deployment verification (CI monitoring + QA version check)
574
- - **Feature branch (e.g., `MOB-123`)**: Check/create PR to `development` when all subtasks are ready
575
-
576
- ## Error Handling
577
-
578
- ### Push Rejected (non-fast-forward)
579
-
580
- ```markdown
581
- ## Push Failed
582
-
583
- **Error**: Updates were rejected because the remote contains work that you do not have locally.
584
-
585
- **Uwaga**: Status w Linear został już zaktualizowany do "In Review".
586
-
587
- ### Options
588
-
589
- 1. `git pull --rebase` - Pull remote changes and rebase your commits on top
590
- 2. `git pull` - Pull remote changes and merge
591
- 3. `git push --force` - Force push (⚠️ overwrites remote changes)
592
-
593
- Which option do you want to use?
594
- ```
595
-
596
- ### No Commits to Push
597
-
598
- ```markdown
599
- ## Nothing to Push
600
-
601
- Your branch is up to date with `origin/<branch-name>`.
602
-
603
- No commits to push.
604
- ```
605
-
606
- ### Uncommitted Changes Present
607
-
608
- ```markdown
609
- ## Warning: Uncommitted Changes
610
-
611
- You have uncommitted changes in your working directory:
612
-
613
- - modified: path/to/file1.ts
614
- - modified: path/to/file2.ts
615
-
616
- ### Options
617
-
618
- 1. Commit changes first (`/commit`)
619
- 2. Stash changes and push
620
- 3. Proceed anyway (push existing commits only)
621
-
622
- What would you like to do?
623
- ```