web-ui-motion

A set of instructions for creating a polished web interface with a custom animated visual effect in one self-contained HTML file. It combines ordinary page elements with SVG and Canvas 2D graphics, which draw shapes and animations in the browser.

In plain words
What is it for?
Use it to build landing pages, dashboards, or components with effects such as particles, distortion, blur, glow, physics, or animated vector shapes.
Why use it?
It gives the page both a complete visual design and a central motion effect while keeping the result runnable without a build step. It also covers reduced-motion accessibility and high-resolution screens.

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/creativedswork/dscode/web-ui-motion
Any agent
npx skills add creativedswork/dscode --skill web-ui-motion
Clone the repo
git clone --depth 1 https://github.com/creativedswork/dscode

Made for: Claude Code, Codex.

Per session 152 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,957 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.00152 $0.05957
Opus 5 $0.00076 $0.02978
Sonnet 5 $0.00030 $0.01191
Haiku 4.5 $0.00015 $0.00596

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

Security

Grade A, and why

web-ui-motion 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.

.dscode/skills/web-ui-motion/SKILL.md · 427 lines

How it starts

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

Web UI Motion Effects (SVG.js + Canvas)

Build a complete, good-looking UI and then layer a signature motion effect on top. Ship it as one self-contained .html file (inline CSS + JS, fonts from a CDN). The reference examples in this folder are the gold standard for quality — match their level of polish.

Deliverable contract

  • Single .html file, runs by double-click, no build step.
  • The UI is genuinely designed (typography, color system via CSS variables, spacing, hierarchy) — not a gray box with an effect slapped on.
  • The effect is the centerpiece, smooth at 60fps, and degrades gracefully.
  • Always honor prefers-reduced-motion and high-DPI screens (see Performance below).

Step 1 — Pick the rendering layer

Decide per-effect. Most rich pieces combine both.

Use SVG / SVG.js when Use Canvas 2D when
The real HTML/SVG UI must stay live, selectable, accessible You need hundreds–thousands of particles
Distortion / blur / glow over existing DOM (feTurbulence, feDisplacementMap, feGaussianBlur) Per-frame physics: gravity, collision, seeking, impact
A handful of vector shapes you tween declaratively You sample pixels (getImageData) to form shapes/text
Crisp resolution-independent vectors Heavy full-screen redraw with trails/additive blending

Combine pattern (used by all examples): render the real UI in HTML/SVG, then overlay a <canvas> (position:fixed; inset:0; pointer-events:none) for the particle/ripple layer. Apply SVG filter:url(#...) to the DOM for distortion; drive the canvas overlay separately so it stays sharp.

SVG.js (https://github.com/svgdotjssvg.js, plus svg.filter.js for filters) is the recommended way to build and animate the SVG layer programmatically. Load via CDN:

<script src="https://cdn.jsdelivr.net/npm/@svgdotjs/svg.js@3/dist/svg.min.js"></script>

You may also author SVG filters as static markup (as example 1 does) and only toggle their attributes from JS — that is simpler and fine.

Read the full file on GitHub · 427 lines

Files

What ships with it

3 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 · 427 lines · 152 tokens per session scan A 99710624bbdd

Subscribe to this mod's changes

web-ui-motion is a skill published in the GitHub repository creativedswork/dscode (10 stars, last pushed 19d ago), licensed MIT. It adds 152 tokens to every session and 5,957 once invoked, about $0.0008 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

pptx

Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying…

agentscope-ai/QwenPaw · 152 tokens

edu-math-tutorial

数学题分步讲解视频的领域知识。适用场景:(1) 用户给出一道数学题并要求做讲解/ 解题视频;(2) 用户说"讲解这道题"、"生成解题视频"、"make a math tutorial"; (3) 需要中文数学教学视频,涉及方程、公式或几何图形。本 skill 只提供领域 知识(题目拆解、讲解节奏、旁白文案规范、版式与 KaTeX 排版风格);画面、 配音与成片一律用 Creator 原生 Element 与工具从源头构建。.

agentscope-ai/QwenPaw · 146 tokens

beautiful-article

把用户提供的素材(网页 URL / PDF / DOCX / Markdown / 纯文本 / 截图 / 粘贴材料)编辑、设计成一篇美丽的、可离线打开和分享的单文件 HTML 网页文章。基于 reacticle 组件协议:不手写裸 HTML/CSS,而用语义组件 + 受主题约束的 Raw 自由层;按 source→规划→双确认→生成→终审→修复的小型 harness 流程推进,默认 100% 信息保留的长文。触发场景:把 URL/PDF/DOCX/文章做成网页文章 / 长文 / briefing / 解释文 / 视觉文章 / 教程 / 审阅复盘 / 方案分析,'render this as a beautiful web…

ConardLi/garden-skills · 226 tokens

gpt-image-2

面向 GPT Image 2 的图像生成 / 编辑技能。可在 3 种环境下使用:(A) Garden 本地模式,通过 OpenAI 兼容接口直接出图并落盘;(B) Host-Native 模式,把本 Skill 当作提示词工程指引,把渲染好的 prompt 交给宿主 Agent 自带的图像工具出图;(C) Advisor 模式,宿主无任何图像工具时退化为高质量 prompt 顾问。涵盖 18 大类、80+ 个结构化模板,覆盖海报 / UI / 产品 / 信息图 / 学术图 / 技术架构图 / 漫画 / 头像 / 流程板 / 电影分镜 / IP 周边 / 编辑工作流等场景。.

ConardLi/garden-skills · 177 tokens

bento-slides

Create and edit Bento presentations — self-contained .bento.html decks whose document is JSON. Use whenever the user wants a slide deck or presentation: from scratch, from source material, or by improving an existing file.

Prism-Shadow/penguin-harness · 0 tokens

image

Unified tool for analyzing and displaying images (vision analysis and image display).

PhyAgentOS/PhyAgentOS-core · 16 tokens