perf

perf is a skill for Claude Code from GlamgarOnDiscord/claude-saas-blueprint. It costs 29 tokens per session (705 once invoked), scanned A, original, MIT.

A skill for finding and improving performance problems in a Next.js and Supabase SaaS application.

In plain words
What is it for?
Use it to audit database access, page rendering, JavaScript bundle size, images, caching, and background jobs such as emails or PDF exports.
Why use it?
It helps locate slow database queries, oversized browser code, unnecessary rendering, and work that blocks web requests.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/project_health.py # vue globale.

Good fit Use it to audit database access, page rendering, JavaScript bundle size, images, caching, and background jobs such as emails or PDF exports.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/GlamgarOnDiscord/claude-saas-blueprint
agentmods
npx agentmods add skills/glamgarondiscord/claude-saas-blueprint/perf

Made for: Claude Code.

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 perf

README.md
[![agentmods](https://agentmods.dev/badge/skills/glamgarondiscord/claude-saas-blueprint/perf/github.svg)](https://agentmods.dev/skills/glamgarondiscord/claude-saas-blueprint/perf)
Your own site
<a href="https://agentmods.dev/skills/glamgarondiscord/claude-saas-blueprint/perf"><img src="https://agentmods.dev/badge/skills/glamgarondiscord/claude-saas-blueprint/perf/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 perf

Your own site · 80×15
<a href="https://agentmods.dev/skills/glamgarondiscord/claude-saas-blueprint/perf"><img src="https://agentmods.dev/badge/skills/glamgarondiscord/claude-saas-blueprint/perf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 705 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.00029 $0.00705
Opus 5 $0.00015 $0.00352
Sonnet 5 $0.00006 $0.00141
Haiku 4.5 $0.00003 $0.00071

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

Security

Grade A, and why

perf 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 11d 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.

.claude/skills/perf/SKILL.md · 63 lines

How it starts

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

Phase 1 — Identifier les bottlenecks

Lancer d'abord :

python scripts/project_health.py   # vue globale

Web App (Next.js) :

  • Server Components vs Client Components inutiles ("use client" abusif ?)
  • Re-renders inutiles (props instables, Context trop large)
  • N+1 queries (boucle avec query DB à chaque itération)
  • Images non optimisées (pas de next/image)
  • Composants lourds non lazy-loadés (dynamic(() => import(...)))
  • Bundle size : analyser next build output — alerter si JS client > 500KB
  • Pas de cache() sur les Server Components qui refetch les mêmes données

API + DB :

  • Index manquants sur FK et champs de recherche fréquents
  • Endpoints sans pagination (retournent tout)
  • Opérations lentes dans le handler (email, PDF, webhook) → doivent être async
  • Connection pooling Supabase : utiliser le pooler (port 6543), pas direct

Background jobs :

  • Emails, webhooks, exports PDF, traitements IA → ne JAMAIS bloquer le handler
  • Solutions recommandées : Trigger.dev v4 ou Inngest (voir docs/integrations/ai-tools-2026.md)
  • Pattern : POST /api/invoice → créer job → return 202 → Trigger.dev exécute en fond

Edge :

  • Endpoints légers (auth check, redirects) → Edge Runtime (export const runtime = 'edge')
  • DB géo-distribuée pour faible latence globale : Turso (SQLite edge) ou Neon (serverless Postgres)

Phase 2 — Quick wins (par ordre d'impact)

  1. Index DB manquants — impact immédiat, 0 code à changer
    CREATE INDEX ON public.invoices (organization_id, created_at DESC);
    
  2. Pagination sur tous les endpoints de liste (limit + cursor)
  3. Lazy load composants lourds (éditeurs, charts, maps)
  4. Cache React Query : staleTime: 5 * 60 * 1000 sur les queries stables
  5. next/image pour toutes les images + formats WebP/AVIF
  6. Debounce les inputs de recherche (300ms)
  7. Passer en async les opérations lentes (email → Resend en background)

Phase 3 — Optimisations avancées

Read the full file on GitHub · 63 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. 11d ago First seen · 63 lines · 29 tokens per session scan A db6d139f2fc5

Subscribe to this mod's changes

perf is a skill published in the GitHub repository GlamgarOnDiscord/claude-saas-blueprint (2 stars, last pushed 3mo ago), licensed MIT. It adds 29 tokens to every session and 705 once invoked, about $0.0001 per session on Opus 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-31.

Related

Other skills, from other repositories

react-component-performance

Diagnose slow React components and suggest targeted performance fixes.

beel-collab/presets.dev · 11 tokens

systemic-issue-triage

Trigger: new issue, bug report, triage, backlog, issue flood, community report, root cause, dead-end, blocked user. Attack issues by root class, never one-by-one; fixes must shrink the system, not grow it.

Gentleman-Programming/gentle-ai · 57 tokens

issue-root-resolution

Trigger: root audit, atacar la raíz, issue roots, backlog roots, mechanism map, deletion-driven fix, resolver issues de raíz, close outdated issues. Audit and resolve issue clusters by verified root cause.

Gentleman-Programming/gentle-ai · 45 tokens

reproduce-frontend-bug

Build a bounded, replayable browser or UI bug reproduction from GitHub Issues, Jira, Aone, user-provided exports, screenshots, videos, comments, or attachments. Use for browser, WebView, IDE or desktop UI, interaction, responsive, rendering, accessibility, or visual defects that need evidence-preserving reproduction…

QoderAI/better-harness · 87 tokens

d3-viz

Creating interactive data visualisations using d3.js. This skill should be used when creating custom charts, graphs, network diagrams, geographic visualisations, or any complex SVG-based data visualisation that requires fine-grained control over visual elements, transitions, or interactions. Use this for bespoke…

calesthio/OpenMontage · 87 tokens

gsap-plugins

Official GSAP skill for GSAP plugins — registration, ScrollToPlugin, ScrollSmoother, Flip, Draggable, Inertia, Observer, SplitText, ScrambleText, SVG and physics plugins, CustomEase, EasePack, CustomWiggle, CustomBounce, GSDevTools. Use when the user asks about a GSAP plugin, scroll-to, flip animations, draggable, SVG…

calesthio/OpenMontage · 91 tokens