@cyber-dash-tech/revela 0.1.10 → 0.1.11

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 (2) hide show
  1. package/package.json +1 -1
  2. package/skill/SKILL.md +34 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyber-dash-tech/revela",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "OpenCode plugin that turns AI into an HTML slide deck generator",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
package/skill/SKILL.md CHANGED
@@ -298,7 +298,18 @@ Then ask:
298
298
 
299
299
  ### Phase 5 — Generate
300
300
 
301
- Once you have enough information, generate the complete HTML file in one shot.
301
+ **BEFORE writing any HTML, you MUST complete these steps in order:**
302
+
303
+ 1. Look at the layout and component names from your Phase 4 plan table.
304
+ 2. Call `revela-designs` tool with `action: "read"` and `layout` set to ALL layout names
305
+ you plan to use (comma-separated, e.g. `layout: "cover,two-col,stats,card-grid"`).
306
+ 3. Call `revela-designs` tool with `action: "read"` and `component` set to ALL component
307
+ names you plan to use (comma-separated, e.g. `component: "card,stat-card,evidence-list"`).
308
+ 4. Generate HTML that **exactly matches** the fetched examples — copy the HTML structure verbatim.
309
+
310
+ **NEVER skip steps 2–3. NEVER generate HTML from memory or prior knowledge of the design.**
311
+
312
+ Once the fetch is complete, generate the complete HTML file in one shot.
302
313
 
303
314
  - Output **only** the raw HTML — no markdown fences, no explanation before or after
304
315
  - Create a `slides/` directory in the current working directory if it doesn't already exist
@@ -344,34 +355,36 @@ You MUST use ONLY the layouts and components listed in the Layout Index and
344
355
  Component Index injected into this prompt.
345
356
 
346
357
  **Layouts:** Every `<section class="slide">` must use exactly one layout class
347
- from the Layout Index. Do NOT invent custom grid or flex structures.
358
+ from the Layout Index. **NEVER invent a layout class. NEVER create custom grid
359
+ or flex structures outside of the defined layouts.**
348
360
 
349
361
  **Components:** Every content block must use a component class from the
350
- Component Index. Do NOT create novel CSS classes for content elements.
362
+ Component Index. **NEVER create a CSS class that is not in the Component Index.
363
+ NEVER invent component names.**
351
364
 
352
365
  **`<style>` block — no new class rules.** The design already provides all
353
- necessary CSS (foundation, layouts, components). Your `<style>` block should
354
- contain only CSS rules copied verbatim from the design's sections. Never define
355
- a CSS class rule (`.my-custom-thing { ... }`) that is not in the design.
366
+ necessary CSS (foundation, layouts, components). **ALWAYS copy CSS rules
367
+ verbatim from the design's sections. NEVER define a new CSS class rule**
368
+ (`.my-custom-thing { ... }`) that is not in the design.
356
369
 
357
- **Inline `style=""` — minor adjustments only.** Inline styles are permitted
358
- for fine-tuning spacing and sizing (`margin`, `padding`, `gap`, `font-size`,
359
- `max-width`, `min-height`, `width`, `height`). They must NOT be used to
360
- define new visual effects — no custom `background-image`, `box-shadow`,
361
- `border-radius`, `color`, or layout structures via inline style.
370
+ **Inline `style=""` — spacing and sizing ONLY.** Inline styles are permitted
371
+ exclusively for fine-tuning spacing and sizing (`margin`, `padding`, `gap`,
372
+ `font-size`, `max-width`, `min-height`, `width`, `height`). **NEVER use inline
373
+ `style=""` for visual effects** — no custom `background-image`, `box-shadow`,
374
+ `border-radius`, `color`, `gradient`, or layout structures.
362
375
 
363
- **CSS variables:** Use only `var(--xxx)` properties defined in
364
- `@design:foundation`. Do NOT define new custom properties.
365
-
366
- **Fetch before use:** Before generating any slide, call the `revela-designs`
367
- tool to fetch the full HTML/CSS for each layout and component you plan to
368
- use. Generate HTML that matches the fetched examples exactly.
376
+ **CSS variables:** **ALWAYS use only `var(--xxx)` properties defined in
377
+ `@design:foundation`. NEVER define new `--xxx` custom properties.**
369
378
 
370
379
  **No suitable component?** Adapt the *content* to fit the closest available
371
- component — never adapt the component structure to fit content.
372
-
373
- The QA system will automatically flag any unrecognised CSS class as a
374
- compliance warning after you write the file.
380
+ component — **NEVER adapt the component structure to fit content. NEVER create
381
+ a new component because the existing ones "don't quite fit".**
382
+
383
+ The QA system will flag any unrecognised CSS class as a **compliance error**.
384
+ If the QA report contains compliance issues after you write the file, you MUST
385
+ fix them immediately — remove the offending classes and replace them with the
386
+ closest component from the Component Index. Do not move on until all compliance
387
+ errors are resolved.
375
388
 
376
389
  ### Inline Editing
377
390