app-performance

app-performance is a skill for Claude Code from khadinakbarlabs/shopify-app-builder. It costs 156 tokens per session (7,903 once invoked), scanned A, original, MIT.

A guide to making an embedded Shopify admin app load and respond faster, using measures such as LCP, INP, and CLS, which describe loading speed, interaction delay, and visual movement.

In plain words
What is it for?
Use it to improve browser loading, App Bridge startup, Polaris bundles, GraphQL requests, database connections, images, caching, server rendering, and webhook handling.
Why use it?
It helps locate slow pages, oversized code, expensive data requests, delayed webhooks, and other causes of a poor user experience or failed Shopify review.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the shopify-app-builder plugin — 32 skills, 9 commands, 5 agents shipped together

Good fit Use it to improve browser loading, App Bridge startup, Polaris bundles, GraphQL requests, database connections, images, caching, server rendering, and webhook handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/khadinakbarlabs/shopify-app-builder/app-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.

Any agent
npx skills add khadinakbarlabs/shopify-app-builder --skill app-performance
Clone the repo
git clone --depth 1 https://github.com/khadinakbarlabs/shopify-app-builder

Made for: Claude Code.

Or install shopify-app-builder, the plugin that ships this one along with the rest of its 32 skills, 9 commands, 5 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/khadinakbarlabs/shopify-app-builder/app-performance.svg)](https://agentmods.dev/skills/khadinakbarlabs/shopify-app-builder/app-performance)
Your own site
<a href="https://agentmods.dev/skills/khadinakbarlabs/shopify-app-builder/app-performance"><img src="https://agentmods.dev/badge/skills/khadinakbarlabs/shopify-app-builder/app-performance.svg" alt="Measured on agentmods" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,903 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00156 $0.07903
Opus 5 $0.00078 $0.03952
Sonnet 5 $0.00031 $0.01581
Haiku 4.5 $0.00016 $0.00790

Measured 8d ago against content hash ec96984678d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

app-performance scanned grade A with 1 finding 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

│ │ Verify with curl timing on cold vs warm: curl -w "%{time_total}\n" -o /dev/null -s URL
skills/app-performance/SKILL.md · 801 lines

How it starts

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

Shopify Embedded App Performance

Fix slow Shopify embedded apps before Built for Shopify rejects them, merchants uninstall, and Shopify demotes you in App Store search. The Web Vitals are the gate. Everything below is how you walk through it.


1. When to use this skill

Trigger this skill when:

  • shopify app dev runs but the embedded iframe takes 4+ seconds to render
  • BFS review comes back "fails performance" with no specifics
  • Lighthouse on your admin route scores below 70
  • Web Vitals API reports LCP > 2.5s, INP > 200ms, or CLS > 0.1 over 28 days
  • Your bundle is > 500KB gzipped and you don't know why
  • GraphQL queries are returning THROTTLED (as 200 OK, not 429)
  • Prisma queries take 800ms+ in production but 40ms locally
  • Webhook handlers are taking > 2 seconds and triggering Shopify retries
  • A merchant DMs you "your app is the slowest thing in my admin"
  • You're about to submit for Built for Shopify and want to pass on the first try

Don't use this skill for storefront / theme performance — that's a different problem (theme app extensions, web pixels, checkout extensions). This skill is about the admin embedded surface and the server behind it.


2. Built for Shopify performance thresholds (current)

These are the exact numbers. Memorize them.

Core Web Vitals (admin, measured via App Bridge Web Vitals API)

Metric Threshold Measurement window Min sample size
LCP (Largest Contentful Paint) ≤ 2.5s (p75) 28 days 100 calls
INP (Interaction to Next Paint) ≤ 200ms (p75) 28 days 100 calls
CLS (Cumulative Layout Shift) ≤ 0.1 (p75) 28 days 100 calls
TTI (Time to Interactive) Aim ≤ 3.8s Internal target

p75 means 75% of measured launches must be at or under the threshold. One slow merchant doesn't sink you — the long tail does.

Server / API performance

Metric Threshold
API p95 latency < 500ms
API failure rate < 0.1%
Min requests (28 days) 1000 (for checkout-adjacent apps)
Webhook ACK < 5s before Shopify retries (target < 2s)

Read the full file on GitHub · 801 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. 8d ago First seen · 801 lines · 156 tokens per session scan A ec96984678d4

Subscribe to this mod's changes

app-performance is a skill published in the GitHub repository khadinakbarlabs/shopify-app-builder (1 stars, last pushed 29d ago), licensed MIT. It adds 156 tokens to every session and 7,903 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

frontend

Builds, styles, and polishes web UI and UX. Use for any frontend, page, component, styling, layout, animation, or visual-quality task, or when asked to make an interface look or feel a certain way.

code-yeongyu/oh-my-openagent · 49 tokens

interaction-skill

Layer A interaction-mechanics reference anchored to the beui.dev catalog. Stacks on any style skill whenever work adds or changes motion or interaction — micro-interactions, animated components, transitions, gestures, hover/press/state feedback, loading/success/error morphs, 'make it feel alive'. Mandates reading the…

code-yeongyu/oh-my-openagent · 104 tokens

layout-skill

Layer A layout-mechanics reference. Stacks on any style skill when the screen is an app shell, dashboard, settings, list-detail, mail/inbox, or any layout with fixed regions plus a scrolling body — or when a layout breaks under long, empty, or unbroken content. Owns spatial structure and scroll ownership; owns zero…

code-yeongyu/oh-my-openagent · 88 tokens

ui-designer

Elite UI/UX Design Lead & Frontend Architect. Generates distinctive, non-templated interfaces with opinionated aesthetics, deliberate typography, and exact UX copy. Triggers on UI design, frontend styling, or layout creation.

GulajavaMinistudio/awesome-copilot-id · 49 tokens

html-css-responsive

Custom Instructions: HTML5 & CSS3 Responsive Design Expert.

GulajavaMinistudio/awesome-copilot-id · 15 tokens

shopify-developer

Complete Shopify development reference covering Liquid templating, OS 2.0 themes, GraphQL APIs, Hydrogen, Functions, and performance optimization (API v2026-01). Use when working with .liquid files, building Shopify themes or apps, writing GraphQL queries for Shopify, debugging Liquid errors, creating app extensions…

tech-leads-club/agent-skills · 127 tokens