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.
curl -O https://raw.githubusercontent.com/conectlens/lenserfight/main/.agents/skills/repo-performance-guard/SKILL.mdgit clone --depth 1 https://github.com/conectlens/lenserfightWrote 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.
[](https://agentmods.dev/skills/conectlens/lenserfight/repo-performance-guard)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
- Never allow unbounded list reads.
- Every list query must have a hard limit.
- Every feed must paginate or use cursor-based incremental loading.
- Never select more columns than the screen needs.
- Never fetch child relations eagerly by default on list pages.
- Never rely on frontend filtering to reduce large result sets after fetch.
- Push filtering, sorting, and limiting into Supabase queries.
- Prefer keyset/cursor pagination for large feeds.
- Cache only stable and bounded datasets.
- Treat “load all rows” as a defect.
Repo-specific gotchas
- Large local seeds in
supabase/seeds/11_*through21_*can make naive queries destroy Vite responsiveness. apps/webis the highest-risk frontend for overfetching because threads, prompts, replies, tags, reactions, and multilingual data all compound payload size.libs/data/repositoriesandlibs/data/supabaseare 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
- Identify the largest list on the affected screen.
- Record current query shape and page size.
- Reduce payload to the minimum viable columns.
- Add or fix hard limit and pagination.
- Re-test initial render, navigation, and incremental loading.
- If still slow, inspect joins, RPC/view payload size, and client rerender count.
- Do not finalize until the screen can survive large local seed volumes without trying to hold massive arrays in memory.
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.
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.
- 11d ago First seen · 60 lines · 49 tokens per session scan A b7ed2b42efbb
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.
Other skills, from other repositories
accessibility-a11y
WCAG 2.2 compliance, ARIA patterns, keyboard navigation, screen readers, automated testing.
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.
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.
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.
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…
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…