agentleFS
jangles-bytejangles-byte/atelier/skills/performance-craft/SKILL.md

performance-craft

Skill2 starsChanged 4 months agoMITView on GitHub

Design that holds its frame rate — because janky motion is failed design, not a separate engineering concern. Per-platform rendering discipline: compositor-friendly CSS and GPU layers on the web; ProMotion/adaptive-refresh timing, Metal particle/overdraw budgets, and efficiency-core scheduling on Apple platforms; draw-call and fill-rate budgets in game engines. Includes the graceful-degradation ladder — what to cut first when the frame budget is blown. Use this skill whenever animation stutters, scrolling janks, "feels laggy", fans spin up, battery drains from an always-on animation, before shipping ANY continuous animation (particles, ambient motion, canvas/WebGL scenes), or when choosing which properties/effects to animate.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always-on ambient animation must be provably cheap: paused off-screen, GPU-only, and off the performance cores / not preventing CPU idle.

    line 35
  2. Distinctive:

    When the budget is blown, cut by the degradation ladder — never ship the stutter, and never fix it by cutting the design's primary feedback …

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Performance Craft

A dropped frame is a design defect the user feels before they can name it. This skill treats the frame budget as a design material: know the budget, spend it on what the philosophy values, and degrade in the order that does the least visual damage.

The budget

Frame time = 1000 / refresh rate: 8.3ms at 120Hz, 16.6ms at 60Hz — minus the platform's own compositing overhead. Design for the display the audience has: ProMotion phones and most gaming displays are 120Hz; never hardcode 60. Measure before and after any motion work — profilers, not vibes (DevTools Performance / Instruments' Animation Hitches / engine profilers).

Which reference to load

SituationLoad
Web: CSS/JS/canvas/WebGL animation, scroll jank, layout thrashreferences/web-rendering.md
Apple: SwiftUI/UIKit hitches, Metal, ProMotion, battery/thermalsreferences/apple-silicon.md
Game engines, particles at scale, and the degradation ladderreferences/budgets-and-degradation.md

Non-negotiables

  • Animate compositor-friendly properties (transform, opacity — and their platform equivalents) unless a measured reason says otherwise.
  • Timing from delta-time or the platform's frame callback, never a hardcoded 1/60 assumption.
  • Always-on ambient animation must be provably cheap: paused off-screen, GPU-only, and off the performance cores / not preventing CPU idle.
  • prefers-reduced-motion (and platform equivalents) is also the low-power path — wire them together.
  • When the budget is blown, cut by the degradation ladder — never ship the stutter, and never fix it by cutting the design's primary feedback motion first.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.