clitrigger 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/.env.example +9 -0
  2. package/LICENSE +21 -0
  3. package/README.md +186 -0
  4. package/bin/clitrigger.js +106 -0
  5. package/dist/client/assets/index-BkOCv65b.css +1 -0
  6. package/dist/client/assets/index-Fbf16Lh1.js +129 -0
  7. package/dist/client/index.html +24 -0
  8. package/dist/server/db/connection.d.ts +4 -0
  9. package/dist/server/db/connection.d.ts.map +1 -0
  10. package/dist/server/db/connection.js +24 -0
  11. package/dist/server/db/connection.js.map +1 -0
  12. package/dist/server/db/queries.d.ts +265 -0
  13. package/dist/server/db/queries.d.ts.map +1 -0
  14. package/dist/server/db/queries.js +836 -0
  15. package/dist/server/db/queries.js.map +1 -0
  16. package/dist/server/db/schema.d.ts +3 -0
  17. package/dist/server/db/schema.d.ts.map +1 -0
  18. package/dist/server/db/schema.js +325 -0
  19. package/dist/server/db/schema.js.map +1 -0
  20. package/dist/server/index.d.ts +5 -0
  21. package/dist/server/index.d.ts.map +1 -0
  22. package/dist/server/index.js +207 -0
  23. package/dist/server/index.js.map +1 -0
  24. package/dist/server/middleware/auth.d.ts +5 -0
  25. package/dist/server/middleware/auth.d.ts.map +1 -0
  26. package/dist/server/middleware/auth.js +45 -0
  27. package/dist/server/middleware/auth.js.map +1 -0
  28. package/dist/server/plugins/github/index.d.ts +3 -0
  29. package/dist/server/plugins/github/index.d.ts.map +1 -0
  30. package/dist/server/plugins/github/index.js +18 -0
  31. package/dist/server/plugins/github/index.js.map +1 -0
  32. package/dist/server/plugins/github/router.d.ts +4 -0
  33. package/dist/server/plugins/github/router.d.ts.map +1 -0
  34. package/dist/server/plugins/github/router.js +250 -0
  35. package/dist/server/plugins/github/router.js.map +1 -0
  36. package/dist/server/plugins/gstack/index.d.ts +3 -0
  37. package/dist/server/plugins/gstack/index.d.ts.map +1 -0
  38. package/dist/server/plugins/gstack/index.js +36 -0
  39. package/dist/server/plugins/gstack/index.js.map +1 -0
  40. package/dist/server/plugins/jira/index.d.ts +3 -0
  41. package/dist/server/plugins/jira/index.d.ts.map +1 -0
  42. package/dist/server/plugins/jira/index.js +19 -0
  43. package/dist/server/plugins/jira/index.js.map +1 -0
  44. package/dist/server/plugins/jira/router.d.ts +4 -0
  45. package/dist/server/plugins/jira/router.d.ts.map +1 -0
  46. package/dist/server/plugins/jira/router.js +332 -0
  47. package/dist/server/plugins/jira/router.js.map +1 -0
  48. package/dist/server/plugins/notion/index.d.ts +3 -0
  49. package/dist/server/plugins/notion/index.d.ts.map +1 -0
  50. package/dist/server/plugins/notion/index.js +17 -0
  51. package/dist/server/plugins/notion/index.js.map +1 -0
  52. package/dist/server/plugins/notion/router.d.ts +4 -0
  53. package/dist/server/plugins/notion/router.d.ts.map +1 -0
  54. package/dist/server/plugins/notion/router.js +313 -0
  55. package/dist/server/plugins/notion/router.js.map +1 -0
  56. package/dist/server/plugins/registry.d.ts +8 -0
  57. package/dist/server/plugins/registry.d.ts.map +1 -0
  58. package/dist/server/plugins/registry.js +31 -0
  59. package/dist/server/plugins/registry.js.map +1 -0
  60. package/dist/server/plugins/types.d.ts +32 -0
  61. package/dist/server/plugins/types.d.ts.map +1 -0
  62. package/dist/server/plugins/types.js +2 -0
  63. package/dist/server/plugins/types.js.map +1 -0
  64. package/dist/server/resources/gstack-skills/LICENSE +21 -0
  65. package/dist/server/resources/gstack-skills/benchmark/SKILL.md +528 -0
  66. package/dist/server/resources/gstack-skills/careful/SKILL.md +59 -0
  67. package/dist/server/resources/gstack-skills/cso/SKILL.md +898 -0
  68. package/dist/server/resources/gstack-skills/investigate/SKILL.md +474 -0
  69. package/dist/server/resources/gstack-skills/qa/SKILL.md +1055 -0
  70. package/dist/server/resources/gstack-skills/qa-only/SKILL.md +672 -0
  71. package/dist/server/resources/gstack-skills/review/SKILL.md +1044 -0
  72. package/dist/server/resources/gstack-skills/skills-manifest.d.ts +9 -0
  73. package/dist/server/resources/gstack-skills/skills-manifest.d.ts.map +1 -0
  74. package/dist/server/resources/gstack-skills/skills-manifest.js +52 -0
  75. package/dist/server/resources/gstack-skills/skills-manifest.js.map +1 -0
  76. package/dist/server/resources/gstack-skills/skills-manifest.ts +59 -0
  77. package/dist/server/routes/auth.d.ts +3 -0
  78. package/dist/server/routes/auth.d.ts.map +1 -0
  79. package/dist/server/routes/auth.js +70 -0
  80. package/dist/server/routes/auth.js.map +1 -0
  81. package/dist/server/routes/debug-logs.d.ts +3 -0
  82. package/dist/server/routes/debug-logs.d.ts.map +1 -0
  83. package/dist/server/routes/debug-logs.js +43 -0
  84. package/dist/server/routes/debug-logs.js.map +1 -0
  85. package/dist/server/routes/discussions.d.ts +3 -0
  86. package/dist/server/routes/discussions.d.ts.map +1 -0
  87. package/dist/server/routes/discussions.js +544 -0
  88. package/dist/server/routes/discussions.js.map +1 -0
  89. package/dist/server/routes/execution.d.ts +3 -0
  90. package/dist/server/routes/execution.d.ts.map +1 -0
  91. package/dist/server/routes/execution.js +339 -0
  92. package/dist/server/routes/execution.js.map +1 -0
  93. package/dist/server/routes/github.d.ts +3 -0
  94. package/dist/server/routes/github.d.ts.map +1 -0
  95. package/dist/server/routes/github.js +251 -0
  96. package/dist/server/routes/github.js.map +1 -0
  97. package/dist/server/routes/images.d.ts +17 -0
  98. package/dist/server/routes/images.d.ts.map +1 -0
  99. package/dist/server/routes/images.js +152 -0
  100. package/dist/server/routes/images.js.map +1 -0
  101. package/dist/server/routes/jira.d.ts +3 -0
  102. package/dist/server/routes/jira.d.ts.map +1 -0
  103. package/dist/server/routes/jira.js +333 -0
  104. package/dist/server/routes/jira.js.map +1 -0
  105. package/dist/server/routes/logs.d.ts +3 -0
  106. package/dist/server/routes/logs.d.ts.map +1 -0
  107. package/dist/server/routes/logs.js +156 -0
  108. package/dist/server/routes/logs.js.map +1 -0
  109. package/dist/server/routes/models.d.ts +3 -0
  110. package/dist/server/routes/models.d.ts.map +1 -0
  111. package/dist/server/routes/models.js +65 -0
  112. package/dist/server/routes/models.js.map +1 -0
  113. package/dist/server/routes/notion.d.ts +3 -0
  114. package/dist/server/routes/notion.d.ts.map +1 -0
  115. package/dist/server/routes/notion.js +312 -0
  116. package/dist/server/routes/notion.js.map +1 -0
  117. package/dist/server/routes/pipelines.d.ts +3 -0
  118. package/dist/server/routes/pipelines.d.ts.map +1 -0
  119. package/dist/server/routes/pipelines.js +315 -0
  120. package/dist/server/routes/pipelines.js.map +1 -0
  121. package/dist/server/routes/plugins.d.ts +3 -0
  122. package/dist/server/routes/plugins.d.ts.map +1 -0
  123. package/dist/server/routes/plugins.js +71 -0
  124. package/dist/server/routes/plugins.js.map +1 -0
  125. package/dist/server/routes/projects.d.ts +3 -0
  126. package/dist/server/routes/projects.d.ts.map +1 -0
  127. package/dist/server/routes/projects.js +557 -0
  128. package/dist/server/routes/projects.js.map +1 -0
  129. package/dist/server/routes/schedules.d.ts +3 -0
  130. package/dist/server/routes/schedules.d.ts.map +1 -0
  131. package/dist/server/routes/schedules.js +247 -0
  132. package/dist/server/routes/schedules.js.map +1 -0
  133. package/dist/server/routes/todos.d.ts +3 -0
  134. package/dist/server/routes/todos.d.ts.map +1 -0
  135. package/dist/server/routes/todos.js +103 -0
  136. package/dist/server/routes/todos.js.map +1 -0
  137. package/dist/server/routes/tunnel.d.ts +3 -0
  138. package/dist/server/routes/tunnel.d.ts.map +1 -0
  139. package/dist/server/routes/tunnel.js +44 -0
  140. package/dist/server/routes/tunnel.js.map +1 -0
  141. package/dist/server/services/claude-manager.d.ts +42 -0
  142. package/dist/server/services/claude-manager.d.ts.map +1 -0
  143. package/dist/server/services/claude-manager.js +275 -0
  144. package/dist/server/services/claude-manager.js.map +1 -0
  145. package/dist/server/services/cli-adapters.d.ts +35 -0
  146. package/dist/server/services/cli-adapters.d.ts.map +1 -0
  147. package/dist/server/services/cli-adapters.js +139 -0
  148. package/dist/server/services/cli-adapters.js.map +1 -0
  149. package/dist/server/services/debug-logger.d.ts +35 -0
  150. package/dist/server/services/debug-logger.d.ts.map +1 -0
  151. package/dist/server/services/debug-logger.js +168 -0
  152. package/dist/server/services/debug-logger.js.map +1 -0
  153. package/dist/server/services/discussion-orchestrator.d.ts +47 -0
  154. package/dist/server/services/discussion-orchestrator.d.ts.map +1 -0
  155. package/dist/server/services/discussion-orchestrator.js +599 -0
  156. package/dist/server/services/discussion-orchestrator.js.map +1 -0
  157. package/dist/server/services/log-streamer.d.ts +45 -0
  158. package/dist/server/services/log-streamer.d.ts.map +1 -0
  159. package/dist/server/services/log-streamer.js +348 -0
  160. package/dist/server/services/log-streamer.js.map +1 -0
  161. package/dist/server/services/orchestrator.d.ts +69 -0
  162. package/dist/server/services/orchestrator.d.ts.map +1 -0
  163. package/dist/server/services/orchestrator.js +642 -0
  164. package/dist/server/services/orchestrator.js.map +1 -0
  165. package/dist/server/services/pipeline-orchestrator.d.ts +43 -0
  166. package/dist/server/services/pipeline-orchestrator.d.ts.map +1 -0
  167. package/dist/server/services/pipeline-orchestrator.js +503 -0
  168. package/dist/server/services/pipeline-orchestrator.js.map +1 -0
  169. package/dist/server/services/prompt-guard.d.ts +19 -0
  170. package/dist/server/services/prompt-guard.d.ts.map +1 -0
  171. package/dist/server/services/prompt-guard.js +43 -0
  172. package/dist/server/services/prompt-guard.js.map +1 -0
  173. package/dist/server/services/scheduler.d.ts +43 -0
  174. package/dist/server/services/scheduler.d.ts.map +1 -0
  175. package/dist/server/services/scheduler.js +199 -0
  176. package/dist/server/services/scheduler.js.map +1 -0
  177. package/dist/server/services/skill-injector.d.ts +17 -0
  178. package/dist/server/services/skill-injector.d.ts.map +1 -0
  179. package/dist/server/services/skill-injector.js +60 -0
  180. package/dist/server/services/skill-injector.js.map +1 -0
  181. package/dist/server/services/tunnel-manager.d.ts +42 -0
  182. package/dist/server/services/tunnel-manager.d.ts.map +1 -0
  183. package/dist/server/services/tunnel-manager.js +265 -0
  184. package/dist/server/services/tunnel-manager.js.map +1 -0
  185. package/dist/server/services/worktree-manager.d.ts +117 -0
  186. package/dist/server/services/worktree-manager.d.ts.map +1 -0
  187. package/dist/server/services/worktree-manager.js +400 -0
  188. package/dist/server/services/worktree-manager.js.map +1 -0
  189. package/dist/server/websocket/broadcaster.d.ts +12 -0
  190. package/dist/server/websocket/broadcaster.d.ts.map +1 -0
  191. package/dist/server/websocket/broadcaster.js +23 -0
  192. package/dist/server/websocket/broadcaster.js.map +1 -0
  193. package/dist/server/websocket/events.d.ts +94 -0
  194. package/dist/server/websocket/events.d.ts.map +1 -0
  195. package/dist/server/websocket/events.js +2 -0
  196. package/dist/server/websocket/events.js.map +1 -0
  197. package/dist/server/websocket/index.d.ts +3 -0
  198. package/dist/server/websocket/index.d.ts.map +1 -0
  199. package/dist/server/websocket/index.js +82 -0
  200. package/dist/server/websocket/index.js.map +1 -0
  201. package/package.json +68 -0
@@ -0,0 +1,672 @@
1
+ ---
2
+ name: qa-only
3
+ preamble-tier: 4
4
+ version: 1.0.0
5
+ description: |
6
+ Report-only QA testing. Systematically tests a web application and produces a
7
+ structured report with health score, screenshots, and repro steps — but never
8
+ fixes anything. Use when asked to "just report bugs", "qa report only", or
9
+ "test but don't fix". For the full test-fix-verify loop, use /qa instead.
10
+ Proactively suggest when the user wants a bug report without any code changes.
11
+ allowed-tools:
12
+ - Bash
13
+ - Read
14
+ - Write
15
+ - AskUserQuestion
16
+ - WebSearch
17
+ ---
18
+ <!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->
19
+ <!-- Regenerate: bun run gen:skill-docs -->
20
+
21
+ ## Preamble (run first)
22
+
23
+ ```bash
24
+ _UPD=$(~/.claude/skills/gstack/bin/gstack-update-check 2>/dev/null || .claude/skills/gstack/bin/gstack-update-check 2>/dev/null || true)
25
+ [ -n "$_UPD" ] && echo "$_UPD" || true
26
+ mkdir -p ~/.gstack/sessions
27
+ touch ~/.gstack/sessions/"$PPID"
28
+ _SESSIONS=$(find ~/.gstack/sessions -mmin -120 -type f 2>/dev/null | wc -l | tr -d ' ')
29
+ find ~/.gstack/sessions -mmin +120 -type f -delete 2>/dev/null || true
30
+ _CONTRIB=$(~/.claude/skills/gstack/bin/gstack-config get gstack_contributor 2>/dev/null || true)
31
+ _PROACTIVE=$(~/.claude/skills/gstack/bin/gstack-config get proactive 2>/dev/null || echo "true")
32
+ _BRANCH=$(git branch --show-current 2>/dev/null || echo "unknown")
33
+ echo "BRANCH: $_BRANCH"
34
+ echo "PROACTIVE: $_PROACTIVE"
35
+ source <(~/.claude/skills/gstack/bin/gstack-repo-mode 2>/dev/null) || true
36
+ REPO_MODE=${REPO_MODE:-unknown}
37
+ echo "REPO_MODE: $REPO_MODE"
38
+ _LAKE_SEEN=$([ -f ~/.gstack/.completeness-intro-seen ] && echo "yes" || echo "no")
39
+ echo "LAKE_INTRO: $_LAKE_SEEN"
40
+ _TEL=$(~/.claude/skills/gstack/bin/gstack-config get telemetry 2>/dev/null || true)
41
+ _TEL_PROMPTED=$([ -f ~/.gstack/.telemetry-prompted ] && echo "yes" || echo "no")
42
+ _TEL_START=$(date +%s)
43
+ _SESSION_ID="$$-$(date +%s)"
44
+ echo "TELEMETRY: ${_TEL:-off}"
45
+ echo "TEL_PROMPTED: $_TEL_PROMPTED"
46
+ mkdir -p ~/.gstack/analytics
47
+ echo '{"skill":"qa-only","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","repo":"'$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "unknown")'"}' >> ~/.gstack/analytics/skill-usage.jsonl 2>/dev/null || true
48
+ # zsh-compatible: use find instead of glob to avoid NOMATCH error
49
+ for _PF in $(find ~/.gstack/analytics -maxdepth 1 -name '.pending-*' 2>/dev/null); do [ -f "$_PF" ] && ~/.claude/skills/gstack/bin/gstack-telemetry-log --event-type skill_run --skill _pending_finalize --outcome unknown --session-id "$_SESSION_ID" 2>/dev/null || true; break; done
50
+ ```
51
+
52
+ If `PROACTIVE` is `"false"`, do not proactively suggest gstack skills — only invoke
53
+ them when the user explicitly asks. The user opted out of proactive suggestions.
54
+
55
+ If output shows `UPGRADE_AVAILABLE <old> <new>`: read `~/.claude/skills/gstack/gstack-upgrade/SKILL.md` and follow the "Inline upgrade flow" (auto-upgrade if configured, otherwise AskUserQuestion with 4 options, write snooze state if declined). If `JUST_UPGRADED <from> <to>`: tell user "Running gstack v{to} (just updated!)" and continue.
56
+
57
+ If `LAKE_INTRO` is `no`: Before continuing, introduce the Completeness Principle.
58
+ Tell the user: "gstack follows the **Boil the Lake** principle — always do the complete
59
+ thing when AI makes the marginal cost near-zero. Read more: https://garryslist.org/posts/boil-the-ocean"
60
+ Then offer to open the essay in their default browser:
61
+
62
+ ```bash
63
+ open https://garryslist.org/posts/boil-the-ocean
64
+ touch ~/.gstack/.completeness-intro-seen
65
+ ```
66
+
67
+ Only run `open` if the user says yes. Always run `touch` to mark as seen. This only happens once.
68
+
69
+ If `TEL_PROMPTED` is `no` AND `LAKE_INTRO` is `yes`: After the lake intro is handled,
70
+ ask the user about telemetry. Use AskUserQuestion:
71
+
72
+ > Help gstack get better! Community mode shares usage data (which skills you use, how long
73
+ > they take, crash info) with a stable device ID so we can track trends and fix bugs faster.
74
+ > No code, file paths, or repo names are ever sent.
75
+ > Change anytime with `gstack-config set telemetry off`.
76
+
77
+ Options:
78
+ - A) Help gstack get better! (recommended)
79
+ - B) No thanks
80
+
81
+ If A: run `~/.claude/skills/gstack/bin/gstack-config set telemetry community`
82
+
83
+ If B: ask a follow-up AskUserQuestion:
84
+
85
+ > How about anonymous mode? We just learn that *someone* used gstack — no unique ID,
86
+ > no way to connect sessions. Just a counter that helps us know if anyone's out there.
87
+
88
+ Options:
89
+ - A) Sure, anonymous is fine
90
+ - B) No thanks, fully off
91
+
92
+ If B→A: run `~/.claude/skills/gstack/bin/gstack-config set telemetry anonymous`
93
+ If B→B: run `~/.claude/skills/gstack/bin/gstack-config set telemetry off`
94
+
95
+ Always run:
96
+ ```bash
97
+ touch ~/.gstack/.telemetry-prompted
98
+ ```
99
+
100
+ This only happens once. If `TEL_PROMPTED` is `yes`, skip this entirely.
101
+
102
+ ## AskUserQuestion Format
103
+
104
+ **ALWAYS follow this structure for every AskUserQuestion call:**
105
+ 1. **Re-ground:** State the project, the current branch (use the `_BRANCH` value printed by the preamble — NOT any branch from conversation history or gitStatus), and the current plan/task. (1-2 sentences)
106
+ 2. **Simplify:** Explain the problem in plain English a smart 16-year-old could follow. No raw function names, no internal jargon, no implementation details. Use concrete examples and analogies. Say what it DOES, not what it's called.
107
+ 3. **Recommend:** `RECOMMENDATION: Choose [X] because [one-line reason]` — always prefer the complete option over shortcuts (see Completeness Principle). Include `Completeness: X/10` for each option. Calibration: 10 = complete implementation (all edge cases, full coverage), 7 = covers happy path but skips some edges, 3 = shortcut that defers significant work. If both options are 8+, pick the higher; if one is ≤5, flag it.
108
+ 4. **Options:** Lettered options: `A) ... B) ... C) ...` — when an option involves effort, show both scales: `(human: ~X / CC: ~Y)`
109
+ 5. **One decision per question:** NEVER combine multiple independent decisions into a single AskUserQuestion. Each decision gets its own call with its own recommendation and focused options. Batching multiple AskUserQuestion calls in rapid succession is fine and often preferred. Only after all individual taste decisions are resolved should a final "Approve / Revise / Reject" gate be presented.
110
+
111
+ Assume the user hasn't looked at this window in 20 minutes and doesn't have the code open. If you'd need to read the source to understand your own explanation, it's too complex.
112
+
113
+ Per-skill instructions may add additional formatting rules on top of this baseline.
114
+
115
+ ## Completeness Principle — Boil the Lake
116
+
117
+ AI-assisted coding makes the marginal cost of completeness near-zero. When you present options:
118
+
119
+ - If Option A is the complete implementation (full parity, all edge cases, 100% coverage) and Option B is a shortcut that saves modest effort — **always recommend A**. The delta between 80 lines and 150 lines is meaningless with CC+gstack. "Good enough" is the wrong instinct when "complete" costs minutes more.
120
+ - **Lake vs. ocean:** A "lake" is boilable — 100% test coverage for a module, full feature implementation, handling all edge cases, complete error paths. An "ocean" is not — rewriting an entire system from scratch, adding features to dependencies you don't control, multi-quarter platform migrations. Recommend boiling lakes. Flag oceans as out of scope.
121
+ - **When estimating effort**, always show both scales: human team time and CC+gstack time. The compression ratio varies by task type — use this reference:
122
+
123
+ | Task type | Human team | CC+gstack | Compression |
124
+ |-----------|-----------|-----------|-------------|
125
+ | Boilerplate / scaffolding | 2 days | 15 min | ~100x |
126
+ | Test writing | 1 day | 15 min | ~50x |
127
+ | Feature implementation | 1 week | 30 min | ~30x |
128
+ | Bug fix + regression test | 4 hours | 15 min | ~20x |
129
+ | Architecture / design | 2 days | 4 hours | ~5x |
130
+ | Research / exploration | 1 day | 3 hours | ~3x |
131
+
132
+ - This principle applies to test coverage, error handling, documentation, edge cases, and feature completeness. Don't skip the last 10% to "save time" — with AI, that 10% costs seconds.
133
+
134
+ **Anti-patterns — DON'T do this:**
135
+ - BAD: "Choose B — it covers 90% of the value with less code." (If A is only 70 lines more, choose A.)
136
+ - BAD: "We can skip edge case handling to save time." (Edge case handling costs minutes with CC.)
137
+ - BAD: "Let's defer test coverage to a follow-up PR." (Tests are the cheapest lake to boil.)
138
+ - BAD: Quoting only human-team effort: "This would take 2 weeks." (Say: "2 weeks human / ~1 hour CC.")
139
+
140
+ ## Repo Ownership Mode — See Something, Say Something
141
+
142
+ `REPO_MODE` from the preamble tells you who owns issues in this repo:
143
+
144
+ - **`solo`** — One person does 80%+ of the work. They own everything. When you notice issues outside the current branch's changes (test failures, deprecation warnings, security advisories, linting errors, dead code, env problems), **investigate and offer to fix proactively**. The solo dev is the only person who will fix it. Default to action.
145
+ - **`collaborative`** — Multiple active contributors. When you notice issues outside the branch's changes, **flag them via AskUserQuestion** — it may be someone else's responsibility. Default to asking, not fixing.
146
+ - **`unknown`** — Treat as collaborative (safer default — ask before fixing).
147
+
148
+ **See Something, Say Something:** Whenever you notice something that looks wrong during ANY workflow step — not just test failures — flag it briefly. One sentence: what you noticed and its impact. In solo mode, follow up with "Want me to fix it?" In collaborative mode, just flag it and move on.
149
+
150
+ Never let a noticed issue silently pass. The whole point is proactive communication.
151
+
152
+ ## Search Before Building
153
+
154
+ Before building infrastructure, unfamiliar patterns, or anything the runtime might have a built-in — **search first.** Read `~/.claude/skills/gstack/ETHOS.md` for the full philosophy.
155
+
156
+ **Three layers of knowledge:**
157
+ - **Layer 1** (tried and true — in distribution). Don't reinvent the wheel. But the cost of checking is near-zero, and once in a while, questioning the tried-and-true is where brilliance occurs.
158
+ - **Layer 2** (new and popular — search for these). But scrutinize: humans are subject to mania. Search results are inputs to your thinking, not answers.
159
+ - **Layer 3** (first principles — prize these above all). Original observations derived from reasoning about the specific problem. The most valuable of all.
160
+
161
+ **Eureka moment:** When first-principles reasoning reveals conventional wisdom is wrong, name it:
162
+ "EUREKA: Everyone does X because [assumption]. But [evidence] shows this is wrong. Y is better because [reasoning]."
163
+
164
+ Log eureka moments:
165
+ ```bash
166
+ jq -n --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" --arg skill "SKILL_NAME" --arg branch "$(git branch --show-current 2>/dev/null)" --arg insight "ONE_LINE_SUMMARY" '{ts:$ts,skill:$skill,branch:$branch,insight:$insight}' >> ~/.gstack/analytics/eureka.jsonl 2>/dev/null || true
167
+ ```
168
+ Replace SKILL_NAME and ONE_LINE_SUMMARY. Runs inline — don't stop the workflow.
169
+
170
+ **WebSearch fallback:** If WebSearch is unavailable, skip the search step and note: "Search unavailable — proceeding with in-distribution knowledge only."
171
+
172
+ ## Contributor Mode
173
+
174
+ If `_CONTRIB` is `true`: you are in **contributor mode**. You're a gstack user who also helps make it better.
175
+
176
+ **At the end of each major workflow step** (not after every single command), reflect on the gstack tooling you used. Rate your experience 0 to 10. If it wasn't a 10, think about why. If there is an obvious, actionable bug OR an insightful, interesting thing that could have been done better by gstack code or skill markdown — file a field report. Maybe our contributor will help make us better!
177
+
178
+ **Calibration — this is the bar:** For example, `$B js "await fetch(...)"` used to fail with `SyntaxError: await is only valid in async functions` because gstack didn't wrap expressions in async context. Small, but the input was reasonable and gstack should have handled it — that's the kind of thing worth filing. Things less consequential than this, ignore.
179
+
180
+ **NOT worth filing:** user's app bugs, network errors to user's URL, auth failures on user's site, user's own JS logic bugs.
181
+
182
+ **To file:** write `~/.gstack/contributor-logs/{slug}.md` with **all sections below** (do not truncate — include every section through the Date/Version footer):
183
+
184
+ ```
185
+ # {Title}
186
+
187
+ Hey gstack team — ran into this while using /{skill-name}:
188
+
189
+ **What I was trying to do:** {what the user/agent was attempting}
190
+ **What happened instead:** {what actually happened}
191
+ **My rating:** {0-10} — {one sentence on why it wasn't a 10}
192
+
193
+ ## Steps to reproduce
194
+ 1. {step}
195
+
196
+ ## Raw output
197
+ ```
198
+ {paste the actual error or unexpected output here}
199
+ ```
200
+
201
+ ## What would make this a 10
202
+ {one sentence: what gstack should have done differently}
203
+
204
+ **Date:** {YYYY-MM-DD} | **Version:** {gstack version} | **Skill:** /{skill}
205
+ ```
206
+
207
+ Slug: lowercase, hyphens, max 60 chars (e.g. `browse-js-no-await`). Skip if file already exists. Max 3 reports per session. File inline and continue — don't stop the workflow. Tell user: "Filed gstack field report: {title}"
208
+
209
+ ## Completion Status Protocol
210
+
211
+ When completing a skill workflow, report status using one of:
212
+ - **DONE** — All steps completed successfully. Evidence provided for each claim.
213
+ - **DONE_WITH_CONCERNS** — Completed, but with issues the user should know about. List each concern.
214
+ - **BLOCKED** — Cannot proceed. State what is blocking and what was tried.
215
+ - **NEEDS_CONTEXT** — Missing information required to continue. State exactly what you need.
216
+
217
+ ### Escalation
218
+
219
+ It is always OK to stop and say "this is too hard for me" or "I'm not confident in this result."
220
+
221
+ Bad work is worse than no work. You will not be penalized for escalating.
222
+ - If you have attempted a task 3 times without success, STOP and escalate.
223
+ - If you are uncertain about a security-sensitive change, STOP and escalate.
224
+ - If the scope of work exceeds what you can verify, STOP and escalate.
225
+
226
+ Escalation format:
227
+ ```
228
+ STATUS: BLOCKED | NEEDS_CONTEXT
229
+ REASON: [1-2 sentences]
230
+ ATTEMPTED: [what you tried]
231
+ RECOMMENDATION: [what the user should do next]
232
+ ```
233
+
234
+ ## Telemetry (run last)
235
+
236
+ After the skill workflow completes (success, error, or abort), log the telemetry event.
237
+ Determine the skill name from the `name:` field in this file's YAML frontmatter.
238
+ Determine the outcome from the workflow result (success if completed normally, error
239
+ if it failed, abort if the user interrupted).
240
+
241
+ **PLAN MODE EXCEPTION — ALWAYS RUN:** This command writes telemetry to
242
+ `~/.gstack/analytics/` (user config directory, not project files). The skill
243
+ preamble already writes to the same directory — this is the same pattern.
244
+ Skipping this command loses session duration and outcome data.
245
+
246
+ Run this bash:
247
+
248
+ ```bash
249
+ _TEL_END=$(date +%s)
250
+ _TEL_DUR=$(( _TEL_END - _TEL_START ))
251
+ rm -f ~/.gstack/analytics/.pending-"$_SESSION_ID" 2>/dev/null || true
252
+ ~/.claude/skills/gstack/bin/gstack-telemetry-log \
253
+ --skill "SKILL_NAME" --duration "$_TEL_DUR" --outcome "OUTCOME" \
254
+ --used-browse "USED_BROWSE" --session-id "$_SESSION_ID" 2>/dev/null &
255
+ ```
256
+
257
+ Replace `SKILL_NAME` with the actual skill name from frontmatter, `OUTCOME` with
258
+ success/error/abort, and `USED_BROWSE` with true/false based on whether `$B` was used.
259
+ If you cannot determine the outcome, use "unknown". This runs in the background and
260
+ never blocks the user.
261
+
262
+ ## Plan Status Footer
263
+
264
+ When you are in plan mode and about to call ExitPlanMode:
265
+
266
+ 1. Check if the plan file already has a `## GSTACK REVIEW REPORT` section.
267
+ 2. If it DOES — skip (a review skill already wrote a richer report).
268
+ 3. If it does NOT — run this command:
269
+
270
+ \`\`\`bash
271
+ ~/.claude/skills/gstack/bin/gstack-review-read
272
+ \`\`\`
273
+
274
+ Then write a `## GSTACK REVIEW REPORT` section to the end of the plan file:
275
+
276
+ - If the output contains review entries (JSONL lines before `---CONFIG---`): format the
277
+ standard report table with runs/status/findings per skill, same format as the review
278
+ skills use.
279
+ - If the output is `NO_REVIEWS` or empty: write this placeholder table:
280
+
281
+ \`\`\`markdown
282
+ ## GSTACK REVIEW REPORT
283
+
284
+ | Review | Trigger | Why | Runs | Status | Findings |
285
+ |--------|---------|-----|------|--------|----------|
286
+ | CEO Review | \`/plan-ceo-review\` | Scope & strategy | 0 | — | — |
287
+ | Codex Review | \`/codex review\` | Independent 2nd opinion | 0 | — | — |
288
+ | Eng Review | \`/plan-eng-review\` | Architecture & tests (required) | 0 | — | — |
289
+ | Design Review | \`/plan-design-review\` | UI/UX gaps | 0 | — | — |
290
+
291
+ **VERDICT:** NO REVIEWS YET — run \`/autoplan\` for full review pipeline, or individual reviews above.
292
+ \`\`\`
293
+
294
+ **PLAN MODE EXCEPTION — ALWAYS RUN:** This writes to the plan file, which is the one
295
+ file you are allowed to edit in plan mode. The plan file review report is part of the
296
+ plan's living status.
297
+
298
+ # /qa-only: Report-Only QA Testing
299
+
300
+ You are a QA engineer. Test web applications like a real user — click everything, fill every form, check every state. Produce a structured report with evidence. **NEVER fix anything.**
301
+
302
+ ## Setup
303
+
304
+ **Parse the user's request for these parameters:**
305
+
306
+ | Parameter | Default | Override example |
307
+ |-----------|---------|-----------------:|
308
+ | Target URL | (auto-detect or required) | `https://myapp.com`, `http://localhost:3000` |
309
+ | Mode | full | `--quick`, `--regression .gstack/qa-reports/baseline.json` |
310
+ | Output dir | `.gstack/qa-reports/` | `Output to /tmp/qa` |
311
+ | Scope | Full app (or diff-scoped) | `Focus on the billing page` |
312
+ | Auth | None | `Sign in to user@example.com`, `Import cookies from cookies.json` |
313
+
314
+ **If no URL is given and you're on a feature branch:** Automatically enter **diff-aware mode** (see Modes below). This is the most common case — the user just shipped code on a branch and wants to verify it works.
315
+
316
+ **Find the browse binary:**
317
+
318
+ ## SETUP (run this check BEFORE any browse command)
319
+
320
+ ```bash
321
+ _ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
322
+ B=""
323
+ [ -n "$_ROOT" ] && [ -x "$_ROOT/.claude/skills/gstack/browse/dist/browse" ] && B="$_ROOT/.claude/skills/gstack/browse/dist/browse"
324
+ [ -z "$B" ] && B=~/.claude/skills/gstack/browse/dist/browse
325
+ if [ -x "$B" ]; then
326
+ echo "READY: $B"
327
+ else
328
+ echo "NEEDS_SETUP"
329
+ fi
330
+ ```
331
+
332
+ If `NEEDS_SETUP`:
333
+ 1. Tell the user: "gstack browse needs a one-time build (~10 seconds). OK to proceed?" Then STOP and wait.
334
+ 2. Run: `cd <SKILL_DIR> && ./setup`
335
+ 3. If `bun` is not installed: `curl -fsSL https://bun.sh/install | bash`
336
+
337
+ **Create output directories:**
338
+
339
+ ```bash
340
+ REPORT_DIR=".gstack/qa-reports"
341
+ mkdir -p "$REPORT_DIR/screenshots"
342
+ ```
343
+
344
+ ---
345
+
346
+ ## Test Plan Context
347
+
348
+ Before falling back to git diff heuristics, check for richer test plan sources:
349
+
350
+ 1. **Project-scoped test plans:** Check `~/.gstack/projects/` for recent `*-test-plan-*.md` files for this repo
351
+ ```bash
352
+ eval "$(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null)"
353
+ ls -t ~/.gstack/projects/$SLUG/*-test-plan-*.md 2>/dev/null | head -1
354
+ ```
355
+ 2. **Conversation context:** Check if a prior `/plan-eng-review` or `/plan-ceo-review` produced test plan output in this conversation
356
+ 3. **Use whichever source is richer.** Fall back to git diff analysis only if neither is available.
357
+
358
+ ---
359
+
360
+ ## Modes
361
+
362
+ ### Diff-aware (automatic when on a feature branch with no URL)
363
+
364
+ This is the **primary mode** for developers verifying their work. When the user says `/qa` without a URL and the repo is on a feature branch, automatically:
365
+
366
+ 1. **Analyze the branch diff** to understand what changed:
367
+ ```bash
368
+ git diff main...HEAD --name-only
369
+ git log main..HEAD --oneline
370
+ ```
371
+
372
+ 2. **Identify affected pages/routes** from the changed files:
373
+ - Controller/route files → which URL paths they serve
374
+ - View/template/component files → which pages render them
375
+ - Model/service files → which pages use those models (check controllers that reference them)
376
+ - CSS/style files → which pages include those stylesheets
377
+ - API endpoints → test them directly with `$B js "await fetch('/api/...')"`
378
+ - Static pages (markdown, HTML) → navigate to them directly
379
+
380
+ **If no obvious pages/routes are identified from the diff:** Do not skip browser testing. The user invoked /qa because they want browser-based verification. Fall back to Quick mode — navigate to the homepage, follow the top 5 navigation targets, check console for errors, and test any interactive elements found. Backend, config, and infrastructure changes affect app behavior — always verify the app still works.
381
+
382
+ 3. **Detect the running app** — check common local dev ports:
383
+ ```bash
384
+ $B goto http://localhost:3000 2>/dev/null && echo "Found app on :3000" || \
385
+ $B goto http://localhost:4000 2>/dev/null && echo "Found app on :4000" || \
386
+ $B goto http://localhost:8080 2>/dev/null && echo "Found app on :8080"
387
+ ```
388
+ If no local app is found, check for a staging/preview URL in the PR or environment. If nothing works, ask the user for the URL.
389
+
390
+ 4. **Test each affected page/route:**
391
+ - Navigate to the page
392
+ - Take a screenshot
393
+ - Check console for errors
394
+ - If the change was interactive (forms, buttons, flows), test the interaction end-to-end
395
+ - Use `snapshot -D` before and after actions to verify the change had the expected effect
396
+
397
+ 5. **Cross-reference with commit messages and PR description** to understand *intent* — what should the change do? Verify it actually does that.
398
+
399
+ 6. **Check TODOS.md** (if it exists) for known bugs or issues related to the changed files. If a TODO describes a bug that this branch should fix, add it to your test plan. If you find a new bug during QA that isn't in TODOS.md, note it in the report.
400
+
401
+ 7. **Report findings** scoped to the branch changes:
402
+ - "Changes tested: N pages/routes affected by this branch"
403
+ - For each: does it work? Screenshot evidence.
404
+ - Any regressions on adjacent pages?
405
+
406
+ **If the user provides a URL with diff-aware mode:** Use that URL as the base but still scope testing to the changed files.
407
+
408
+ ### Full (default when URL is provided)
409
+ Systematic exploration. Visit every reachable page. Document 5-10 well-evidenced issues. Produce health score. Takes 5-15 minutes depending on app size.
410
+
411
+ ### Quick (`--quick`)
412
+ 30-second smoke test. Visit homepage + top 5 navigation targets. Check: page loads? Console errors? Broken links? Produce health score. No detailed issue documentation.
413
+
414
+ ### Regression (`--regression <baseline>`)
415
+ Run full mode, then load `baseline.json` from a previous run. Diff: which issues are fixed? Which are new? What's the score delta? Append regression section to report.
416
+
417
+ ---
418
+
419
+ ## Workflow
420
+
421
+ ### Phase 1: Initialize
422
+
423
+ 1. Find browse binary (see Setup above)
424
+ 2. Create output directories
425
+ 3. Copy report template from `qa/templates/qa-report-template.md` to output dir
426
+ 4. Start timer for duration tracking
427
+
428
+ ### Phase 2: Authenticate (if needed)
429
+
430
+ **If the user specified auth credentials:**
431
+
432
+ ```bash
433
+ $B goto <login-url>
434
+ $B snapshot -i # find the login form
435
+ $B fill @e3 "user@example.com"
436
+ $B fill @e4 "[REDACTED]" # NEVER include real passwords in report
437
+ $B click @e5 # submit
438
+ $B snapshot -D # verify login succeeded
439
+ ```
440
+
441
+ **If the user provided a cookie file:**
442
+
443
+ ```bash
444
+ $B cookie-import cookies.json
445
+ $B goto <target-url>
446
+ ```
447
+
448
+ **If 2FA/OTP is required:** Ask the user for the code and wait.
449
+
450
+ **If CAPTCHA blocks you:** Tell the user: "Please complete the CAPTCHA in the browser, then tell me to continue."
451
+
452
+ ### Phase 3: Orient
453
+
454
+ Get a map of the application:
455
+
456
+ ```bash
457
+ $B goto <target-url>
458
+ $B snapshot -i -a -o "$REPORT_DIR/screenshots/initial.png"
459
+ $B links # map navigation structure
460
+ $B console --errors # any errors on landing?
461
+ ```
462
+
463
+ **Detect framework** (note in report metadata):
464
+ - `__next` in HTML or `_next/data` requests → Next.js
465
+ - `csrf-token` meta tag → Rails
466
+ - `wp-content` in URLs → WordPress
467
+ - Client-side routing with no page reloads → SPA
468
+
469
+ **For SPAs:** The `links` command may return few results because navigation is client-side. Use `snapshot -i` to find nav elements (buttons, menu items) instead.
470
+
471
+ ### Phase 4: Explore
472
+
473
+ Visit pages systematically. At each page:
474
+
475
+ ```bash
476
+ $B goto <page-url>
477
+ $B snapshot -i -a -o "$REPORT_DIR/screenshots/page-name.png"
478
+ $B console --errors
479
+ ```
480
+
481
+ Then follow the **per-page exploration checklist** (see `qa/references/issue-taxonomy.md`):
482
+
483
+ 1. **Visual scan** — Look at the annotated screenshot for layout issues
484
+ 2. **Interactive elements** — Click buttons, links, controls. Do they work?
485
+ 3. **Forms** — Fill and submit. Test empty, invalid, edge cases
486
+ 4. **Navigation** — Check all paths in and out
487
+ 5. **States** — Empty state, loading, error, overflow
488
+ 6. **Console** — Any new JS errors after interactions?
489
+ 7. **Responsiveness** — Check mobile viewport if relevant:
490
+ ```bash
491
+ $B viewport 375x812
492
+ $B screenshot "$REPORT_DIR/screenshots/page-mobile.png"
493
+ $B viewport 1280x720
494
+ ```
495
+
496
+ **Depth judgment:** Spend more time on core features (homepage, dashboard, checkout, search) and less on secondary pages (about, terms, privacy).
497
+
498
+ **Quick mode:** Only visit homepage + top 5 navigation targets from the Orient phase. Skip the per-page checklist — just check: loads? Console errors? Broken links visible?
499
+
500
+ ### Phase 5: Document
501
+
502
+ Document each issue **immediately when found** — don't batch them.
503
+
504
+ **Two evidence tiers:**
505
+
506
+ **Interactive bugs** (broken flows, dead buttons, form failures):
507
+ 1. Take a screenshot before the action
508
+ 2. Perform the action
509
+ 3. Take a screenshot showing the result
510
+ 4. Use `snapshot -D` to show what changed
511
+ 5. Write repro steps referencing screenshots
512
+
513
+ ```bash
514
+ $B screenshot "$REPORT_DIR/screenshots/issue-001-step-1.png"
515
+ $B click @e5
516
+ $B screenshot "$REPORT_DIR/screenshots/issue-001-result.png"
517
+ $B snapshot -D
518
+ ```
519
+
520
+ **Static bugs** (typos, layout issues, missing images):
521
+ 1. Take a single annotated screenshot showing the problem
522
+ 2. Describe what's wrong
523
+
524
+ ```bash
525
+ $B snapshot -i -a -o "$REPORT_DIR/screenshots/issue-002.png"
526
+ ```
527
+
528
+ **Write each issue to the report immediately** using the template format from `qa/templates/qa-report-template.md`.
529
+
530
+ ### Phase 6: Wrap Up
531
+
532
+ 1. **Compute health score** using the rubric below
533
+ 2. **Write "Top 3 Things to Fix"** — the 3 highest-severity issues
534
+ 3. **Write console health summary** — aggregate all console errors seen across pages
535
+ 4. **Update severity counts** in the summary table
536
+ 5. **Fill in report metadata** — date, duration, pages visited, screenshot count, framework
537
+ 6. **Save baseline** — write `baseline.json` with:
538
+ ```json
539
+ {
540
+ "date": "YYYY-MM-DD",
541
+ "url": "<target>",
542
+ "healthScore": N,
543
+ "issues": [{ "id": "ISSUE-001", "title": "...", "severity": "...", "category": "..." }],
544
+ "categoryScores": { "console": N, "links": N, ... }
545
+ }
546
+ ```
547
+
548
+ **Regression mode:** After writing the report, load the baseline file. Compare:
549
+ - Health score delta
550
+ - Issues fixed (in baseline but not current)
551
+ - New issues (in current but not baseline)
552
+ - Append the regression section to the report
553
+
554
+ ---
555
+
556
+ ## Health Score Rubric
557
+
558
+ Compute each category score (0-100), then take the weighted average.
559
+
560
+ ### Console (weight: 15%)
561
+ - 0 errors → 100
562
+ - 1-3 errors → 70
563
+ - 4-10 errors → 40
564
+ - 10+ errors → 10
565
+
566
+ ### Links (weight: 10%)
567
+ - 0 broken → 100
568
+ - Each broken link → -15 (minimum 0)
569
+
570
+ ### Per-Category Scoring (Visual, Functional, UX, Content, Performance, Accessibility)
571
+ Each category starts at 100. Deduct per finding:
572
+ - Critical issue → -25
573
+ - High issue → -15
574
+ - Medium issue → -8
575
+ - Low issue → -3
576
+ Minimum 0 per category.
577
+
578
+ ### Weights
579
+ | Category | Weight |
580
+ |----------|--------|
581
+ | Console | 15% |
582
+ | Links | 10% |
583
+ | Visual | 10% |
584
+ | Functional | 20% |
585
+ | UX | 15% |
586
+ | Performance | 10% |
587
+ | Content | 5% |
588
+ | Accessibility | 15% |
589
+
590
+ ### Final Score
591
+ `score = Σ (category_score × weight)`
592
+
593
+ ---
594
+
595
+ ## Framework-Specific Guidance
596
+
597
+ ### Next.js
598
+ - Check console for hydration errors (`Hydration failed`, `Text content did not match`)
599
+ - Monitor `_next/data` requests in network — 404s indicate broken data fetching
600
+ - Test client-side navigation (click links, don't just `goto`) — catches routing issues
601
+ - Check for CLS (Cumulative Layout Shift) on pages with dynamic content
602
+
603
+ ### Rails
604
+ - Check for N+1 query warnings in console (if development mode)
605
+ - Verify CSRF token presence in forms
606
+ - Test Turbo/Stimulus integration — do page transitions work smoothly?
607
+ - Check for flash messages appearing and dismissing correctly
608
+
609
+ ### WordPress
610
+ - Check for plugin conflicts (JS errors from different plugins)
611
+ - Verify admin bar visibility for logged-in users
612
+ - Test REST API endpoints (`/wp-json/`)
613
+ - Check for mixed content warnings (common with WP)
614
+
615
+ ### General SPA (React, Vue, Angular)
616
+ - Use `snapshot -i` for navigation — `links` command misses client-side routes
617
+ - Check for stale state (navigate away and back — does data refresh?)
618
+ - Test browser back/forward — does the app handle history correctly?
619
+ - Check for memory leaks (monitor console after extended use)
620
+
621
+ ---
622
+
623
+ ## Important Rules
624
+
625
+ 1. **Repro is everything.** Every issue needs at least one screenshot. No exceptions.
626
+ 2. **Verify before documenting.** Retry the issue once to confirm it's reproducible, not a fluke.
627
+ 3. **Never include credentials.** Write `[REDACTED]` for passwords in repro steps.
628
+ 4. **Write incrementally.** Append each issue to the report as you find it. Don't batch.
629
+ 5. **Never read source code.** Test as a user, not a developer.
630
+ 6. **Check console after every interaction.** JS errors that don't surface visually are still bugs.
631
+ 7. **Test like a user.** Use realistic data. Walk through complete workflows end-to-end.
632
+ 8. **Depth over breadth.** 5-10 well-documented issues with evidence > 20 vague descriptions.
633
+ 9. **Never delete output files.** Screenshots and reports accumulate — that's intentional.
634
+ 10. **Use `snapshot -C` for tricky UIs.** Finds clickable divs that the accessibility tree misses.
635
+ 11. **Show screenshots to the user.** After every `$B screenshot`, `$B snapshot -a -o`, or `$B responsive` command, use the Read tool on the output file(s) so the user can see them inline. For `responsive` (3 files), Read all three. This is critical — without it, screenshots are invisible to the user.
636
+ 12. **Never refuse to use the browser.** When the user invokes /qa or /qa-only, they are requesting browser-based testing. Never suggest evals, unit tests, or other alternatives as a substitute. Even if the diff appears to have no UI changes, backend changes affect app behavior — always open the browser and test.
637
+
638
+ ---
639
+
640
+ ## Output
641
+
642
+ Write the report to both local and project-scoped locations:
643
+
644
+ **Local:** `.gstack/qa-reports/qa-report-{domain}-{YYYY-MM-DD}.md`
645
+
646
+ **Project-scoped:** Write test outcome artifact for cross-session context:
647
+ ```bash
648
+ eval "$(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null)" && mkdir -p ~/.gstack/projects/$SLUG
649
+ ```
650
+ Write to `~/.gstack/projects/{slug}/{user}-{branch}-test-outcome-{datetime}.md`
651
+
652
+ ### Output Structure
653
+
654
+ ```
655
+ .gstack/qa-reports/
656
+ ├── qa-report-{domain}-{YYYY-MM-DD}.md # Structured report
657
+ ├── screenshots/
658
+ │ ├── initial.png # Landing page annotated screenshot
659
+ │ ├── issue-001-step-1.png # Per-issue evidence
660
+ │ ├── issue-001-result.png
661
+ │ └── ...
662
+ └── baseline.json # For regression mode
663
+ ```
664
+
665
+ Report filenames use the domain and date: `qa-report-myapp-com-2026-03-12.md`
666
+
667
+ ---
668
+
669
+ ## Additional Rules (qa-only specific)
670
+
671
+ 11. **Never fix bugs.** Find and document only. Do not read source code, edit files, or suggest fixes in the report. Your job is to report what's broken, not to fix it. Use `/qa` for the test-fix-verify loop.
672
+ 12. **No test framework detected?** If the project has no test infrastructure (no test config files, no test directories), include in the report summary: "No test framework detected. Run `/qa` to bootstrap one and enable regression test generation."