Performance audit

From fritzprix/libr-agent · View interactive version

Performance audit is an AI agent skill from the GitHub repository fritzprix/libr-agent. Analyze and identify performance bottlenecks across the full stack (Rust concurrency and memory, Tauri IPC, React rendering, SQLite queries), and generate a prioritized action plan report (P0-P2) with concrete Before/After code solutions. Use when asked to audit performance, investigate UI lag or fr

How to use this skill

Skill file

Performance Audit

Systematically identify performance bottlenecks, CPU/memory hotspots, and latency culprits across LibrAgent's full stack, then generate a prioritized action plan (P0-P2) with actionable Before/After code solutions.

Scope & Diagnostic Domains

LibrAgent is a local desktop application (Tauri + Rust + React/TypeScript + SQLite). Performance issues primarily fall into four domains:

  1. Rust Concurrency & Memory:
  1. Tauri IPC Boundary:
  1. Frontend (React / TypeScript):
  1. SQLite & Data Access:

Detailed checklist: see references/checklist-fullstack.md.


Performance Audit Workflow

1. Target Hot Path ➔ 2. Inspect Code ➔ 3. Classify Priority (P0-P2) ➔ 4. Draft Before/After ➔ 5. Action Plan Report

1. Identify Target Scope

2. Systematic Code Inspection

Cross-examine the target against the Full-Stack Checklist:

3. Priority Classification

Classify all identified bottlenecks strictly by impact:

4. Provide Concrete Before/After Solutions

For each finding:

5. Generate Action Plan Report

Write the final audit to .libragent/work/perf_audit_<target>_<YYYYMMDD>.md (or present directly to user) following references/reporting-template.md.


Critical Rules & Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.