claude-everything-workflow 0.2.13 → 0.2.15

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 (51) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codex-plugin/plugin.json +1 -1
  3. package/AGENTS.md +13 -23
  4. package/commands/pr.md +1 -1
  5. package/docs/plugins.md +1 -1
  6. package/evals/routing-scenarios.json +19 -19
  7. package/harness/manifest.json +28 -62
  8. package/package.json +1 -1
  9. package/rules/common/performance.md +3 -1
  10. package/rules/common/testing.md +2 -8
  11. package/scripts/install-antigravity.js +242 -18
  12. package/scripts/retired-skill-files.json +25 -0
  13. package/scripts/upstream-capability-map.json +16 -13
  14. package/scripts/verify/install-rules.test.js +137 -3
  15. package/scripts/verify/skill-invocation.test.js +18 -2
  16. package/scripts/verify/skill-manifest-checks.js +1 -1
  17. package/scripts/verify/skill-manifest-checks.test.js +53 -0
  18. package/scripts/verify/workflow-checks.js +87 -8
  19. package/skills/README.md +2 -6
  20. package/skills/code-review/SKILL.md +1 -1
  21. package/skills/codebase-design/SKILL.md +7 -1
  22. package/skills/feature-acceptance/references/e2e-testing.md +8 -2
  23. package/skills/grilling/SKILL.md +1 -1
  24. package/skills/handoff/SKILL.md +2 -2
  25. package/skills/implement/SKILL.md +3 -2
  26. package/skills/resolving-merge-conflicts/SKILL.md +1 -1
  27. package/skills/spec-gate/SKILL.md +1 -1
  28. package/skills/systematic-debugging/SKILL.md +1 -1
  29. package/skills/systematic-debugging/references/diagnosing-bugs.upstream.md +1 -1
  30. package/skills/test-driven-development/SKILL.md +1 -1
  31. package/skills/to-tickets/SKILL.md +1 -1
  32. package/skills/triage/SKILL.md +2 -2
  33. package/skills/using-superpowers/SKILL.md +5 -5
  34. package/skills/using-superpowers/references/process-outcomes.md +1 -1
  35. package/skills/domain-modeling/SKILL.md +0 -103
  36. package/skills/improve-codebase-architecture/SKILL.md +0 -47
  37. package/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
  38. package/skills/prototype/SKILL.md +0 -50
  39. package/skills/prototype/references/logic.md +0 -28
  40. package/skills/prototype/references/ui.md +0 -30
  41. package/skills/visual-companion/SKILL.md +0 -62
  42. package/skills/visual-companion/agents/openai.yaml +0 -4
  43. package/skills/visual-companion/references/guide.md +0 -298
  44. package/skills/visual-companion/scripts/frame-template.html +0 -243
  45. package/skills/visual-companion/scripts/helper.js +0 -167
  46. package/skills/visual-companion/scripts/pages.cjs +0 -28
  47. package/skills/visual-companion/scripts/server-utils.cjs +0 -82
  48. package/skills/visual-companion/scripts/server.cjs +0 -583
  49. package/skills/visual-companion/scripts/start-server.sh +0 -223
  50. package/skills/visual-companion/scripts/stop-server.sh +0 -120
  51. package/skills/visual-companion/scripts/websocket.cjs +0 -86
@@ -1,28 +0,0 @@
1
- # Logic Prototype
2
-
3
- Build a tiny interactive terminal app for business logic, state transitions or data-shape questions.
4
-
5
- ## Shape
6
-
7
- 1. Isolate the logic behind a small pure interface:
8
- - reducer `(state, action) -> state`;
9
- - explicit state machine;
10
- - pure transformations over plain data;
11
- - stateful module only when ongoing internal state is the question.
12
- 2. Keep terminal I/O in a thin shell. The logic module must not print, prompt or depend on terminal
13
- escape codes.
14
- 3. Render one stable frame after every action:
15
- - full current state;
16
- - legal actions and one-key/one-line controls;
17
- - quit action.
18
- 4. Keep the whole frame visible on one screen.
19
- 5. Add one run command using the existing package manager or task runner.
20
-
21
- ## Boundaries
22
-
23
- - Do not add tests to the prototype.
24
- - Do not use the production database unless persistence is the explicit question; then use a clearly
25
- disposable scratch store.
26
- - Do not generalize beyond the one stated question.
27
- - The TUI shell never ships. A validated pure model may inform production code, which must be rewritten
28
- through the normal implementation workflow.
@@ -1,30 +0,0 @@
1
- # UI Prototype
2
-
3
- Build a runnable in-project UI prototype. Use `skills/visual-companion/SKILL.md` only when its secured
4
- browser companion materially improves review; its consent and authentication contract remains binding.
5
-
6
- ## Variants
7
-
8
- - Default to three and cap at five.
9
- - Make variants structurally different: layout, information hierarchy and primary affordance, not
10
- only color or copy.
11
- - Prefer embedding variants in an existing page with real read-only data, params, authentication shell
12
- and realistic density. Swap only the rendered subtree.
13
- - Create a visibly throwaway route only when no existing surface can host the question.
14
- - Select variants with a `?variant=` search parameter so each view is shareable and reload-stable.
15
- - Use the project's existing component and styling system.
16
-
17
- ## Interaction
18
-
19
- Provide a clearly non-production switcher that:
20
-
21
- - identifies the current variant;
22
- - moves forward/back with controls and arrow keys;
23
- - does not intercept keys inside editable elements;
24
- - is gated out of production builds.
25
-
26
- Expose one existing project run command and the exact URLs for all variants. Do not start a local
27
- server or open the browser without the active task's authorization/consent.
28
-
29
- After a choice, record which variant won and why. Rewrite the winner under normal production gates;
30
- remove the switcher and losing variants from the production path.
@@ -1,62 +0,0 @@
1
- ---
2
- name: visual-companion
3
- description: Use only with consent when a local visual companion materially improves a design decision.
4
- ---
5
-
6
- # Visual Companion
7
-
8
- Use the browser as a visual aid, not as a workflow mode or a second requirements engine.
9
-
10
- ## Boundary
11
-
12
- Use this Skill for UI mockups, architecture diagrams, visual hierarchy, spatial relationships, and side-by-side visual comparisons. Keep requirements, scope, technical trade-offs, text options, and discoverable facts in the terminal.
13
-
14
- A task being visual, complex, or design-related is not sufficient. Use the companion only when seeing the content materially improves understanding over concise text.
15
-
16
- ## Consent Gate
17
-
18
- Obtain explicit user consent before starting the local server or opening a browser URL. The consent request must state what will be shown and that a local authenticated URL will open.
19
-
20
- Without user consent, continue with text or static in-conversation visuals. Do not treat prior use in another task as current consent.
21
-
22
- ## Ownership
23
-
24
- - `grilling owns the decision loop` when browser feedback selects a consequential user-owned option.
25
- - Spec Gate may show an already resolved design, support artifact review, or render a diagram with no new decision.
26
- - Visual Companion does not own continuation, routing, requirements interviews, or approval gates.
27
- - Return browser events and terminal feedback to the currently routed Skill.
28
-
29
- ## Workflow
30
-
31
- 1. Decide whether the next item is materially clearer when seen.
32
- 2. Obtain user consent if the server is not already approved for this task.
33
- 3. Read `references/guide.md` completely before starting or operating the companion.
34
- 4. Start the server with `scripts/start-server.sh`, preserving the returned complete URL and state paths.
35
- 5. Write one fresh visual screen, describe it briefly in the terminal, and wait for user feedback.
36
- 6. Merge terminal feedback with authenticated browser events.
37
- 7. Return the result to grilling, Spec Gate, or the current caller.
38
- 8. Stop or leave a waiting screen when visual work ends.
39
-
40
- ## Safety Invariants
41
-
42
- - Always share the complete URL including `?key=`; never expose a bare host and port.
43
- - Keep session key, HTTP/WebSocket authorization, restrictive response headers, owner-only state files, and same-origin checks enabled.
44
- - Preserve the default four-hour idle timeout and same-port restart behavior.
45
- - Do not bind a non-loopback host unless the user needs remote access and understands the exposure.
46
- - Treat `.superpowers/brainstorm/` as local runtime state; do not stage or commit it.
47
- - Fall back to the terminal when the server or browser is unavailable.
48
-
49
- ## Outputs
50
-
51
- Return only:
52
-
53
- ```text
54
- Visual result:
55
- - screen shown
56
- - terminal feedback
57
- - relevant browser events
58
- - confirmed visual choice, if any
59
- - unresolved decision owner
60
- ```
61
-
62
- Do not infer approval from a click without reconciling it with the user's terminal response.
@@ -1,4 +0,0 @@
1
- interface:
2
- display_name: "Visual Companion"
3
- short_description: "在本地安全浏览器中展示视觉方案与图示"
4
- default_prompt: "使用 $visual-companion 展示适合视觉比较的方案,并在启动前征得同意。"
@@ -1,298 +0,0 @@
1
- # Visual Companion Guide
2
-
3
- Browser-based Visual Companion for showing mockups, diagrams, and options after explicit user consent.
4
-
5
- ## When to Use
6
-
7
- Decide per-question, not per-session. The test: **would the user understand this better by seeing it than reading it?**
8
-
9
- **Use the browser** when the content itself is visual:
10
-
11
- - **UI mockups** — wireframes, layouts, navigation structures, component designs
12
- - **Architecture diagrams** — system components, data flow, relationship maps
13
- - **Side-by-side visual comparisons** — comparing two layouts, two color schemes, two design directions
14
- - **Design polish** — when the question is about look and feel, spacing, visual hierarchy
15
- - **Spatial relationships** — state machines, flowcharts, entity relationships rendered as diagrams
16
-
17
- **Use the terminal** when the content is text or tabular:
18
-
19
- - **Requirements and scope questions** — "what does X mean?", "which features are in scope?"
20
- - **Conceptual A/B/C choices** — picking between approaches described in words
21
- - **Tradeoff lists** — pros/cons, comparison tables
22
- - **Technical decisions** — API design, data modeling, architectural approach selection
23
- - **Clarifying questions** — anything where the answer is words, not a visual preference
24
-
25
- A question *about* a UI topic is not automatically a visual question. "What kind of wizard do you want?" is conceptual — use the terminal. "Which of these wizard layouts feels right?" is visual — use the browser.
26
-
27
- ## How It Works
28
-
29
- The server watches a directory for HTML files and serves the newest one to the browser. You write HTML content to `screen_dir`, the user sees it in their browser and can click to select options. Selections are recorded to `state_dir/events` that you read on your next turn.
30
-
31
- **Content fragments vs full documents:** If your HTML file starts with `<!DOCTYPE` or `<html`, the server serves it as-is (just injects the helper script). Otherwise, the server automatically wraps your content in the frame template — adding the header, CSS theme, connection status, and all interactive infrastructure. **Write content fragments by default.** Only write full documents when you need complete control over the page.
32
-
33
- ## Starting a Session
34
-
35
- ```bash
36
- # Start AFTER the user approves the companion. --open auto-opens their browser on
37
- # the first screen; --project-dir persists mockups and enables same-port restart.
38
- scripts/start-server.sh --project-dir /path/to/project --open
39
-
40
- # Returns: {"type":"server-started","port":52341,
41
- # "url":"http://localhost:52341/?key=ab12…",
42
- # "screen_dir":"/path/to/project/.superpowers/brainstorm/12345-1706000000/content",
43
- # "state_dir":"/path/to/project/.superpowers/brainstorm/12345-1706000000/state"}
44
- ```
45
-
46
- Save `screen_dir` and `state_dir` from the response. With `--open`, the browser opens itself when you push the first screen — you don't need to ask the user to open it, but still share the URL as a fallback (headless/remote setups won't auto-open).
47
-
48
- **The URL contains a session key (`?key=…`).** The server rejects any request
49
- without it, so always give the user the **complete** URL from the `url` field —
50
- never strip the query string, and never hand out a bare `http://host:port`. The
51
- key gates HTTP and WebSocket access so a stray browser tab or another machine on
52
- the network can't read the screens or inject events. After the first load the
53
- browser remembers the key via a cookie, so reloads and `/files/*` assets work
54
- without repeating it.
55
-
56
- **Finding connection info:** The server writes its startup JSON to `$STATE_DIR/server-info`. If you launched the server in the background and didn't capture stdout, read that file to get the URL and port. When using `--project-dir`, check `<project>/.superpowers/brainstorm/` for the session directory.
57
-
58
- **Note:** Pass the project root as `--project-dir` so mockups persist in `.superpowers/brainstorm/` and survive server restarts. Without it, files go to `/tmp` and get cleaned up. Remind the user to add `.superpowers/` to `.gitignore` if it's not already there.
59
-
60
- **Launching the server by platform:**
61
-
62
- **Claude Code:**
63
- ```bash
64
- # Default mode works — the script backgrounds the server itself.
65
- scripts/start-server.sh --project-dir /path/to/project --open
66
- ```
67
-
68
- On Windows, the script auto-detects and switches to foreground mode (which blocks the tool call). Use `run_in_background: true` on the Bash tool call so the server survives across conversation turns, then read `$STATE_DIR/server-info` on the next turn to get the URL and port.
69
-
70
- **Codex:**
71
- ```bash
72
- # Codex reaps background processes. The script auto-detects CODEX_CI and
73
- # switches to foreground mode. Run it normally — no extra flags needed.
74
- scripts/start-server.sh --project-dir /path/to/project --open
75
- ```
76
-
77
- **Gemini CLI:**
78
- ```bash
79
- # Use --foreground and set is_background: true on your shell tool call
80
- # so the process survives across turns
81
- scripts/start-server.sh --project-dir /path/to/project --open --foreground
82
- ```
83
-
84
- **Copilot CLI:**
85
- ```bash
86
- # Use --foreground and start the server via the bash tool with mode: "async"
87
- # so the process survives across turns. Capture the returned shellId for
88
- # read_bash / stop_bash if you need to interact with it later.
89
- scripts/start-server.sh --project-dir /path/to/project --open --foreground
90
- ```
91
-
92
- **Other environments:** The server must keep running in the background across conversation turns. If your environment reaps detached processes, use `--foreground` and launch the command with your platform's background execution mechanism.
93
-
94
- If the URL is unreachable from your browser (common in remote/containerized setups), bind a non-loopback host:
95
-
96
- ```bash
97
- scripts/start-server.sh \
98
- --project-dir /path/to/project \
99
- --host 0.0.0.0 \
100
- --url-host localhost
101
- ```
102
-
103
- Use `--url-host` to control what hostname is printed in the returned URL JSON.
104
-
105
- ## The Loop
106
-
107
- 1. **Check server is alive**, then **write HTML** to a new file in `screen_dir`:
108
- - **Required: confirm the server is alive before referring to the URL or pushing a screen.** Check that `$STATE_DIR/server-info` exists and `$STATE_DIR/server-stopped` does not. If it has shut down, restart it with `start-server.sh` using the **same `--project-dir`** — it reuses the same port, so the user's open tab reconnects on its own (it shows a "paused" overlay while the server is down) and you don't need to send a new URL. The server auto-exits after 4 hours idle (configurable with `--idle-timeout-minutes`).
109
- - Use semantic filenames: `platform.html`, `visual-style.html`, `layout.html`
110
- - **Never reuse filenames** — each screen gets a fresh file
111
- - Use your file-creation tool — **never use cat/heredoc** (dumps noise into terminal)
112
- - Server automatically serves the newest file
113
-
114
- 2. **Tell user what to expect and end your turn:**
115
- - Remind them of the URL (every step, not just first)
116
- - Give a brief text summary of what's on screen (e.g., "Showing 3 layout options for the homepage")
117
- - Ask them to respond in the terminal: "Take a look and let me know what you think. Click to select an option if you'd like."
118
-
119
- 3. **On your next turn** — after the user responds in the terminal:
120
- - Read `$STATE_DIR/events` if it exists — this contains the user's browser interactions (clicks, selections) as JSON lines
121
- - Merge with the user's terminal text to get the full picture
122
- - The terminal message is the primary feedback; `state_dir/events` provides structured interaction data
123
-
124
- 4. **Iterate or advance** — if feedback changes current screen, write a new file (e.g., `layout-v2.html`). Only move to the next question when the current step is validated.
125
-
126
- 5. **Unload when returning to terminal** — when the next step doesn't need the browser (e.g., a clarifying question, a tradeoff discussion), push a waiting screen to clear the stale content:
127
-
128
- ```html
129
- <!-- filename: waiting.html (or waiting-2.html, etc.) -->
130
- <div style="display:flex;align-items:center;justify-content:center;min-height:60vh">
131
- <p class="subtitle">Continuing in terminal...</p>
132
- </div>
133
- ```
134
-
135
- This prevents the user from staring at a resolved choice while the conversation has moved on. When the next visual question comes up, push a new content file as usual.
136
-
137
- 6. Repeat until done.
138
-
139
- ## Writing Content Fragments
140
-
141
- Write just the content that goes inside the page. The server wraps it in the frame template automatically (header, theme CSS, connection status, and all interactive infrastructure).
142
-
143
- **Minimal example:**
144
-
145
- ```html
146
- <h2>Which layout works better?</h2>
147
- <p class="subtitle">Consider readability and visual hierarchy</p>
148
-
149
- <div class="options">
150
- <div class="option" data-choice="a" onclick="toggleSelect(this)">
151
- <div class="letter">A</div>
152
- <div class="content">
153
- <h3>Single Column</h3>
154
- <p>Clean, focused reading experience</p>
155
- </div>
156
- </div>
157
- <div class="option" data-choice="b" onclick="toggleSelect(this)">
158
- <div class="letter">B</div>
159
- <div class="content">
160
- <h3>Two Column</h3>
161
- <p>Sidebar navigation with main content</p>
162
- </div>
163
- </div>
164
- </div>
165
- ```
166
-
167
- That's it. No `<html>`, no CSS, no `<script>` tags needed. The server provides all of that.
168
-
169
- ## CSS Classes Available
170
-
171
- The frame template provides these CSS classes for your content:
172
-
173
- ### Options (A/B/C choices)
174
-
175
- ```html
176
- <div class="options">
177
- <div class="option" data-choice="a" onclick="toggleSelect(this)">
178
- <div class="letter">A</div>
179
- <div class="content">
180
- <h3>Title</h3>
181
- <p>Description</p>
182
- </div>
183
- </div>
184
- </div>
185
- ```
186
-
187
- **Multi-select:** Add `data-multiselect` to the container to let users select multiple options. Each click toggles the item's selected styling.
188
-
189
- ```html
190
- <div class="options" data-multiselect>
191
- <!-- same option markup — users can select/deselect multiple -->
192
- </div>
193
- ```
194
-
195
- ### Cards (visual designs)
196
-
197
- ```html
198
- <div class="cards">
199
- <div class="card" data-choice="design1" onclick="toggleSelect(this)">
200
- <div class="card-image"><!-- mockup content --></div>
201
- <div class="card-body">
202
- <h3>Name</h3>
203
- <p>Description</p>
204
- </div>
205
- </div>
206
- </div>
207
- ```
208
-
209
- ### Mockup container
210
-
211
- ```html
212
- <div class="mockup">
213
- <div class="mockup-header">Preview: Dashboard Layout</div>
214
- <div class="mockup-body"><!-- your mockup HTML --></div>
215
- </div>
216
- ```
217
-
218
- ### Split view (side-by-side)
219
-
220
- ```html
221
- <div class="split">
222
- <div class="mockup"><!-- left --></div>
223
- <div class="mockup"><!-- right --></div>
224
- </div>
225
- ```
226
-
227
- ### Pros/Cons
228
-
229
- ```html
230
- <div class="pros-cons">
231
- <div class="pros"><h4>Pros</h4><ul><li>Benefit</li></ul></div>
232
- <div class="cons"><h4>Cons</h4><ul><li>Drawback</li></ul></div>
233
- </div>
234
- ```
235
-
236
- ### Mock elements (wireframe building blocks)
237
-
238
- ```html
239
- <div class="mock-nav">Logo | Home | About | Contact</div>
240
- <div style="display: flex;">
241
- <div class="mock-sidebar">Navigation</div>
242
- <div class="mock-content">Main content area</div>
243
- </div>
244
- <button class="mock-button">Action Button</button>
245
- <input class="mock-input" placeholder="Input field">
246
- <div class="placeholder">Placeholder area</div>
247
- ```
248
-
249
- ### Typography and sections
250
-
251
- - `h2` — page title
252
- - `h3` — section heading
253
- - `.subtitle` — secondary text below title
254
- - `.section` — content block with bottom margin
255
- - `.label` — small uppercase label text
256
-
257
- ## Browser Events Format
258
-
259
- When the user clicks options in the browser, their interactions are recorded to `$STATE_DIR/events` (one JSON object per line). The file is cleared automatically when you push a new screen.
260
-
261
- ```jsonl
262
- {"type":"click","choice":"a","text":"Option A - Simple Layout","timestamp":1706000101}
263
- {"type":"click","choice":"c","text":"Option C - Complex Grid","timestamp":1706000108}
264
- {"type":"click","choice":"b","text":"Option B - Hybrid","timestamp":1706000115}
265
- ```
266
-
267
- The full event stream shows the user's exploration path — they may click multiple options before settling. The last `choice` event is typically the final selection, but the pattern of clicks can reveal hesitation or preferences worth asking about.
268
-
269
- If `$STATE_DIR/events` doesn't exist, the user didn't interact with the browser — use only their terminal text.
270
-
271
- ## Design Tips
272
-
273
- - **Scale fidelity to the question** — wireframes for layout, polish for polish questions
274
- - **Explain the question on each page** — "Which layout feels more professional?" not just "Pick one"
275
- - **Iterate before advancing** — if feedback changes current screen, write a new version
276
- - **2-4 options max** per screen
277
- - **Use real content when it matters** — for a photography portfolio, use actual images (Unsplash). Placeholder content obscures design issues.
278
- - **Keep mockups simple** — focus on layout and structure, not pixel-perfect design
279
-
280
- ## File Naming
281
-
282
- - Use semantic names: `platform.html`, `visual-style.html`, `layout.html`
283
- - Never reuse filenames — each screen must be a new file
284
- - For iterations: append version suffix like `layout-v2.html`, `layout-v3.html`
285
- - Server serves newest file by modification time
286
-
287
- ## Cleaning Up
288
-
289
- ```bash
290
- scripts/stop-server.sh $SESSION_DIR
291
- ```
292
-
293
- If the session used `--project-dir`, mockup files persist in `.superpowers/brainstorm/` for later reference. Only `/tmp` sessions get deleted on stop.
294
-
295
- ## Reference
296
-
297
- - Frame template (CSS reference): `scripts/frame-template.html`
298
- - Helper script (client-side): `scripts/helper.js`
@@ -1,243 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>Superpowers Visual Companion</title>
6
- <style>
7
- /*
8
- * VISUAL COMPANION FRAME TEMPLATE
9
- *
10
- * This template provides a consistent frame with:
11
- * - OS-aware light/dark theming
12
- * - Header branding and connection status
13
- * - Scrollable main content area
14
- * - CSS helpers for common UI patterns
15
- *
16
- * Content is injected via placeholder comment in #frame-content.
17
- */
18
-
19
- * { box-sizing: border-box; margin: 0; padding: 0; }
20
- html, body { height: 100%; overflow: hidden; }
21
-
22
- /* ===== THEME VARIABLES ===== */
23
- :root {
24
- --bg-primary: #f5f5f7;
25
- --bg-secondary: #ffffff;
26
- --bg-tertiary: #e5e5e7;
27
- --border: #d1d1d6;
28
- --text-primary: #1d1d1f;
29
- --text-secondary: #86868b;
30
- --text-tertiary: #aeaeb2;
31
- --accent: #0071e3;
32
- --accent-hover: #0077ed;
33
- --success: #34c759;
34
- --warning: #ff9f0a;
35
- --error: #ff3b30;
36
- --selected-bg: #e8f4fd;
37
- --selected-border: #0071e3;
38
- }
39
-
40
- @media (prefers-color-scheme: dark) {
41
- :root {
42
- --bg-primary: #1d1d1f;
43
- --bg-secondary: #2d2d2f;
44
- --bg-tertiary: #3d3d3f;
45
- --border: #424245;
46
- --text-primary: #f5f5f7;
47
- --text-secondary: #86868b;
48
- --text-tertiary: #636366;
49
- --accent: #0a84ff;
50
- --accent-hover: #409cff;
51
- --selected-bg: rgba(10, 132, 255, 0.15);
52
- --selected-border: #0a84ff;
53
- }
54
- }
55
-
56
- body {
57
- font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
58
- background: var(--bg-primary);
59
- color: var(--text-primary);
60
- display: flex;
61
- flex-direction: column;
62
- line-height: 1.5;
63
- }
64
-
65
- /* ===== FRAME STRUCTURE ===== */
66
- .brand {
67
- display: flex; align-items: center; min-width: 0; overflow: hidden;
68
- color: var(--text-secondary); line-height: 1;
69
- }
70
- .brand a {
71
- color: inherit; text-decoration: none; display: flex; align-items: center;
72
- gap: 0.5rem; min-width: 0; max-width: 100%; line-height: 1;
73
- }
74
- .brand-copy {
75
- display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis;
76
- white-space: nowrap; line-height: 1; transform: translateY(-1px);
77
- }
78
- .brand-logo { display: block; height: 1em; width: auto; max-width: 180px; flex-shrink: 0; filter: invert(1); }
79
- @media (prefers-color-scheme: dark) {
80
- .brand-logo { filter: none; }
81
- }
82
- .status {
83
- font-size: 0.7rem; color: var(--status-color, var(--success)); display: flex;
84
- align-items: center; gap: 0.4rem; justify-self: end; white-space: nowrap; line-height: 1;
85
- }
86
- .status::before {
87
- content: ''; width: 6px; height: 6px;
88
- background: var(--status-color, var(--success)); border-radius: 50%;
89
- }
90
-
91
- .main { flex: 1; overflow-y: auto; }
92
- #frame-content { padding: 2rem; min-height: 100%; }
93
-
94
- .header {
95
- background: var(--bg-secondary);
96
- border-bottom: 1px solid var(--border);
97
- padding: 0.5rem 1.5rem;
98
- flex-shrink: 0;
99
- display: grid;
100
- grid-template-columns: minmax(0, 1fr) auto;
101
- align-items: center;
102
- gap: 1rem;
103
- min-height: 42px;
104
- }
105
- .header .brand { justify-self: start; width: 100%; font-size: 0.75rem; line-height: 1; }
106
- .header .status { grid-column: 2; line-height: 1; }
107
- .header span {
108
- font-size: 0.75rem;
109
- color: var(--text-secondary);
110
- }
111
- .header .selected-text {
112
- color: var(--accent);
113
- font-weight: 500;
114
- }
115
-
116
- /* ===== TYPOGRAPHY ===== */
117
- h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
118
- h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
119
- .subtitle { color: var(--text-secondary); margin-bottom: 1.5rem; }
120
- .section { margin-bottom: 2rem; }
121
- .label {
122
- font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase;
123
- letter-spacing: 0.05em; margin-bottom: 0.5rem;
124
- }
125
-
126
- /* ===== OPTIONS (for A/B/C choices) ===== */
127
- .options { display: flex; flex-direction: column; gap: 0.75rem; }
128
- .option {
129
- background: var(--bg-secondary);
130
- border: 2px solid var(--border);
131
- border-radius: 12px;
132
- padding: 1rem 1.25rem;
133
- cursor: pointer;
134
- transition: all 0.15s ease;
135
- display: flex;
136
- align-items: flex-start;
137
- gap: 1rem;
138
- }
139
- .option:hover { border-color: var(--accent); }
140
- .option.selected { background: var(--selected-bg); border-color: var(--selected-border); }
141
- .option .letter {
142
- background: var(--bg-tertiary);
143
- color: var(--text-secondary);
144
- width: 1.75rem; height: 1.75rem;
145
- border-radius: 6px;
146
- display: flex; align-items: center; justify-content: center;
147
- font-weight: 600; font-size: 0.85rem; flex-shrink: 0;
148
- }
149
- .option.selected .letter { background: var(--accent); color: white; }
150
- .option .content { flex: 1; }
151
- .option .content h3 { font-size: 0.95rem; margin-bottom: 0.15rem; }
152
- .option .content p { color: var(--text-secondary); font-size: 0.85rem; margin: 0; }
153
-
154
- /* ===== CARDS (for showing designs/mockups) ===== */
155
- .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
156
- .card {
157
- background: var(--bg-secondary);
158
- border: 1px solid var(--border);
159
- border-radius: 12px;
160
- overflow: hidden;
161
- cursor: pointer;
162
- transition: all 0.15s ease;
163
- }
164
- .card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
165
- .card.selected { border-color: var(--selected-border); border-width: 2px; }
166
- .card-image {
167
- background: var(--bg-tertiary); aspect-ratio: 16/10;
168
- display: flex; align-items: center; justify-content: center;
169
- }
170
- .card-body { padding: 1rem; }
171
- .card-body h3 { margin-bottom: 0.25rem; }
172
- .card-body p { color: var(--text-secondary); font-size: 0.85rem; }
173
-
174
- /* ===== MOCKUP CONTAINER ===== */
175
- .mockup {
176
- background: var(--bg-secondary);
177
- border: 1px solid var(--border);
178
- border-radius: 12px;
179
- overflow: hidden;
180
- margin-bottom: 1.5rem;
181
- }
182
- .mockup-header {
183
- background: var(--bg-tertiary);
184
- padding: 0.5rem 1rem;
185
- font-size: 0.75rem;
186
- color: var(--text-secondary);
187
- border-bottom: 1px solid var(--border);
188
- }
189
- .mockup-body { padding: 1.5rem; }
190
-
191
- /* ===== SPLIT VIEW (side-by-side comparison) ===== */
192
- .split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
193
- @media (max-width: 700px) { .split { grid-template-columns: 1fr; } }
194
-
195
- /* ===== PROS/CONS ===== */
196
- .pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
197
- .pros, .cons { background: var(--bg-secondary); border-radius: 8px; padding: 1rem; }
198
- .pros h4 { color: var(--success); font-size: 0.85rem; margin-bottom: 0.5rem; }
199
- .cons h4 { color: var(--error); font-size: 0.85rem; margin-bottom: 0.5rem; }
200
- .pros ul, .cons ul { margin-left: 1.25rem; font-size: 0.85rem; color: var(--text-secondary); }
201
- .pros li, .cons li { margin-bottom: 0.25rem; }
202
-
203
- /* ===== PLACEHOLDER (for mockup areas) ===== */
204
- .placeholder {
205
- background: var(--bg-tertiary);
206
- border: 2px dashed var(--border);
207
- border-radius: 8px;
208
- padding: 2rem;
209
- text-align: center;
210
- color: var(--text-tertiary);
211
- }
212
-
213
- /* ===== INLINE MOCKUP ELEMENTS ===== */
214
- .mock-nav {
215
- background: var(--accent); color: white; padding: 0.75rem 1rem;
216
- display: flex; gap: 1.5rem; font-size: 0.9rem;
217
- }
218
- .mock-sidebar { background: var(--bg-tertiary); padding: 1rem; min-width: 180px; }
219
- .mock-content { padding: 1.5rem; flex: 1; }
220
- .mock-button {
221
- background: var(--accent); color: white; border: none;
222
- padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.85rem;
223
- }
224
- .mock-input {
225
- background: var(--bg-primary); border: 1px solid var(--border);
226
- border-radius: 6px; padding: 0.5rem; width: 100%;
227
- }
228
- </style>
229
- </head>
230
- <body>
231
- <div class="header">
232
- <!-- BRANDING -->
233
- <div class="status">Connecting…</div>
234
- </div>
235
-
236
- <div class="main">
237
- <div id="frame-content">
238
- <!-- CONTENT -->
239
- </div>
240
- </div>
241
-
242
- </body>
243
- </html>