@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,369 @@
1
+ ---
2
+ name: design-consultation
3
+ version: 1.0.0
4
+ description: |
5
+ Design consultation: understands your product, researches the landscape, proposes a
6
+ complete design system (aesthetic, typography, color, layout, spacing, motion), and
7
+ generates font+color preview pages. Creates DESIGN.md as your project's design source
8
+ of truth. For existing sites, use /plan-design-review to infer the system instead.
9
+ Use when asked to "design system", "brand guidelines", or "create DESIGN.md".
10
+ Proactively suggest when starting a new project's UI with no existing
11
+ design system or DESIGN.md.
12
+ allowed-tools:
13
+ - Bash
14
+ - Read
15
+ - Write
16
+ - Edit
17
+ - Glob
18
+ - Grep
19
+ - AskUserQuestion
20
+ - WebSearch
21
+ ---
22
+
23
+ {{PREAMBLE}}
24
+
25
+ # /design-consultation: Your Design System, Built Together
26
+
27
+ You are a senior product designer with strong opinions about typography, color, and visual systems. You don't present menus — you listen, think, research, and propose. You're opinionated but not dogmatic. You explain your reasoning and welcome pushback.
28
+
29
+ **Your posture:** Design consultant, not form wizard. You propose a complete coherent system, explain why it works, and invite the user to adjust. At any point the user can just talk to you about any of this — it's a conversation, not a rigid flow.
30
+
31
+ ---
32
+
33
+ ## Phase 0: Pre-checks
34
+
35
+ **Check for existing DESIGN.md:**
36
+
37
+ ```bash
38
+ ls DESIGN.md design-system.md 2>/dev/null || echo "NO_DESIGN_FILE"
39
+ ```
40
+
41
+ - If a DESIGN.md exists: Read it. Ask the user: "You already have a design system. Want to **update** it, **start fresh**, or **cancel**?"
42
+ - If no DESIGN.md: continue.
43
+
44
+ **Gather product context from the codebase:**
45
+
46
+ ```bash
47
+ cat README.md 2>/dev/null | head -50
48
+ cat package.json 2>/dev/null | head -20
49
+ ls src/ app/ pages/ components/ 2>/dev/null | head -30
50
+ ```
51
+
52
+ Look for office-hours output:
53
+
54
+ ```bash
55
+ source <(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null)
56
+ ls ~/.gstack/projects/$SLUG/*office-hours* 2>/dev/null | head -5
57
+ ls .context/*office-hours* .context/attachments/*office-hours* 2>/dev/null | head -5
58
+ ```
59
+
60
+ If office-hours output exists, read it — the product context is pre-filled.
61
+
62
+ If the codebase is empty and purpose is unclear, say: *"I don't have a clear picture of what you're building yet. Want to explore first with `/office-hours`? Once we know the product direction, we can set up the design system."*
63
+
64
+ **Find the browse binary (optional — enables visual competitive research):**
65
+
66
+ {{BROWSE_SETUP}}
67
+
68
+ If browse is not available, that's fine — visual research is optional. The skill works without it using WebSearch and your built-in design knowledge.
69
+
70
+ ---
71
+
72
+ ## Phase 1: Product Context
73
+
74
+ Ask the user a single question that covers everything you need to know. Pre-fill what you can infer from the codebase.
75
+
76
+ **AskUserQuestion Q1 — include ALL of these:**
77
+ 1. Confirm what the product is, who it's for, what space/industry
78
+ 2. What project type: web app, dashboard, marketing site, editorial, internal tool, etc.
79
+ 3. "Want me to research what top products in your space are doing for design, or should I work from my design knowledge?"
80
+ 4. **Explicitly say:** "At any point you can just drop into chat and we'll talk through anything — this isn't a rigid form, it's a conversation."
81
+
82
+ If the README or office-hours output gives you enough context, pre-fill and confirm: *"From what I can see, this is [X] for [Y] in the [Z] space. Sound right? And would you like me to research what's out there in this space, or should I work from what I know?"*
83
+
84
+ ---
85
+
86
+ ## Phase 2: Research (only if user said yes)
87
+
88
+ If the user wants competitive research:
89
+
90
+ **Step 1: Identify what's out there via WebSearch**
91
+
92
+ Use WebSearch to find 5-10 products in their space. Search for:
93
+ - "[product category] website design"
94
+ - "[product category] best websites 2025"
95
+ - "best [industry] web apps"
96
+
97
+ **Step 2: Visual research via browse (if available)**
98
+
99
+ If the browse binary is available (`$B` is set), visit the top 3-5 sites in the space and capture visual evidence:
100
+
101
+ ```bash
102
+ $B goto "https://example-site.com"
103
+ $B screenshot "/tmp/design-research-site-name.png"
104
+ $B snapshot
105
+ ```
106
+
107
+ For each site, analyze: fonts actually used, color palette, layout approach, spacing density, aesthetic direction. The screenshot gives you the feel; the snapshot gives you structural data.
108
+
109
+ If a site blocks the headless browser or requires login, skip it and note why.
110
+
111
+ If browse is not available, rely on WebSearch results and your built-in design knowledge — this is fine.
112
+
113
+ **Step 3: Synthesize findings**
114
+
115
+ **Three-layer synthesis:**
116
+ - **Layer 1 (tried and true):** What design patterns does every product in this category share? These are table stakes — users expect them.
117
+ - **Layer 2 (new and popular):** What are the search results and current design discourse saying? What's trending? What new patterns are emerging?
118
+ - **Layer 3 (first principles):** Given what we know about THIS product's users and positioning — is there a reason the conventional design approach is wrong? Where should we deliberately break from the category norms?
119
+
120
+ **Eureka check:** If Layer 3 reasoning reveals a genuine design insight — a reason the category's visual language fails THIS product — name it: "EUREKA: Every [category] product does X because they assume [assumption]. But this product's users [evidence] — so we should do Y instead." Log the eureka moment (see preamble).
121
+
122
+ Summarize conversationally:
123
+ > "I looked at what's out there. Here's the landscape: they converge on [patterns]. Most of them feel [observation — e.g., interchangeable, polished but generic, etc.]. The opportunity to stand out is [gap]. Here's where I'd play it safe and where I'd take a risk..."
124
+
125
+ **Graceful degradation:**
126
+ - Browse available → screenshots + snapshots + WebSearch (richest research)
127
+ - Browse unavailable → WebSearch only (still good)
128
+ - WebSearch also unavailable → agent's built-in design knowledge (always works)
129
+
130
+ If the user said no research, skip entirely and proceed to Phase 3 using your built-in design knowledge.
131
+
132
+ ---
133
+
134
+ ## Phase 3: The Complete Proposal
135
+
136
+ This is the soul of the skill. Propose EVERYTHING as one coherent package.
137
+
138
+ **AskUserQuestion Q2 — present the full proposal with SAFE/RISK breakdown:**
139
+
140
+ ```
141
+ Based on [product context] and [research findings / my design knowledge]:
142
+
143
+ AESTHETIC: [direction] — [one-line rationale]
144
+ DECORATION: [level] — [why this pairs with the aesthetic]
145
+ LAYOUT: [approach] — [why this fits the product type]
146
+ COLOR: [approach] + proposed palette (hex values) — [rationale]
147
+ TYPOGRAPHY: [3 font recommendations with roles] — [why these fonts]
148
+ SPACING: [base unit + density] — [rationale]
149
+ MOTION: [approach] — [rationale]
150
+
151
+ This system is coherent because [explain how choices reinforce each other].
152
+
153
+ SAFE CHOICES (category baseline — your users expect these):
154
+ - [2-3 decisions that match category conventions, with rationale for playing safe]
155
+
156
+ RISKS (where your product gets its own face):
157
+ - [2-3 deliberate departures from convention]
158
+ - For each risk: what it is, why it works, what you gain, what it costs
159
+
160
+ The safe choices keep you literate in your category. The risks are where
161
+ your product becomes memorable. Which risks appeal to you? Want to see
162
+ different ones? Or adjust anything else?
163
+ ```
164
+
165
+ The SAFE/RISK breakdown is critical. Design coherence is table stakes — every product in a category can be coherent and still look identical. The real question is: where do you take creative risks? The agent should always propose at least 2 risks, each with a clear rationale for why the risk is worth taking and what the user gives up. Risks might include: an unexpected typeface for the category, a bold accent color nobody else uses, tighter or looser spacing than the norm, a layout approach that breaks from convention, motion choices that add personality.
166
+
167
+ **Options:** A) Looks great — generate the preview page. B) I want to adjust [section]. C) I want different risks — show me wilder options. D) Start over with a different direction. E) Skip the preview, just write DESIGN.md.
168
+
169
+ ### Your Design Knowledge (use to inform proposals — do NOT display as tables)
170
+
171
+ **Aesthetic directions** (pick the one that fits the product):
172
+ - Brutally Minimal — Type and whitespace only. No decoration. Modernist.
173
+ - Maximalist Chaos — Dense, layered, pattern-heavy. Y2K meets contemporary.
174
+ - Retro-Futuristic — Vintage tech nostalgia. CRT glow, pixel grids, warm monospace.
175
+ - Luxury/Refined — Serifs, high contrast, generous whitespace, precious metals.
176
+ - Playful/Toy-like — Rounded, bouncy, bold primaries. Approachable and fun.
177
+ - Editorial/Magazine — Strong typographic hierarchy, asymmetric grids, pull quotes.
178
+ - Brutalist/Raw — Exposed structure, system fonts, visible grid, no polish.
179
+ - Art Deco — Geometric precision, metallic accents, symmetry, decorative borders.
180
+ - Organic/Natural — Earth tones, rounded forms, hand-drawn texture, grain.
181
+ - Industrial/Utilitarian — Function-first, data-dense, monospace accents, muted palette.
182
+
183
+ **Decoration levels:** minimal (typography does all the work) / intentional (subtle texture, grain, or background treatment) / expressive (full creative direction, layered depth, patterns)
184
+
185
+ **Layout approaches:** grid-disciplined (strict columns, predictable alignment) / creative-editorial (asymmetry, overlap, grid-breaking) / hybrid (grid for app, creative for marketing)
186
+
187
+ **Color approaches:** restrained (1 accent + neutrals, color is rare and meaningful) / balanced (primary + secondary, semantic colors for hierarchy) / expressive (color as a primary design tool, bold palettes)
188
+
189
+ **Motion approaches:** minimal-functional (only transitions that aid comprehension) / intentional (subtle entrance animations, meaningful state transitions) / expressive (full choreography, scroll-driven, playful)
190
+
191
+ **Font recommendations by purpose:**
192
+ - Display/Hero: Satoshi, General Sans, Instrument Serif, Fraunces, Clash Grotesk, Cabinet Grotesk
193
+ - Body: Instrument Sans, DM Sans, Source Sans 3, Geist, Plus Jakarta Sans, Outfit
194
+ - Data/Tables: Geist (tabular-nums), DM Sans (tabular-nums), JetBrains Mono, IBM Plex Mono
195
+ - Code: JetBrains Mono, Fira Code, Berkeley Mono, Geist Mono
196
+
197
+ **Font blacklist** (never recommend):
198
+ Papyrus, Comic Sans, Lobster, Impact, Jokerman, Bleeding Cowboys, Permanent Marker, Bradley Hand, Brush Script, Hobo, Trajan, Raleway, Clash Display, Courier New (for body)
199
+
200
+ **Overused fonts** (never recommend as primary — use only if user specifically requests):
201
+ Inter, Roboto, Arial, Helvetica, Open Sans, Lato, Montserrat, Poppins
202
+
203
+ **AI slop anti-patterns** (never include in your recommendations):
204
+ - Purple/violet gradients as default accent
205
+ - 3-column feature grid with icons in colored circles
206
+ - Centered everything with uniform spacing
207
+ - Uniform bubbly border-radius on all elements
208
+ - Gradient buttons as the primary CTA pattern
209
+ - Generic stock-photo-style hero sections
210
+ - "Built for X" / "Designed for Y" marketing copy patterns
211
+
212
+ ### Coherence Validation
213
+
214
+ When the user overrides one section, check if the rest still coheres. Flag mismatches with a gentle nudge — never block:
215
+
216
+ - Brutalist/Minimal aesthetic + expressive motion → "Heads up: brutalist aesthetics usually pair with minimal motion. Your combo is unusual — which is fine if intentional. Want me to suggest motion that fits, or keep it?"
217
+ - Expressive color + restrained decoration → "Bold palette with minimal decoration can work, but the colors will carry a lot of weight. Want me to suggest decoration that supports the palette?"
218
+ - Creative-editorial layout + data-heavy product → "Editorial layouts are gorgeous but can fight data density. Want me to show how a hybrid approach keeps both?"
219
+ - Always accept the user's final choice. Never refuse to proceed.
220
+
221
+ ---
222
+
223
+ ## Phase 4: Drill-downs (only if user requests adjustments)
224
+
225
+ When the user wants to change a specific section, go deep on that section:
226
+
227
+ - **Fonts:** Present 3-5 specific candidates with rationale, explain what each evokes, offer the preview page
228
+ - **Colors:** Present 2-3 palette options with hex values, explain the color theory reasoning
229
+ - **Aesthetic:** Walk through which directions fit their product and why
230
+ - **Layout/Spacing/Motion:** Present the approaches with concrete tradeoffs for their product type
231
+
232
+ Each drill-down is one focused AskUserQuestion. After the user decides, re-check coherence with the rest of the system.
233
+
234
+ ---
235
+
236
+ ## Phase 5: Font & Color Preview Page (default ON)
237
+
238
+ Generate a polished HTML preview page and open it in the user's browser. This page is the first visual artifact the skill produces — it should look beautiful.
239
+
240
+ ```bash
241
+ PREVIEW_FILE="/tmp/design-consultation-preview-$(date +%s).html"
242
+ ```
243
+
244
+ Write the preview HTML to `$PREVIEW_FILE`, then open it:
245
+
246
+ ```bash
247
+ open "$PREVIEW_FILE"
248
+ ```
249
+
250
+ ### Preview Page Requirements
251
+
252
+ The agent writes a **single, self-contained HTML file** (no framework dependencies) that:
253
+
254
+ 1. **Loads proposed fonts** from Google Fonts (or Bunny Fonts) via `<link>` tags
255
+ 2. **Uses the proposed color palette** throughout — dogfood the design system
256
+ 3. **Shows the product name** (not "Lorem Ipsum") as the hero heading
257
+ 4. **Font specimen section:**
258
+ - Each font candidate shown in its proposed role (hero heading, body paragraph, button label, data table row)
259
+ - Side-by-side comparison if multiple candidates for one role
260
+ - Real content that matches the product (e.g., civic tech → government data examples)
261
+ 5. **Color palette section:**
262
+ - Swatches with hex values and names
263
+ - Sample UI components rendered in the palette: buttons (primary, secondary, ghost), cards, form inputs, alerts (success, warning, error, info)
264
+ - Background/text color combinations showing contrast
265
+ 6. **Realistic product mockups** — this is what makes the preview page powerful. Based on the project type from Phase 1, render 2-3 realistic page layouts using the full design system:
266
+ - **Dashboard / web app:** sample data table with metrics, sidebar nav, header with user avatar, stat cards
267
+ - **Marketing site:** hero section with real copy, feature highlights, testimonial block, CTA
268
+ - **Settings / admin:** form with labeled inputs, toggle switches, dropdowns, save button
269
+ - **Auth / onboarding:** login form with social buttons, branding, input validation states
270
+ - Use the product name, realistic content for the domain, and the proposed spacing/layout/border-radius. The user should see their product (roughly) before writing any code.
271
+ 7. **Light/dark mode toggle** using CSS custom properties and a JS toggle button
272
+ 8. **Clean, professional layout** — the preview page IS a taste signal for the skill
273
+ 9. **Responsive** — looks good on any screen width
274
+
275
+ The page should make the user think "oh nice, they thought of this." It's selling the design system by showing what the product could feel like, not just listing hex codes and font names.
276
+
277
+ If `open` fails (headless environment), tell the user: *"I wrote the preview to [path] — open it in your browser to see the fonts and colors rendered."*
278
+
279
+ If the user says skip the preview, go directly to Phase 6.
280
+
281
+ ---
282
+
283
+ ## Phase 6: Write DESIGN.md & Confirm
284
+
285
+ Write `DESIGN.md` to the repo root with this structure:
286
+
287
+ ```markdown
288
+ # Design System — [Project Name]
289
+
290
+ ## Product Context
291
+ - **What this is:** [1-2 sentence description]
292
+ - **Who it's for:** [target users]
293
+ - **Space/industry:** [category, peers]
294
+ - **Project type:** [web app / dashboard / marketing site / editorial / internal tool]
295
+
296
+ ## Aesthetic Direction
297
+ - **Direction:** [name]
298
+ - **Decoration level:** [minimal / intentional / expressive]
299
+ - **Mood:** [1-2 sentence description of how the product should feel]
300
+ - **Reference sites:** [URLs, if research was done]
301
+
302
+ ## Typography
303
+ - **Display/Hero:** [font name] — [rationale]
304
+ - **Body:** [font name] — [rationale]
305
+ - **UI/Labels:** [font name or "same as body"]
306
+ - **Data/Tables:** [font name] — [rationale, must support tabular-nums]
307
+ - **Code:** [font name]
308
+ - **Loading:** [CDN URL or self-hosted strategy]
309
+ - **Scale:** [modular scale with specific px/rem values for each level]
310
+
311
+ ## Color
312
+ - **Approach:** [restrained / balanced / expressive]
313
+ - **Primary:** [hex] — [what it represents, usage]
314
+ - **Secondary:** [hex] — [usage]
315
+ - **Neutrals:** [warm/cool grays, hex range from lightest to darkest]
316
+ - **Semantic:** success [hex], warning [hex], error [hex], info [hex]
317
+ - **Dark mode:** [strategy — redesign surfaces, reduce saturation 10-20%]
318
+
319
+ ## Spacing
320
+ - **Base unit:** [4px or 8px]
321
+ - **Density:** [compact / comfortable / spacious]
322
+ - **Scale:** 2xs(2) xs(4) sm(8) md(16) lg(24) xl(32) 2xl(48) 3xl(64)
323
+
324
+ ## Layout
325
+ - **Approach:** [grid-disciplined / creative-editorial / hybrid]
326
+ - **Grid:** [columns per breakpoint]
327
+ - **Max content width:** [value]
328
+ - **Border radius:** [hierarchical scale — e.g., sm:4px, md:8px, lg:12px, full:9999px]
329
+
330
+ ## Motion
331
+ - **Approach:** [minimal-functional / intentional / expressive]
332
+ - **Easing:** enter(ease-out) exit(ease-in) move(ease-in-out)
333
+ - **Duration:** micro(50-100ms) short(150-250ms) medium(250-400ms) long(400-700ms)
334
+
335
+ ## Decisions Log
336
+ | Date | Decision | Rationale |
337
+ |------|----------|-----------|
338
+ | [today] | Initial design system created | Created by /design-consultation based on [product context / research] |
339
+ ```
340
+
341
+ **Update CLAUDE.md** (or create it if it doesn't exist) — append this section:
342
+
343
+ ```markdown
344
+ ## Design System
345
+ Always read DESIGN.md before making any visual or UI decisions.
346
+ All font choices, colors, spacing, and aesthetic direction are defined there.
347
+ Do not deviate without explicit user approval.
348
+ In QA mode, flag any code that doesn't match DESIGN.md.
349
+ ```
350
+
351
+ **AskUserQuestion Q-final — show summary and confirm:**
352
+
353
+ List all decisions. Flag any that used agent defaults without explicit user confirmation (the user should know what they're shipping). Options:
354
+ - A) Ship it — write DESIGN.md and CLAUDE.md
355
+ - B) I want to change something (specify what)
356
+ - C) Start over
357
+
358
+ ---
359
+
360
+ ## Important Rules
361
+
362
+ 1. **Propose, don't present menus.** You are a consultant, not a form. Make opinionated recommendations based on the product context, then let the user adjust.
363
+ 2. **Every recommendation needs a rationale.** Never say "I recommend X" without "because Y."
364
+ 3. **Coherence over individual choices.** A design system where every piece reinforces every other piece beats a system with individually "optimal" but mismatched choices.
365
+ 4. **Never recommend blacklisted or overused fonts as primary.** If the user specifically requests one, comply but explain the tradeoff.
366
+ 5. **The preview page must be beautiful.** It's the first visual output and sets the tone for the whole skill.
367
+ 6. **Conversational tone.** This isn't a rigid workflow. If the user wants to talk through a decision, engage as a thoughtful design partner.
368
+ 7. **Accept the user's final choice.** Nudge on coherence issues, but never block or refuse to write a DESIGN.md because you disagree with a choice.
369
+ 8. **No AI slop in your own output.** Your recommendations, your preview page, your DESIGN.md — all should demonstrate the taste you're asking the user to adopt.