Performance Optimization
@sickn33Community skill that gives an agent a measure-first workflow for slow apps: baseline, find the bottleneck, fix one anti-pattern, re-measure, and guard with a budget.
One Markdown guide with measure-first workflow and examples; nothing to run, no network, no keys.
Install Performance Optimization in Google Antigravity
Antigravity loads skills from .agents/skills/ in your project or ~/.gemini/config/skills/ for all projects (official docs). Full guide
Install the "Performance Optimization" skill for Google Antigravity. Follow the steps at https://www.antigravityskills.org/install/performance-optimization.md (source: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/performance-optimization). Before running anything, show me what you will download and whether it includes scripts, and wait for my OK. Install it into this project (.agents/skills/) unless I say global. When done, check that Antigravity lists it as an installed skill.
The agent reads the install file, shows you what it will download and waits for your OK.
Option 2: install it yourself
- 1. Download the repository
git clone --depth 1 https://github.com/sickn33/antigravity-awesome-skills.git /tmp/ag-skills && git -C /tmp/ag-skills log -1 --format=%h
We reviewed commit a307264. If the second command prints a different hash, the skill may have changed since our review.
- 2. Copy the skill into this project (workspace skill)
mkdir -p .agents/skills && cp -r /tmp/ag-skills/skills/performance-optimization .agents/skills/
Run from your project root. Antigravity reads workspace skills from .agents/skills/<folder>/; this folder holds just SKILL.md (1 file, no scripts).
- 3. Or install it for all projects (global skill)
mkdir -p ~/.gemini/config/skills && cp -r /tmp/ag-skills/skills/performance-optimization ~/.gemini/config/skills/
Use this instead of the previous step. Copy only the skills you need: the repo README warns that a large watched skills folder can overload Antigravity's context.
- 4. Check that Antigravity sees it
Antigravity app: start a new conversation and ask "What skills do you have?"; performance-optimization should be listed. Antigravity CLI: run /skills (/skills reload in a session that was already open).
The repository's own installer (npx agentic-awesome-skills --antigravity --skills <ids> --dry-run, README) can also install selected skills; the copy steps above use the standard Antigravity skill folders and install only this one.
Using Claude Code, Cursor or Codex? See other assistants below.
What is Performance Optimization?
How to use Performance Optimization?
Key features of Performance Optimization
- ✓We counted at a307264: the folder has 1 file, SKILL.md (371 lines, 13,127 bytes), and no scripts
- ✓We counted: Core Web Vitals targets are a 3-row table - LCP at 2.5 s or less, INP at 200 ms or less, CLS at 0.1 or less count as Good (values as printed in the skill; we did not check them against Google's pages)
- ✓We counted: Step 3 shows 6 anti-patterns with code - N+1 queries, unbounded data fetching, missing image optimization, unnecessary React re-renders, large bundles and missing caching
- ✓We counted: the performance budget lists 7 numbers (for example JavaScript under 200 KB gzipped, API p95 under 200 ms, Lighthouse score 90 or more) and shows npx bundlesize and npx lhci autorun as CI checks; these are the skill's suggested defaults, not a standard
- ✓We counted: the closing Verification checklist has 7 items, the Red Flags list 7 and the Common Rationalizations table 5 ("We'll optimize later", "It's fast on my machine", ...)
- ✓The skill points to references/performance-checklist.md but this catalog copy does not include that file; a notice at the top of SKILL.md says to get it from the upstream repository and not to claim steps from it were followed
When to use Performance Optimization
- 1Finding out why a page's LCP or INP is poor before changing any code
- 2Reviewing a data-fetching change for N+1 queries and missing pagination
- 3Setting a performance budget and a CI check so a regression gets caught
Source and files
- Repository
- sickn33/antigravity-awesome-skills (MIT)
- Original author source
- addyosmani/agent-skills/tree/main/skills/performance-optimization
- Upstream risk label
- critical
- Added upstream
- 2026-07-01
- SKILL.md size
- 12.0 KB
- Files in the skill folder
- SKILL.md
- Listing synced
- 2026-10-05 from commit bdacd76
Installation & Setup Guide
Agent Rules / Prompt SetupFollow these steps (taken from the project's own docs) to configure Performance Optimization in your development environment.
mkdir -p .claude/skills && cp -r /tmp/ag-skills/skills/performance-optimization .claude/skills/
Not documented per skill by the repository; this uses Claude Code's standard .claude/skills/ folder after the clone above.
The README lists installer targets for several hosts, but gives no per-skill Cursor path, so we do not list one.
Usage Example & Verification
1) SKILL.md workflow: the agent follows MEASURE -> IDENTIFY -> FIX -> VERIFY -> GUARD and uses the "What is slow?" tree to decide what to measure first. 2) Our example: "Use the performance-optimization skill. Our product list page feels slow on mobile. Tell me what to measure first and what each result would mean before you change any code." -> The agent should start from the "First page load" branch (bundle size, TTFB, render-blocking resources) and ask for a Lighthouse or DevTools baseline rather than guessing. 3) Our example: "Check this endpoint for N+1 queries and unbounded fetching, and show the before and after query code." -> The agent compares your code with the skill's two backend anti-patterns (include/join instead of a query per row, take/skip pagination instead of loading all rows).
Security Review
Static reviewOne Markdown guide with measure-first workflow and examples; nothing to run, no network, no keys.
Full review: scope, findings, risks
The single SKILL.md was read for commands, URLs, file operations and credential handling. The code blocks are examples (N+1 query fix, pagination, responsive images, React memoization, lazy imports, caching headers). The two shell commands in the budget section (npx bundlesize, npx lhci autorun) are shown as CI examples for you to adopt; the skill does not run them itself. This is a read of the text, not a behaviour test.
Operational Notes & Known Limitations
Known Limitations
- •It is generic advice with TypeScript, React and Prisma-style examples; it does not run a profiler or Lighthouse for you, you or the agent must run them and report the numbers
- •The thresholds and budget numbers are rules of thumb; set your own from your product's data
- •The referenced performance-checklist.md is not in this folder, so the extra checklist it promises is unavailable here
- •The skill's own Limitations section says examples are not a substitute for environment-specific tests, security review or approval for costly actions
Frequently Asked Questions
Is the Performance Optimization skill safe?
It is one Markdown file. We read all of it and found no scripts, no commands the skill runs by itself, no network calls beyond tools you choose to use (Lighthouse, DevTools, npx bundlesize, npx lhci) and no API keys. Its frontmatter labels it risk: critical, a generic label in this collection, so read what the agent proposes before you apply code changes.
How do I install Performance Optimization in Antigravity?
Clone sickn33/antigravity-awesome-skills, copy skills/performance-optimization into .agents/skills/ (or ~/.gemini/config/skills/), then ask "What skills do you have?" (Antigravity CLI: /skills).
Does it measure my site for me?
No. It tells the agent to measure first and shows what to look at, but the measurements come from tools such as Lighthouse, DevTools or your database log.
Where is performance-checklist.md?
The SKILL.md refers to references/performance-checklist.md, which is not part of this catalog copy. Its notice says to take it from the upstream repository, addyosmani/agent-skills, if you need it.
Is it an official Google skill?
No. It is community-contributed to an independent collection whose README says it is not affiliated with or endorsed by Google.
Supported Platforms
Keep exploring this topic
Browse the full Antigravity skills directory for more source-linked skills with install steps and static safety reviews.
Related Skills
TDD Workflow
@sickn33
Community skill that makes an agent work test-first: one failing behavioural test, minimal code to pass, then refactor, with a separate guide on mock anti-patterns.
Clean Code
@sickn33
A one-file Clean Code playbook (Robert C. Martin's rules on naming, functions, comments, errors, tests and classes) that AI coding agents follow when writing, reviewing or refactoring code.
Software Architecture
@sickn33
Community skill that gives an agent a simplicity-first method for architecture decisions: ask context questions, pick patterns with decision trees, and record the choice as an ADR.
Popular Skills
View All →Agent Manager
@sickn33
Manage multiple local CLI agents via tmux sessions.
Systematic Debugging
@sickn33
Debug systematically, not randomly. Find and fix bugs methodically.
Browser Automation (Playwright)
@sickn33
Expert browser automation for cleaning scraping and reliable testing.