code-slice-hero

code-slice-hero is a skill for Claude Code from heygen-com/hyperframes. It costs 44 tokens per session (1,270 once invoked), scanned A, original, Apache-2.0.

A ready-made WebGL animation for a headline made from square tiles. A sweeping cursor-like field lifts and tilts nearby tiles, then selected tiles flip to show a second headline.

In plain words
What is it for?
Use it for an animated title or transition in a web page or rendered video. It supports adjustable text, tile size, sweep direction, depth, easing, bounce, and shadows.
Why use it?
It removes the need to build the tile animation, text surfaces, lighting, shadows, and timing from scratch. You can change the text and motion settings without changing the whole effect.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the hyperframes plugin — 34 skills, 1 hook shipped together

Good fit Use it for an animated title or transition in a web page or rendered video. It supports adjustable text, tile size, sweep direction, depth, easing, bounce, and shadows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/heygen-com/hyperframes/code-slice-hero
About the project

HyperFrames is an open-source framework that turns HTML, CSS, media, and timed animations into deterministic MP4 videos. It is used locally, by coding agents, and in hosted authoring workflows to create rendered videos from web-based designs. Its catalogue add-ons provide skills, agents, instructions, hooks, settings, and a plugin for agent-driven video production.

heygen-com/hyperframes · 65,314 stars · on GitHub · hyperframes.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add heygen-com/hyperframes --skill code-slice-hero
Clone the repo
git clone --depth 1 https://github.com/heygen-com/hyperframes

Made for: Claude Code.

Or install hyperframes, the plugin that ships this one along with the rest of its 34 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-slice-hero

README.md
[![agentmods](https://agentmods.dev/badge/skills/heygen-com/hyperframes/code-slice-hero/github.svg)](https://agentmods.dev/skills/heygen-com/hyperframes/code-slice-hero)
Your own site
<a href="https://agentmods.dev/skills/heygen-com/hyperframes/code-slice-hero"><img src="https://agentmods.dev/badge/skills/heygen-com/hyperframes/code-slice-hero/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-slice-hero

Your own site · 80×15
<a href="https://agentmods.dev/skills/heygen-com/hyperframes/code-slice-hero"><img src="https://agentmods.dev/badge/skills/heygen-com/hyperframes/code-slice-hero.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,270 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 19 Sept 2026
  • Snyk pass 19 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.01270
Opus 5.5 $0.00018 $0.00508
Sonnet 5.5 $0.00009 $0.00254
Haiku 4.5 $0.00004 $0.00127

Measured 27d ago against content hash 00cc6766b45b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-slice-hero scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (assets/gsap-3.14.2.min.js, shadows.js, surface.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

registry/blocks/code-slice-hero/SKILL.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

<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:

npx --yes [email protected] 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 |

Read the full file on GitHub · 82 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 27d ago First seen · 82 lines · 44 tokens per session scan A 00cc6766b45b

Subscribe to this mod's changes

code-slice-hero is a skill published in the GitHub repository heygen-com/hyperframes (65,314 stars, last pushed today), licensed Apache-2.0. It adds 44 tokens to every session and 1,270 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-20.

Related

Other skills, from other repositories

gsap

A JavaScript animation framework with shared systems for timelines, easing, and timed value changes. It can animate CSS, SVG, Canvas, WebGL, framework state, and other JavaScript objects, with extensions for tasks such as scroll triggers, drag interactions, motion paths, and text animation.

AvalonLee/AstraCraft-Program · 0 tokens

validate-motion

Browse MotionSpec motion primitives and draft or validate a MotionSpec JSON specification for web animation. Use for catalog questions, choosing an available primitive, or checking an existing spec. This workflow validates specifications; it does not compile, deploy or execute animation.

MasterPlayspots/motionspec · 52 tokens

audit-motion

Check a public website's CSS animation and transitions with MotionSpec. Use when the user asks for a motion-accessibility check, reduced-motion support, or pause controls on a specific public URL. Reports static CSS findings and coverage; does not certify accessibility or test flashing.

MasterPlayspots/motionspec · 56 tokens

motion

Author verified, reduced-motion-safe web animation with MotionSpec. Use when adding scroll, entrance, hover, or loop animation to a website or web app — instead of hand-writing GSAP or CSS keyframes, write a MotionSpec JSON spec, validate it, and compile deterministic code.

MasterPlayspots/motionspec · 57 tokens

animation-system-architect

Design performant animation systems with Framer Motion, GSAP, View Transitions API, and spring physics. Activate on: page transitions, micro-interactions, scroll animations, layout animations, spring physics. NOT for: CSS-only hover effects (use css-in-js-architect), video/canvas rendering (use creative-coding-expert).

curiositech/windags-skills · 72 tokens

animejs

A JavaScript library for creating animations with a consistent system for changing CSS properties, SVG, web-page elements, and JavaScript values over time. Optional adapters can handle Three.js and WebGL scenes.

AvalonLee/AstraCraft-Program · 0 tokens