performance

performance is a cursor rule for Cursor from omergulcicek/omergulcicek.com. It costs 0 tokens per session (715 once invoked), scanned A, original, MIT.

A set of rules for improving website speed, accessibility, and asset handling, including checks based on Lighthouse and Core Web Vitals. Core Web Vitals are browser measurements of loading speed, responsiveness, and visual stability.

In plain words
What is it for?
Use it when optimizing web assets, API and page loading, bundle sizes, images, fonts, icons, accessibility, and Lighthouse scores.
Why use it?
It helps developers find measurable performance problems and avoid common issues such as layout shifts, slow images, inaccessible controls, and inefficient data loading.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when optimizing web assets, API and page loading, bundle sizes, images, fonts, icons, accessibility, and Lighthouse scores.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/omergulcicek/omergulcicek.com/performance
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.

Clone the repo
git clone --depth 1 https://github.com/omergulcicek/omergulcicek.com

Made for: Cursor.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/omergulcicek/omergulcicek.com/performance"><img src="https://agentmods.dev/badge/rules/omergulcicek/omergulcicek.com/performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 715 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.00000 $0.00715
Opus 5.5 $0.00000 $0.00286
Sonnet 5.5 $0.00000 $0.00143
Haiku 4.5 $0.00000 $0.00072

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

Security

Grade A, and why

performance 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 1mo 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.

.cursor/rules/performance.mdc · 67 lines

How it starts

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

Performance & Accessibility (Lighthouse 95+)

Constraints

  • Measurement First: Avoid premature optimization. Identify specific bottlenecks via profiling (DevTools Performance tab) before applying any fixes.
  • Performance Budgets:
    • Core Web Vitals: LCP ≤ 2.5s, INP ≤ 200ms, CLS ≤ 0.1.
    • API & Load: API response time < 200ms (p95). Time to Interactive (TTI) < 3.5s on 4G connections.
    • Bundle Size: Keep initial feature chunks < 50kb. Enforce dynamic imports (next/dynamic) for heavy dependencies.
  • LCP Optimization: Use the priority attribute for the first visible Image (Next.js) or hero assets to prioritize loading.
  • Image & Data Standards:
    • Define explicit width and height to prevent CLS.
    • Use <picture> with source tags for complex art direction or resolution switching.
    • Prevent N+1 query patterns; strictly use pagination or optimized includes/joins for all data-driven components.
  • Icon & Font Strategy: Use tree-shakable icons (e.g., lucide-react). Apply swap display strategy for fonts, optimized via next/font or local self-hosting.
  • A11y SSOT: All interactive elements MUST have aria-label, role, or an associated <label>. Maintain WCAG AA compliance (4.5:1 contrast ratio).
  • Asset Links: Reference ui-components.mdc for specific Skeleton and Layout Shift (CLS) implementation rules.

Bans

  • Layout Shift: Forbidden to render content without reserved dimensions (use Skeletons).
  • Native Img: Forbidden to use raw <img> tags.
  • Blocking JS: Forbidden to use heavy 3rd party scripts in the main thread (use next/script or Web Workers).
  • A11y Gaps: Forbidden to use div as a button without tabIndex and onKeyDown.
  • Alt Text: Forbidden to leave alt attributes empty or generic (e.g., "image").

Correct Implementation

export const Hero = () => (

Read the full file on GitHub · 67 lines

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. 1mo ago First seen · 67 lines · 0 tokens per session scan A 64522fec8805

Subscribe to this mod's changes

performance is a cursor rule published in the GitHub repository omergulcicek/omergulcicek.com (15 stars, last pushed 11d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 715 tokens. 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-09-01.