forge-workflow 0.0.2 → 0.0.4

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 (175) hide show
  1. package/.claude/commands/dev.md +26 -0
  2. package/.claude/commands/plan.md +141 -9
  3. package/.claude/commands/premerge.md +0 -3
  4. package/.claude/commands/rollback.md +4 -4
  5. package/.claude/commands/ship.md +71 -41
  6. package/.claude/commands/status.md +9 -38
  7. package/.claude/commands/validate.md +47 -2
  8. package/.cline/workflows/dev.md +337 -0
  9. package/.cline/workflows/plan.md +518 -0
  10. package/.cline/workflows/premerge.md +173 -0
  11. package/.cline/workflows/research.md +39 -0
  12. package/.cline/workflows/review.md +439 -0
  13. package/.cline/workflows/rollback.md +718 -0
  14. package/.cline/workflows/ship.md +161 -0
  15. package/.cline/workflows/sonarcloud.md +146 -0
  16. package/.cline/workflows/status.md +45 -0
  17. package/.cline/workflows/validate.md +279 -0
  18. package/.cline/workflows/verify.md +218 -0
  19. package/.codex/config.toml +11 -0
  20. package/.codex/skills/dev/SKILL.md +340 -0
  21. package/.codex/skills/plan/SKILL.md +521 -0
  22. package/.codex/skills/premerge/SKILL.md +176 -0
  23. package/.codex/skills/research/SKILL.md +42 -0
  24. package/.codex/skills/review/SKILL.md +442 -0
  25. package/.codex/skills/rollback/SKILL.md +721 -0
  26. package/.codex/skills/ship/SKILL.md +164 -0
  27. package/.codex/skills/sonarcloud/SKILL.md +149 -0
  28. package/.codex/skills/status/SKILL.md +48 -0
  29. package/.codex/skills/validate/SKILL.md +282 -0
  30. package/.codex/skills/verify/SKILL.md +221 -0
  31. package/.cursor/commands/dev.md +337 -0
  32. package/.cursor/commands/plan.md +518 -0
  33. package/.cursor/commands/premerge.md +173 -0
  34. package/.cursor/commands/research.md +39 -0
  35. package/.cursor/commands/review.md +439 -0
  36. package/.cursor/commands/rollback.md +718 -0
  37. package/.cursor/commands/ship.md +161 -0
  38. package/.cursor/commands/sonarcloud.md +146 -0
  39. package/.cursor/commands/status.md +45 -0
  40. package/.cursor/commands/validate.md +279 -0
  41. package/.cursor/commands/verify.md +218 -0
  42. package/.cursor/hooks/state/continual-learning-index.json +19 -0
  43. package/.cursor/hooks/state/continual-learning.json +8 -0
  44. package/.cursor/rules/permissions-guidance.mdc +37 -0
  45. package/.github/prompts/dev.prompt.md +342 -0
  46. package/.github/prompts/plan.prompt.md +523 -0
  47. package/.github/prompts/premerge.prompt.md +178 -0
  48. package/.github/prompts/research.prompt.md +44 -0
  49. package/.github/prompts/review.prompt.md +444 -0
  50. package/.github/prompts/rollback.prompt.md +723 -0
  51. package/.github/prompts/ship.prompt.md +166 -0
  52. package/.github/prompts/sonarcloud.prompt.md +151 -0
  53. package/.github/prompts/status.prompt.md +50 -0
  54. package/.github/prompts/validate.prompt.md +284 -0
  55. package/.github/prompts/verify.prompt.md +223 -0
  56. package/.kilocode/workflows/dev.md +341 -0
  57. package/.kilocode/workflows/plan.md +522 -0
  58. package/.kilocode/workflows/premerge.md +177 -0
  59. package/.kilocode/workflows/research.md +43 -0
  60. package/.kilocode/workflows/review.md +443 -0
  61. package/.kilocode/workflows/rollback.md +722 -0
  62. package/.kilocode/workflows/ship.md +165 -0
  63. package/.kilocode/workflows/sonarcloud.md +150 -0
  64. package/.kilocode/workflows/status.md +49 -0
  65. package/.kilocode/workflows/validate.md +283 -0
  66. package/.kilocode/workflows/verify.md +222 -0
  67. package/.opencode/commands/dev.md +340 -0
  68. package/.opencode/commands/plan.md +521 -0
  69. package/.opencode/commands/premerge.md +176 -0
  70. package/.opencode/commands/research.md +42 -0
  71. package/.opencode/commands/review.md +442 -0
  72. package/.opencode/commands/rollback.md +721 -0
  73. package/.opencode/commands/ship.md +164 -0
  74. package/.opencode/commands/sonarcloud.md +149 -0
  75. package/.opencode/commands/status.md +48 -0
  76. package/.opencode/commands/validate.md +282 -0
  77. package/.opencode/commands/verify.md +221 -0
  78. package/.roo/commands/dev.md +341 -0
  79. package/.roo/commands/plan.md +522 -0
  80. package/.roo/commands/premerge.md +177 -0
  81. package/.roo/commands/research.md +43 -0
  82. package/.roo/commands/review.md +443 -0
  83. package/.roo/commands/rollback.md +722 -0
  84. package/.roo/commands/ship.md +165 -0
  85. package/.roo/commands/sonarcloud.md +150 -0
  86. package/.roo/commands/status.md +49 -0
  87. package/.roo/commands/validate.md +283 -0
  88. package/.roo/commands/verify.md +222 -0
  89. package/AGENTS.md +7 -1
  90. package/CLAUDE.md +5 -4
  91. package/README.md +21 -19
  92. package/bin/{forge-validate.js → forge-preflight.js} +21 -15
  93. package/bin/forge.js +209 -138
  94. package/docs/AGENT_INSTALL_PROMPT.md +1 -1
  95. package/docs/BEADS_GITHUB_SYNC.md +251 -0
  96. package/docs/ENHANCED_ONBOARDING.md +8 -8
  97. package/docs/EXAMPLES.md +4 -4
  98. package/docs/GREPTILE_SETUP.md +1 -1
  99. package/docs/MANUAL_REVIEW_GUIDE.md +1 -1
  100. package/docs/ROADMAP.md +6 -6
  101. package/docs/SETUP.md +1 -2
  102. package/docs/TOOLCHAIN.md +15 -234
  103. package/docs/VALIDATION.md +11 -11
  104. package/install.sh +33 -39
  105. package/lib/agents-config.js +3 -3
  106. package/lib/commands/plan.js +11 -15
  107. package/lib/commands/recommend.js +2 -2
  108. package/lib/dep-guard/analyzer.js +294 -0
  109. package/lib/dep-guard/behavior-detector.js +98 -0
  110. package/lib/dep-guard/contract-detector.js +162 -0
  111. package/lib/dep-guard/import-detector.js +498 -0
  112. package/lib/dep-guard/path-utils.js +13 -0
  113. package/lib/dep-guard/rubric.js +120 -0
  114. package/lib/dep-guard/task-parser.js +318 -0
  115. package/lib/detect-agent.js +191 -0
  116. package/lib/detect-worktree.js +47 -0
  117. package/lib/file-hash.js +26 -0
  118. package/lib/plugin-catalog.js +18 -28
  119. package/lib/setup-action-log.js +139 -0
  120. package/lib/setup-summary-renderer.js +106 -0
  121. package/lib/setup.js +75 -1
  122. package/lib/workflow-profiles.js +5 -11
  123. package/package.json +17 -7
  124. package/skills/parallel-deep-research/SKILL.md +108 -0
  125. package/skills/parallel-deep-research/evals/README.md +27 -0
  126. package/skills/parallel-deep-research/evals/evals.json +62 -0
  127. package/skills/sonarcloud-analysis/SKILL.md +171 -0
  128. package/skills/sonarcloud-analysis/evals/README.md +27 -0
  129. package/skills/sonarcloud-analysis/evals/evals.json +50 -0
  130. package/skills/sonarcloud-analysis/references/api-reference.md +466 -0
  131. package/docs/WORKFLOW.md +0 -400
  132. package/docs/planning/PROGRESS.md +0 -396
  133. package/docs/plans/.gitkeep +0 -0
  134. package/docs/plans/2026-02-27-forge-test-suite-v2-decisions.md +0 -21
  135. package/docs/plans/2026-02-27-forge-test-suite-v2-design.md +0 -362
  136. package/docs/plans/2026-02-27-forge-test-suite-v2-tasks.md +0 -343
  137. package/docs/plans/2026-03-02-superpowers-gaps-decisions.md +0 -26
  138. package/docs/plans/2026-03-02-superpowers-gaps-design.md +0 -239
  139. package/docs/plans/2026-03-02-superpowers-gaps-tasks.md +0 -260
  140. package/docs/plans/2026-03-04-agent-command-parity-design.md +0 -163
  141. package/docs/plans/2026-03-04-verify-worktree-cleanup-decisions.md +0 -7
  142. package/docs/plans/2026-03-04-verify-worktree-cleanup-design.md +0 -165
  143. package/docs/plans/2026-03-05-forge-uto-decisions.md +0 -6
  144. package/docs/plans/2026-03-05-forge-uto-design.md +0 -116
  145. package/docs/plans/2026-03-05-forge-uto-tasks.md +0 -244
  146. package/docs/plans/2026-03-10-command-creator-and-eval-decisions.md +0 -52
  147. package/docs/plans/2026-03-10-command-creator-and-eval-design.md +0 -350
  148. package/docs/plans/2026-03-10-command-creator-and-eval-tasks.md +0 -426
  149. package/docs/plans/2026-03-10-stale-workflow-refs-decisions.md +0 -8
  150. package/docs/plans/2026-03-10-stale-workflow-refs-design.md +0 -80
  151. package/docs/plans/2026-03-10-stale-workflow-refs-tasks.md +0 -90
  152. package/docs/plans/2026-03-14-beads-plan-context-decisions.md +0 -9
  153. package/docs/plans/2026-03-14-beads-plan-context-design.md +0 -171
  154. package/docs/plans/2026-03-14-beads-plan-context-tasks.md +0 -160
  155. package/docs/plans/2026-03-14-skill-eval-loop-decisions.md +0 -33
  156. package/docs/plans/2026-03-14-skill-eval-loop-design.md +0 -118
  157. package/docs/plans/2026-03-14-skill-eval-loop-results.md +0 -78
  158. package/docs/plans/2026-03-14-skill-eval-loop-tasks.md +0 -160
  159. package/docs/plans/2026-03-15-agent-command-parity-v2-decisions.md +0 -11
  160. package/docs/plans/2026-03-15-agent-command-parity-v2-design.md +0 -145
  161. package/docs/plans/2026-03-15-agent-command-parity-v2-tasks.md +0 -211
  162. package/docs/research/TEMPLATE.md +0 -292
  163. package/docs/research/advanced-testing.md +0 -297
  164. package/docs/research/agent-permissions.md +0 -167
  165. package/docs/research/dependency-chain.md +0 -328
  166. package/docs/research/forge-workflow-v2.md +0 -550
  167. package/docs/research/plugin-architecture.md +0 -772
  168. package/docs/research/pr4-cli-automation.md +0 -326
  169. package/docs/research/premerge-verify-restructure.md +0 -205
  170. package/docs/research/skills-restructure.md +0 -508
  171. package/docs/research/sonarcloud-perfection-plan.md +0 -166
  172. package/docs/research/sonarcloud-quality-gate.md +0 -184
  173. package/docs/research/superpowers-integration.md +0 -403
  174. package/docs/research/superpowers.md +0 -319
  175. package/docs/research/test-environment.md +0 -519
@@ -0,0 +1,39 @@
1
+
2
+ > **Note**: `/research` is now Phase 2 of `/plan`.
3
+ >
4
+ > The research phase has been absorbed into the `/plan` command, which runs a full 3-phase workflow:
5
+ > - **Phase 1**: Brainstorming — design intent, constraints, success criteria
6
+ > - **Phase 2**: Technical research — web search, OWASP, codebase exploration, TDD scenarios
7
+ > - **Phase 3**: Setup — branch, worktree, Beads issue, task list
8
+ >
9
+ > Run `/plan <feature-slug>` to start the complete planning workflow.
10
+
11
+ # Research (Legacy Alias)
12
+
13
+ This command previously ran a standalone research phase. It is now embedded in `/plan` as Phase 2.
14
+
15
+ ## If you want to run just the research phase
16
+
17
+ Jump to Phase 2 of `/plan` manually:
18
+
19
+ 1. Read or create the design doc at `docs/plans/YYYY-MM-DD-<slug>-design.md`
20
+ 2. Run parallel web search using the `parallel-deep-research` skill
21
+ 3. Run OWASP Top 10 analysis for the feature
22
+ 4. Use the Explore agent for codebase exploration
23
+ 5. Identify at least 3 TDD test scenarios
24
+ 6. Append findings under `## Technical Research` in the design doc
25
+
26
+ Then continue with `/plan <slug> --continue` to run Phase 3 (setup + task list).
27
+
28
+ ## Integration with Workflow
29
+
30
+ ```
31
+ Utility: /status → Understand current context before starting
32
+ Stage 1: /plan → Design intent → research → branch + worktree + task list
33
+ Stage 2: /dev → Implement each task with subagent-driven TDD
34
+ Stage 3: /validate → Type check, lint, tests, security — all fresh output
35
+ Stage 4: /ship → Push + create PR
36
+ Stage 5: /review → Address GitHub Actions, Greptile, SonarCloud
37
+ Stage 6: /premerge → Update docs, hand off PR to user
38
+ Stage 7: /verify → Post-merge CI check on main
39
+ ```
@@ -0,0 +1,439 @@
1
+
2
+ Process ALL pull request issues including GitHub Actions failures, Greptile inline comments, SonarCloud analysis, and other CI/CD checks.
3
+
4
+ # Review
5
+
6
+ This command handles ALL issues that arise after creating a pull request.
7
+
8
+ ## Usage
9
+
10
+ ```bash
11
+ /review <pr-number>
12
+ ```
13
+
14
+ ## What This Command Does
15
+
16
+ ### Step 1: Fetch Complete PR Status
17
+ ```bash
18
+ # Get full PR details including all checks
19
+ gh pr view <pr-number> --json number,url,isDraft,reviews,statusCheckRollup,comments
20
+
21
+ # Check individual status checks
22
+ gh pr checks <pr-number>
23
+ ```
24
+
25
+ Review ALL status checks:
26
+ - GitHub Actions workflows
27
+ - Greptile code review (inline comments + summary)
28
+ - SonarCloud quality gate
29
+ - Any other CI/CD integrations
30
+ - Vercel deployments
31
+ - Security scanners
32
+
33
+ ### Step 2: Address GitHub Actions Failures
34
+
35
+ If any GitHub Actions workflows fail:
36
+
37
+ ```bash
38
+ # View failed workflow logs
39
+ gh run view <run-id> --log-failed
40
+
41
+ # Identify failure cause:
42
+ # - Build failures
43
+ # - Test failures
44
+ # - Lint/type check failures
45
+ # - Deployment failures
46
+ # - Security scan failures
47
+ ```
48
+
49
+ **For each failure**:
50
+ 1. **Analyze the error**: Read logs to understand root cause
51
+ 2. **Fix the issue**: Make necessary code changes
52
+ 3. **Re-run checks**: GitHub Actions will auto-rerun on push
53
+ 4. **Document fix**: Note what was fixed in commit message
54
+
55
+ **Common GitHub Actions Issues**:
56
+ - Build failures: Missing dependencies, compilation errors
57
+ - Test failures: Failing test cases (should not happen if /validate passed)
58
+ - Lint failures: Code style violations
59
+ - Type failures: TypeScript type errors
60
+ - Deployment failures: Env vars, configuration issues
61
+
62
+ ### Step 3: Process Greptile Review
63
+
64
+ Greptile provides TWO types of feedback:
65
+ 1. **Inline comments** on specific code lines
66
+ 2. **Summary** with overall recommendations
67
+
68
+ **IMPORTANT**: Use the **systematic Greptile resolution process** documented in `.claude/rules/greptile-review-process.md`. This process has been standardized to ensure:
69
+ - All threads are replied to directly (not as separate PR comments)
70
+ - All threads are marked as resolved after fixing
71
+ - No manual tracking overhead for maintainers
72
+
73
+ #### 3A. Check Greptile Inline Comments (Use Systematic Process)
74
+
75
+ **Step 1: List all unresolved threads**
76
+ ```bash
77
+ bash .claude/scripts/greptile-resolve.sh list <pr-number> --unresolved
78
+ ```
79
+
80
+ This shows:
81
+ - Thread ID (for resolving)
82
+ - Comment ID (for replying)
83
+ - File path and line number
84
+ - Issue description
85
+
86
+ **Step 2: For EACH unresolved thread:**
87
+
88
+ 1. **Understand the issue**
89
+ - Read the comment carefully
90
+ - Check the file and line number
91
+
92
+ 2. **Categorize the comment**:
93
+ - **Valid**: Should be implemented (security issue, bug, clear improvement)
94
+ - **Invalid**: Greptile misunderstood context
95
+ - **Conflicting**: Contradicts research decisions with good reason
96
+ - **Out of scope**: Valid but not for this PR
97
+
98
+ 3. **Fix the issue** (if valid)
99
+ - Make code changes
100
+ - Commit with clear message
101
+
102
+ 4. **Reply and resolve** (for ALL comments, even invalid ones)
103
+ ```bash
104
+ # For valid issues (fixed):
105
+ bash .claude/scripts/greptile-resolve.sh reply-and-resolve <pr-number> <comment-id> <thread-id> \
106
+ "✅ Fixed: [description]
107
+
108
+ Changed: [what was changed]
109
+ Reason: [why this fixes the issue]
110
+ Commit: [commit-sha]"
111
+
112
+ # For invalid/conflicting issues:
113
+ bash .claude/scripts/greptile-resolve.sh reply-and-resolve <pr-number> <comment-id> <thread-id> \
114
+ "This approach is correct because:
115
+ - Reasoning: [from design doc]
116
+ - Evidence: [link to source]
117
+ - Alternative considered: [what Greptile suggested]
118
+ - Why rejected: [specific reason]
119
+
120
+ See: docs/plans/YYYY-MM-DD-<slug>-design.md (Decision #X)"
121
+ ```
122
+
123
+ **Step 3: Verify all resolved**
124
+ ```bash
125
+ bash .claude/scripts/greptile-resolve.sh stats <pr-number>
126
+ ```
127
+ Should show: "✓ All Greptile threads resolved!"
128
+
129
+ **See complete process**: `.claude/rules/greptile-review-process.md`
130
+
131
+ #### 3B. Check Greptile Summary
132
+ ```bash
133
+ # Greptile usually posts a summary comment on the PR
134
+ # Review the overall assessment and recommendations
135
+ ```
136
+
137
+ The summary typically includes:
138
+ - Overall code quality assessment
139
+ - Key issues to address
140
+ - Security concerns
141
+ - Performance considerations
142
+ - Best practice violations
143
+
144
+ ### Step 4: Analyze SonarCloud (via sonarcloud skill)
145
+
146
+ ```bash
147
+ # Use sonarcloud skill to query PR-specific issues
148
+ /sonarcloud
149
+ ```
150
+
151
+ **What SonarCloud does**: Static code analysis for quality, security, and maintainability
152
+
153
+ **How it helps**:
154
+ - Identifies code smells and technical debt
155
+ - Finds security vulnerabilities (complementing OWASP Top 10)
156
+ - Calculates code coverage
157
+ - Tracks code duplication
158
+ - Assesses maintainability
159
+
160
+ **Query PR-specific data**:
161
+ - Quality gate status (pass/fail)
162
+ - New issues introduced in this PR
163
+ - Security hotspots
164
+ - Code coverage changes
165
+ - Technical debt added
166
+
167
+ **Prioritize issues**:
168
+ 1. **Blocker/Critical**: Must fix before merge
169
+ 2. **Major**: Should fix if valid
170
+ 3. **Minor/Info**: Optional improvements
171
+
172
+ ### Step 5: Check Other CI/CD Tools
173
+
174
+ Review any other automated checks:
175
+ - **Vercel**: Preview deployment successful?
176
+ - **Security scanners**: Any vulnerabilities detected?
177
+ - **Custom scripts**: Any failures?
178
+ - **Dependency checks**: Outdated or vulnerable packages?
179
+
180
+ ### Step 6: Categorize and Prioritize ALL Issues
181
+
182
+ Create a master list of all issues from:
183
+ - GitHub Actions failures
184
+ - Greptile inline comments
185
+ - Greptile summary recommendations
186
+ - SonarCloud issues
187
+ - Other CI/CD tool failures
188
+
189
+ Prioritize by:
190
+ 1. **Critical**: Blocks merge (failing tests, security vulnerabilities, build failures)
191
+ 2. **High**: Should address (valid bugs, important improvements)
192
+ 3. **Medium**: Optional but valuable (code quality, best practices)
193
+ 4. **Low**: Nice to have (minor refactorings, style suggestions)
194
+
195
+ ### Step 7: Address Issues Systematically
196
+
197
+ For **GitHub Actions failures** (Critical):
198
+ ```bash
199
+ # Fix the issue
200
+ # Commit with clear description
201
+ git add .
202
+ git commit -m "fix: resolve GitHub Actions failure in <workflow-name>
203
+
204
+ - Fixed: [specific issue]
205
+ - Root cause: [explanation]
206
+ - Solution: [what was changed]"
207
+
208
+ git push
209
+ # Actions will auto-rerun
210
+ ```
211
+
212
+ For **Greptile inline comments** (Use Systematic Script):
213
+ ```bash
214
+ # Use the standardized Greptile resolution script
215
+ # See .claude/rules/greptile-review-process.md for complete process
216
+
217
+ # For valid comments (fixed):
218
+ bash .claude/scripts/greptile-resolve.sh reply-and-resolve <pr-number> <comment-id> <thread-id> \
219
+ "✅ Fixed: [description]
220
+
221
+ Changed: [what was changed]
222
+ Reason: [why this fixes the issue]
223
+ Commit: [commit-sha]"
224
+
225
+ # For invalid/conflicting comments:
226
+ bash .claude/scripts/greptile-resolve.sh reply-and-resolve <pr-number> <comment-id> <thread-id> \
227
+ "This approach is correct because:
228
+ - Reasoning: [from design doc]
229
+ - Evidence: [link to source]
230
+ - Alternative considered: [what Greptile suggested]
231
+ - Why rejected: [specific reason]
232
+
233
+ See: docs/plans/YYYY-MM-DD-<slug>-design.md (Decision #X)"
234
+
235
+ # Verify all threads resolved:
236
+ bash .claude/scripts/greptile-resolve.sh stats <pr-number>
237
+ ```
238
+
239
+ For **Greptile summary recommendations**:
240
+ ```bash
241
+ # Add a PR comment addressing the summary
242
+ gh pr comment <pr-number> --body "## Greptile Summary Response
243
+
244
+ Addressed all key recommendations:
245
+ - [Recommendation 1]: ✓ Fixed in commit <sha>
246
+ - [Recommendation 2]: ✓ Explained (see inline response)
247
+ - [Recommendation 3]: ⏭️ Out of scope for this PR (created issue bd-xxx)
248
+
249
+ All critical and high-priority items resolved."
250
+ ```
251
+
252
+ For **SonarCloud issues** (via sonarcloud skill):
253
+ ```bash
254
+ # For critical/blocker issues: Fix immediately
255
+ # For security vulnerabilities: Fix immediately
256
+ # For code smells: Fix if valid, justify if not
257
+
258
+ # After fixes, SonarCloud will re-analyze on next push
259
+ ```
260
+
261
+ For **other CI/CD failures**:
262
+ ```bash
263
+ # Debug the specific tool's logs
264
+ # Fix the underlying issue
265
+ # Commit and push
266
+ # Verify the check passes
267
+ ```
268
+
269
+ ### Step 8: Commit ALL Fixes
270
+
271
+ ```bash
272
+ git add .
273
+ git commit -m "fix: address ALL PR review feedback
274
+
275
+ GitHub Actions:
276
+ - Fixed: [list of workflow failures resolved]
277
+
278
+ Greptile:
279
+ - Fixed: [list of valid inline comments addressed]
280
+ - Explained: [list of invalid comments with reasoning]
281
+ - Summary: [key recommendations addressed]
282
+
283
+ SonarCloud:
284
+ - Fixed: [security vulnerabilities and critical issues]
285
+ - Justified: [code smells that are intentional]
286
+
287
+ Other CI/CD:
288
+ - Fixed: [any other tool failures]
289
+
290
+ All review feedback resolved, all checks passing."
291
+
292
+ git push
293
+ ```
294
+
295
+ ### Step 9: Verify ALL Checks Pass
296
+
297
+ ```bash
298
+ # Wait for checks to complete
299
+ gh pr checks <pr-number>
300
+
301
+ # Ensure all status checks are green:
302
+ # ✓ GitHub Actions workflows
303
+ # ✓ Greptile review (no unresolved critical comments)
304
+ # ✓ SonarCloud quality gate
305
+ # ✓ Other CI/CD checks
306
+ ```
307
+
308
+ ### Step 10: Update Beads
309
+
310
+ ```bash
311
+ bd update <id> --comment "PR review complete: all issues addressed, all checks passing"
312
+ bd sync
313
+ ```
314
+
315
+ ## Example Output
316
+
317
+ ```
318
+ ✓ GitHub Actions: 3 workflows
319
+ - Build: ✓ Passing (was failing, fixed missing dependency)
320
+ - Tests: ✓ Passing
321
+ - Deploy Preview: ✓ Passing
322
+
323
+ ✓ Greptile Review:
324
+ Inline Comments: 8 total
325
+ - Valid: 5 → Fixed & replied inline
326
+ - Invalid: 2 → Explained with research evidence & replied inline
327
+ - Out of scope: 1 → Noted for future work & replied inline
328
+ - All marked resolved ✓
329
+
330
+ Summary:
331
+ - Key recommendations: 3/3 addressed
332
+ - Overall assessment: Ready for merge
333
+ - Posted summary response comment ✓
334
+
335
+ ✓ SonarCloud (via sonarcloud skill):
336
+ Quality Gate: ✓ Passing
337
+ Issues: 3 total
338
+ - Security: 1 → Fixed (SQL injection risk)
339
+ - Code smells: 2 → 1 fixed, 1 justified
340
+ - Coverage: Maintained at 85%
341
+
342
+ ✓ Vercel Preview: ✓ Deployed successfully
343
+ ✓ Security Scan: ✓ No vulnerabilities
344
+
345
+ ✓ All Issues Addressed:
346
+ - Critical: 2/2 fixed (GitHub Actions build, SonarCloud security)
347
+ - High: 5/5 fixed (Greptile valid comments)
348
+ - Medium: 3/3 addressed (1 fixed, 2 explained)
349
+ - Low: 0 (none found)
350
+
351
+ ✓ Fixes committed: 3c4d5e6
352
+ ✓ All checks passing: ✓
353
+ ✓ Beads updated: Ready for merge
354
+
355
+ Next: /premerge <pr-number>
356
+ ```
357
+
358
+ ```
359
+ <HARD-GATE: /review exit>
360
+ Do NOT declare /review complete until:
361
+ 1. bash .claude/scripts/greptile-resolve.sh stats <pr-number> shows "All Greptile threads resolved"
362
+ 2. ALL human reviewer comments are either resolved or have a reply with explanation
363
+ 3. gh pr checks <pr-number> shows all checks passing
364
+ 4. Stage transition: Run `bash scripts/beads-context.sh stage-transition <id> review premerge` → exit 0 confirmed
365
+ </HARD-GATE>
366
+ ```
367
+
368
+ ## Integration with Workflow
369
+
370
+ ```
371
+ Utility: /status → Understand current context before starting
372
+ Stage 1: /plan → Design intent → research → branch + worktree + task list
373
+ Stage 2: /dev → Implement each task with subagent-driven TDD
374
+ Stage 3: /validate → Type check, lint, tests, security — all fresh output
375
+ Stage 4: /ship → Push + create PR
376
+ Stage 5: /review → Address GitHub Actions, Greptile, SonarCloud (you are here)
377
+ Stage 6: /premerge → Update docs, hand off PR to user
378
+ Stage 7: /verify → Post-merge CI check on main
379
+ ```
380
+
381
+ ## Understanding the Tools
382
+
383
+ ### Greptile
384
+ - **What it is**: AI-powered code review bot
385
+ - **How it helps**:
386
+ - Context-aware code analysis
387
+ - Catches bugs and security issues
388
+ - Suggests improvements and best practices
389
+ - Provides inline comments and summary
390
+ - **How to use feedback**:
391
+ - Inline comments: Address specific code issues
392
+ - Summary: Get overall assessment and key recommendations
393
+ - Reply directly to each comment (not separate)
394
+ - Mark resolved after addressing
395
+
396
+ ### SonarCloud (via sonarcloud skill)
397
+ - **What it is**: Static code analysis platform
398
+ - **How it helps**:
399
+ - Quality gate enforcement
400
+ - Security vulnerability detection
401
+ - Code smell identification
402
+ - Technical debt tracking
403
+ - Test coverage analysis
404
+ - **How to use the skill**:
405
+ - Query PR-specific issues
406
+ - Get quality metrics
407
+ - Identify security hotspots
408
+ - Track code coverage changes
409
+ - **Prioritization**:
410
+ - Blocker/Critical: Must fix
411
+ - Major: Should fix if valid
412
+ - Minor/Info: Optional
413
+
414
+ ### GitHub Actions
415
+ - **What it is**: CI/CD automation platform
416
+ - **How it helps**:
417
+ - Automated testing
418
+ - Build verification
419
+ - Deployment automation
420
+ - Security scanning
421
+ - Quality checks
422
+ - **Common failures**:
423
+ - Build: Dependencies, compilation
424
+ - Tests: Failing test cases
425
+ - Lint: Code style violations
426
+ - Deploy: Configuration issues
427
+
428
+ ## Tips
429
+
430
+ - **Address ALL issues**: Not just Greptile and SonarCloud
431
+ - **Prioritize critical**: Fix blockers first (GitHub Actions failures, security issues)
432
+ - **Reply inline to Greptile**: Respond to each comment directly
433
+ - **Post summary response**: Address Greptile's overall assessment
434
+ - **Use sonarcloud skill**: Don't just check the web UI
435
+ - **Verify all checks**: Ensure everything is green before /premerge
436
+ - **Update Beads**: Keep issue status current
437
+ - **Research if needed**: Use WebSearch for unclear suggestions
438
+ - **Document fixes**: Clear commit messages for all fixes
439
+ - **Don't leave unresolved**: Address every comment and check