gk-perf

Audit frontend, backend, agentic, and infrastructure performance and generate fix plans.

1|Updated Jul 4, 2026
One-click install
npx skills add https://github.com/gkganesh12/gk-stack --skill gk-perf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gk-perf
Source: https://github.com/gkganesh12/gk-stack/tree/main/skills-library/gk-perf
Command: npx skills add https://github.com/gkganesh12/gk-stack --skill gk-perf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @lhci/cli, tiktoken, python3, and includes references (resource) components.

What problem does it solve?

Performance issues are often invisible until they cause production outages or high costs. This skill provides a systematic, measurable way to audit and optimize your entire stack, ensuring performance is tracked and regressions are caught before deployment.

Core Features & Use Cases

  • Full-Stack Auditing: Measures performance across frontend (Lighthouse), backend (API/DB), agentic (LLM token usage), and infrastructure layers.
  • Automated Fixes: Generates and applies safe, approved performance optimizations like database indexing, code memoization, and token budget trimming.
  • Use Case: Before a major release, run this skill to identify N+1 database queries, bloated frontend bundles, or inefficient LLM prompt chains, and automatically apply fixes to ensure your application meets performance thresholds.

Quick Start

Run the gk-perf skill to perform a full-stack audit and generate a fix plan for the current project.

Frequently Asked Questions about gk-perf

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

FAQPage Schema
How do I perform a full-stack performance audit before deployment?

A full-stack performance audit analyzes metrics across frontend, backend, agentic, and infrastructure layers to identify bottlenecks. It measures API latency, database queries, and LLM token efficiency to generate an actionable fix plan for pre-deployment quality gating.

How can I automatically optimize LLM token usage and reduce prompt latency?

To optimize LLM token usage and reduce latency, the auditing process analyzes agentic layers to identify inefficient prompt chains. It automatically trims token budgets and generates safe optimizations to ensure your application meets performance thresholds.

What is the best way to catch database query bottlenecks and frontend bloat in an automated pipeline?

Automated performance regression testing catches database query bottlenecks and frontend bloat by measuring system metrics using Lighthouse and analyzing database configurations. It identifies N+1 queries and bloated bundles, generating a comprehensive fix plan.

Do I need Python and Lighthouse CLI to run automated performance optimizations?

Yes, Python3, the Lighthouse CLI, and tiktoken are required dependencies to run this automated performance optimization. They enable the system to measure frontend metrics and analyze LLM token efficiency across your infrastructure layers.

Can this auditing tool automatically apply database indexing and code memoization fixes?

Yes, the performance audit generates and applies safe, approved optimizations including database indexing and code memoization. It resolves bottlenecks automatically to ensure your application passes pre-deployment quality gates.

Why does my application still have high latency after passing standard performance checks?

High latency can persist due to invisible infrastructure or agentic layer bottlenecks not caught by standard checks. A comprehensive performance audit analyzes container configurations and LLM token efficiency to identify and resolve these hidden system bottlenecks.