performance-skill

Diagnose and resolve performance bottlenecks across API, frontend, and database layers.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/boparaiamrit/build-second-brain --skill performance-skill
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: performance-skill
Source: https://github.com/boparaiamrit/build-second-brain/tree/main/plugins/build-second-brain/skills/performance-skill
Command: npx skills add https://github.com/boparaiamrit/build-second-brain --skill performance-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamline and harden the performance of multi-tenant SaaS systems by providing budgets, patterns, and a diagnosis flow to identify bottlenecks across API, frontend, and database layers.

Core Features & Use Cases

  • Performance budgeting and measurement for API latency, user-perceived load, and database queries across tenants.
  • End-to-end diagnostic guidance for common bottlenecks such as N+1 queries, caching inefficiencies, and queueing/backpressure.
  • Backend, frontend, and database patterns that teams can implement to meet scalability goals (N+1 fixes, Redis caching strategies, BullMQ tuning, per-tenant rate controls, and index/TimescaleDB optimizations).
  • Use case: optimize a slow dashboard by isolating tenant impact, implementing targeted caching, and validating budgets with p95/p99 measurements.

Quick Start

Diagnose a representative slow API path, apply the performance budgets, and implement a minimal caching and indexing strategy to meet the defined targets.

Frequently Asked Questions about performance-skill

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

FAQPage Schema
How do I fix N+1 queries in a multi-tenant SaaS database?▼

Resolve N+1 query performance bottlenecks in multi-tenant SaaS by applying targeted database indexing and diagnostic workflows. This isolates tenant-specific impacts and meets defined p95/p99 latency budgets.

What is the best way to set performance budgets for API latency?▼

Setting performance budgets for API latency involves defining concrete p95 and p99 metrics across tenants. This creates guardrails to quantify user-perceived load and validate that backend optimizations meet scalability goals.

How do I tune BullMQ and Redis caching for backend optimization?▼

Tune BullMQ and Redis caching for backend optimization by implementing queueing backpressure and targeted caching strategies. This resolves caching inefficiencies and enforces per-tenant rate controls for scalable workloads.

Does this performance optimization approach work for frontend bottlenecks?▼

Yes, this performance optimization approach works for frontend bottlenecks by applying end-to-end diagnostic guidance. It measures user-perceived load and implements patterns to resolve dashboard inefficiencies across all layers.

How do I diagnose slow API paths in a multi-tenant architecture?▼

Diagnose slow API paths in multi-tenant architectures by isolating tenant impact and applying performance budgets. Implement a minimal caching and indexing strategy to validate targets and resolve scalability bottlenecks.

When should I use TimescaleDB for multi-tenant database optimization?▼

Use TimescaleDB for multi-tenant database optimization when addressing query bottlenecks that standard indexing cannot resolve. It supports time-series workloads to help teams meet defined performance budgets across tenants.