build-interactive-graphics

Guidance for building interactive graphics in existing front-end projects, including 2D canvas scenes, 3D views, animated vector characters, and timeline-based visuals.

In plain words
What is it for?
Use it when implementing Rive, PixiJS, Three.js, React Three Fiber, or Theatre.js graphics with keyboard, touch, reduced-motion, and failure alternatives.
Why use it?
It helps choose an appropriate graphics technology, provide accessible fallbacks, and account for rendering cost and cleanup.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/hyexe/codex-plugins/build-interactive-graphics
Any agent
npx skills add HYEXE/codex-plugins --skill build-interactive-graphics
Clone the repo
git clone --depth 1 https://github.com/HYEXE/codex-plugins

Made for: Claude Code, Codex.

Per session 203 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,556 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00203 $0.01556
Opus 5 $0.00102 $0.00778
Sonnet 5 $0.00041 $0.00311
Haiku 4.5 $0.00020 $0.00156

Measured 2d ago against content hash c8b2cdd74a9c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

build-interactive-graphics 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 2d ago.

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.

plugins/uiux-advisor/skills/build-interactive-graphics/SKILL.md · 74 lines

How it starts

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

Interactive Graphics Builder

시각적 임팩트보다 사용자 과업, 대체 경로와 실제 렌더링 비용을 먼저 고정한다. 일반 DOM·CSS로 동일한 결과를 더 단순하게 낼 수 있으면 고급 그래픽 런타임을 도입하지 않는다.

시작 절차

  1. 저장소 지침, 현재 diff, framework·renderer·package manager·browser 범위·테스트 도구와 기존 그래픽 의존성을 확인한다.

  2. 현재 화면과 산출물 형식을 관찰하고, 보지 못한 WebGL·canvas·Rive 동작을 성공했다고 단정하지 않는다.

  3. 주 결과를 분류한다.

    • state-vector: 상태 기반 벡터 캐릭터·아이콘·설명 그래픽
    • dense-two-dimensional: 다수 object·particle·sprite가 있는 2D canvas
    • three-dimensional: camera·light·material·model·raycast가 필요한 3D
    • authored-sequence: designer-authored timeline을 런타임 상태와 연결하는 연출
  4. 실패·비지원·reduced-motion에서도 유지할 정적·DOM 결과와 성공 기준을 먼저 적는다.

  5. references/graphics-toolkit-selection.md로 도구를 선택하고, references/graphics-accessibility-and-fallback.mdreferences/render-loop-performance-and-qa.md를 적용한다.

  6. 지식·API·license·browser 지원이 바뀐 가능성이 있으면 현재 공식 자료와 설치된 버전을 확인한다.

구현 계약

사용자 과업과 완료 상태:
그래픽이 표현할 상태·입력·출력:
semantic DOM과 보조기술 경계:
키보드·터치·직접 입력 대체 경로:
정적·DOM·모션 감소 fallback:
초기 로드·asset·frame·memory 예산:
시작·일시정지·재개·정리 lifecycle:
WebGL·canvas·asset 실패 복구:
성공·반증 기준과 실측 환경:

도구 선택

  • Rive는 디자이너가 제작한 벡터 상태 머신과 런타임 입출력이 실제 요구일 때 검토한다. 단순 loader·icon 모션은 CSS·SVG·Anime.js로 더 가볍게 해결하는지 먼저 비교한다.
  • PixiJS는 다수를 반복 렌더링하는 2D scene에 사용한다. 일반 form·card·navigation을 canvas로 만들지 않는다.
  • Three.js는 framework 비종속 3D 제어가 필요할 때, React Three Fiber는 React lifecycle·state·composition이 실제 이득일 때 선택한다. Drei는 R3F 선택 후 필요한 helper만 쓴다.
  • Theatre.js는 수작업 timeline authoring과 런타임 state 연결이 필수일 때만 추가한다. 일반 transition 코드의 대체로 추가하지 않는다.
  • 기존에 적합한 renderer·asset pipeline이 있으면 새 의존성을 추가하지 않는다. 도입 전 current API, license, bundle, SSR·hydration, accessibility, 제거 비용을 확인한다.

핵심 구현 규칙

  • canvas·WebGL은 시각 표현을 담고, heading·label·button·form·오류·현재 상태와 핵심 제어는 semantic DOM으로 보존한다.
  • hover·drag·orbit·pinch만으로 핵심 과업을 완료하게 하지 않고 button·keyboard·direct input 경로를 제공한다.
  • prefers-reduced-motion에서 반복, parallax, camera travel과 큰 공간 이동을 줄이되 상태·내용·제어를 제거하지 않는다.
  • 그래픽 초기화 전과 실패 후에도 정적 image·poster·DOM 요약과 핵심 action을 제공한다.
  • viewport 밖, background tab과 route 이동 중에는 불필요한 render loop·timer·asset work를 멈춘다. 이벤트 기반 렌더로 충분하면 지속 loop를 두지 않는다.
  • unmount·route change·asset 교체에서 animation frame, listener, observer, geometry, material, texture, renderer과 context를 소유자가 정리한다.
  • DPR·particle count·shadow·post-processing·model LOD는 보편 상수로 단정하지 않고 대상 기기 실측과 적응 규칙으로 제한한다.

Read the full file on GitHub · 74 lines

Files

What ships with it

5 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. 2d ago First seen · 74 lines · 203 tokens per session scan A c8b2cdd74a9c

Subscribe to this mod's changes

build-interactive-graphics is a skill published in the GitHub repository HYEXE/codex-plugins (1 stars, last pushed 2d ago), licensed Apache-2.0. It adds 203 tokens to every session and 1,556 once invoked, about $0.0010 per session on Opus 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-08-31.

Related

Other skills, from other repositories

game-screenshot-showcase-and-store-packaging

Use when a Unity team needs approved PlayMode screenshots, immutable capture evidence, reviewed showcase slides, or report-only store screenshot packaging without auto-upload, signing, or submission.

hoatv2211/GameStudio-CodexKIT · 44 tokens

audio-content-pipeline-review

Use when music, voice, SFX, ambience, or middleware content needs review across source ownership, loudness, codec, streaming, looping, localization, routing, memory, concurrency, platform limits, and integration; not for generic performance budgeting.

hoatv2211/GameStudio-CodexKIT · 55 tokens

remove-ai-marks

Strip multi-vendor AI provenance from owned files: hidden Unicode (Layer A), statistical sampling watermarks via rewrite (Layer B — always offer), and C2PA/EXIF/XMP/container metadata on PNG/JPEG/WebP/SVG/PDF/DOCX/ODT/HTML/MD. Covers Claude, Gemini/SynthID-class, OpenAI provenance surfaces, and open-LLM sampling…

ShadowAqueduct/watermark-remover · 135 tokens

sc-skill

Capture deterministic macOS screenshots for testing, docs, release notes, and marketing assets. Use when asked to automate app screenshots, batch-generate screenshot sets, standardize window sizing/composition, or choose between Peekaboo and native macOS screenshot tooling.

jazzyalex/agent-sessions · 55 tokens

stop-that-shit

Keep coding agents focused on requested and necessary work. Use for bounded changes, review-only tasks, scope creep, speculative hardening, unnecessary hashing or dependencies, repeated audit loops, or when the user invokes Stop That Shit.

lennney/stop-that-shit · 50 tokens

web-demo-video

화면 녹화 도구 없이 웹사이트·웹앱의 제품 데모 영상(SNS용 1:1, 9:16, 16:9)을 만든다. 실제 사이트를 iframe에 띄워 진짜 마우스 이벤트로 조작하며 프레임을 캡처하고 ffmpeg로 합성한다.

bam-bam-2/solo-skills · 77 tokens