agentleFS
KhucHieuNghiKhucHieuNghi/agents-skills/skills/html-slides/SKILL.md

html-slides

Skill2 starsChanged 13 days agoMITView on GitHub

Use when creating branded, offline-capable HTML presentations with reveal.js that follow the local project brand profile.

12 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 5 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create light-mode, responsive, offline-capable HTML presentations using reveal.js with the local project brand profile.

    line 8
  2. Very specific:

    Before generating slides, run the brand preflight from the installed html-docs-standard:

    line 19
  3. Very specific:

    Keep skill_root set in the same shell for the verifier below.

    line 28
  4. Very specific:

    After the brand profile is ready, generate reveal-theme-branded.css from the brand tokens.

    line 37
  5. Distinctive:

    Read these references before generating presentations:

    line 43
  6. Very specific:

    Start from assets/slide-template.html.

    line 51
  7. Distinctive:

    Use fragments (animations) sparingly for progressive disclosure.

    line 74
  8. Distinctive:

    No CDN or remote URLs (jsdelivr, unpkg, cdnjs, googleapis)

    line 87
  9. Distinctive:

    No dark-only themes or dark background colors

    line 88
  10. Distinctive:

    No remote font imports

    line 90
  11. Very specific:

    Do NOT apply the Hallmark polish pass to slides.

    line 95

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

HTML Slides

Create light-mode, responsive, offline-capable HTML presentations using reveal.js with the local project brand profile. No remote runtime dependencies.

Preconditions

The html-docs-standard skill must be installed in the same project. It provides the brand profile workflow (ensure, extract, apply) and shared brand state at .onboarding/brand/DESIGN.md.

Brand workflow

Before generating slides, run the brand preflight from the installed html-docs-standard:

skill_root=.agents/skills
test -f "$skill_root/html-docs-standard/SKILL.md" || skill_root=.claude/skills
node "$skill_root/html-docs-standard/scripts/ensure-brand-profile.mjs" "$PROJECT_ROOT"

Keep skill_root set in the same shell for the verifier below.

  • reuse — Use the valid local profile without questions or network.
  • first-use or invalid — Ask exactly Brand name and Brand website, then run extract-brand-profile.mjs and apply-brand-profile.mjs as defined by html-docs-standard. This writes .onboarding/brand/DESIGN.md and generates docs-brand.css.
  • refresh — Only when user explicitly requests brand refresh.

After the brand profile is ready, generate reveal-theme-branded.css from the brand tokens. The template in assets/slide-template.html loads this CSS after the base reveal.js styles.

Required contracts

Read these references before generating presentations:

  1. references/presentation-contract.md
  2. references/reveal-usage-contract.md
  3. references/attribution.md

Slide generation

Start from assets/slide-template.html. This template:

  • Loads reveal.js from a local bundled copy (no CDN)
  • Loads reveal-theme-branded.css for brand colors and typography
  • Uses light-mode only (white/light backgrounds)
  • Includes highlight.js plugin locally for code slides
  • Supports Mermaid diagrams with branded theme variables

Generate the presentation as a single self-contained HTML file. Include reveal.js and plugins inline or reference local asset copies. Never use CDN URLs or remote font imports.

Content structure

A presentation should include:

  • Title slide with project brand
  • Agenda or overview slide
  • Content slides with clear hierarchy
  • Code slides with syntax highlighting when relevant
  • Mermaid diagrams when architecture or flow is needed
  • Summary or closing slide

Use fragments (animations) sparingly for progressive disclosure. Use vertical slides for deep-dives within a topic.

Verification

Before delivery, run:

node "$skill_root/html-slides/scripts/verify-slides.mjs" "$OUTPUT_FILE"

The verifier checks:

  • No CDN or remote URLs (jsdelivr, unpkg, cdnjs, googleapis)
  • No dark-only themes or dark background colors
  • Brand CSS variables are present
  • No remote font imports
  • Valid HTML structure with reveal.js container

Hallmark polish pass

Do NOT apply the Hallmark polish pass to slides. Reveal.js has its own layout and animation system that is incompatible with Hallmark's document-oriented polish. Slides are self-contained presentations, not engineer documentation.

Attribution

Domain knowledge for reveal.js usage patterns in this skill is derived from:

This skill is a complete rewrite adapted to the agent-skills system contracts (light-mode only, offline-capable, branded, with verification). It does not reproduce the original SKILL.md verbatim. The reveal.js framework itself is MIT licensed: https://github.com/hakimel/reveal.js

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.