performance-optimization

performance-optimization is a skill for Claude Code, Codex from sanky369/vibe-building-skills. It costs 155 tokens per session (2,158 once invoked), scanned A, original, MIT.

A guide for finding and fixing interfaces that feel slow, including delayed clicks, long waits, and layout changes. It covers faster data requests, loading techniques, and Core Web Vitals, which are Google’s measures of loading speed, interaction response, and visual stability.

In plain words
What is it for?
Use it to improve optimistic updates, loading placeholders, preloading, request batching, duplicate-request removal, layout stability, and LCP, INP, or CLS scores.
Why use it?
It helps identify where users are waiting and choose whether to make the work faster or make the wait feel shorter. It also addresses common causes of poor browser performance.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to improve optimistic updates, loading placeholders, preloading, request batching, duplicate-request removal, layout stability, and LCP, INP, or CLS scores.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sanky369/vibe-building-skills/performance-optimization
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 sanky369/vibe-building-skills --skill performance-optimization
Clone the repo
git clone --depth 1 https://github.com/sanky369/vibe-building-skills

Made for: Claude Code, Codex.

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 performance-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/sanky369/vibe-building-skills/performance-optimization/github.svg)](https://agentmods.dev/skills/sanky369/vibe-building-skills/performance-optimization)
Your own site
<a href="https://agentmods.dev/skills/sanky369/vibe-building-skills/performance-optimization"><img src="https://agentmods.dev/badge/skills/sanky369/vibe-building-skills/performance-optimization/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 performance-optimization

Your own site · 80×15
<a href="https://agentmods.dev/skills/sanky369/vibe-building-skills/performance-optimization"><img src="https://agentmods.dev/badge/skills/sanky369/vibe-building-skills/performance-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 155 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,158 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.
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.00155 $0.02158
Opus 5.5 $0.00062 $0.00863
Sonnet 5.5 $0.00031 $0.00432
Haiku 4.5 $0.00015 $0.00216

Measured 2mo ago against content hash 3cd64dda35cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

performance-optimization 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 2mo 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.

skills/frontend-design/performance-optimization/SKILL.md · 126 lines

How it starts

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

Performance Optimization

Make the interface feel instant and measure honestly: find where users wait, decide per wait whether to eliminate it (optimistic UI, preloading, batching) or mask it (skeletons, progressive loading), and implement the fix. The prime directive: perceived latency outranks actual latency — a 3-second operation that responds instantly to the click beats a 1-second one that freezes — but never fake what you can't deliver (no invented progress numbers, no optimistic UI where rollback would burn the user). Deliver an audit ranked by user impact plus working code.

When to use / when not to

Use for: sluggish-feeling interactions, optimistic UI, Core Web Vitals remediation, preloading/anticipatory loading, request batching/dedup, layout-shift fixes, perceived-performance strategy.

Hand off instead when the real need is:

  • Choosing/designing the loading indicators themselves → skills/frontend-design/loading-states
  • Animation jank from non-compositor properties → skills/frontend-design/interaction-physics (motion spec) or skills/frontend-design/design-engineer-mindset (rendering pipeline, layout thrashing)
  • The failure/rollback messaging your optimistic UI needs → skills/frontend-design/error-handling-recovery
  • Backend/query latency itself — flag it, but that's outside this skill's frontend scope

Step 0 — Inspect the codebase, then ask only what's left

  1. Find the data layer: raw fetch/axios vs a data library (TanStack Query, SWR, Apollo, RTK Query). This decides implementation strategy — libraries get optimistic updates and dedup through their APIs; hand-rolled fetching may need those primitives added.
  2. Find waiting patterns: mutations that disable the UI until the server responds, serial await chains that could parallelize, duplicate fetches of the same resource, effects re-fetching on every render.
  3. Find layout-shift sources: images without dimensions/aspect-ratio, content injected above existing content, fonts swapping without fallback metrics, ad/embed slots without reserved space.
  4. Look for existing measurement: web-vitals package, Lighthouse CI, RUM/analytics. If the project runs in this environment, get real numbers (Lighthouse or a profile) before and after — never quote scores you didn't measure.
  5. Check bundle signals when load speed is the complaint: build output sizes, missing route-level code splitting, heavyweight dependencies imported globally.

Read the full file on GitHub · 126 lines

Files

What ships with it

1 file 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. 2mo ago First seen · 126 lines · 155 tokens per session scan A 3cd64dda35cf

Subscribe to this mod's changes

performance-optimization is a skill published in the GitHub repository sanky369/vibe-building-skills (31 stars, last pushed 3mo ago), licensed MIT. It adds 155 tokens to every session and 2,158 once invoked, about $0.0006 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-08-30.

Related

performance-optimization compared with skills from other repositories

performance-optimization next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
performance-optimizationsanky369/vibe-building-skillsSkill313mo agoMITA155Claude Code, Codex
ads-youtubeAgriciDaniel/claude-adsSkill11k5d agoMITA84Claude Code
ads-launchAgriciDaniel/claude-adsSkill11k5d agoMITA45Claude Code
happiness-skillkangarooking/cangjie-skillSkill12k1mo agoMITA136Claude Code, Codex
setup-matt-pocock-skillsdevcxl/mattpocock-skills-zhSkill5303d agoMITA43Claude Code, Codex
aiwg-regenerate-copilotjmagly/aiwgSkill229yesterdayMITA25Claude Code, Codex
steward-prep-deliveryjmagly/aiwgSkill229yesterdayMITA32Claude Code, Codex