Demo builder

Generate standardized HTML, CSS, and JavaScript patterns for HAP Learning Lab demos.

Updated Oct 25, 2025
One-click install
npx skills add https://github.com/cynthiateeters/hap-learning-lab-template --skill demo-builder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Demo builder
Source: https://github.com/cynthiateeters/hap-learning-lab-template/tree/main/.claude/skills/demo-builder
Command: npx skills add https://github.com/cynthiateeters/hap-learning-lab-template --skill demo-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solves? This Skill provides standardized structure, CSS classes, and JavaScript conventions for building interactive HAP Learning Lab demos. It ensures demos are consistently accessible, performant, and adhere to the HAP design system, preventing fragmented or non-compliant user experiences.

Core Features & Use Cases

  • Standardized Structure: Provides required HTML elements and section order for consistent demo pages.
  • CSS Class Library: Offers pre-styled classes for containers, sections, and interactive elements, accelerating development.
  • JavaScript Patterns: Includes ready-to-use patterns for copy-to-clipboard, screen reader announcements, and system preference detection.
  • Use Case: When creating a new interactive color calculator, use this Skill to automatically generate the correct HTML structure, apply HAP's design system classes, and implement accessible JavaScript patterns, saving you hours of manual setup.

Quick Start

<!-- Example: Basic demo structure --> <main id="main-content"> <div class="demo-container"> <header><h1>HAP's [Demo Name]</h1></header> <section aria-label="Interactive controls"></section> <section class="output-section"></section> <aside class="tips-box"></aside> </div> </main>

Frequently Asked Questions about Demo builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build accessible interactive demos for web learning?

Build accessible interactive demos by using standardized HTML structure, semantic elements, and ARIA labels. This Skill provides ready-made patterns for HAP Learning Lab demos, including proper heading hierarchy, section labeling, and screen reader announcements to ensure all users can interact with your content.

What's the best way to create HTML demos that follow design system standards?

Apply pre-styled CSS classes from a design system library to maintain consistency across demo pages. This Skill offers HAP design system classes for containers, sections, and interactive elements, eliminating manual styling and ensuring your demos align with organizational standards.

How do I add interactive features like sliders and copy-to-clipboard to demos?

Use ready-to-use JavaScript patterns included in this Skill for common demo interactions: copy-to-clipboard functionality, color pickers, calculators, and system preference detection. These patterns are built with accessibility and performance in mind.

Can I use this for responsive demo layouts across devices?

Yes. This Skill provides standardized responsive HTML structure and CSS classes designed for performant, accessible layouts across all screen sizes, meeting HAP Learning Lab requirements for modern web demos.

What structure should interactive demos follow?

Interactive demos should follow a standardized semantic structure: main content area, demo container with header, interactive controls section, output section, and optional tips aside. This Skill provides the exact HTML patterns and class conventions required.

Do I need to write custom JavaScript for screen reader support?

No. This Skill includes pre-built JavaScript patterns for screen reader announcements and ARIA labeling, so you can implement accessible interactions without writing custom accessible code from scratch.