performance-profiling

Profile and optimize CampusOS performance metrics, bundle size, and Lighthouse scores.

4|10|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/NITRR-Official/CampusOS --skill performance-profiling-nitrr-official
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-profiling
Source: https://github.com/NITRR-Official/CampusOS/tree/main/.agents/skills/performance-profiling
Command: npx skills add https://github.com/NITRR-Official/CampusOS --skill performance-profiling-nitrr-official

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses performance bottlenecks in CampusOS, such as slow page loads, large bundle sizes, excessive memory usage, and low Lighthouse scores.

Core Features & Use Cases

  • Bundle Analysis: Identifies large chunks, duplicates, and unused libraries.
  • Memory Profiling: Provides tools for heap snapshot analysis.
  • Database Query Profiling: Offers strategies for adding indexes and using .lean() for read-only queries.
  • Frontend Profiling: Utilizes Lighthouse for performance audits.
  • Optimization Workflow: Provides a structured approach to performance tuning.

Quick Start

Run the performance-profiling skill to optimize CampusOS performance.

Frequently Asked Questions about performance-profiling

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

FAQPage Schema
How do I reduce web application bundle size and identify unused libraries?

Bundle analysis identifies large chunks, duplicates, and unused libraries to reduce web application bundle size. This process isolates redundant code within your build output, allowing you to remove unnecessary dependencies and streamline asset delivery.

What is the best way to profile memory usage and analyze heap snapshots?

Memory profiling provides dedicated tools for heap snapshot analysis to identify excessive memory usage. By capturing and inspecting the heap, you can pinpoint memory leaks, identify retained objects, and optimize garbage collection behavior.

How do I optimize database queries and improve read performance?

Database query profiling improves read performance by offering strategies for adding indexes and using `.lean()` for read-only queries. This reduces query execution time and minimizes memory overhead by returning plain JavaScript objects.

Can I use Lighthouse to audit frontend performance and improve page load times?

Frontend profiling utilizes Lighthouse to audit performance and improve page load times. It runs comprehensive audits against your web pages, generating actionable metrics and scores for accessibility, best practices, and loading efficiency.

Does this performance optimization workflow require any external dependencies?

No external dependencies are required to run this performance optimization workflow. The skill operates independently through its internal scripts, providing a structured approach to performance tuning without needing additional package installations.

Why does my web application have low Lighthouse scores despite code splitting?

Low Lighthouse scores can persist despite code splitting due to unoptimized memory usage, inefficient database queries, or large unanalyzed bundle chunks. A structured optimization workflow evaluates all these metrics to find remaining bottlenecks.