Skip to content

ShadowKingYT444/motion-debugger / plugin/motion-debugger/skills/premium-motion

premium-motion

Verified

FileKindSize
SKILL.mdskill md11.2 KB
TASTE.mdmarkdown7.0 KB
agents/openai.yamlconfig308 B
assets/motion-kit.cssother9.6 KB
assets/motion-kit.jsscript20.7 KB
commands/audit.mdmarkdown1.4 KB
commands/compose.mdmarkdown2.3 KB
commands/direction.mdmarkdown2.7 KB
commands/harden.mdmarkdown2.5 KB
commands/imagery.mdmarkdown5.5 KB
commands/motion.mdmarkdown4.3 KB
commands/palette.mdmarkdown2.3 KB
commands/polish.mdmarkdown1.8 KB
commands/signature.mdmarkdown2.8 KB
commands/typeset.mdmarkdown2.6 KB
commands/upgrade.mdmarkdown4.1 KB
references/frameworks.mdmarkdown9.6 KB
references/motion-stack.mdmarkdown12.0 KB
references/patterns.mdmarkdown11.4 KB

commands/harden.md

View on GitHub
# harden: phone, reduced motion, accessibility, performance

## The phone layout (390px) is its own design

- Rebuild the composition for a tall screen; do not squeeze the desktop. The hero still has a dominant visual.
- Shorten pins (or replace them with stacked frames), turn horizontal tracks into native swipe rows, and drop pointer effects.
- No sticky panel covering copy, no sideways scroll, gutters of at least 20px, tap targets of at least 44px.
- Headings wrap well at the phone size; reduce the display size with `clamp()`, not by hiding words.

## Reduced motion

Under `prefers-reduced-motion: reduce`: keep every piece of content and the colour and opacity changes; remove travel, parallax, scrubbed scenes, smooth scroll and loops; show each scene's final or key frames stacked. With GSAP, wrap motion in `gsap.matchMedia()` with `(prefers-reduced-motion: no-preference)`.

## Accessibility

- Body contrast 4.5:1 and large text and UI 3:1, measured over what is actually painted, including images and gradients.
- Semantic landmarks, one `h1`, headings in order, real buttons and links, labelled form fields.
- Split text keeps an accessible name: put `aria-label` on the element and `aria-hidden` on the pieces (SplitText and the kit do this).
- Decorative canvases and SVGs are `aria-hidden`; meaningful visuals have text alternatives.
- Keyboard: every control is reachable, focus is visible, and pinned scenes do not trap focus.

## Performance

- Animate `transform`, `opacity` and `clip-path`; apply `filter` only to small elements; never animate layout properties.
- One rAF loop or the GSAP ticker for scroll work; passive listeners; measure on resize, not on every scroll frame.
- Use `will-change` only on elements that are animating now, and remove it afterwards.
- Canvas and WebGL: cap at DPR 2, pause off screen, initialise near the viewport.
- Fonts: preload the display face, `font-display: swap`, matched fallback metrics.
- Images: correct sizes, `loading="lazy"` below the fold, `decoding="async"`.

## Robustness

- Reveal targets are hidden only after JavaScript runs; if the animation library fails to load, content still shows (a timeout that removes the hidden state).
- No console errors. Resize and orientation changes recalculate scroll scenes.

## Verify

Run the critic. There are no `mobile-overflow`, tap-target, contrast, `no-reduced-motion`, `stuck-invisible`, `scroll-jank` or runtime-error findings. The reduced-motion pass shows all content, and `mobile.png` shows a designed phone layout.
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall