lenserfight: Skill for Claude Code

.agents/skills/repo-performance-guard/SKILL.md

repo-performance-guard is a skill for Claude Code from conectlens/lenserfight. It costs 49 tokens per session (617 once invoked), scanned A, original, MIT.

A set of rules for keeping database queries and screen rendering efficient in an Nx monorepo. It focuses on applications that read large Supabase datasets or display long lists.

In plain words
What is it for?
Use it when changing list pages, feeds, Supabase repositories, Vite rendering, caching, pagination, or code that handles large seeded datasets.
Why use it?
It prevents slow queries, excessive data transfer, browser freezes, and memory problems by requiring limits, pagination, focused fields, and server-side filtering.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is conectlens/lenserfight's own configuration. It tells Claude Code how to work on lenserfight itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything lenserfight configures →

Reuse

Borrowing it

Nothing to install: this file belongs to conectlens/lenserfight. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/conectlens/lenserfight/main/.agents/skills/repo-performance-guard/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/conectlens/lenserfight

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 repo-performance-guard

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/conectlens/lenserfight/repo-performance-guard"><img src="https://agentmods.dev/badge/skills/conectlens/lenserfight/repo-performance-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 617 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.00049 $0.00617
Opus 5 $0.00024 $0.00309
Sonnet 5 $0.00010 $0.00123
Haiku 4.5 $0.00005 $0.00062

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

Security

Grade A, and why

repo-performance-guard 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.

.agents/skills/repo-performance-guard/SKILL.md · 60 lines

How it starts

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

Repo Performance Guard

Apply this skill when editing any app or library that reads large datasets from Supabase or renders lists in Vite apps.

Core goal

Prevent the frontend from freezing or crashing when local Supabase contains large seeded datasets.

Non-negotiable rules

  1. Never allow unbounded list reads.
  2. Every list query must have a hard limit.
  3. Every feed must paginate or use cursor-based incremental loading.
  4. Never select more columns than the screen needs.
  5. Never fetch child relations eagerly by default on list pages.
  6. Never rely on frontend filtering to reduce large result sets after fetch.
  7. Push filtering, sorting, and limiting into Supabase queries.
  8. Prefer keyset/cursor pagination for large feeds.
  9. Cache only stable and bounded datasets.
  10. Treat “load all rows” as a defect.

Repo-specific gotchas

  • Large local seeds in supabase/seeds/11_* through 21_* can make naive queries destroy Vite responsiveness.
  • apps/web is the highest-risk frontend for overfetching because threads, prompts, replies, tags, reactions, and multilingual data all compound payload size.
  • libs/data/repositories and libs/data/supabase are likely the central places where unsafe query shapes should be fixed first.
  • If a Supabase view or RPC returns oversized payloads, prefer shrinking it or replacing it with narrower REST-compatible access patterns.
  • Do not fix frontend freezes by only hiding UI. Reduce the query size and retained state size.

Required workflow

  • Inspect the screen entrypoint and identify the exact query path
  • Find the repository/data access function
  • Verify select list, filters, order, and hard limit
  • Verify pagination strategy
  • Verify relation loading strategy
  • Check for duplicate fetches and init waterfalls
  • Check render loops, expensive mapping, and retained arrays in React state
  • Run validation before finalizing

Validation loop

  1. Identify the largest list on the affected screen.
  2. Record current query shape and page size.
  3. Reduce payload to the minimum viable columns.
  4. Add or fix hard limit and pagination.
  5. Re-test initial render, navigation, and incremental loading.
  6. If still slow, inspect joins, RPC/view payload size, and client rerender count.
  7. Do not finalize until the screen can survive large local seed volumes without trying to hold massive arrays in memory.

Read the full file on GitHub · 60 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 60 lines · 49 tokens per session scan A b7ed2b42efbb

Subscribe to this mod's changes

repo-performance-guard is a skill published in the GitHub repository conectlens/lenserfight (18 stars, last pushed 1mo ago), licensed MIT. It adds 49 tokens to every session and 617 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

accessibility-a11y

WCAG 2.2 compliance, ARIA patterns, keyboard navigation, screen readers, automated testing.

travisjneuman/.claude · 26 tokens

flutter-development

Cross-platform development with Flutter and Dart for iOS, Android, Web, Desktop, and embedded. Use when building Flutter apps, implementing Material/Cupertino design, or optimizing Dart code.

travisjneuman/.claude · 41 tokens

database-expert

Advanced database design and administration for PostgreSQL, MongoDB, and Redis. Use when designing schemas, optimizing queries, managing database performance, or implementing data patterns.

travisjneuman/.claude · 36 tokens

electron-desktop

Desktop application development with Electron for Windows, macOS, and Linux. Use when building cross-platform desktop apps, implementing native OS features, or packaging web apps for desktop.

travisjneuman/.claude · 38 tokens

generic-react-ux-designer

Professional UI/UX design expertise for React applications. Covers design thinking, user psychology (Hick's/Fitts's/Jakob's Law), visual hierarchy, interaction patterns, accessibility, performance-driven design, and design critique. Use when designing features, improving UX, solving user problems, or conducting design…

travisjneuman/.claude · 69 tokens

frontend-enhancer

This skill should be used when enhancing the visual design and aesthetics of web applications. It provides modern UI components, design patterns, color palettes, animations, and layout templates. REQUIRES ui-research skill first. Use this skill for tasks like improving styling, creating responsive designs…

travisjneuman/.claude · 79 tokens