@cyber-dash-tech/revela 0.1.9 → 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.
- package/README.md +1 -1
- package/designs/summit/DESIGN.md +2392 -0
- package/package.json +3 -4
- 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.
|
|
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",
|
|
@@ -12,9 +12,8 @@
|
|
|
12
12
|
"lib/",
|
|
13
13
|
"tools/",
|
|
14
14
|
"skill/",
|
|
15
|
-
"designs/
|
|
16
|
-
"designs/
|
|
17
|
-
"designs/editorial-ribbon/DESIGN.md",
|
|
15
|
+
"designs/aurora/DESIGN.md",
|
|
16
|
+
"designs/summit/DESIGN.md",
|
|
18
17
|
"domains/general/INDUSTRY.md",
|
|
19
18
|
"domains/deeptech-investment/INDUSTRY.md",
|
|
20
19
|
"domains/consulting/INDUSTRY.md",
|
package/skill/SKILL.md
CHANGED
|
@@ -298,7 +298,18 @@ Then ask:
|
|
|
298
298
|
|
|
299
299
|
### Phase 5 — Generate
|
|
300
300
|
|
|
301
|
-
|
|
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.
|
|
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.
|
|
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).
|
|
354
|
-
|
|
355
|
-
|
|
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=""` —
|
|
358
|
-
for fine-tuning spacing and sizing (`margin`, `padding`, `gap`,
|
|
359
|
-
`max-width`, `min-height`, `width`, `height`).
|
|
360
|
-
|
|
361
|
-
`border-radius`, `color`, or layout structures
|
|
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:**
|
|
364
|
-
`@design:foundation`.
|
|
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 —
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
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
|
|