rule-performance

Enforce performance budgets and query optimization rules in code changes.

1|1|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/btabaska/simpler-grants-documentation-automation --skill rule-performance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rule-performance
Source: https://github.com/btabaska/simpler-grants-documentation-automation/tree/main/.claude/skills/rule-performance
Command: npx skills add https://github.com/btabaska/simpler-grants-documentation-automation --skill rule-performance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures that code changes respect performance budgets, disciplined database querying, and caching/rendering strategies to prevent regressions and inefficient implementations.

Core Features & Use Cases

  • Enforces query discipline: prefer explicit loading, indexing, and pagination to prevent N+1 queries and unbounded result sets.
  • Applies performance budgets: guides ISR (where relevant), caching strategies, and rendering considerations to maintain fast user experiences.
  • Provides guardrails for frontend and backend changes across api and frontend codebases.

Quick Start

Review the latest code changes against the defined performance rules and apply the recommended optimizations.

Frequently Asked Questions about rule-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce performance budgets in my code review process?

Enforce performance budgets during code review by checking changes against guardrails for JS bundle size, API latency targets, and rendering paths. This prevents regressions by validating that new code respects defined thresholds before deployment.

What's the best way to prevent N+1 queries and unbounded database result sets?

Prevent N+1 queries and unbounded result sets by enforcing database query discipline through explicit loading, indexing, and pagination. Applying these rules ensures efficient data access patterns and maintains backend API stability.

How do I set API latency targets and caching strategies for frontend rendering?

Set API latency targets and caching strategies by applying performance guardrails to frontend rendering paths. This includes configuring ISR where relevant and defining caching rules to maintain fast user experiences across client code.

Can I apply performance guardrails across both backend and frontend codebases?

Apply performance guardrails across both backend and frontend codebases to maintain full-stack performance. The rules target server-side database access patterns and client-side JS bundle size simultaneously.

Why does my JS bundle size keep growing and how do I apply guardrails to stop it?

JS bundle size grows when code changes lack performance budgets. Apply guardrails by specifying strict size thresholds during code review, ensuring new dependencies and rendering logic respect established limits.

What are performance guardrails and when do I need them for API endpoints?

Performance guardrails are predefined rules for code changes that enforce query discipline, latency targets, and caching. You need them for API endpoints to prevent inefficient implementations and performance regressions.