opengstack 0.13.10 → 0.14.2

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 (189) hide show
  1. package/AGENTS.md +4 -4
  2. package/CLAUDE.md +127 -110
  3. package/README.md +10 -5
  4. package/SKILL.md +500 -70
  5. package/bin/opengstack.js +69 -69
  6. package/{skills/land-and-deploy/SKILL.md → commands/autoplan.md} +7 -25
  7. package/{skills/benchmark/SKILL.md → commands/benchmark.md} +84 -108
  8. package/{skills/browse/SKILL.md → commands/browse.md} +60 -81
  9. package/{skills/ship/SKILL.md → commands/canary.md} +7 -27
  10. package/{skills/careful/SKILL.md → commands/careful.md} +2 -22
  11. package/{skills/canary/SKILL.md → commands/codex.md} +7 -26
  12. package/{skills/connect-chrome/SKILL.md → commands/connect-chrome.md} +7 -24
  13. package/commands/cso.md +70 -0
  14. package/commands/design-consultation.md +70 -0
  15. package/commands/design-review.md +70 -0
  16. package/commands/design-shotgun.md +70 -0
  17. package/commands/document-release.md +70 -0
  18. package/{skills/freeze/SKILL.md → commands/freeze.md} +3 -29
  19. package/{skills/guard/SKILL.md → commands/guard.md} +4 -35
  20. package/commands/investigate.md +70 -0
  21. package/commands/land-and-deploy.md +70 -0
  22. package/commands/office-hours.md +70 -0
  23. package/{skills/gstack-upgrade/SKILL.md → commands/opengstack-upgrade.md} +64 -79
  24. package/commands/plan-ceo-review.md +70 -0
  25. package/commands/plan-design-review.md +70 -0
  26. package/commands/plan-eng-review.md +70 -0
  27. package/commands/qa-only.md +70 -0
  28. package/commands/qa.md +70 -0
  29. package/commands/retro.md +70 -0
  30. package/commands/review.md +70 -0
  31. package/{skills/setup-browser-cookies/SKILL.md → commands/setup-browser-cookies.md} +22 -40
  32. package/commands/setup-deploy.md +70 -0
  33. package/commands/ship.md +70 -0
  34. package/commands/unfreeze.md +25 -0
  35. package/docs/designs/CHROME_VS_CHROMIUM_EXPLORATION.md +9 -9
  36. package/docs/designs/CONDUCTOR_CHROME_SIDEBAR_INTEGRATION.md +2 -2
  37. package/docs/designs/CONDUCTOR_SESSION_API.md +16 -16
  38. package/docs/designs/DESIGN_SHOTGUN.md +74 -74
  39. package/docs/designs/DESIGN_TOOLS_V1.md +111 -111
  40. package/docs/skills.md +483 -202
  41. package/package.json +42 -43
  42. package/scripts/analytics.ts +188 -0
  43. package/scripts/dev-skill.ts +83 -0
  44. package/scripts/discover-skills.ts +39 -0
  45. package/scripts/eval-compare.ts +97 -0
  46. package/scripts/eval-list.ts +117 -0
  47. package/scripts/eval-select.ts +86 -0
  48. package/scripts/eval-summary.ts +188 -0
  49. package/scripts/eval-watch.ts +172 -0
  50. package/scripts/gen-skill-docs.ts +473 -0
  51. package/scripts/resolvers/browse.ts +129 -0
  52. package/scripts/resolvers/codex-helpers.ts +133 -0
  53. package/scripts/resolvers/composition.ts +48 -0
  54. package/scripts/resolvers/confidence.ts +37 -0
  55. package/scripts/resolvers/constants.ts +50 -0
  56. package/scripts/resolvers/design.ts +950 -0
  57. package/scripts/resolvers/index.ts +59 -0
  58. package/scripts/resolvers/learnings.ts +96 -0
  59. package/scripts/resolvers/preamble.ts +505 -0
  60. package/scripts/resolvers/review.ts +884 -0
  61. package/scripts/resolvers/testing.ts +573 -0
  62. package/scripts/resolvers/types.ts +45 -0
  63. package/scripts/resolvers/utility.ts +421 -0
  64. package/scripts/skill-check.ts +190 -0
  65. package/scripts/cleanup.py +0 -100
  66. package/scripts/filter-skills.sh +0 -114
  67. package/scripts/filter_skills.py +0 -164
  68. package/scripts/install-skills.js +0 -60
  69. package/skills/autoplan/SKILL.md +0 -96
  70. package/skills/autoplan/SKILL.md.tmpl +0 -694
  71. package/skills/benchmark/SKILL.md.tmpl +0 -222
  72. package/skills/browse/SKILL.md.tmpl +0 -131
  73. package/skills/browse/bin/find-browse +0 -21
  74. package/skills/browse/bin/remote-slug +0 -14
  75. package/skills/browse/scripts/build-node-server.sh +0 -48
  76. package/skills/browse/src/activity.ts +0 -208
  77. package/skills/browse/src/browser-manager.ts +0 -959
  78. package/skills/browse/src/buffers.ts +0 -137
  79. package/skills/browse/src/bun-polyfill.cjs +0 -109
  80. package/skills/browse/src/cli.ts +0 -678
  81. package/skills/browse/src/commands.ts +0 -128
  82. package/skills/browse/src/config.ts +0 -150
  83. package/skills/browse/src/cookie-import-browser.ts +0 -625
  84. package/skills/browse/src/cookie-picker-routes.ts +0 -230
  85. package/skills/browse/src/cookie-picker-ui.ts +0 -688
  86. package/skills/browse/src/find-browse.ts +0 -61
  87. package/skills/browse/src/meta-commands.ts +0 -550
  88. package/skills/browse/src/platform.ts +0 -17
  89. package/skills/browse/src/read-commands.ts +0 -358
  90. package/skills/browse/src/server.ts +0 -1192
  91. package/skills/browse/src/sidebar-agent.ts +0 -280
  92. package/skills/browse/src/sidebar-utils.ts +0 -21
  93. package/skills/browse/src/snapshot.ts +0 -407
  94. package/skills/browse/src/url-validation.ts +0 -95
  95. package/skills/browse/src/write-commands.ts +0 -364
  96. package/skills/browse/test/activity.test.ts +0 -120
  97. package/skills/browse/test/adversarial-security.test.ts +0 -32
  98. package/skills/browse/test/browser-manager-unit.test.ts +0 -17
  99. package/skills/browse/test/bun-polyfill.test.ts +0 -72
  100. package/skills/browse/test/commands.test.ts +0 -2075
  101. package/skills/browse/test/compare-board.test.ts +0 -342
  102. package/skills/browse/test/config.test.ts +0 -316
  103. package/skills/browse/test/cookie-import-browser.test.ts +0 -519
  104. package/skills/browse/test/cookie-picker-routes.test.ts +0 -260
  105. package/skills/browse/test/file-drop.test.ts +0 -271
  106. package/skills/browse/test/find-browse.test.ts +0 -50
  107. package/skills/browse/test/findport.test.ts +0 -191
  108. package/skills/browse/test/fixtures/basic.html +0 -33
  109. package/skills/browse/test/fixtures/cursor-interactive.html +0 -22
  110. package/skills/browse/test/fixtures/dialog.html +0 -15
  111. package/skills/browse/test/fixtures/empty.html +0 -2
  112. package/skills/browse/test/fixtures/forms.html +0 -55
  113. package/skills/browse/test/fixtures/iframe.html +0 -30
  114. package/skills/browse/test/fixtures/network-idle.html +0 -30
  115. package/skills/browse/test/fixtures/qa-eval-checkout.html +0 -108
  116. package/skills/browse/test/fixtures/qa-eval-spa.html +0 -98
  117. package/skills/browse/test/fixtures/qa-eval.html +0 -51
  118. package/skills/browse/test/fixtures/responsive.html +0 -49
  119. package/skills/browse/test/fixtures/snapshot.html +0 -55
  120. package/skills/browse/test/fixtures/spa.html +0 -24
  121. package/skills/browse/test/fixtures/states.html +0 -17
  122. package/skills/browse/test/fixtures/upload.html +0 -25
  123. package/skills/browse/test/gstack-config.test.ts +0 -138
  124. package/skills/browse/test/gstack-update-check.test.ts +0 -514
  125. package/skills/browse/test/handoff.test.ts +0 -235
  126. package/skills/browse/test/path-validation.test.ts +0 -91
  127. package/skills/browse/test/platform.test.ts +0 -37
  128. package/skills/browse/test/server-auth.test.ts +0 -65
  129. package/skills/browse/test/sidebar-agent-roundtrip.test.ts +0 -226
  130. package/skills/browse/test/sidebar-agent.test.ts +0 -199
  131. package/skills/browse/test/sidebar-integration.test.ts +0 -320
  132. package/skills/browse/test/sidebar-unit.test.ts +0 -96
  133. package/skills/browse/test/snapshot.test.ts +0 -467
  134. package/skills/browse/test/state-ttl.test.ts +0 -35
  135. package/skills/browse/test/test-server.ts +0 -57
  136. package/skills/browse/test/url-validation.test.ts +0 -72
  137. package/skills/browse/test/watch.test.ts +0 -129
  138. package/skills/canary/SKILL.md.tmpl +0 -212
  139. package/skills/careful/SKILL.md.tmpl +0 -56
  140. package/skills/careful/bin/check-careful.sh +0 -112
  141. package/skills/codex/SKILL.md +0 -90
  142. package/skills/codex/SKILL.md.tmpl +0 -417
  143. package/skills/connect-chrome/SKILL.md.tmpl +0 -195
  144. package/skills/cso/ACKNOWLEDGEMENTS.md +0 -14
  145. package/skills/cso/SKILL.md +0 -93
  146. package/skills/cso/SKILL.md.tmpl +0 -606
  147. package/skills/design-consultation/SKILL.md +0 -94
  148. package/skills/design-consultation/SKILL.md.tmpl +0 -415
  149. package/skills/design-review/SKILL.md +0 -94
  150. package/skills/design-review/SKILL.md.tmpl +0 -290
  151. package/skills/design-shotgun/SKILL.md +0 -91
  152. package/skills/design-shotgun/SKILL.md.tmpl +0 -285
  153. package/skills/document-release/SKILL.md +0 -91
  154. package/skills/document-release/SKILL.md.tmpl +0 -359
  155. package/skills/freeze/SKILL.md.tmpl +0 -77
  156. package/skills/freeze/bin/check-freeze.sh +0 -79
  157. package/skills/gstack-upgrade/SKILL.md.tmpl +0 -222
  158. package/skills/guard/SKILL.md.tmpl +0 -77
  159. package/skills/investigate/SKILL.md +0 -105
  160. package/skills/investigate/SKILL.md.tmpl +0 -194
  161. package/skills/land-and-deploy/SKILL.md.tmpl +0 -881
  162. package/skills/office-hours/SKILL.md +0 -96
  163. package/skills/office-hours/SKILL.md.tmpl +0 -645
  164. package/skills/plan-ceo-review/SKILL.md +0 -94
  165. package/skills/plan-ceo-review/SKILL.md.tmpl +0 -811
  166. package/skills/plan-design-review/SKILL.md +0 -92
  167. package/skills/plan-design-review/SKILL.md.tmpl +0 -446
  168. package/skills/plan-eng-review/SKILL.md +0 -93
  169. package/skills/plan-eng-review/SKILL.md.tmpl +0 -303
  170. package/skills/qa/SKILL.md +0 -95
  171. package/skills/qa/SKILL.md.tmpl +0 -316
  172. package/skills/qa/references/issue-taxonomy.md +0 -85
  173. package/skills/qa/templates/qa-report-template.md +0 -126
  174. package/skills/qa-only/SKILL.md +0 -89
  175. package/skills/qa-only/SKILL.md.tmpl +0 -101
  176. package/skills/retro/SKILL.md +0 -89
  177. package/skills/retro/SKILL.md.tmpl +0 -820
  178. package/skills/review/SKILL.md +0 -92
  179. package/skills/review/SKILL.md.tmpl +0 -281
  180. package/skills/review/TODOS-format.md +0 -62
  181. package/skills/review/checklist.md +0 -220
  182. package/skills/review/design-checklist.md +0 -132
  183. package/skills/review/greptile-triage.md +0 -220
  184. package/skills/setup-browser-cookies/SKILL.md.tmpl +0 -81
  185. package/skills/setup-deploy/SKILL.md +0 -92
  186. package/skills/setup-deploy/SKILL.md.tmpl +0 -215
  187. package/skills/ship/SKILL.md.tmpl +0 -636
  188. package/skills/unfreeze/SKILL.md +0 -37
  189. package/skills/unfreeze/SKILL.md.tmpl +0 -36
@@ -1,132 +0,0 @@
1
- # Design Review Checklist (Lite)
2
-
3
- > **Subset of DESIGN_METHODOLOGY** — when adding items here, also update `generateDesignMethodology()` in `scripts/gen-skill-docs.ts`, and vice versa.
4
-
5
- ## Instructions
6
-
7
- This checklist applies to **source code in the diff** — not rendered output. Read each changed frontend file (full file, not just diff hunks) and flag anti-patterns.
8
-
9
- **Trigger:** Only run this checklist if the diff touches frontend files. Use `gstack-diff-scope` to detect:
10
-
11
- ```bash
12
- source <(~/.claude/skills/gstack/bin/gstack-diff-scope <base> 2>/dev/null)
13
- ```
14
-
15
- If `SCOPE_FRONTEND=false`, skip the entire design review silently.
16
-
17
- **DESIGN.md calibration:** If `DESIGN.md` or `design-system.md` exists in the repo root, read it first. All findings are calibrated against the project's stated design system. Patterns explicitly blessed in DESIGN.md are NOT flagged. If no DESIGN.md exists, use universal design principles.
18
-
19
- ---
20
-
21
- ## Confidence Tiers
22
-
23
- Each item is tagged with a detection confidence level:
24
-
25
- - **[HIGH]** — Reliably detectable via grep/pattern match. Definitive findings.
26
- - **[MEDIUM]** — Detectable via pattern aggregation or heuristic. Flag as findings but expect some noise.
27
- - **[LOW]** — Requires understanding visual intent. Present as: "Possible issue — verify visually or run /design-review."
28
-
29
- ---
30
-
31
- ## Classification
32
-
33
- **AUTO-FIX** (mechanical CSS fixes only — HIGH confidence, no design judgment needed):
34
- - `outline: none` without replacement → add `outline: revert` or `&:focus-visible { outline: 2px solid currentColor; }`
35
- - `!important` in new CSS → remove and fix specificity
36
- - `font-size` < 16px on body text → bump to 16px
37
-
38
- **ASK** (everything else — requires design judgment):
39
- - All AI slop findings, typography structure, spacing choices, interaction state gaps, DESIGN.md violations
40
-
41
- **LOW confidence items** → present as "Possible: [description]. Verify visually or run /design-review." Never AUTO-FIX.
42
-
43
- ---
44
-
45
- ## Output Format
46
-
47
- ```
48
- Design Review: N issues (X auto-fixable, Y need input, Z possible)
49
-
50
- **AUTO-FIXED:**
51
- - [file:line] Problem → fix applied
52
-
53
- **NEEDS INPUT:**
54
- - [file:line] Problem description
55
- Recommended fix: suggested fix
56
-
57
- **POSSIBLE (verify visually):**
58
- - [file:line] Possible issue — verify with /design-review
59
- ```
60
-
61
- If no issues found: `Design Review: No issues found.`
62
-
63
- If no frontend files changed: skip silently, no output.
64
-
65
- ---
66
-
67
- ## Categories
68
-
69
- ### 1. AI Slop Detection (6 items) — highest priority
70
-
71
- These are the telltale signs of AI-generated UI that no designer at a respected studio would ship.
72
-
73
- - **[MEDIUM]** Purple/violet/indigo gradient backgrounds or blue-to-purple color schemes. Look for `linear-gradient` with values in the `#6366f1`–`#8b5cf6` range, or CSS custom properties resolving to purple/violet.
74
-
75
- - **[LOW]** The 3-column feature grid: icon-in-colored-circle + bold title + 2-line description, repeated 3x symmetrically. Look for a grid/flex container with exactly 3 children that each contain a circular element + heading + paragraph.
76
-
77
- - **[LOW]** Icons in colored circles as section decoration. Look for elements with `border-radius: 50%` + a background color used as decorative containers for icons.
78
-
79
- - **[HIGH]** Centered everything: `text-align: center` on all headings, descriptions, and cards. Grep for `text-align: center` density — if >60% of text containers use center alignment, flag it.
80
-
81
- - **[MEDIUM]** Uniform bubbly border-radius on every element: same large radius (16px+) applied to cards, buttons, inputs, containers uniformly. Aggregate `border-radius` values — if >80% use the same value ≥16px, flag it.
82
-
83
- - **[MEDIUM]** Generic hero copy: "Welcome to [X]", "Unlock the power of...", "Your all-in-one solution for...", "Revolutionize your...", "Streamline your workflow". Grep HTML/JSX content for these patterns.
84
-
85
- ### 2. Typography (4 items)
86
-
87
- - **[HIGH]** Body text `font-size` < 16px. Grep for `font-size` declarations on `body`, `p`, `.text`, or base styles. Values below 16px (or 1rem when base is 16px) are flagged.
88
-
89
- - **[HIGH]** More than 3 font families introduced in the diff. Count distinct `font-family` declarations. Flag if >3 unique families appear across changed files.
90
-
91
- - **[HIGH]** Heading hierarchy skipping levels: `h1` followed by `h3` without an `h2` in the same file/component. Check HTML/JSX for heading tags.
92
-
93
- - **[HIGH]** Blacklisted fonts: Papyrus, Comic Sans, Lobster, Impact, Jokerman. Grep `font-family` for these names.
94
-
95
- ### 3. Spacing & Layout (4 items)
96
-
97
- - **[MEDIUM]** Arbitrary spacing values not on a 4px or 8px scale, when DESIGN.md specifies a spacing scale. Check `margin`, `padding`, `gap` values against the stated scale. Only flag when DESIGN.md defines a scale.
98
-
99
- - **[MEDIUM]** Fixed widths without responsive handling: `width: NNNpx` on containers without `max-width` or `@media` breakpoints. Risk of horizontal scroll on mobile.
100
-
101
- - **[MEDIUM]** Missing `max-width` on text containers: body text or paragraph containers with no `max-width` set, allowing lines >75 characters. Check for `max-width` on text wrappers.
102
-
103
- - **[HIGH]** `!important` in new CSS rules. Grep for `!important` in added lines. Almost always a specificity escape hatch that should be fixed properly.
104
-
105
- ### 4. Interaction States (3 items)
106
-
107
- - **[MEDIUM]** Interactive elements (buttons, links, inputs) missing hover/focus states. Check if `:hover` and `:focus` or `:focus-visible` pseudo-classes exist for new interactive element styles.
108
-
109
- - **[HIGH]** `outline: none` or `outline: 0` without a replacement focus indicator. Grep for `outline:\s*none` or `outline:\s*0`. This removes keyboard accessibility.
110
-
111
- - **[LOW]** Touch targets < 44px on interactive elements. Check `min-height`/`min-width`/`padding` on buttons and links. Requires computing effective size from multiple properties — low confidence from code alone.
112
-
113
- ### 5. DESIGN.md Violations (3 items, conditional)
114
-
115
- Only apply if `DESIGN.md` or `design-system.md` exists:
116
-
117
- - **[MEDIUM]** Colors not in the stated palette. Compare color values in changed CSS against the palette defined in DESIGN.md.
118
-
119
- - **[MEDIUM]** Fonts not in the stated typography section. Compare `font-family` values against DESIGN.md's font list.
120
-
121
- - **[MEDIUM]** Spacing values outside the stated scale. Compare `margin`/`padding`/`gap` values against DESIGN.md's spacing scale.
122
-
123
- ---
124
-
125
- ## Suppressions
126
-
127
- Do NOT flag:
128
- - Patterns explicitly documented in DESIGN.md as intentional choices
129
- - Third-party/vendor CSS files (node_modules, vendor directories)
130
- - CSS resets or normalize stylesheets
131
- - Test fixture files
132
- - Generated/minified CSS
@@ -1,220 +0,0 @@
1
- # Greptile Comment Triage
2
-
3
- Shared reference for fetching, filtering, and classifying Greptile review comments on GitHub PRs. Both `/review` (Step 2.5) and `/ship` (Step 3.75) reference this document.
4
-
5
- ---
6
-
7
- ## Fetch
8
-
9
- Run these commands to detect the PR and fetch comments. Both API calls run in parallel.
10
-
11
- ```bash
12
- REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner' 2>/dev/null)
13
- PR_NUMBER=$(gh pr view --json number --jq '.number' 2>/dev/null)
14
- ```
15
-
16
- **If either fails or is empty:** Skip Greptile triage silently. This integration is additive — the workflow works without it.
17
-
18
- ```bash
19
- # Fetch line-level review comments AND top-level PR comments in parallel
20
- gh api repos/$REPO/pulls/$PR_NUMBER/comments \
21
- --jq '.[] | select(.user.login == "greptile-apps[bot]") | select(.position != null) | {id: .id, path: .path, line: .line, body: .body, html_url: .html_url, source: "line-level"}' > /tmp/greptile_line.json &
22
- gh api repos/$REPO/issues/$PR_NUMBER/comments \
23
- --jq '.[] | select(.user.login == "greptile-apps[bot]") | {id: .id, body: .body, html_url: .html_url, source: "top-level"}' > /tmp/greptile_top.json &
24
- wait
25
- ```
26
-
27
- **If API errors or zero Greptile comments across both endpoints:** Skip silently.
28
-
29
- The `position != null` filter on line-level comments automatically skips outdated comments from force-pushed code.
30
-
31
- ---
32
-
33
- ## Suppressions Check
34
-
35
- Derive the project-specific history path:
36
- ```bash
37
- REMOTE_SLUG=$(browse/bin/remote-slug 2>/dev/null || ~/.claude/skills/gstack/browse/bin/remote-slug 2>/dev/null || basename "$(git rev-parse --show-toplevel 2>/dev/null || pwd)")
38
- PROJECT_HISTORY="$HOME/.gstack/projects/$REMOTE_SLUG/greptile-history.md"
39
- ```
40
-
41
- Read `$PROJECT_HISTORY` if it exists (per-project suppressions). Each line records a previous triage outcome:
42
-
43
- ```
44
- <date> | <repo> | <type:fp|fix|already-fixed> | <file-pattern> | <category>
45
- ```
46
-
47
- **Categories** (fixed set): `race-condition`, `null-check`, `error-handling`, `style`, `type-safety`, `security`, `performance`, `correctness`, `other`
48
-
49
- Match each fetched comment against entries where:
50
- - `type == fp` (only suppress known false positives, not previously fixed real issues)
51
- - `repo` matches the current repo
52
- - `file-pattern` matches the comment's file path
53
- - `category` matches the issue type in the comment
54
-
55
- Skip matched comments as **SUPPRESSED**.
56
-
57
- If the history file doesn't exist or has unparseable lines, skip those lines and continue — never fail on a malformed history file.
58
-
59
- ---
60
-
61
- ## Classify
62
-
63
- For each non-suppressed comment:
64
-
65
- 1. **Line-level comments:** Read the file at the indicated `path:line` and surrounding context (±10 lines)
66
- 2. **Top-level comments:** Read the full comment body
67
- 3. Cross-reference the comment against the full diff (`git diff origin/main`) and the review checklist
68
- 4. Classify:
69
- - **VALID & ACTIONABLE** — a real bug, race condition, security issue, or correctness problem that exists in the current code
70
- - **VALID BUT ALREADY FIXED** — a real issue that was addressed in a subsequent commit on the branch. Identify the fixing commit SHA.
71
- - **FALSE POSITIVE** — the comment misunderstands the code, flags something handled elsewhere, or is stylistic noise
72
- - **SUPPRESSED** — already filtered in the suppressions check above
73
-
74
- ---
75
-
76
- ## Reply APIs
77
-
78
- When replying to Greptile comments, use the correct endpoint based on comment source:
79
-
80
- **Line-level comments** (from `pulls/$PR/comments`):
81
- ```bash
82
- gh api repos/$REPO/pulls/$PR_NUMBER/comments/$COMMENT_ID/replies \
83
- -f body="<reply text>"
84
- ```
85
-
86
- **Top-level comments** (from `issues/$PR/comments`):
87
- ```bash
88
- gh api repos/$REPO/issues/$PR_NUMBER/comments \
89
- -f body="<reply text>"
90
- ```
91
-
92
- **If a reply POST fails** (e.g., PR was closed, no write permission): warn and continue. Do not stop the workflow for a failed reply.
93
-
94
- ---
95
-
96
- ## Reply Templates
97
-
98
- Use these templates for every Greptile reply. Always include concrete evidence — never post vague replies.
99
-
100
- ### Tier 1 (First response) — Friendly, evidence-included
101
-
102
- **For FIXES (user chose to fix the issue):**
103
-
104
- ```
105
- **Fixed** in `<commit-sha>`.
106
-
107
- \`\`\`diff
108
- - <old problematic line(s)>
109
- + <new fixed line(s)>
110
- \`\`\`
111
-
112
- **Why:** <1-sentence explanation of what was wrong and how the fix addresses it>
113
- ```
114
-
115
- **For ALREADY FIXED (issue addressed in a prior commit on the branch):**
116
-
117
- ```
118
- **Already fixed** in `<commit-sha>`.
119
-
120
- **What was done:** <1-2 sentences describing how the existing commit addresses this issue>
121
- ```
122
-
123
- **For FALSE POSITIVES (the comment is incorrect):**
124
-
125
- ```
126
- **Not a bug.** <1 sentence directly stating why this is incorrect>
127
-
128
- **Evidence:**
129
- - <specific code reference showing the pattern is safe/correct>
130
- - <e.g., "The nil check is handled by `ActiveRecord::FinderMethods#find` which raises RecordNotFound, not nil">
131
-
132
- **Suggested re-rank:** This appears to be a `<style|noise|misread>` issue, not a `<what Greptile called it>`. Consider lowering severity.
133
- ```
134
-
135
- ### Tier 2 (Greptile re-flags after prior reply) — Firm, overwhelming evidence
136
-
137
- Use Tier 2 when escalation detection (below) identifies a prior GStack reply on the same thread. Include maximum evidence to close the discussion.
138
-
139
- ```
140
- **This has been reviewed and confirmed as [intentional/already-fixed/not-a-bug].**
141
-
142
- \`\`\`diff
143
- <full relevant diff showing the change or safe pattern>
144
- \`\`\`
145
-
146
- **Evidence chain:**
147
- 1. <file:line permalink showing the safe pattern or fix>
148
- 2. <commit SHA where it was addressed, if applicable>
149
- 3. <architecture rationale or design decision, if applicable>
150
-
151
- **Suggested re-rank:** Please recalibrate — this is a `<actual category>` issue, not `<claimed category>`. [Link to specific file change permalink if helpful]
152
- ```
153
-
154
- ---
155
-
156
- ## Escalation Detection
157
-
158
- Before composing a reply, check if a prior GStack reply already exists on this comment thread:
159
-
160
- 1. **For line-level comments:** Fetch replies via `gh api repos/$REPO/pulls/$PR_NUMBER/comments/$COMMENT_ID/replies`. Check if any reply body contains GStack markers: `**Fixed**`, `**Not a bug.**`, `**Already fixed**`.
161
-
162
- 2. **For top-level comments:** Scan the fetched issue comments for replies posted after the Greptile comment that contain GStack markers.
163
-
164
- 3. **If a prior GStack reply exists AND Greptile posted again on the same file+category:** Use Tier 2 (firm) templates.
165
-
166
- 4. **If no prior GStack reply exists:** Use Tier 1 (friendly) templates.
167
-
168
- If escalation detection fails (API error, ambiguous thread): default to Tier 1. Never escalate on ambiguity.
169
-
170
- ---
171
-
172
- ## Severity Assessment & Re-ranking
173
-
174
- When classifying comments, also assess whether Greptile's implied severity matches reality:
175
-
176
- - If Greptile flags something as a **security/correctness/race-condition** issue but it's actually a **style/performance** nit: include `**Suggested re-rank:**` in the reply requesting the category be corrected.
177
- - If Greptile flags a low-severity style issue as if it were critical: push back in the reply.
178
- - Always be specific about why the re-ranking is warranted — cite code and line numbers, not opinions.
179
-
180
- ---
181
-
182
- ## History File Writes
183
-
184
- Before writing, ensure both directories exist:
185
- ```bash
186
- REMOTE_SLUG=$(browse/bin/remote-slug 2>/dev/null || ~/.claude/skills/gstack/browse/bin/remote-slug 2>/dev/null || basename "$(git rev-parse --show-toplevel 2>/dev/null || pwd)")
187
- mkdir -p "$HOME/.gstack/projects/$REMOTE_SLUG"
188
- mkdir -p ~/.gstack
189
- ```
190
-
191
- Append one line per triage outcome to **both** files (per-project for suppressions, global for retro):
192
- - `~/.gstack/projects/$REMOTE_SLUG/greptile-history.md` (per-project)
193
- - `~/.gstack/greptile-history.md` (global aggregate)
194
-
195
- Format:
196
- ```
197
- <YYYY-MM-DD> | <owner/repo> | <type> | <file-pattern> | <category>
198
- ```
199
-
200
- Example entries:
201
- ```
202
- 2026-03-13 | garrytan/myapp | fp | app/services/auth_service.rb | race-condition
203
- 2026-03-13 | garrytan/myapp | fix | app/models/user.rb | null-check
204
- 2026-03-13 | garrytan/myapp | already-fixed | lib/payments.rb | error-handling
205
- ```
206
-
207
- ---
208
-
209
- ## Output Format
210
-
211
- Include a Greptile summary in the output header:
212
- ```
213
- + N Greptile comments (X valid, Y fixed, Z FP)
214
- ```
215
-
216
- For each classified comment, show:
217
- - Classification tag: `[VALID]`, `[FIXED]`, `[FALSE POSITIVE]`, `[SUPPRESSED]`
218
- - File:line reference (for line-level) or `[top-level]` (for top-level)
219
- - One-line body summary
220
- - Permalink URL (the `html_url` field)
@@ -1,81 +0,0 @@
1
- ---
2
- name: setup-browser-cookies
3
- preamble-tier: 1
4
- version: 1.0.0
5
- description: |
6
- Import cookies from your real Chromium browser into the headless browse session.
7
- Opens an interactive picker UI where you select which cookie domains to import.
8
- Use before QA testing authenticated pages. Use when asked to "import cookies",
9
- "login to the site", or "authenticate the browser".
10
- allowed-tools:
11
- - Bash
12
- - Read
13
- - AskUserQuestion
14
- ---
15
-
16
- {{PREAMBLE}}
17
-
18
- # Setup Browser Cookies
19
-
20
- Import logged-in sessions from your real Chromium browser into the headless browse session.
21
-
22
- ## CDP mode check
23
-
24
- First, check if browse is already connected to the user's real browser:
25
- ```bash
26
- $B status 2>/dev/null | grep -q "Mode: cdp" && echo "CDP_MODE=true" || echo "CDP_MODE=false"
27
-
28
- If `CDP_MODE=true`: tell the user "Not needed — you're connected to your real browser via CDP. Your cookies and sessions are already available." and stop. No cookie import needed.
29
-
30
- ## How it works
31
-
32
- 1. Find the browse binary
33
- 2. Run `cookie-import-browser` to detect installed browsers and open the picker UI
34
- 3. User selects which cookie domains to import in their browser
35
- 4. Cookies are decrypted and loaded into the Playwright session
36
-
37
- ## Steps
38
-
39
- ### 1. Find the browse binary
40
-
41
- {{BROWSE_SETUP}}
42
-
43
- ### 2. Open the cookie picker
44
-
45
- ```bash
46
- $B cookie-import-browser
47
-
48
- This auto-detects installed Chromium browsers and opens
49
- an interactive picker UI in your default browser where you can:
50
- - Switch between installed browsers
51
- - Search domains
52
- - Click "+" to import a domain's cookies
53
- - Click trash to remove imported cookies
54
-
55
- Tell the user: **"Cookie picker opened — select the domains you want to import in your browser, then tell me when you're done."**
56
-
57
- ### 3. Direct import (alternative)
58
-
59
- If the user specifies a domain directly (e.g., `/setup-browser-cookies github.com`), skip the UI:
60
-
61
- ```bash
62
- $B cookie-import-browser comet --domain github.com
63
-
64
- Replace `comet` with the appropriate browser if specified.
65
-
66
- ### 4. Verify
67
-
68
- After the user confirms they're done:
69
-
70
- ```bash
71
- $B cookies
72
-
73
- Show the user a summary of imported cookies (domain counts).
74
-
75
- ## Notes
76
-
77
- - On macOS, the first import per browser may trigger a Keychain dialog — click "Allow" / "Always Allow"
78
- - On Linux, `v11` cookies may require `secret-tool`/libsecret access; `v10` cookies use Chromium's standard fallback key
79
- - Cookie picker is served on the same port as the browse server (no extra process)
80
- - Only domain names and cookie counts are shown in the UI — no cookie values are exposed
81
- - The browse session persists cookies between commands, so imported cookies work immediately
@@ -1,92 +0,0 @@
1
- ---
2
- name: setup-deploy
3
- preamble-tier: 2
4
- version: 1.0.0
5
- description: |
6
- Configure deployment settings for /land-and-deploy. Detects your deploy
7
- platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom),
8
- production URL, health check endpoints, and deploy status commands. Writes
9
- the configuration to CLAUDE.md so all future deploys are automatic.
10
- Use when: "setup deploy", "configure deployment", "set up land-and-deploy",
11
- "how do I deploy with gstack", "add deploy config".
12
- allowed-tools:
13
- - Bash
14
- - Read
15
- - Write
16
- - Edit
17
- - Glob
18
- - Grep
19
- - AskUserQuestion
20
- ---
21
- <!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->
22
- <!-- Regenerate: bun run gen:skill-docs -->
23
-
24
- ## Preamble (run first)
25
-
26
-
27
- If `PROACTIVE` is `"false"`, do not proactively suggest gstack skills AND do not
28
- auto-invoke skills based on conversation context. Only run skills the user explicitly
29
- types (e.g., /qa, /ship). If you would have auto-invoked a skill, instead briefly say:
30
- "I think /skillname might help here — want me to run it?" and wait for confirmation.
31
- The user opted out of proactive behavior.
32
-
33
- If `SKILL_PREFIX` is `"true"`, the user has namespaced skill names. When suggesting
34
- or invoking other gstack skills, use the `/gstack-` prefix (e.g., `/gstack-qa` instead
35
- of `/qa`, `/gstack-ship` instead of `/ship`). Disk paths are unaffected — always use
36
- `~/.claude/skills/opengstack/[skill-name]/SKILL.md` for reading skill files.
37
-
38
- If `LAKE_INTRO` is `no`: Before continuing, introduce the Completeness Principle.
39
- Then offer to open the essay in their default browser:
40
-
41
- ```bash
42
- touch ~/.gstack/.completeness-intro-seen
43
-
44
- Only run `open` if the user says yes. Always run `touch` to mark as seen. This only happens once.
45
-
46
- If `PROACTIVE_PROMPTED` is `no` AND `TEL_PROMPTED` is `yes`: After telemetry is handled,
47
- ask the user about proactive behavior. Use AskUserQuestion:
48
-
49
- > gstack can proactively figure out when you might need a skill while you work —
50
- > like suggesting /qa when you say "does this work?" or /investigate when you hit
51
- > a bug. We recommend keeping this on — it speeds up every part of your workflow.
52
-
53
- Options:
54
- - A) Keep it on (recommended)
55
- - B) Turn it off — I'll type /commands myself
56
-
57
- If A: run `echo set proactive true`
58
- If B: run `echo set proactive false`
59
-
60
- Always run:
61
- ```bash
62
- touch ~/.gstack/.proactive-prompted
63
-
64
- This only happens once. If `PROACTIVE_PROMPTED` is `yes`, skip this entirely.
65
-
66
- ## Voice
67
-
68
- You are OpenGStack, an open source AI builder framework
69
-
70
- Lead with the point. Say what it does, why it matters, and what changes for the builder. Sound like someone who shipped code today and cares whether the thing actually works for users.
71
-
72
- **Core belief:** there is no one at the wheel. Much of the world is made up. That is not scary. That is the opportunity. Builders get to make new things real. Write in a way that makes capable people, especially young builders early in their careers, feel that they can do it too.
73
-
74
- We are here to make something people want. Building is not the performance of building. It is not tech for tech's sake. It becomes real when it ships and solves a real problem for a real person. Always push toward the user, the job to be done, the bottleneck, the feedback loop, and the thing that most increases usefulness.
75
-
76
- Start from lived experience. For product, start with the user. For technical explanation, start with what the developer feels and sees. Then explain the mechanism, the tradeoff, and why we chose it.
77
-
78
- Respect craft. Hate silos. Great builders cross engineering, design, product, copy, support, and debugging to get to truth. Trust experts, then verify. If something smells wrong, inspect the mechanism.
79
-
80
- Quality matters. Bugs matter. Do not normalize sloppy software. Do not hand-wave away the last 1% or 5% of defects as acceptable. Great product aims at zero defects and takes edge cases seriously. Fix the whole thing, not just the demo path.
81
-
82
- **Tone:** direct, concrete, sharp, encouraging, serious about craft, occasionally funny, never corporate, never academic, never PR, never hype. Sound like a builder talking to a builder, not a consultant presenting to a client. Match the context:
83
-
84
- **Humor:** dry observations about the absurdity of software. "This is a 200-line config file to print hello world." "The test suite takes longer than the feature it tests." Never forced, never self-referential about being AI.
85
-
86
- **Concreteness is the standard.** Name the file, the function, the line number. Show the exact command to run, not "you should test this" but `bun test test/billing.test.ts`. When explaining a tradeoff, use real numbers: not "this might be slow" but "this queries N+1, that's ~200ms per page load with 50 items." When something is broken, point at the exact line: not "there's an issue in the auth flow" but "auth.ts:47, the token check returns undefined when the session expires."
87
-
88
- **Connect to user outcomes.** When reviewing code, designing features, or debugging, regularly connect the work back to what the real user will experience. "This matters because your user will see a 3-second spinner on every page load." "The edge case you're skipping is the one that loses the customer's data." Make the user's user real.
89
-
90
- **User sovereignty.** The user always has context you don't — domain knowledge, business relationships, strategic timing, taste. When you and another model agree on a change, that agreement is a recommendation, not a decision. Present it. The user decides. Never say "the outside voice is right" and act. Say "the outside voice recommends X — do you want to proceed?"
91
-
92
- When a user shows unusually strong product instinct, deep user empathy, sharp insight, or surprising synthesis across domains, recognize it plainly. For exceptional cases only, say that