Agent skill

Code Slice Hero Block

by heygen-com in heygen-com/hyperframes

A HyperFrames video block in which a grid of square tiles flips cell by cell under a sweeping depth field to reveal a rear headline, rendered at 1920×1080 for 8 seconds.

Apache-2.0Auto-check passedMedia & Creative

Install Code Slice Hero Block

skills CLI
$ npx skills add heygen-com/hyperframes --skill code-slice-hero -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install heygen-com/hyperframes code-slice-hero --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/heygen-com/hyperframes.git skills-src && mkdir -p .claude/skills && cp -r skills-src/registry/blocks/code-slice-hero .claude/skills/code-slice-hero && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-slice-hero
GitHub stars
58k
Used in
1 other repo
Token cost
~1.2k tokens
SKILL.md length
441 words
Files
9 (incl. assets)
Skills in repo
32
Repo updated
First seen
Licence
Apache-2.0

At a glance

A HyperFrames video block in which a grid of square tiles flips cell by cell under a sweeping depth field to reveal a rear headline, rendered at 1920×1080 for 8 seconds.

  • Works in 3 steps: Keep data-composition-variables a… → Do not put in static markup; create it… → Keep every visual state a function of t;…
  • Adding a tile-flip headline reveal to a HyperFrames video
  • SKILL.md covers Files, Install, Variables and Runtime contract, plus 1 more section
  • Runs JavaScript scripts from its folder; calls npx

What it does

A surface of square tiles carries one headline. An imaginary cursor crosses it, nearby tiles lift and tilt in response to a Gaussian depth field, and only the cells that overlap either headline's silhouette turn over to show the rear headline. The whole grid is a single instanced WebGL 2 draw using a shared front and rear texture pair, with a batched projected-shadow pass. Copy, text size and square cell size are independent, so tiles never stretch. The composition id is `code-slice-hero`, running 8 seconds at 30 fps in 1920×1080.

The block ships its HTML plus `surface.js`, `shadows.js`, the Geist Bold font with its licence notice and a bundled GSAP build with its notice. It installs with `npx hyperframes add code-slice-hero` into `compositions/code-slice-hero/` and is mounted from the host `index.html`. Rendering takes a JSON object of variables, such as the front and rear headlines, each limited to 32 characters, and the sweep direction, duration, easing strength, cursor radius, falloff, depth, bounce and shadow.

When your agent uses it

  • Adding a tile-flip headline reveal to a HyperFrames video
  • Rendering a short hero title with front and rear text
  • Tuning sweep direction, easing and shadow of a title animation

Example prompts

  • “Add the code-slice-hero block and render it with the headline LAUNCH DAY and rear headline SHIPPED.”
  • “Make the tile sweep go right to left and slow it down.”
  • “Mount the code slice hero in my index.html and show me the variables I can change.”

Requirements

  • Node.js with npx to install and render the block

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Keep data-composition-variables a single-quoted attribute with plain " JSON. Never save it through Studio's Design panel.
  2. Do not put in static markup; create it at runtime.
  3. Keep every visual state a function of t; seek-safety is what makes the block renderable.

What it can do on your machine

Read from SKILL.md and the folder at commit f6b3821. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Slice Hero Block loads about 1.2k tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 441 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from heygen-com/hyperframes at commit f6b3821, republished under its Apache-2.0 licence (© heygen-com). 441 words, ~1,190 tokens.

Download SKILL.mdSave it as .claude/skills/code-slice-hero/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
code-slice-hero
description
A tiled headline surface flips cell by cell under a sweeping depth field to reveal the rear headline. HyperFrames block, 1920×1080, 8s, 18 variables.

Code Slice Hero

A full square-tile surface carries one seamless headline. An imaginary cursor crosses the surface; nearby tiles respond to its Gaussian depth field with lift and tilt, and only the cells intersecting either headline silhouette turn over to reveal the rear headline. The whole grid is one instanced WebGL 2 draw with a shared front/rear texture pair, plus a batched projected-shadow pass. Copy, text size and square cell size are independent, so tiles never stretch. Sweep direction, easing strength, cursor radius, falloff, depth, bounce and shadow are all variables.

Composition id: code-slice-hero. Duration 8 s at 30 fps, 1920×1080.

Files

  • code-slice-hero.html (24 KB)
  • assets/Geist-Bold.ttf (65 KB)
  • assets/Geist-OFL.txt (4 KB)
  • assets/gsap-3.14.2.min.js (128 KB)
  • assets/GSAP-NOTICE.txt (1 KB)
  • shadows.js (10 KB)
  • surface.js (8 KB)

Install

Install with npx hyperframes add code-slice-hero; by default the files above land under compositions/code-slice-hero/. Then mount the block from the host index.html:

html
<div
  data-composition-id="code-slice-hero"
  data-composition-src="compositions/code-slice-hero/code-slice-hero.html"
  data-start="0"
  data-duration="8"
  data-track-index="1"
  data-width="1920"
  data-height="1080"
></div>

Render with custom values by targeting the composition file directly:

sh
npx --yes hyperframes@0.8.12 render 'compositions/code-slice-hero/code-slice-hero.html' --variables '{"headline":"MAKE IT","reverseHeadline":"MATTER."}'

Variables

Read at runtime via window.__hyperframes.getVariables(); declared on the composition root as data-composition-variables (single-quoted attribute, plain JSON).

| id | type | default | label / range | | ------------------- | ------ | ----------------- | ------------------------------------------------- | -------------- | | headline | string | "MAKE IT" | Copy · Front headline max 32 chars | | reverseHeadline | string | "MATTER." | Copy · Rear headline max 32 chars | | direction | enum | "left-to-right" | Motion · Sweep direction (left-to-right | right-to-left) | | sweepDuration | number | 4.2 | Motion · Sweep duration 2.6–4.5 step 0.05 | | sweepEaseStrength | number | 3 | Motion · Sweep easing strength 0–3 step 0.05 | | flipDuration | number | 0.75 | Motion · Each tile flip 0.65–1.65 step 0.05 | | cursorRadius | number | 210 | Cursor · Influence radius 160–480 step 10 | | cursorFalloff | number | 1.4 | Cursor · Influence falloff 0.4–3.5 step 0.05 | | cursorDepth | number | 80 | Cursor · Depth (+ toward camera) -320–320 step 10 | | tiltStrength | number | 55 | Cursor · Pull / tilt strength 0–55 step 1 | | noiseStrength | number | 2 | Motion · Organic variation 0–2 step 0.05 | | flipBounce | number | 0.15 | Motion · Elastic flip bounce 0–0.8 step 0.05 | | cellSize | number | 112 | Slices · Square cell size 24–120 step 4 | | formationScale | number | 1 | Slices · Local formation scale 0.94–1 step 0.001 | | fontSize | number | 310 | Type · Maximum size 160–480 step 5 | | behindColor | color | "#212121" | Surface · Behind-tile background | | shadowStrength | number | 0.19 | Surface · Cast shadow strength 0–0.65 step 0.01 | | shadowSoftness | number | 4 | Surface · Cast shadow softness 0.5–4 step 0.1 |

Show full SKILL.md (95 more words)Show less

Runtime contract

  • One paused GSAP timeline registered as window.__timelines["code-slice-hero"].
  • Re-syncs on the hf-seek CustomEvent; every frame is a closed-form function of time (seeded PRNG only, no rAF loops, no Date.now).
  • Renderer: GSAP, Canvas 2D, Seeded PRNG.
  • External runtime dependencies: none (served locally).
  • Local fonts: assets/Geist-Bold.ttf.

Editing rules (from the source project)

  1. Keep data-composition-variables a single-quoted attribute with plain " JSON. Never save it through Studio's Design panel.
  2. Do not put <canvas> in static markup; create it at runtime.
  3. Keep every visual state a function of t; seek-safety is what makes the block renderable.

© heygen-com, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (assets) in registry/blocks/code-slice-hero of heygen-com/hyperframes.

  • SKILL.md
  • assets/GSAP-NOTICE.txt
  • assets/Geist-Bold.ttf
  • assets/Geist-OFL.txt
  • assets/gsap-3.14.2.min.js
  • code-slice-hero.html
  • registry-item.json
  • shadows.js
  • surface.js

Open the folder on GitHubat commit f6b3821

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in heygen-com/hyperframes, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Code Slice Hero Block next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Slice Hero Block compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Slice Hero Block this skillheygen-com/hyperframes58k1 repos~1.2kAutomated safety check: PassApache-2.0
Plotbeat Data VideosUnclecheng-li/AI_Animation1.4k—~2.6kAutomated safety check: PassMIT
Yuv Viral Videohoodini/ai-agents-skills282—~7.5kAutomated safety check: NotesNone
Talking-Head Video Pipelinenaive-kun/naive-video-skill132—~3.3kAutomated safety check: PassMIT
Duo Foldable Phone Comparisonheygen-com/hyperframes-community-skills175—~2kAutomated safety check: PassApache-2.0
X Posting License Videoheygen-com/hyperframes-community-skills175—~1.2kAutomated safety check: PassApache-2.0

Similar skills

  • Plotbeat Data Videos

    Unclecheng-li/AI_Animation

    Turns a local CSV or JSON file, or data fetched from an approved source, into an editable data-visualization video by adapting HyperFrames templates.

    1.4k GitHub stars~2.6k tokensUpdated 2 days ago
    Media & CreativeAuto-check passed
  • Yuv Viral Video

    hoodini/ai-agents-skills

    Edit any selfie or screen-share footage into a viral short-form video in YUV.AI's signature style — Apple-style liquid-glass cards (real CSS backdrop-filter), dark-mode polish, MrBeast-paced cuts…

    282 GitHub stars~7.5k tokensUpdated 2 mo ago
    Media & CreativeAuto-check: notes
  • Talking-Head Video Pipeline

    naive-kun/naive-video-skill

    Turns raw or rough-cut talking-head footage into a captioned, animated final video through a staged, resumable production pipeline.

    132 GitHub stars~3.3k tokensUpdated 1 mo ago
    Media & CreativeAuto-check passed
  • Duo Foldable Phone Comparison

    heygen-com/hyperframes-community-skills

    Builds side-by-side comparison and meme videos on a fixed photo of hands holding an open foldable phone, with your own HTML playing in each screen.

    175 GitHub stars~2k tokensUpdated 8 days ago
    Media & CreativeAuto-check passed
  • X Posting License Video

    heygen-com/hyperframes-community-skills

    Builds a short animated posting-license card video from an X profile's name, handle, counters and avatar, using a fixed template that the agent only fills in and renders.

    175 GitHub stars~1.2k tokensUpdated 8 days ago
    Media & CreativeAuto-check passed
  • Build a Vietnamese vertical TikTok explainer in the "MỔ XẺ PAPER AI" (AI paper dissection) format with HyperFrames (HTML/CSS/GSAP → MP4), Noti.vn style.

    126 GitHub stars~4.8k tokensUpdated 8 days ago
    Media & CreativeAuto-check passed

More from heygen-com/hyperframes

All 32 skills in this repo
  • HyperFrames Animation

    heygen-com/hyperframes

    Collects motion rules, scene blueprints, transitions and runtime adapters for HyperFrames video compositions, with GSAP as the default animation runtime.

    58k GitHub starsUsed in 3 repos~2.1k tokens
    Auto-check passed
  • HyperFrames Media Use

    heygen-com/hyperframes

    Finds, generates and edits media for HyperFrames video projects: music, sound effects, images, icons, logos, voiceovers, captions and color grades.

    58k GitHub starsUsed in 2 repos~2.1k tokens
    Auto-check passed
  • Embedded Video Captions

    heygen-com/hyperframes

    Adds captions to a single-subject talking-head video without editing the footage, from plain subtitles to cinematic text placed behind the speaker.

    58k GitHub starsUsed in 3 repos~8.6k tokens
    Auto-check passed
  • Weekly Changelog Video

    heygen-com/hyperframes

    Turns a weekly changelog markdown file into a branded HyperFrames video with voiceover, animated mock-UI scenes and captions, using fonts, background and scripts bundled in the skill.

    58k GitHub stars~3.3k tokensUpdated today
    Auto-check passed
  • Faceless Explainer Video

    heygen-com/hyperframes

    Turns an article, notes or a topic brief into an explainer video whose visuals are invented per scene, built frame by frame in HyperFrames with no footage.

    58k GitHub starsUsed in 3 repos~7.5k tokens
    Auto-check: notes
  • Figma to HyperFrames

    heygen-com/hyperframes

    Imports Figma assets, brand tokens, components and motion into a HyperFrames video composition, using the Figma REST API with a connector or native export for shaders.

    58k GitHub starsUsed in 3 repos~4.5k tokens
    Auto-check: notes

Works with

Questions about Code Slice Hero Block

What does Code Slice Hero Block do?

A HyperFrames video block in which a grid of square tiles flips cell by cell under a sweeping depth field to reveal a rear headline, rendered at 1920×1080 for 8 seconds. A surface of square tiles carries one headline. An imaginary cursor crosses it, nearby tiles lift and tilt in response to a Gaussian depth field, and only the cells that overlap either headline's silhouette turn over to show the rear headline.

When should I use Code Slice Hero Block?

Code Slice Hero Block fits situations like: adding a tile-flip headline reveal to a HyperFrames video; rendering a short hero title with front and rear text; tuning sweep direction, easing and shadow of a title animation.

How do I install Code Slice Hero Block in Claude Code?

Run `npx skills add heygen-com/hyperframes --skill code-slice-hero -a claude-code`. Or copy the skill folder (registry/blocks/code-slice-hero in heygen-com/hyperframes) into .claude/skills/code-slice-hero in your project. Claude Code loads it when a task matches its description.

How do I install Code Slice Hero Block in Codex?

Run `npx skills add heygen-com/hyperframes --skill code-slice-hero -a codex`. Or copy the skill folder (registry/blocks/code-slice-hero in heygen-com/hyperframes) into .agents/skills/code-slice-hero in your project. Codex loads it when a task matches its description.

Can I use Code Slice Hero Block in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add heygen-com/hyperframes --skill code-slice-hero -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-slice-hero, .gemini/skills/code-slice-hero, .github/skills/code-slice-hero and .opencode/skills/code-slice-hero in your project.

What does Code Slice Hero Block need to run?

Going by SKILL.md and its folder, Code Slice Hero Block needs JavaScript for the scripts in its folder and the command-line tools its instructions call (npx). Our summary lists: Node.js with npx to install and render the block.

Does Code Slice Hero Block access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Code Slice Hero Block safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Code Slice Hero Block use?

Code Slice Hero Block is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Code Slice Hero Block use?

About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Code Slice Hero Block?

Skills that share tags, products or a category with Code Slice Hero Block: Plotbeat Data Videos (Unclecheng-li/AI_Animation, 1.4k stars), Yuv Viral Video (hoodini/ai-agents-skills, 282 stars), Talking-Head Video Pipeline (naive-kun/naive-video-skill, 132 stars) and Duo Foldable Phone Comparison (heygen-com/hyperframes-community-skills, 175 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Slice Hero Block?

heygen-com (a GitHub organization) maintains it in heygen-com/hyperframes, which has 58,020 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on October 7, 2026.

Source: heygen-com/hyperframes on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.