@runchr/gstack-antigravity 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.

Potentially problematic release.


This version of @runchr/gstack-antigravity might be problematic. Click here for more details.

Files changed (297) hide show
  1. package/.agents/rules/ETHOS.md +129 -0
  2. package/.agents/rules/global-gstack.md +117 -0
  3. package/.agents/rules/persona-gstack-autoplan.md +14 -0
  4. package/.agents/rules/persona-gstack-benchmark.md +14 -0
  5. package/.agents/rules/persona-gstack-browse.md +14 -0
  6. package/.agents/rules/persona-gstack-canary.md +14 -0
  7. package/.agents/rules/persona-gstack-careful.md +14 -0
  8. package/.agents/rules/persona-gstack-codex.md +14 -0
  9. package/.agents/rules/persona-gstack-cso.md +14 -0
  10. package/.agents/rules/persona-gstack-design-consultation.md +14 -0
  11. package/.agents/rules/persona-gstack-design-review.md +14 -0
  12. package/.agents/rules/persona-gstack-document-release.md +14 -0
  13. package/.agents/rules/persona-gstack-freeze.md +14 -0
  14. package/.agents/rules/persona-gstack-gstack-upgrade.md +14 -0
  15. package/.agents/rules/persona-gstack-guard.md +14 -0
  16. package/.agents/rules/persona-gstack-investigate.md +14 -0
  17. package/.agents/rules/persona-gstack-land-and-deploy.md +14 -0
  18. package/.agents/rules/persona-gstack-office-hours.md +14 -0
  19. package/.agents/rules/persona-gstack-plan-ceo-review.md +14 -0
  20. package/.agents/rules/persona-gstack-plan-design-review.md +14 -0
  21. package/.agents/rules/persona-gstack-plan-eng-review.md +14 -0
  22. package/.agents/rules/persona-gstack-qa-only.md +14 -0
  23. package/.agents/rules/persona-gstack-qa.md +14 -0
  24. package/.agents/rules/persona-gstack-retro.md +14 -0
  25. package/.agents/rules/persona-gstack-review.md +14 -0
  26. package/.agents/rules/persona-gstack-setup-browser-cookies.md +14 -0
  27. package/.agents/rules/persona-gstack-setup-deploy.md +14 -0
  28. package/.agents/rules/persona-gstack-ship.md +14 -0
  29. package/.agents/rules/persona-gstack-unfreeze.md +14 -0
  30. package/.agents/rules/persona-gstack.md +40 -0
  31. package/.agents/rules/recursive-identities.md +22 -0
  32. package/.agents/workflows/autoplan.md +30 -0
  33. package/.agents/workflows/benchmark.md +31 -0
  34. package/.agents/workflows/browse.md +26 -0
  35. package/.agents/workflows/canary.md +33 -0
  36. package/.agents/workflows/careful.md +22 -0
  37. package/.agents/workflows/codex.md +36 -0
  38. package/.agents/workflows/cso.md +29 -0
  39. package/.agents/workflows/design-consultation.md +28 -0
  40. package/.agents/workflows/design-review.md +28 -0
  41. package/.agents/workflows/document-release.md +32 -0
  42. package/.agents/workflows/freeze.md +17 -0
  43. package/.agents/workflows/gstack-upgrade.md +54 -0
  44. package/.agents/workflows/gstack.md +56 -0
  45. package/.agents/workflows/guard.md +18 -0
  46. package/.agents/workflows/investigate.md +37 -0
  47. package/.agents/workflows/land-and-deploy.md +35 -0
  48. package/.agents/workflows/office-hours.md +27 -0
  49. package/.agents/workflows/plan-ceo-review.md +34 -0
  50. package/.agents/workflows/plan-design-review.md +31 -0
  51. package/.agents/workflows/plan-eng-review.md +28 -0
  52. package/.agents/workflows/qa-only.md +28 -0
  53. package/.agents/workflows/qa.md +73 -0
  54. package/.agents/workflows/retro.md +34 -0
  55. package/.agents/workflows/review.md +30 -0
  56. package/.agents/workflows/setup-browser-cookies.md +15 -0
  57. package/.agents/workflows/setup-cookies.md +8 -0
  58. package/.agents/workflows/setup-deploy.md +21 -0
  59. package/.agents/workflows/ship.md +93 -0
  60. package/.agents/workflows/unfreeze.md +12 -0
  61. package/LICENSE +22 -0
  62. package/README.md +189 -0
  63. package/README_KO.md +191 -0
  64. package/bin/install.js +105 -0
  65. package/gstack-origin/.agents/skills/gstack/SKILL.md +651 -0
  66. package/gstack-origin/.agents/skills/gstack-autoplan/SKILL.md +678 -0
  67. package/gstack-origin/.agents/skills/gstack-benchmark/SKILL.md +482 -0
  68. package/gstack-origin/.agents/skills/gstack-browse/SKILL.md +511 -0
  69. package/gstack-origin/.agents/skills/gstack-canary/SKILL.md +486 -0
  70. package/gstack-origin/.agents/skills/gstack-careful/SKILL.md +50 -0
  71. package/gstack-origin/.agents/skills/gstack-cso/SKILL.md +607 -0
  72. package/gstack-origin/.agents/skills/gstack-design-consultation/SKILL.md +615 -0
  73. package/gstack-origin/.agents/skills/gstack-design-review/SKILL.md +988 -0
  74. package/gstack-origin/.agents/skills/gstack-document-release/SKILL.md +604 -0
  75. package/gstack-origin/.agents/skills/gstack-freeze/SKILL.md +67 -0
  76. package/gstack-origin/.agents/skills/gstack-guard/SKILL.md +62 -0
  77. package/gstack-origin/.agents/skills/gstack-investigate/SKILL.md +415 -0
  78. package/gstack-origin/.agents/skills/gstack-land-and-deploy/SKILL.md +873 -0
  79. package/gstack-origin/.agents/skills/gstack-office-hours/SKILL.md +986 -0
  80. package/gstack-origin/.agents/skills/gstack-plan-ceo-review/SKILL.md +1268 -0
  81. package/gstack-origin/.agents/skills/gstack-plan-design-review/SKILL.md +668 -0
  82. package/gstack-origin/.agents/skills/gstack-plan-eng-review/SKILL.md +826 -0
  83. package/gstack-origin/.agents/skills/gstack-qa/SKILL.md +1006 -0
  84. package/gstack-origin/.agents/skills/gstack-qa-only/SKILL.md +626 -0
  85. package/gstack-origin/.agents/skills/gstack-retro/SKILL.md +1065 -0
  86. package/gstack-origin/.agents/skills/gstack-review/SKILL.md +704 -0
  87. package/gstack-origin/.agents/skills/gstack-setup-browser-cookies/SKILL.md +325 -0
  88. package/gstack-origin/.agents/skills/gstack-setup-deploy/SKILL.md +450 -0
  89. package/gstack-origin/.agents/skills/gstack-ship/SKILL.md +1312 -0
  90. package/gstack-origin/.agents/skills/gstack-unfreeze/SKILL.md +36 -0
  91. package/gstack-origin/.agents/skills/gstack-upgrade/SKILL.md +220 -0
  92. package/gstack-origin/.env.example +5 -0
  93. package/gstack-origin/.github/workflows/skill-docs.yml +17 -0
  94. package/gstack-origin/AGENTS.md +49 -0
  95. package/gstack-origin/ARCHITECTURE.md +359 -0
  96. package/gstack-origin/BROWSER.md +271 -0
  97. package/gstack-origin/CHANGELOG.md +800 -0
  98. package/gstack-origin/CLAUDE.md +284 -0
  99. package/gstack-origin/CONTRIBUTING.md +370 -0
  100. package/gstack-origin/ETHOS.md +129 -0
  101. package/gstack-origin/LICENSE +21 -0
  102. package/gstack-origin/README.md +228 -0
  103. package/gstack-origin/SKILL.md +657 -0
  104. package/gstack-origin/SKILL.md.tmpl +281 -0
  105. package/gstack-origin/TODOS.md +564 -0
  106. package/gstack-origin/VERSION +1 -0
  107. package/gstack-origin/autoplan/SKILL.md +689 -0
  108. package/gstack-origin/autoplan/SKILL.md.tmpl +416 -0
  109. package/gstack-origin/benchmark/SKILL.md +489 -0
  110. package/gstack-origin/benchmark/SKILL.md.tmpl +233 -0
  111. package/gstack-origin/bin/dev-setup +68 -0
  112. package/gstack-origin/bin/dev-teardown +56 -0
  113. package/gstack-origin/bin/gstack-analytics +191 -0
  114. package/gstack-origin/bin/gstack-community-dashboard +113 -0
  115. package/gstack-origin/bin/gstack-config +38 -0
  116. package/gstack-origin/bin/gstack-diff-scope +71 -0
  117. package/gstack-origin/bin/gstack-global-discover.ts +591 -0
  118. package/gstack-origin/bin/gstack-repo-mode +93 -0
  119. package/gstack-origin/bin/gstack-review-log +9 -0
  120. package/gstack-origin/bin/gstack-review-read +12 -0
  121. package/gstack-origin/bin/gstack-slug +15 -0
  122. package/gstack-origin/bin/gstack-telemetry-log +158 -0
  123. package/gstack-origin/bin/gstack-telemetry-sync +127 -0
  124. package/gstack-origin/bin/gstack-update-check +196 -0
  125. package/gstack-origin/browse/SKILL.md +517 -0
  126. package/gstack-origin/browse/SKILL.md.tmpl +141 -0
  127. package/gstack-origin/browse/bin/find-browse +21 -0
  128. package/gstack-origin/browse/bin/remote-slug +14 -0
  129. package/gstack-origin/browse/scripts/build-node-server.sh +48 -0
  130. package/gstack-origin/browse/src/browser-manager.ts +634 -0
  131. package/gstack-origin/browse/src/buffers.ts +137 -0
  132. package/gstack-origin/browse/src/bun-polyfill.cjs +109 -0
  133. package/gstack-origin/browse/src/cli.ts +420 -0
  134. package/gstack-origin/browse/src/commands.ts +111 -0
  135. package/gstack-origin/browse/src/config.ts +150 -0
  136. package/gstack-origin/browse/src/cookie-import-browser.ts +417 -0
  137. package/gstack-origin/browse/src/cookie-picker-routes.ts +207 -0
  138. package/gstack-origin/browse/src/cookie-picker-ui.ts +541 -0
  139. package/gstack-origin/browse/src/find-browse.ts +61 -0
  140. package/gstack-origin/browse/src/meta-commands.ts +269 -0
  141. package/gstack-origin/browse/src/platform.ts +17 -0
  142. package/gstack-origin/browse/src/read-commands.ts +335 -0
  143. package/gstack-origin/browse/src/server.ts +369 -0
  144. package/gstack-origin/browse/src/snapshot.ts +398 -0
  145. package/gstack-origin/browse/src/url-validation.ts +91 -0
  146. package/gstack-origin/browse/src/write-commands.ts +352 -0
  147. package/gstack-origin/browse/test/bun-polyfill.test.ts +72 -0
  148. package/gstack-origin/browse/test/commands.test.ts +1836 -0
  149. package/gstack-origin/browse/test/config.test.ts +250 -0
  150. package/gstack-origin/browse/test/cookie-import-browser.test.ts +397 -0
  151. package/gstack-origin/browse/test/cookie-picker-routes.test.ts +205 -0
  152. package/gstack-origin/browse/test/find-browse.test.ts +50 -0
  153. package/gstack-origin/browse/test/fixtures/basic.html +33 -0
  154. package/gstack-origin/browse/test/fixtures/cursor-interactive.html +22 -0
  155. package/gstack-origin/browse/test/fixtures/dialog.html +15 -0
  156. package/gstack-origin/browse/test/fixtures/empty.html +2 -0
  157. package/gstack-origin/browse/test/fixtures/forms.html +55 -0
  158. package/gstack-origin/browse/test/fixtures/qa-eval-checkout.html +108 -0
  159. package/gstack-origin/browse/test/fixtures/qa-eval-spa.html +98 -0
  160. package/gstack-origin/browse/test/fixtures/qa-eval.html +51 -0
  161. package/gstack-origin/browse/test/fixtures/responsive.html +49 -0
  162. package/gstack-origin/browse/test/fixtures/snapshot.html +55 -0
  163. package/gstack-origin/browse/test/fixtures/spa.html +24 -0
  164. package/gstack-origin/browse/test/fixtures/states.html +17 -0
  165. package/gstack-origin/browse/test/fixtures/upload.html +25 -0
  166. package/gstack-origin/browse/test/gstack-config.test.ts +125 -0
  167. package/gstack-origin/browse/test/gstack-update-check.test.ts +467 -0
  168. package/gstack-origin/browse/test/handoff.test.ts +235 -0
  169. package/gstack-origin/browse/test/path-validation.test.ts +63 -0
  170. package/gstack-origin/browse/test/platform.test.ts +37 -0
  171. package/gstack-origin/browse/test/snapshot.test.ts +467 -0
  172. package/gstack-origin/browse/test/test-server.ts +57 -0
  173. package/gstack-origin/browse/test/url-validation.test.ts +72 -0
  174. package/gstack-origin/canary/SKILL.md +493 -0
  175. package/gstack-origin/canary/SKILL.md.tmpl +220 -0
  176. package/gstack-origin/careful/SKILL.md +59 -0
  177. package/gstack-origin/careful/SKILL.md.tmpl +57 -0
  178. package/gstack-origin/careful/bin/check-careful.sh +112 -0
  179. package/gstack-origin/codex/SKILL.md +677 -0
  180. package/gstack-origin/codex/SKILL.md.tmpl +356 -0
  181. package/gstack-origin/conductor.json +6 -0
  182. package/gstack-origin/cso/SKILL.md +615 -0
  183. package/gstack-origin/cso/SKILL.md.tmpl +376 -0
  184. package/gstack-origin/design-consultation/SKILL.md +625 -0
  185. package/gstack-origin/design-consultation/SKILL.md.tmpl +369 -0
  186. package/gstack-origin/design-review/SKILL.md +998 -0
  187. package/gstack-origin/design-review/SKILL.md.tmpl +262 -0
  188. package/gstack-origin/docs/images/github-2013.png +0 -0
  189. package/gstack-origin/docs/images/github-2026.png +0 -0
  190. package/gstack-origin/docs/skills.md +877 -0
  191. package/gstack-origin/document-release/SKILL.md +613 -0
  192. package/gstack-origin/document-release/SKILL.md.tmpl +357 -0
  193. package/gstack-origin/freeze/SKILL.md +82 -0
  194. package/gstack-origin/freeze/SKILL.md.tmpl +80 -0
  195. package/gstack-origin/freeze/bin/check-freeze.sh +68 -0
  196. package/gstack-origin/gstack-upgrade/SKILL.md +226 -0
  197. package/gstack-origin/gstack-upgrade/SKILL.md.tmpl +224 -0
  198. package/gstack-origin/guard/SKILL.md +82 -0
  199. package/gstack-origin/guard/SKILL.md.tmpl +80 -0
  200. package/gstack-origin/investigate/SKILL.md +435 -0
  201. package/gstack-origin/investigate/SKILL.md.tmpl +196 -0
  202. package/gstack-origin/land-and-deploy/SKILL.md +880 -0
  203. package/gstack-origin/land-and-deploy/SKILL.md.tmpl +575 -0
  204. package/gstack-origin/office-hours/SKILL.md +996 -0
  205. package/gstack-origin/office-hours/SKILL.md.tmpl +624 -0
  206. package/gstack-origin/package.json +55 -0
  207. package/gstack-origin/plan-ceo-review/SKILL.md +1277 -0
  208. package/gstack-origin/plan-ceo-review/SKILL.md.tmpl +838 -0
  209. package/gstack-origin/plan-design-review/SKILL.md +676 -0
  210. package/gstack-origin/plan-design-review/SKILL.md.tmpl +314 -0
  211. package/gstack-origin/plan-eng-review/SKILL.md +836 -0
  212. package/gstack-origin/plan-eng-review/SKILL.md.tmpl +279 -0
  213. package/gstack-origin/qa/SKILL.md +1016 -0
  214. package/gstack-origin/qa/SKILL.md.tmpl +316 -0
  215. package/gstack-origin/qa/references/issue-taxonomy.md +85 -0
  216. package/gstack-origin/qa/templates/qa-report-template.md +126 -0
  217. package/gstack-origin/qa-only/SKILL.md +633 -0
  218. package/gstack-origin/qa-only/SKILL.md.tmpl +101 -0
  219. package/gstack-origin/retro/SKILL.md +1072 -0
  220. package/gstack-origin/retro/SKILL.md.tmpl +833 -0
  221. package/gstack-origin/review/SKILL.md +849 -0
  222. package/gstack-origin/review/SKILL.md.tmpl +259 -0
  223. package/gstack-origin/review/TODOS-format.md +62 -0
  224. package/gstack-origin/review/checklist.md +190 -0
  225. package/gstack-origin/review/design-checklist.md +132 -0
  226. package/gstack-origin/review/greptile-triage.md +220 -0
  227. package/gstack-origin/scripts/analytics.ts +190 -0
  228. package/gstack-origin/scripts/dev-skill.ts +82 -0
  229. package/gstack-origin/scripts/eval-compare.ts +96 -0
  230. package/gstack-origin/scripts/eval-list.ts +116 -0
  231. package/gstack-origin/scripts/eval-select.ts +86 -0
  232. package/gstack-origin/scripts/eval-summary.ts +187 -0
  233. package/gstack-origin/scripts/eval-watch.ts +172 -0
  234. package/gstack-origin/scripts/gen-skill-docs.ts +2414 -0
  235. package/gstack-origin/scripts/skill-check.ts +167 -0
  236. package/gstack-origin/setup +269 -0
  237. package/gstack-origin/setup-browser-cookies/SKILL.md +330 -0
  238. package/gstack-origin/setup-browser-cookies/SKILL.md.tmpl +74 -0
  239. package/gstack-origin/setup-deploy/SKILL.md +459 -0
  240. package/gstack-origin/setup-deploy/SKILL.md.tmpl +220 -0
  241. package/gstack-origin/ship/SKILL.md +1457 -0
  242. package/gstack-origin/ship/SKILL.md.tmpl +528 -0
  243. package/gstack-origin/supabase/config.sh +10 -0
  244. package/gstack-origin/supabase/functions/community-pulse/index.ts +59 -0
  245. package/gstack-origin/supabase/functions/telemetry-ingest/index.ts +135 -0
  246. package/gstack-origin/supabase/functions/update-check/index.ts +37 -0
  247. package/gstack-origin/supabase/migrations/001_telemetry.sql +89 -0
  248. package/gstack-origin/test/analytics.test.ts +277 -0
  249. package/gstack-origin/test/codex-e2e.test.ts +197 -0
  250. package/gstack-origin/test/fixtures/coverage-audit-fixture.ts +76 -0
  251. package/gstack-origin/test/fixtures/eval-baselines.json +7 -0
  252. package/gstack-origin/test/fixtures/qa-eval-checkout-ground-truth.json +43 -0
  253. package/gstack-origin/test/fixtures/qa-eval-ground-truth.json +43 -0
  254. package/gstack-origin/test/fixtures/qa-eval-spa-ground-truth.json +43 -0
  255. package/gstack-origin/test/fixtures/review-eval-design-slop.css +86 -0
  256. package/gstack-origin/test/fixtures/review-eval-design-slop.html +41 -0
  257. package/gstack-origin/test/fixtures/review-eval-enum-diff.rb +30 -0
  258. package/gstack-origin/test/fixtures/review-eval-enum.rb +27 -0
  259. package/gstack-origin/test/fixtures/review-eval-vuln.rb +14 -0
  260. package/gstack-origin/test/gemini-e2e.test.ts +173 -0
  261. package/gstack-origin/test/gen-skill-docs.test.ts +1049 -0
  262. package/gstack-origin/test/global-discover.test.ts +187 -0
  263. package/gstack-origin/test/helpers/codex-session-runner.ts +282 -0
  264. package/gstack-origin/test/helpers/e2e-helpers.ts +239 -0
  265. package/gstack-origin/test/helpers/eval-store.test.ts +548 -0
  266. package/gstack-origin/test/helpers/eval-store.ts +689 -0
  267. package/gstack-origin/test/helpers/gemini-session-runner.test.ts +104 -0
  268. package/gstack-origin/test/helpers/gemini-session-runner.ts +201 -0
  269. package/gstack-origin/test/helpers/llm-judge.ts +130 -0
  270. package/gstack-origin/test/helpers/observability.test.ts +283 -0
  271. package/gstack-origin/test/helpers/session-runner.test.ts +96 -0
  272. package/gstack-origin/test/helpers/session-runner.ts +357 -0
  273. package/gstack-origin/test/helpers/skill-parser.ts +206 -0
  274. package/gstack-origin/test/helpers/touchfiles.ts +260 -0
  275. package/gstack-origin/test/hook-scripts.test.ts +373 -0
  276. package/gstack-origin/test/skill-e2e-browse.test.ts +293 -0
  277. package/gstack-origin/test/skill-e2e-deploy.test.ts +279 -0
  278. package/gstack-origin/test/skill-e2e-design.test.ts +614 -0
  279. package/gstack-origin/test/skill-e2e-plan.test.ts +538 -0
  280. package/gstack-origin/test/skill-e2e-qa-bugs.test.ts +194 -0
  281. package/gstack-origin/test/skill-e2e-qa-workflow.test.ts +412 -0
  282. package/gstack-origin/test/skill-e2e-review.test.ts +535 -0
  283. package/gstack-origin/test/skill-e2e-workflow.test.ts +586 -0
  284. package/gstack-origin/test/skill-e2e.test.ts +3325 -0
  285. package/gstack-origin/test/skill-llm-eval.test.ts +787 -0
  286. package/gstack-origin/test/skill-parser.test.ts +179 -0
  287. package/gstack-origin/test/skill-routing-e2e.test.ts +605 -0
  288. package/gstack-origin/test/skill-validation.test.ts +1520 -0
  289. package/gstack-origin/test/telemetry.test.ts +278 -0
  290. package/gstack-origin/test/touchfiles.test.ts +262 -0
  291. package/gstack-origin/unfreeze/SKILL.md +40 -0
  292. package/gstack-origin/unfreeze/SKILL.md.tmpl +38 -0
  293. package/package.json +38 -0
  294. package/scripts/install-antigravity-skill.ps1 +33 -0
  295. package/scripts/install-antigravity-skill.sh +41 -0
  296. package/scripts/sync-gstack-origin.ps1 +37 -0
  297. package/scripts/sync-gstack-origin.sh +35 -0
@@ -0,0 +1,316 @@
1
+ ---
2
+ name: qa
3
+ version: 2.0.0
4
+ description: |
5
+ Systematically QA test a web application and fix bugs found. Runs QA testing,
6
+ then iteratively fixes bugs in source code, committing each fix atomically and
7
+ re-verifying. Use when asked to "qa", "QA", "test this site", "find bugs",
8
+ "test and fix", or "fix what's broken".
9
+ Proactively suggest when the user says a feature is ready for testing
10
+ or asks "does this work?". Three tiers: Quick (critical/high only),
11
+ Standard (+ medium), Exhaustive (+ cosmetic). Produces before/after health scores,
12
+ fix evidence, and a ship-readiness summary. For report-only mode, use /qa-only.
13
+ allowed-tools:
14
+ - Bash
15
+ - Read
16
+ - Write
17
+ - Edit
18
+ - Glob
19
+ - Grep
20
+ - AskUserQuestion
21
+ - WebSearch
22
+ ---
23
+
24
+ {{PREAMBLE}}
25
+
26
+ {{BASE_BRANCH_DETECT}}
27
+
28
+ # /qa: Test → Fix → Verify
29
+
30
+ You are a QA engineer AND a bug-fix engineer. Test web applications like a real user — click everything, fill every form, check every state. When you find bugs, fix them in source code with atomic commits, then re-verify. Produce a structured report with before/after evidence.
31
+
32
+ ## Setup
33
+
34
+ **Parse the user's request for these parameters:**
35
+
36
+ | Parameter | Default | Override example |
37
+ |-----------|---------|-----------------:|
38
+ | Target URL | (auto-detect or required) | `https://myapp.com`, `http://localhost:3000` |
39
+ | Tier | Standard | `--quick`, `--exhaustive` |
40
+ | Mode | full | `--regression .gstack/qa-reports/baseline.json` |
41
+ | Output dir | `.gstack/qa-reports/` | `Output to /tmp/qa` |
42
+ | Scope | Full app (or diff-scoped) | `Focus on the billing page` |
43
+ | Auth | None | `Sign in to user@example.com`, `Import cookies from cookies.json` |
44
+
45
+ **Tiers determine which issues get fixed:**
46
+ - **Quick:** Fix critical + high severity only
47
+ - **Standard:** + medium severity (default)
48
+ - **Exhaustive:** + low/cosmetic severity
49
+
50
+ **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.
51
+
52
+ **Check for clean working tree:**
53
+
54
+ ```bash
55
+ git status --porcelain
56
+ ```
57
+
58
+ If the output is non-empty (working tree is dirty), **STOP** and use AskUserQuestion:
59
+
60
+ "Your working tree has uncommitted changes. /qa needs a clean tree so each bug fix gets its own atomic commit."
61
+
62
+ - A) Commit my changes — commit all current changes with a descriptive message, then start QA
63
+ - B) Stash my changes — stash, run QA, pop the stash after
64
+ - C) Abort — I'll clean up manually
65
+
66
+ RECOMMENDATION: Choose A because uncommitted work should be preserved as a commit before QA adds its own fix commits.
67
+
68
+ After the user chooses, execute their choice (commit or stash), then continue with setup.
69
+
70
+ **Find the browse binary:**
71
+
72
+ {{BROWSE_SETUP}}
73
+
74
+ **Check test framework (bootstrap if needed):**
75
+
76
+ {{TEST_BOOTSTRAP}}
77
+
78
+ **Create output directories:**
79
+
80
+ ```bash
81
+ mkdir -p .gstack/qa-reports/screenshots
82
+ ```
83
+
84
+ ---
85
+
86
+ ## Test Plan Context
87
+
88
+ Before falling back to git diff heuristics, check for richer test plan sources:
89
+
90
+ 1. **Project-scoped test plans:** Check `~/.gstack/projects/` for recent `*-test-plan-*.md` files for this repo
91
+ ```bash
92
+ source <(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null)
93
+ ls -t ~/.gstack/projects/$SLUG/*-test-plan-*.md 2>/dev/null | head -1
94
+ ```
95
+ 2. **Conversation context:** Check if a prior `/plan-eng-review` or `/plan-ceo-review` produced test plan output in this conversation
96
+ 3. **Use whichever source is richer.** Fall back to git diff analysis only if neither is available.
97
+
98
+ ---
99
+
100
+ ## Phases 1-6: QA Baseline
101
+
102
+ {{QA_METHODOLOGY}}
103
+
104
+ Record baseline health score at end of Phase 6.
105
+
106
+ ---
107
+
108
+ ## Output Structure
109
+
110
+ ```
111
+ .gstack/qa-reports/
112
+ ├── qa-report-{domain}-{YYYY-MM-DD}.md # Structured report
113
+ ├── screenshots/
114
+ │ ├── initial.png # Landing page annotated screenshot
115
+ │ ├── issue-001-step-1.png # Per-issue evidence
116
+ │ ├── issue-001-result.png
117
+ │ ├── issue-001-before.png # Before fix (if fixed)
118
+ │ ├── issue-001-after.png # After fix (if fixed)
119
+ │ └── ...
120
+ └── baseline.json # For regression mode
121
+ ```
122
+
123
+ Report filenames use the domain and date: `qa-report-myapp-com-2026-03-12.md`
124
+
125
+ ---
126
+
127
+ ## Phase 7: Triage
128
+
129
+ Sort all discovered issues by severity, then decide which to fix based on the selected tier:
130
+
131
+ - **Quick:** Fix critical + high only. Mark medium/low as "deferred."
132
+ - **Standard:** Fix critical + high + medium. Mark low as "deferred."
133
+ - **Exhaustive:** Fix all, including cosmetic/low severity.
134
+
135
+ Mark issues that cannot be fixed from source code (e.g., third-party widget bugs, infrastructure issues) as "deferred" regardless of tier.
136
+
137
+ ---
138
+
139
+ ## Phase 8: Fix Loop
140
+
141
+ For each fixable issue, in severity order:
142
+
143
+ ### 8a. Locate source
144
+
145
+ ```bash
146
+ # Grep for error messages, component names, route definitions
147
+ # Glob for file patterns matching the affected page
148
+ ```
149
+
150
+ - Find the source file(s) responsible for the bug
151
+ - ONLY modify files directly related to the issue
152
+
153
+ ### 8b. Fix
154
+
155
+ - Read the source code, understand the context
156
+ - Make the **minimal fix** — smallest change that resolves the issue
157
+ - Do NOT refactor surrounding code, add features, or "improve" unrelated things
158
+
159
+ ### 8c. Commit
160
+
161
+ ```bash
162
+ git add <only-changed-files>
163
+ git commit -m "fix(qa): ISSUE-NNN — short description"
164
+ ```
165
+
166
+ - One commit per fix. Never bundle multiple fixes.
167
+ - Message format: `fix(qa): ISSUE-NNN — short description`
168
+
169
+ ### 8d. Re-test
170
+
171
+ - Navigate back to the affected page
172
+ - Take **before/after screenshot pair**
173
+ - Check console for errors
174
+ - Use `snapshot -D` to verify the change had the expected effect
175
+
176
+ ```bash
177
+ $B goto <affected-url>
178
+ $B screenshot "$REPORT_DIR/screenshots/issue-NNN-after.png"
179
+ $B console --errors
180
+ $B snapshot -D
181
+ ```
182
+
183
+ ### 8e. Classify
184
+
185
+ - **verified**: re-test confirms the fix works, no new errors introduced
186
+ - **best-effort**: fix applied but couldn't fully verify (e.g., needs auth state, external service)
187
+ - **reverted**: regression detected → `git revert HEAD` → mark issue as "deferred"
188
+
189
+ ### 8e.5. Regression Test
190
+
191
+ Skip if: classification is not "verified", OR the fix is purely visual/CSS with no JS behavior, OR no test framework was detected AND user declined bootstrap.
192
+
193
+ **1. Study the project's existing test patterns:**
194
+
195
+ Read 2-3 test files closest to the fix (same directory, same code type). Match exactly:
196
+ - File naming, imports, assertion style, describe/it nesting, setup/teardown patterns
197
+ The regression test must look like it was written by the same developer.
198
+
199
+ **2. Trace the bug's codepath, then write a regression test:**
200
+
201
+ Before writing the test, trace the data flow through the code you just fixed:
202
+ - What input/state triggered the bug? (the exact precondition)
203
+ - What codepath did it follow? (which branches, which function calls)
204
+ - Where did it break? (the exact line/condition that failed)
205
+ - What other inputs could hit the same codepath? (edge cases around the fix)
206
+
207
+ The test MUST:
208
+ - Set up the precondition that triggered the bug (the exact state that made it break)
209
+ - Perform the action that exposed the bug
210
+ - Assert the correct behavior (NOT "it renders" or "it doesn't throw")
211
+ - If you found adjacent edge cases while tracing, test those too (e.g., null input, empty array, boundary value)
212
+ - Include full attribution comment:
213
+ ```
214
+ // Regression: ISSUE-NNN — {what broke}
215
+ // Found by /qa on {YYYY-MM-DD}
216
+ // Report: .gstack/qa-reports/qa-report-{domain}-{date}.md
217
+ ```
218
+
219
+ Test type decision:
220
+ - Console error / JS exception / logic bug → unit or integration test
221
+ - Broken form / API failure / data flow bug → integration test with request/response
222
+ - Visual bug with JS behavior (broken dropdown, animation) → component test
223
+ - Pure CSS → skip (caught by QA reruns)
224
+
225
+ Generate unit tests. Mock all external dependencies (DB, API, Redis, file system).
226
+
227
+ Use auto-incrementing names to avoid collisions: check existing `{name}.regression-*.test.{ext}` files, take max number + 1.
228
+
229
+ **3. Run only the new test file:**
230
+
231
+ ```bash
232
+ {detected test command} {new-test-file}
233
+ ```
234
+
235
+ **4. Evaluate:**
236
+ - Passes → commit: `git commit -m "test(qa): regression test for ISSUE-NNN — {desc}"`
237
+ - Fails → fix test once. Still failing → delete test, defer.
238
+ - Taking >2 min exploration → skip and defer.
239
+
240
+ **5. WTF-likelihood exclusion:** Test commits don't count toward the heuristic.
241
+
242
+ ### 8f. Self-Regulation (STOP AND EVALUATE)
243
+
244
+ Every 5 fixes (or after any revert), compute the WTF-likelihood:
245
+
246
+ ```
247
+ WTF-LIKELIHOOD:
248
+ Start at 0%
249
+ Each revert: +15%
250
+ Each fix touching >3 files: +5%
251
+ After fix 15: +1% per additional fix
252
+ All remaining Low severity: +10%
253
+ Touching unrelated files: +20%
254
+ ```
255
+
256
+ **If WTF > 20%:** STOP immediately. Show the user what you've done so far. Ask whether to continue.
257
+
258
+ **Hard cap: 50 fixes.** After 50 fixes, stop regardless of remaining issues.
259
+
260
+ ---
261
+
262
+ ## Phase 9: Final QA
263
+
264
+ After all fixes are applied:
265
+
266
+ 1. Re-run QA on all affected pages
267
+ 2. Compute final health score
268
+ 3. **If final score is WORSE than baseline:** WARN prominently — something regressed
269
+
270
+ ---
271
+
272
+ ## Phase 10: Report
273
+
274
+ Write the report to both local and project-scoped locations:
275
+
276
+ **Local:** `.gstack/qa-reports/qa-report-{domain}-{YYYY-MM-DD}.md`
277
+
278
+ **Project-scoped:** Write test outcome artifact for cross-session context:
279
+ ```bash
280
+ source <(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null) && mkdir -p ~/.gstack/projects/$SLUG
281
+ ```
282
+ Write to `~/.gstack/projects/{slug}/{user}-{branch}-test-outcome-{datetime}.md`
283
+
284
+ **Per-issue additions** (beyond standard report template):
285
+ - Fix Status: verified / best-effort / reverted / deferred
286
+ - Commit SHA (if fixed)
287
+ - Files Changed (if fixed)
288
+ - Before/After screenshots (if fixed)
289
+
290
+ **Summary section:**
291
+ - Total issues found
292
+ - Fixes applied (verified: X, best-effort: Y, reverted: Z)
293
+ - Deferred issues
294
+ - Health score delta: baseline → final
295
+
296
+ **PR Summary:** Include a one-line summary suitable for PR descriptions:
297
+ > "QA found N issues, fixed M, health score X → Y."
298
+
299
+ ---
300
+
301
+ ## Phase 11: TODOS.md Update
302
+
303
+ If the repo has a `TODOS.md`:
304
+
305
+ 1. **New deferred bugs** → add as TODOs with severity, category, and repro steps
306
+ 2. **Fixed bugs that were in TODOS.md** → annotate with "Fixed by /qa on {branch}, {date}"
307
+
308
+ ---
309
+
310
+ ## Additional Rules (qa-specific)
311
+
312
+ 11. **Clean working tree required.** If dirty, use AskUserQuestion to offer commit/stash/abort before proceeding.
313
+ 12. **One commit per fix.** Never bundle multiple fixes into one commit.
314
+ 13. **Only modify tests when generating regression tests in Phase 8e.5.** Never modify CI configuration. Never modify existing tests — only create new test files.
315
+ 14. **Revert on regression.** If a fix makes things worse, `git revert HEAD` immediately.
316
+ 15. **Self-regulate.** Follow the WTF-likelihood heuristic. When in doubt, stop and ask.
@@ -0,0 +1,85 @@
1
+ # QA Issue Taxonomy
2
+
3
+ ## Severity Levels
4
+
5
+ | Severity | Definition | Examples |
6
+ |----------|------------|----------|
7
+ | **critical** | Blocks a core workflow, causes data loss, or crashes the app | Form submit causes error page, checkout flow broken, data deleted without confirmation |
8
+ | **high** | Major feature broken or unusable, no workaround | Search returns wrong results, file upload silently fails, auth redirect loop |
9
+ | **medium** | Feature works but with noticeable problems, workaround exists | Slow page load (>5s), form validation missing but submit still works, layout broken on mobile only |
10
+ | **low** | Minor cosmetic or polish issue | Typo in footer, 1px alignment issue, hover state inconsistent |
11
+
12
+ ## Categories
13
+
14
+ ### 1. Visual/UI
15
+ - Layout breaks (overlapping elements, clipped text, horizontal scrollbar)
16
+ - Broken or missing images
17
+ - Incorrect z-index (elements appearing behind others)
18
+ - Font/color inconsistencies
19
+ - Animation glitches (jank, incomplete transitions)
20
+ - Alignment issues (off-grid, uneven spacing)
21
+ - Dark mode / theme issues
22
+
23
+ ### 2. Functional
24
+ - Broken links (404, wrong destination)
25
+ - Dead buttons (click does nothing)
26
+ - Form validation (missing, wrong, bypassed)
27
+ - Incorrect redirects
28
+ - State not persisting (data lost on refresh, back button)
29
+ - Race conditions (double-submit, stale data)
30
+ - Search returning wrong or no results
31
+
32
+ ### 3. UX
33
+ - Confusing navigation (no breadcrumbs, dead ends)
34
+ - Missing loading indicators (user doesn't know something is happening)
35
+ - Slow interactions (>500ms with no feedback)
36
+ - Unclear error messages ("Something went wrong" with no detail)
37
+ - No confirmation before destructive actions
38
+ - Inconsistent interaction patterns across pages
39
+ - Dead ends (no way back, no next action)
40
+
41
+ ### 4. Content
42
+ - Typos and grammar errors
43
+ - Outdated or incorrect text
44
+ - Placeholder / lorem ipsum text left in
45
+ - Truncated text (cut off without ellipsis or "more")
46
+ - Wrong labels on buttons or form fields
47
+ - Missing or unhelpful empty states
48
+
49
+ ### 5. Performance
50
+ - Slow page loads (>3 seconds)
51
+ - Janky scrolling (dropped frames)
52
+ - Layout shifts (content jumping after load)
53
+ - Excessive network requests (>50 on a single page)
54
+ - Large unoptimized images
55
+ - Blocking JavaScript (page unresponsive during load)
56
+
57
+ ### 6. Console/Errors
58
+ - JavaScript exceptions (uncaught errors)
59
+ - Failed network requests (4xx, 5xx)
60
+ - Deprecation warnings (upcoming breakage)
61
+ - CORS errors
62
+ - Mixed content warnings (HTTP resources on HTTPS)
63
+ - CSP violations
64
+
65
+ ### 7. Accessibility
66
+ - Missing alt text on images
67
+ - Unlabeled form inputs
68
+ - Keyboard navigation broken (can't tab to elements)
69
+ - Focus traps (can't escape a modal or dropdown)
70
+ - Missing or incorrect ARIA attributes
71
+ - Insufficient color contrast
72
+ - Content not reachable by screen reader
73
+
74
+ ## Per-Page Exploration Checklist
75
+
76
+ For each page visited during a QA session:
77
+
78
+ 1. **Visual scan** — Take annotated screenshot (`snapshot -i -a -o`). Look for layout issues, broken images, alignment.
79
+ 2. **Interactive elements** — Click every button, link, and control. Does each do what it says?
80
+ 3. **Forms** — Fill and submit. Test empty submission, invalid data, edge cases (long text, special characters).
81
+ 4. **Navigation** — Check all paths in/out. Breadcrumbs, back button, deep links, mobile menu.
82
+ 5. **States** — Check empty state, loading state, error state, full/overflow state.
83
+ 6. **Console** — Run `console --errors` after interactions. Any new JS errors or failed requests?
84
+ 7. **Responsiveness** — If relevant, check mobile and tablet viewports.
85
+ 8. **Auth boundaries** — What happens when logged out? Different user roles?
@@ -0,0 +1,126 @@
1
+ # QA Report: {APP_NAME}
2
+
3
+ | Field | Value |
4
+ |-------|-------|
5
+ | **Date** | {DATE} |
6
+ | **URL** | {URL} |
7
+ | **Branch** | {BRANCH} |
8
+ | **Commit** | {COMMIT_SHA} ({COMMIT_DATE}) |
9
+ | **PR** | {PR_NUMBER} ({PR_URL}) or "—" |
10
+ | **Tier** | Quick / Standard / Exhaustive |
11
+ | **Scope** | {SCOPE or "Full app"} |
12
+ | **Duration** | {DURATION} |
13
+ | **Pages visited** | {COUNT} |
14
+ | **Screenshots** | {COUNT} |
15
+ | **Framework** | {DETECTED or "Unknown"} |
16
+ | **Index** | [All QA runs](./index.md) |
17
+
18
+ ## Health Score: {SCORE}/100
19
+
20
+ | Category | Score |
21
+ |----------|-------|
22
+ | Console | {0-100} |
23
+ | Links | {0-100} |
24
+ | Visual | {0-100} |
25
+ | Functional | {0-100} |
26
+ | UX | {0-100} |
27
+ | Performance | {0-100} |
28
+ | Accessibility | {0-100} |
29
+
30
+ ## Top 3 Things to Fix
31
+
32
+ 1. **{ISSUE-NNN}: {title}** — {one-line description}
33
+ 2. **{ISSUE-NNN}: {title}** — {one-line description}
34
+ 3. **{ISSUE-NNN}: {title}** — {one-line description}
35
+
36
+ ## Console Health
37
+
38
+ | Error | Count | First seen |
39
+ |-------|-------|------------|
40
+ | {error message} | {N} | {URL} |
41
+
42
+ ## Summary
43
+
44
+ | Severity | Count |
45
+ |----------|-------|
46
+ | Critical | 0 |
47
+ | High | 0 |
48
+ | Medium | 0 |
49
+ | Low | 0 |
50
+ | **Total** | **0** |
51
+
52
+ ## Issues
53
+
54
+ ### ISSUE-001: {Short title}
55
+
56
+ | Field | Value |
57
+ |-------|-------|
58
+ | **Severity** | critical / high / medium / low |
59
+ | **Category** | visual / functional / ux / content / performance / console / accessibility |
60
+ | **URL** | {page URL} |
61
+
62
+ **Description:** {What is wrong, expected vs actual.}
63
+
64
+ **Repro Steps:**
65
+
66
+ 1. Navigate to {URL}
67
+ ![Step 1](screenshots/issue-001-step-1.png)
68
+ 2. {Action}
69
+ ![Step 2](screenshots/issue-001-step-2.png)
70
+ 3. **Observe:** {what goes wrong}
71
+ ![Result](screenshots/issue-001-result.png)
72
+
73
+ ---
74
+
75
+ ## Fixes Applied (if applicable)
76
+
77
+ | Issue | Fix Status | Commit | Files Changed |
78
+ |-------|-----------|--------|---------------|
79
+ | ISSUE-NNN | verified / best-effort / reverted / deferred | {SHA} | {files} |
80
+
81
+ ### Before/After Evidence
82
+
83
+ #### ISSUE-NNN: {title}
84
+ **Before:** ![Before](screenshots/issue-NNN-before.png)
85
+ **After:** ![After](screenshots/issue-NNN-after.png)
86
+
87
+ ---
88
+
89
+ ## Regression Tests
90
+
91
+ | Issue | Test File | Status | Description |
92
+ |-------|-----------|--------|-------------|
93
+ | ISSUE-NNN | path/to/test | committed / deferred / skipped | description |
94
+
95
+ ### Deferred Tests
96
+
97
+ #### ISSUE-NNN: {title}
98
+ **Precondition:** {setup state that triggers the bug}
99
+ **Action:** {what the user does}
100
+ **Expected:** {correct behavior}
101
+ **Why deferred:** {reason}
102
+
103
+ ---
104
+
105
+ ## Ship Readiness
106
+
107
+ | Metric | Value |
108
+ |--------|-------|
109
+ | Health score | {before} → {after} ({delta}) |
110
+ | Issues found | N |
111
+ | Fixes applied | N (verified: X, best-effort: Y, reverted: Z) |
112
+ | Deferred | N |
113
+
114
+ **PR Summary:** "QA found N issues, fixed M, health score X → Y."
115
+
116
+ ---
117
+
118
+ ## Regression (if applicable)
119
+
120
+ | Metric | Baseline | Current | Delta |
121
+ |--------|----------|---------|-------|
122
+ | Health score | {N} | {N} | {+/-N} |
123
+ | Issues | {N} | {N} | {+/-N} |
124
+
125
+ **Fixed since baseline:** {list}
126
+ **New since baseline:** {list}