Performance optimization

From Hack23/riksdagsmonitor · View interactive version

Performance optimization is an AI agent skill from the GitHub repository Hack23/riksdagsmonitor. Core Web Vitals optimization, bundle size reduction, caching strategies, and performance tuning expertise

How to use this skill

Skill file

Performance Optimization Skill

🔴 AI FIRST Quality Principle

Apply the AI FIRST principle: never accept first-pass quality. Minimum 2 iterations. Read all output, improve every section. No shortcuts.

Purpose

Expert knowledge in optimizing web performance focusing on Core Web Vitals, bundle size reduction, and efficient caching strategies.

Core Principles

  1. Measure First - Use Lighthouse/PageSpeed Insights
  2. Core Web Vitals - LCP < 2.5s, FID < 100ms, CLS < 0.1
  3. Progressive Enhancement - Core functionality works everywhere
  4. Lazy Loading - Load content as needed
  5. Caching Strategy - Maximize cache hits

Enforces

Optimization Strategies

When to Use

References


Version: 1.0 | Last Updated: 2026-02-06 | Category: Development & Operations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.