Communitygithub.com

christiansalazar-wk/ai-lore

HyperFrames composition contract — HTML structure, data-* attributes, clips, and tracks. The authoritative reference for how to write valid HyperFrames HTML.

ai-lore とは?

ai-lore is a Claude Code agent skill that hyperFrames composition contract — HTML structure, data-* attributes, clips, and tracks. The authoritative reference for how to write valid HyperFrames HTML.

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/christiansalazar-wk/ai-lore/tree/HEAD/skills/hyperframes-core

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

プレビュー

スキル README より

ai-lore preview

ドキュメント

HyperFrames Core — Composition Contract

HTML Skeleton

<!DOCTYPE html>
<html data-hf-version="1">
<head>
  <meta charset="UTF-8" />
  <meta name="hf:canvas-width" content="1920" />
  <meta name="hf:canvas-height" content="1080" />
  <meta name="hf:fps" content="30" />
  <meta name="hf:duration" content="auto" />
</head>
<body>
  <div data-hf-scene="intro" data-hf-duration="5s">
    <div data-hf-track="background">
      <div data-hf-clip data-hf-start="0s" data-hf-duration="5s"
           style="background:#111;width:100%;height:100%;position:absolute;"></div>
    </div>
    <div data-hf-track="title">
      <div data-hf-clip data-hf-start="0.5s" data-hf-duration="4s"
           data-hf-animate="fade-in">
        <h1>Hello World</h1>
      </div>
    </div>
  </div>
</body>
</html>

Canvas Meta Tags

TagDefaultNotes
hf:canvas-width1920pixels
hf:canvas-height1080pixels
hf:fps30frames per second
hf:durationautototal; or explicit e.g. 60s
hf:bg-color#000default scene background

Scene Attributes (data-hf-scene)

AttributeTypeDescription
data-hf-scenestringscene name / id
data-hf-durationtime5s, 10s, auto
data-hf-transitionstringcut, fade, slide-left, slide-right, zoom
data-hf-transition-durationtimedefault 0.5s
data-hf-bgurl or colorscene background

Track Attributes (data-hf-track)

AttributeTypeDescription
data-hf-trackstringtrack name
data-hf-znumberz-index stacking
data-hf-mutebooleanmute audio on this track

Clip Attributes (data-hf-clip)

AttributeTypeDescription
data-hf-clip—marks element as a clip
data-hf-starttimestart offset within scene
data-hf-durationtimeclip duration; auto = content duration
data-hf-endtimealternative to duration
data-hf-animatestringshorthand animation preset
data-hf-instringentry animation
data-hf-outstringexit animation
data-hf-volume0–1audio volume
data-hf-speednumberplayback speed multiplier
data-hf-loopbooleanloop media
data-hf-trim-starttimetrim media from start
data-hf-trim-endtimetrim media at end

Media Clips

<!-- Video -->
<video data-hf-clip data-hf-start="0s" src="assets/hero.mp4" />

<!-- Image (static, held for duration) -->
<img data-hf-clip data-hf-start="0s" data-hf-duration="3s" src="assets/logo.png" />

<!-- Audio -->
<audio data-hf-clip data-hf-start="0s" src="assets/music.mp3" data-hf-volume="0.4" />

<!-- TTS narration -->
<div data-hf-clip data-hf-tts="Hello, welcome to the demo." data-hf-start="1s" />

Time Format

All time values use CSS-style notation: 0s, 1.5s, 2000ms. Fractional seconds are allowed.

Validation

npx hyperframes lint index.html

Individual skills in this repo

This repo contains 6 individual skills — each has its own dedicated page.

関連スキル