@smartsoft001/pro-claude-plugins 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.
- package/.claude-plugin/marketplace.json +26 -0
- package/README.md +56 -0
- package/package.json +14 -0
- package/plugins/flow/.claude-plugin/README.md +91 -0
- package/plugins/flow/.claude-plugin/merge-permissions.js +115 -0
- package/plugins/flow/.claude-plugin/plugin.json +5 -0
- package/plugins/flow/.claude-plugin/settings.template.json +86 -0
- package/plugins/flow/agents/angular-component-scaffolder.md +176 -0
- package/plugins/flow/agents/angular-directive-builder.md +154 -0
- package/plugins/flow/agents/angular-guard-builder.md +244 -0
- package/plugins/flow/agents/angular-jest-test-writer.md +475 -0
- package/plugins/flow/agents/angular-pipe-builder.md +170 -0
- package/plugins/flow/agents/angular-resolver-builder.md +287 -0
- package/plugins/flow/agents/angular-service-builder.md +162 -0
- package/plugins/flow/agents/angular-signal-state-builder.md +340 -0
- package/plugins/flow/agents/angular-test-diagnostician.md +279 -0
- package/plugins/flow/agents/angular-testbed-configurator.md +315 -0
- package/plugins/flow/agents/arch-scaffolder.md +278 -0
- package/plugins/flow/agents/e2e-data-testid-injector.md +195 -0
- package/plugins/flow/agents/e2e-project-scaffolder.md +194 -0
- package/plugins/flow/agents/e2e-test-writer.md +357 -0
- package/plugins/flow/agents/shared-agent-evolver.md +294 -0
- package/plugins/flow/agents/shared-build-verifier.md +160 -0
- package/plugins/flow/agents/shared-config-updater.md +310 -0
- package/plugins/flow/agents/shared-coverage-enforcer.md +184 -0
- package/plugins/flow/agents/shared-error-handler.md +217 -0
- package/plugins/flow/agents/shared-file-creator.md +344 -0
- package/plugins/flow/agents/shared-impl-orchestrator.md +312 -0
- package/plugins/flow/agents/shared-impl-reporter.md +368 -0
- package/plugins/flow/agents/shared-impl-teammate.md +201 -0
- package/plugins/flow/agents/shared-linear-subtask-iterator.md +337 -0
- package/plugins/flow/agents/shared-logic-implementer.md +244 -0
- package/plugins/flow/agents/shared-maia-api.md +26 -0
- package/plugins/flow/agents/shared-parallelization-analyzer.md +343 -0
- package/plugins/flow/agents/shared-performance-validator.md +168 -0
- package/plugins/flow/agents/shared-plan-perspective.md +271 -0
- package/plugins/flow/agents/shared-project-standardizer.md +205 -0
- package/plugins/flow/agents/shared-report-synthesizer.md +188 -0
- package/plugins/flow/agents/shared-review-teammate.md +189 -0
- package/plugins/flow/agents/shared-security-scanner.md +186 -0
- package/plugins/flow/agents/shared-style-enforcer.md +230 -0
- package/plugins/flow/agents/shared-subtask-dependency-analyzer.md +189 -0
- package/plugins/flow/agents/shared-tdd-developer.md +350 -0
- package/plugins/flow/agents/shared-team-coordinator.md +192 -0
- package/plugins/flow/agents/shared-test-fixer.md +186 -0
- package/plugins/flow/agents/shared-test-runner.md +191 -0
- package/plugins/flow/agents/shared-ui-classifier.md +263 -0
- package/plugins/flow/agents/shared-verification-orchestrator.md +194 -0
- package/plugins/flow/agents/shared-verification-runner.md +140 -0
- package/plugins/flow/agents/ui-a11y-validator.md +305 -0
- package/plugins/flow/agents/ui-screenshot-reporter.md +329 -0
- package/plugins/flow/agents/ui-web-designer.md +214 -0
- package/plugins/flow/scripts/compute-session-tokens.sh +39 -0
- package/plugins/flow/skills/a11y-audit/SKILL.md +214 -0
- package/plugins/flow/skills/angular-patterns/SKILL.md +191 -0
- package/plugins/flow/skills/browser-capture/SKILL.md +238 -0
- package/plugins/flow/skills/commit/SKILL.md +259 -0
- package/plugins/flow/skills/debug-helper/SKILL.md +375 -0
- package/plugins/flow/skills/impl/SKILL.md +992 -0
- package/plugins/flow/skills/karpathy-guidelines/SKILL.md +72 -0
- package/plugins/flow/skills/linear-suggestion/SKILL.md +132 -0
- package/plugins/flow/skills/maia-files-delete/SKILL.md +59 -0
- package/plugins/flow/skills/maia-files-upload/SKILL.md +57 -0
- package/plugins/flow/skills/nx-conventions/SKILL.md +326 -0
- package/plugins/flow/skills/plan/SKILL.md +1033 -0
- package/plugins/flow/skills/push/SKILL.md +759 -0
- package/plugins/flow/skills/review/SKILL.md +443 -0
- package/plugins/flow/skills/test-e2e/SKILL.md +164 -0
- package/plugins/flow/skills/test-unit/SKILL.md +456 -0
- package/plugins/flow-external/.claude-plugin/README.md +146 -0
- package/plugins/flow-external/.claude-plugin/merge-permissions.js +94 -0
- package/plugins/flow-external/.claude-plugin/plugin.json +5 -0
- package/plugins/flow-external/.claude-plugin/settings.template.json +78 -0
- package/plugins/flow-external/agents/angular-component-scaffolder.md +271 -0
- package/plugins/flow-external/agents/angular-directive-builder.md +134 -0
- package/plugins/flow-external/agents/angular-guard-builder.md +73 -0
- package/plugins/flow-external/agents/angular-pipe-builder.md +90 -0
- package/plugins/flow-external/agents/angular-resolver-builder.md +79 -0
- package/plugins/flow-external/agents/angular-service-builder.md +168 -0
- package/plugins/flow-external/agents/angular-state-builder.md +263 -0
- package/plugins/flow-external/agents/shared-build-verifier.md +67 -0
- package/plugins/flow-external/agents/shared-impl-orchestrator.md +90 -0
- package/plugins/flow-external/agents/shared-impl-reporter.md +135 -0
- package/plugins/flow-external/agents/shared-linear-subtask-iterator.md +70 -0
- package/plugins/flow-external/agents/shared-ui-classifier.md +38 -0
- package/plugins/flow-external/agents/ui-web-designer.md +203 -0
- package/plugins/flow-external/scripts/compute-session-tokens.sh +39 -0
- package/plugins/flow-external/skills/a11y-audit/SKILL.md +97 -0
- package/plugins/flow-external/skills/angular-cli-conventions/SKILL.md +268 -0
- package/plugins/flow-external/skills/angular-patterns/SKILL.md +182 -0
- package/plugins/flow-external/skills/browser-capture/SKILL.md +74 -0
- package/plugins/flow-external/skills/commit/SKILL.md +114 -0
- package/plugins/flow-external/skills/debug-helper/SKILL.md +135 -0
- package/plugins/flow-external/skills/impl/SKILL.md +218 -0
- package/plugins/flow-external/skills/karpathy-guidelines/SKILL.md +72 -0
- package/plugins/flow-external/skills/linear-suggestion/SKILL.md +62 -0
- package/plugins/flow-external/skills/maia-files-delete/SKILL.md +34 -0
- package/plugins/flow-external/skills/maia-files-upload/SKILL.md +41 -0
- package/plugins/flow-external/skills/plan/SKILL.md +334 -0
- package/plugins/flow-external/skills/push/SKILL.md +232 -0
- package/plugins/flow-legacy/.claude-plugin/README.md +143 -0
- package/plugins/flow-legacy/.claude-plugin/merge-permissions.js +94 -0
- package/plugins/flow-legacy/.claude-plugin/plugin.json +5 -0
- package/plugins/flow-legacy/.claude-plugin/settings.template.json +79 -0
- package/plugins/flow-legacy/agents/angular-component-scaffolder.md +327 -0
- package/plugins/flow-legacy/agents/angular-directive-builder.md +253 -0
- package/plugins/flow-legacy/agents/angular-guard-builder.md +326 -0
- package/plugins/flow-legacy/agents/angular-pipe-builder.md +238 -0
- package/plugins/flow-legacy/agents/angular-resolver-builder.md +339 -0
- package/plugins/flow-legacy/agents/angular-service-builder.md +271 -0
- package/plugins/flow-legacy/agents/angular-state-builder.md +480 -0
- package/plugins/flow-legacy/agents/shared-impl-orchestrator.md +174 -0
- package/plugins/flow-legacy/agents/shared-impl-reporter.md +232 -0
- package/plugins/flow-legacy/agents/shared-linear-subtask-iterator.md +198 -0
- package/plugins/flow-legacy/agents/shared-tdd-developer.md +307 -0
- package/plugins/flow-legacy/agents/shared-test-runner.md +133 -0
- package/plugins/flow-legacy/agents/shared-ui-classifier.md +145 -0
- package/plugins/flow-legacy/scripts/compute-session-tokens.sh +39 -0
- package/plugins/flow-legacy/skills/a11y-audit/SKILL.md +214 -0
- package/plugins/flow-legacy/skills/angular-patterns/SKILL.md +346 -0
- package/plugins/flow-legacy/skills/browser-capture/SKILL.md +238 -0
- package/plugins/flow-legacy/skills/commit/SKILL.md +215 -0
- package/plugins/flow-legacy/skills/debug-helper/SKILL.md +395 -0
- package/plugins/flow-legacy/skills/impl/SKILL.md +710 -0
- package/plugins/flow-legacy/skills/karpathy-guidelines/SKILL.md +72 -0
- package/plugins/flow-legacy/skills/linear-suggestion/SKILL.md +132 -0
- package/plugins/flow-legacy/skills/maia-files-delete/SKILL.md +59 -0
- package/plugins/flow-legacy/skills/maia-files-upload/SKILL.md +57 -0
- package/plugins/flow-legacy/skills/nx-conventions/SKILL.md +368 -0
- package/plugins/flow-legacy/skills/plan/SKILL.md +742 -0
- package/plugins/flow-legacy/skills/push/SKILL.md +645 -0
- package/plugins/flow-legacy/skills/test-unit/SKILL.md +500 -0
- package/plugins/smart-pro/.claude-plugin/README.md +115 -0
- package/plugins/smart-pro/.claude-plugin/merge-permissions.js +129 -0
- package/plugins/smart-pro/.claude-plugin/plugin.json +5 -0
- package/plugins/smart-pro/.claude-plugin/settings.template.json +94 -0
- package/plugins/smart-pro/agents/angular-components/AGENT.md +214 -0
- package/plugins/smart-pro/hooks/CONFIG.md +198 -0
- package/plugins/smart-pro/hooks/README.md +139 -0
- package/plugins/smart-pro/hooks/audit_logger.py +107 -0
- package/plugins/smart-pro/hooks/auto_format.sh +11 -0
- package/plugins/smart-pro/hooks/hooks.json +79 -0
- package/plugins/smart-pro/hooks/safety_validator.py +129 -0
- package/plugins/smart-pro/hooks/sensitive_file_blocker.py +58 -0
- package/plugins/smart-pro/hooks/skill_validator.py +220 -0
- package/plugins/smart-pro/skills/angular-components-action-panel/SKILL.md +159 -0
- package/plugins/smart-pro/skills/angular-components-avatar/SKILL.md +142 -0
- package/plugins/smart-pro/skills/angular-components-badge/SKILL.md +110 -0
- package/plugins/smart-pro/skills/angular-components-breadcrumbs/SKILL.md +91 -0
- package/plugins/smart-pro/skills/angular-components-button/SKILL.md +146 -0
- package/plugins/smart-pro/skills/angular-components-button-group/SKILL.md +121 -0
- package/plugins/smart-pro/skills/angular-components-calendar/SKILL.md +78 -0
- package/plugins/smart-pro/skills/angular-components-card/SKILL.md +110 -0
- package/plugins/smart-pro/skills/angular-components-card-heading/SKILL.md +105 -0
- package/plugins/smart-pro/skills/angular-components-command-palette/SKILL.md +168 -0
- package/plugins/smart-pro/skills/angular-components-container/SKILL.md +93 -0
- package/plugins/smart-pro/skills/angular-components-description-list/SKILL.md +102 -0
- package/plugins/smart-pro/skills/angular-components-details/SKILL.md +70 -0
- package/plugins/smart-pro/skills/angular-components-divider/SKILL.md +110 -0
- package/plugins/smart-pro/skills/angular-components-drawer/SKILL.md +136 -0
- package/plugins/smart-pro/skills/angular-components-dropdown/SKILL.md +131 -0
- package/plugins/smart-pro/skills/angular-components-empty-state/SKILL.md +103 -0
- package/plugins/smart-pro/skills/angular-components-feed/SKILL.md +110 -0
- package/plugins/smart-pro/skills/angular-components-form/SKILL.md +77 -0
- package/plugins/smart-pro/skills/angular-components-grid-list/SKILL.md +91 -0
- package/plugins/smart-pro/skills/angular-components-input/SKILL.md +118 -0
- package/plugins/smart-pro/skills/angular-components-list/SKILL.md +75 -0
- package/plugins/smart-pro/skills/angular-components-list-container/SKILL.md +106 -0
- package/plugins/smart-pro/skills/angular-components-media-object/SKILL.md +133 -0
- package/plugins/smart-pro/skills/angular-components-modal/SKILL.md +159 -0
- package/plugins/smart-pro/skills/angular-components-multi-column-layout/SKILL.md +84 -0
- package/plugins/smart-pro/skills/angular-components-navbar/SKILL.md +93 -0
- package/plugins/smart-pro/skills/angular-components-notification/SKILL.md +147 -0
- package/plugins/smart-pro/skills/angular-components-page/SKILL.md +162 -0
- package/plugins/smart-pro/skills/angular-components-page-heading/SKILL.md +96 -0
- package/plugins/smart-pro/skills/angular-components-paging/SKILL.md +86 -0
- package/plugins/smart-pro/skills/angular-components-progress-bars/SKILL.md +94 -0
- package/plugins/smart-pro/skills/angular-components-searchbar/SKILL.md +113 -0
- package/plugins/smart-pro/skills/angular-components-section-heading/SKILL.md +156 -0
- package/plugins/smart-pro/skills/angular-components-select-menu/SKILL.md +101 -0
- package/plugins/smart-pro/skills/angular-components-sidebar-layout/SKILL.md +121 -0
- package/plugins/smart-pro/skills/angular-components-sidebar-navigation/SKILL.md +80 -0
- package/plugins/smart-pro/skills/angular-components-sign-in-form/SKILL.md +91 -0
- package/plugins/smart-pro/skills/angular-components-stacked-layout/SKILL.md +114 -0
- package/plugins/smart-pro/skills/angular-components-stacked-list/SKILL.md +93 -0
- package/plugins/smart-pro/skills/angular-components-stats/SKILL.md +87 -0
- package/plugins/smart-pro/skills/angular-components-table/SKILL.md +98 -0
- package/plugins/smart-pro/skills/angular-components-tabs/SKILL.md +99 -0
- package/plugins/smart-pro/skills/angular-components-textarea/SKILL.md +111 -0
- package/plugins/smart-pro/skills/angular-components-toggle/SKILL.md +109 -0
- package/plugins/smart-pro/skills/angular-components-vertical-navigation/SKILL.md +139 -0
- package/plugins/smart-pro/skills/audit-log/SKILL.md +82 -0
- package/plugins/smart-pro/skills/format-code/SKILL.md +46 -0
- package/plugins/smart-pro/skills/project-conventions/SKILL.md +90 -0
- package/plugins/smart-pro/skills/safety-check/SKILL.md +0 -0
- package/src/index.d.ts +6 -0
- package/src/index.js +7 -0
- package/src/index.js.map +1 -0
|
@@ -0,0 +1,645 @@
|
|
|
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., FRA-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
|
+
- ✅ FRA-549: Naprawić szerokość logo
|
|
170
|
+
- ✅ FRA-550: Usunąć zdublowane zdjęcia
|
|
171
|
+
|
|
172
|
+
#### Niezrealizowane
|
|
173
|
+
|
|
174
|
+
- ⚠️ FRA-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
|
+
**Before posting**, run the token-summing script and capture its output:
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
bash "$CLAUDE_PLUGIN_ROOT/scripts/compute-session-tokens.sh"
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
It prints four whitespace-separated integers on one line: `<INPUT> <OUTPUT> <CACHE_CREATE> <CACHE_READ>`. If no transcript can be located it prints `0 0 0 0` and exits non-zero — treat that as a graceful skip (still post the comment, with zeros in the table).
|
|
204
|
+
|
|
205
|
+
Compute `<TOTAL> = <INPUT> + <OUTPUT> + <CACHE_CREATE> + <CACHE_READ>`. Append exactly one copy of the following Polish block to the bottom of the comment body, after the existing footer. Do not create a second Linear comment — the block belongs in **this** comment.
|
|
206
|
+
|
|
207
|
+
```markdown
|
|
208
|
+
## Zużycie tokenów — etap /push
|
|
209
|
+
|
|
210
|
+
| Metryka | Wartość |
|
|
211
|
+
| -------------- | -------------- |
|
|
212
|
+
| Input | <INPUT> |
|
|
213
|
+
| Output | <OUTPUT> |
|
|
214
|
+
| Cache creation | <CACHE_CREATE> |
|
|
215
|
+
| Cache read | <CACHE_READ> |
|
|
216
|
+
| **Łącznie** | **<TOTAL>** |
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
Create a comment on the **parent task** summarizing:
|
|
220
|
+
|
|
221
|
+
```markdown
|
|
222
|
+
## Podsumowanie Implementacji
|
|
223
|
+
|
|
224
|
+
### Branch
|
|
225
|
+
|
|
226
|
+
`<branch-name>`
|
|
227
|
+
|
|
228
|
+
### Zrealizowane Podzadania
|
|
229
|
+
|
|
230
|
+
| Podzadanie | Tytuł | Status |
|
|
231
|
+
| ---------- | ------------------------- | --------------- |
|
|
232
|
+
| FRA-549 | Naprawić szerokość logo | ✅ Zrealizowane |
|
|
233
|
+
| FRA-550 | Usunąć zdublowane zdjęcia | ✅ Zrealizowane |
|
|
234
|
+
|
|
235
|
+
### Niezrealizowane Podzadania
|
|
236
|
+
|
|
237
|
+
| Podzadanie | Tytuł | Powód |
|
|
238
|
+
| ---------- | -------------------- | ------------------------------------------------------- |
|
|
239
|
+
| FRA-554 | Obsłużyć zdjęcia PNG | ⚠️ Problem backendu - wymaga naprawy po stronie serwera |
|
|
240
|
+
|
|
241
|
+
### Commity
|
|
242
|
+
|
|
243
|
+
| Commit | Opis |
|
|
244
|
+
| ------- | -------------------------- |
|
|
245
|
+
| abc1234 | feat(scope): description 1 |
|
|
246
|
+
| def5678 | fix(scope): description 2 |
|
|
247
|
+
|
|
248
|
+
### Angular Version
|
|
249
|
+
|
|
250
|
+
Angular 14 (legacy patterns)
|
|
251
|
+
|
|
252
|
+
### Status
|
|
253
|
+
|
|
254
|
+
Task przeniesiony do "In Review".
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
_Raport wygenerowany przez Claude Code (flow-legacy)_
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
### Step 7: Push to Remote
|
|
262
|
+
|
|
263
|
+
Execute `git push` to push the commits to the remote repository.
|
|
264
|
+
|
|
265
|
+
If push fails:
|
|
266
|
+
|
|
267
|
+
- Show the error message
|
|
268
|
+
- Suggest possible solutions (pull first, force push if appropriate, etc.)
|
|
269
|
+
- Note: Linear status was already updated, may need to revert if push ultimately fails
|
|
270
|
+
|
|
271
|
+
### Step 8: Final Confirmation
|
|
272
|
+
|
|
273
|
+
Show final status to user:
|
|
274
|
+
|
|
275
|
+
```markdown
|
|
276
|
+
## Gotowe
|
|
277
|
+
|
|
278
|
+
✅ Linear task [linearTaskId] przeniesiony do "In Review"
|
|
279
|
+
✅ Zmiany wysłane do `origin/<branch-name>`
|
|
280
|
+
|
|
281
|
+
### Następne kroki
|
|
282
|
+
|
|
283
|
+
- Oczekiwanie na code review
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
### Step 9: Branch-Specific Post-Push Actions
|
|
287
|
+
|
|
288
|
+
After successful push, determine the next action based on the current branch:
|
|
289
|
+
|
|
290
|
+
1. **If branch is `development`**: Proceed to **Step 10** (Deployment Verification)
|
|
291
|
+
2. **If branch is a feature branch** (matches Linear issue ID pattern like `FRA-123`, `mob-123`, etc.): Proceed to **Step 9a** (PR Workflow)
|
|
292
|
+
|
|
293
|
+
#### Step 9a: Feature Branch - Check/Create Pull Request
|
|
294
|
+
|
|
295
|
+
**Applicable only when on a feature branch (not `development`).**
|
|
296
|
+
|
|
297
|
+
1. **Check if all subtasks are completed**:
|
|
298
|
+
|
|
299
|
+
Review the subtask analysis from Step 4. Consider a task "ready for PR" if:
|
|
300
|
+
|
|
301
|
+
- All subtasks are in "Done" or "In Review" status, OR
|
|
302
|
+
- Incomplete subtasks have documented reasons (backend issue, external dependency, etc.)
|
|
303
|
+
|
|
304
|
+
2. **Check if PR already exists**:
|
|
305
|
+
|
|
306
|
+
```bash
|
|
307
|
+
gh pr list --head <branch-name> --base development --json number,title,state,url
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
3. **If PR exists**:
|
|
311
|
+
|
|
312
|
+
```markdown
|
|
313
|
+
## Pull Request Already Exists
|
|
314
|
+
|
|
315
|
+
**PR**: #<number> - <title>
|
|
316
|
+
**Status**: <state>
|
|
317
|
+
**URL**: <url>
|
|
318
|
+
|
|
319
|
+
No action needed - PR already created.
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
4. **If PR does NOT exist**, ask user:
|
|
323
|
+
|
|
324
|
+
```markdown
|
|
325
|
+
## Create Pull Request?
|
|
326
|
+
|
|
327
|
+
Branch `<branch-name>` has no open PR to `development`.
|
|
328
|
+
|
|
329
|
+
### Subtasks Status
|
|
330
|
+
|
|
331
|
+
- ✅ Completed: X
|
|
332
|
+
- ⚠️ Incomplete: Y (with documented reasons)
|
|
333
|
+
|
|
334
|
+
Do you want to create a Pull Request?
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
Use `AskUserQuestion` tool with options:
|
|
338
|
+
|
|
339
|
+
- "Tak, utwórz PR do development" (Recommended)
|
|
340
|
+
- "Nie, zakończ bez PR"
|
|
341
|
+
|
|
342
|
+
5. **If user confirms PR creation**:
|
|
343
|
+
|
|
344
|
+
Create PR using `gh pr create`:
|
|
345
|
+
|
|
346
|
+
```bash
|
|
347
|
+
gh pr create --base development --head <branch-name> --title "<Linear-ID>: <Task Title>" --body "$(cat <<'EOF'
|
|
348
|
+
## Summary
|
|
349
|
+
|
|
350
|
+
Implementation for [<Linear-ID>](https://linear.app/issue/<Linear-ID>)
|
|
351
|
+
|
|
352
|
+
### Technology Stack
|
|
353
|
+
|
|
354
|
+
- Angular 14 (legacy patterns)
|
|
355
|
+
- Nx 14 with @nrwl/* packages
|
|
356
|
+
|
|
357
|
+
### Completed Subtasks
|
|
358
|
+
|
|
359
|
+
- ✅ <subtask-id>: <title>
|
|
360
|
+
- ✅ <subtask-id>: <title>
|
|
361
|
+
|
|
362
|
+
### Incomplete Subtasks (with reasons)
|
|
363
|
+
|
|
364
|
+
- ⚠️ <subtask-id>: <title> → <reason>
|
|
365
|
+
|
|
366
|
+
### Commits
|
|
367
|
+
|
|
368
|
+
| Commit | Description |
|
|
369
|
+
|--------|-------------|
|
|
370
|
+
| abc123 | feat: ... |
|
|
371
|
+
|
|
372
|
+
---
|
|
373
|
+
|
|
374
|
+
🤖 Generated with [Claude Code](https://claude.com/claude-code) (flow-legacy)
|
|
375
|
+
EOF
|
|
376
|
+
)"
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
6. **Show PR creation result**:
|
|
380
|
+
|
|
381
|
+
```markdown
|
|
382
|
+
## ✅ Pull Request Created
|
|
383
|
+
|
|
384
|
+
**PR**: #<number> - <title>
|
|
385
|
+
**URL**: <url>
|
|
386
|
+
**Base**: development
|
|
387
|
+
**Head**: <branch-name>
|
|
388
|
+
|
|
389
|
+
### Następne kroki
|
|
390
|
+
|
|
391
|
+
- Oczekiwanie na code review
|
|
392
|
+
- Po zatwierdzeniu: merge do development
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
**End the command here for feature branches.**
|
|
396
|
+
|
|
397
|
+
### Step 10: Ask About Deployment Verification (development branch only)
|
|
398
|
+
|
|
399
|
+
**Applicable only when on `development` branch.**
|
|
400
|
+
|
|
401
|
+
After successful push, ask the user if they want to verify deployment:
|
|
402
|
+
|
|
403
|
+
```markdown
|
|
404
|
+
## Deployment Verification
|
|
405
|
+
|
|
406
|
+
Do you want to verify the deployment on QA environment?
|
|
407
|
+
|
|
408
|
+
Verification process:
|
|
409
|
+
|
|
410
|
+
1. Monitor GitHub Actions CI pipeline until completion
|
|
411
|
+
2. Git pull and check if package.json was updated
|
|
412
|
+
3. Wait 5 minutes for deployment
|
|
413
|
+
4. Verify app version on QA site
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
Use `AskUserQuestion` tool with options:
|
|
417
|
+
|
|
418
|
+
- "Yes, verify deployment" (Recommended)
|
|
419
|
+
- "No, finish now"
|
|
420
|
+
|
|
421
|
+
If user chooses not to verify, end the command here.
|
|
422
|
+
|
|
423
|
+
### Step 11: Monitor CI Pipeline via GitHub Actions
|
|
424
|
+
|
|
425
|
+
**Do NOT wait a fixed time.** Instead, actively monitor GitHub Actions workflows using `gh` CLI.
|
|
426
|
+
|
|
427
|
+
1. **Get the latest workflow run for the current branch**:
|
|
428
|
+
|
|
429
|
+
```bash
|
|
430
|
+
gh run list --branch <branch-name> --limit 1 --json databaseId,status,conclusion,workflowName
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
2. **Poll workflow status** every 30 seconds until it completes:
|
|
434
|
+
|
|
435
|
+
```bash
|
|
436
|
+
gh run view <run-id> --json status,conclusion
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
3. **Show progress to user**:
|
|
440
|
+
|
|
441
|
+
```markdown
|
|
442
|
+
## CI/CD Pipeline Monitoring
|
|
443
|
+
|
|
444
|
+
🔄 Monitoring GitHub Actions workflow...
|
|
445
|
+
|
|
446
|
+
**Workflow**: <workflow-name>
|
|
447
|
+
**Run ID**: <run-id>
|
|
448
|
+
**Status**: in_progress | queued | completed
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
4. **Check workflow result**:
|
|
452
|
+
|
|
453
|
+
**If workflow FAILED**:
|
|
454
|
+
|
|
455
|
+
1. **Get failed job logs**:
|
|
456
|
+
|
|
457
|
+
```bash
|
|
458
|
+
gh run view <run-id> --log-failed 2>&1 | tail -100
|
|
459
|
+
```
|
|
460
|
+
|
|
461
|
+
2. **Revert Linear task to "To Do"**:
|
|
462
|
+
|
|
463
|
+
If Linear task was provided and status was changed to "In Review":
|
|
464
|
+
|
|
465
|
+
- Move the parent task back to "To Do" status
|
|
466
|
+
- For tasks with subtasks: Move all subtasks that were changed to "In Review" back to "To Do"
|
|
467
|
+
|
|
468
|
+
3. **Add error comment to Linear task**:
|
|
469
|
+
|
|
470
|
+
Create a comment on the **parent task** with CI error details:
|
|
471
|
+
|
|
472
|
+
```markdown
|
|
473
|
+
## ❌ CI Build Failed
|
|
474
|
+
|
|
475
|
+
### Branch
|
|
476
|
+
|
|
477
|
+
`<branch-name>`
|
|
478
|
+
|
|
479
|
+
### Workflow
|
|
480
|
+
|
|
481
|
+
**Name**: <workflow-name>
|
|
482
|
+
**Run ID**: <run-id>
|
|
483
|
+
**URL**: https://github.com/<owner>/<repo>/actions/runs/<run-id>
|
|
484
|
+
|
|
485
|
+
### Error Details
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
<last 50-100 lines of error logs from gh run view --log-failed>
|
|
489
|
+
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
### Status
|
|
493
|
+
|
|
494
|
+
Task przywrócony do "To Do" z powodu błędu CI.
|
|
495
|
+
|
|
496
|
+
---
|
|
497
|
+
|
|
498
|
+
_Raport wygenerowany przez Claude Code (flow-legacy)_
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
4. **Show error to user**:
|
|
502
|
+
|
|
503
|
+
```markdown
|
|
504
|
+
## ❌ CI Pipeline Failed
|
|
505
|
+
|
|
506
|
+
**Workflow**: <workflow-name>
|
|
507
|
+
**Run ID**: <run-id>
|
|
508
|
+
**Conclusion**: failure
|
|
509
|
+
|
|
510
|
+
### Linear Task Status
|
|
511
|
+
|
|
512
|
+
⚠️ Task [linearTaskId] przywrócony do "To Do"
|
|
513
|
+
✅ Komentarz z błędem dodany do taska
|
|
514
|
+
|
|
515
|
+
### View logs
|
|
516
|
+
|
|
517
|
+
Run `gh run view <run-id> --log-failed` to see error details.
|
|
518
|
+
|
|
519
|
+
Or visit: https://github.com/<owner>/<repo>/actions/runs/<run-id>
|
|
520
|
+
|
|
521
|
+
### Następne kroki
|
|
522
|
+
|
|
523
|
+
1. Przeanalizuj błędy w CI
|
|
524
|
+
2. Napraw problemy lokalnie
|
|
525
|
+
3. Uruchom `/push` ponownie
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
Stop here if workflow failed.
|
|
529
|
+
|
|
530
|
+
**If workflow SUCCEEDED**, run:
|
|
531
|
+
|
|
532
|
+
```bash
|
|
533
|
+
git fetch origin
|
|
534
|
+
git pull origin <branch-name>
|
|
535
|
+
```
|
|
536
|
+
|
|
537
|
+
Check if `package.json` version has changed and proceed to Step 12.
|
|
538
|
+
|
|
539
|
+
### Step 12: Verify Deployment on QA (App Version Check)
|
|
540
|
+
|
|
541
|
+
Wait 5 minutes for deployment to complete:
|
|
542
|
+
|
|
543
|
+
```markdown
|
|
544
|
+
## QA Deployment Verification
|
|
545
|
+
|
|
546
|
+
⏳ Waiting 5 minutes for QA deployment...
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
Use `sleep 300` or equivalent to wait.
|
|
550
|
+
|
|
551
|
+
After waiting, read SITE_URL from `.env.dev` file and fetch the page to verify app version.
|
|
552
|
+
|
|
553
|
+
### Step 13: Final Deployment Status
|
|
554
|
+
|
|
555
|
+
Show complete summary:
|
|
556
|
+
|
|
557
|
+
```markdown
|
|
558
|
+
## Complete Process Summary
|
|
559
|
+
|
|
560
|
+
### Git
|
|
561
|
+
|
|
562
|
+
✅ Changes pushed to `origin/<branch-name>`
|
|
563
|
+
|
|
564
|
+
### Linear
|
|
565
|
+
|
|
566
|
+
✅ Task [linearTaskId] moved to "In Review"
|
|
567
|
+
|
|
568
|
+
### CI/CD Pipeline
|
|
569
|
+
|
|
570
|
+
✅ Package.json updated to version X.X.X
|
|
571
|
+
|
|
572
|
+
### QA Deployment
|
|
573
|
+
|
|
574
|
+
✅ Application deployed to <SITE_URL>
|
|
575
|
+
✅ Version: X.X.X
|
|
576
|
+
|
|
577
|
+
### Technology
|
|
578
|
+
|
|
579
|
+
Angular 14 (legacy patterns)
|
|
580
|
+
```
|
|
581
|
+
|
|
582
|
+
## Guidelines
|
|
583
|
+
|
|
584
|
+
1. **Write comments in Polish**: All Linear comments must be written in Polish
|
|
585
|
+
2. **Always confirm before status change**: Never change Linear status without user confirmation
|
|
586
|
+
3. **Update Linear BEFORE push**: Status change happens before git push
|
|
587
|
+
4. **Handle errors gracefully**: If push fails after status update, inform user
|
|
588
|
+
5. **Warn about uncommitted changes**: Don't push if there are uncommitted changes without user acknowledgment
|
|
589
|
+
6. **Show clear summaries**: Always show what commits will be pushed and subtask status
|
|
590
|
+
7. **Document incomplete subtasks**: Always explain WHY a subtask wasn't completed
|
|
591
|
+
8. **Deployment verification is optional**: Always ask user before starting the verification process
|
|
592
|
+
9. **Read SITE_URL from .env.dev**: Use the SITE_URL variable from `.env.dev` file for QA verification
|
|
593
|
+
10. **Revert on CI failure**: If CI pipeline fails, move task back to "To Do" and add error comment
|
|
594
|
+
11. **Branch-specific post-push actions**:
|
|
595
|
+
- **`development` branch**: Offer deployment verification (CI monitoring + QA version check)
|
|
596
|
+
- **Feature branch (e.g., `FRA-123`)**: Check/create PR to `development` when all subtasks are ready
|
|
597
|
+
|
|
598
|
+
## Error Handling
|
|
599
|
+
|
|
600
|
+
### Push Rejected (non-fast-forward)
|
|
601
|
+
|
|
602
|
+
```markdown
|
|
603
|
+
## Push Failed
|
|
604
|
+
|
|
605
|
+
**Error**: Updates were rejected because the remote contains work that you do not have locally.
|
|
606
|
+
|
|
607
|
+
**Uwaga**: Status w Linear został już zaktualizowany do "In Review".
|
|
608
|
+
|
|
609
|
+
### Options
|
|
610
|
+
|
|
611
|
+
1. `git pull --rebase` - Pull remote changes and rebase your commits on top
|
|
612
|
+
2. `git pull` - Pull remote changes and merge
|
|
613
|
+
3. `git push --force` - Force push (⚠️ overwrites remote changes)
|
|
614
|
+
|
|
615
|
+
Which option do you want to use?
|
|
616
|
+
```
|
|
617
|
+
|
|
618
|
+
### No Commits to Push
|
|
619
|
+
|
|
620
|
+
```markdown
|
|
621
|
+
## Nothing to Push
|
|
622
|
+
|
|
623
|
+
Your branch is up to date with `origin/<branch-name>`.
|
|
624
|
+
|
|
625
|
+
No commits to push.
|
|
626
|
+
```
|
|
627
|
+
|
|
628
|
+
### Uncommitted Changes Present
|
|
629
|
+
|
|
630
|
+
```markdown
|
|
631
|
+
## Warning: Uncommitted Changes
|
|
632
|
+
|
|
633
|
+
You have uncommitted changes in your working directory:
|
|
634
|
+
|
|
635
|
+
- modified: path/to/file1.ts
|
|
636
|
+
- modified: path/to/file2.ts
|
|
637
|
+
|
|
638
|
+
### Options
|
|
639
|
+
|
|
640
|
+
1. Commit changes first (`/commit`)
|
|
641
|
+
2. Stash changes and push
|
|
642
|
+
3. Proceed anyway (push existing commits only)
|
|
643
|
+
|
|
644
|
+
What would you like to do?
|
|
645
|
+
```
|