Workspace Performance Audit
Authorized Scope
Apply this engine only within the user's requested task and existing explicit
authorization. Loading or delegating to it grants no additional authority.
Preserve report-only restrictions and the caller's target, host, provider, and
cost limits. Existing approval satisfies a gate only for the same actions and
scope; obtain approval before expanding them. Forward these limits to delegates.
Contract
Inputs:
- Monorepo root path (defaults to current working directory)
- Optional: target domain(s) to focus on (frontend, backend, database, extension)
- Optional: audit mode (quick or full)
Outputs:
- Consolidated performance audit report
- Prioritized recommendations with severity ratings
Creates/Modifies:
.agents/memory/performance-audit-YYYY-MM-DD.md — writes the audit report
External Side Effects:
- None. Read-only analysis only; does not deploy, modify, or install anything.
Confirmation Required:
- Before writing the output report if the target path is outside the current workspace
Delegates To:
performance-expert for metrics and optimization
design-consistency-auditor for UI/UX consistency
qa-reviewer for validation and prioritization
Skills Orchestrated
| Skill |
Focus Area |
Phase |
performance-expert |
Performance metrics & optimization |
1-4 |
design-consistency-auditor |
UI/UX consistency & design debt |
1 |
accessibility |
WCAG 2.1 AA compliance |
1 |
security-expert |
Security validation |
2 |
qa-reviewer |
Validation & prioritization |
5 |
Orchestration Flow
Phase 0: Workspace Discovery
→ Identify apps, packages, tech stacks
Phase 1: Frontend Audit (Next.js)
→ Core Web Vitals, Bundle Analysis, Design, A11y
Phase 2: Backend Audit (NestJS)
→ API Response Times, N+1 Queries, Security
Phase 3: Database Audit (MongoDB)
→ Query Performance, Index Analysis
Phase 4: Extension & Packages
→ Bundle Sizes, Memory, Dependencies
Phase 5: Consolidation
→ Aggregate, Score, Prioritize, Report
Key Metrics by Domain
| Domain |
Key Metrics |
Targets |
| Frontend |
LCP, FID, CLS |
<2.5s, <100ms, <0.1 |
| Backend |
p50, p95 response |
<100ms, <200ms |
| Database |
Query p95, Index hit |
<50ms, >95% |
| Extension |
Content script size |
<50KB |
Usage Modes
Quick Audit: Essential checks only → 1-page summary
Full Audit: All phases → Complete report
Domain-Specific: Single domain focus
For detailed phase execution, metric collection commands, report templates, and example interactions: load ${CLAUDE_SKILL_DIR}/references/full-guide.md when starting a full audit or when a specific phase requires detailed guidance.
1---2name: workspace-performance-audit3description: Orchestrates comprehensive performance audits across full-stack monorepos. Coordinates performance-expert, design-consistency-auditor, accessibility, security-expert, and qa-reviewer skills to audit frontend, backend, database, browser extensions, and shared packages. Use when asked for a full workspace performance review, monorepo audit, or to identify bottlenecks across frontend, backend, and extensions.4---5
6# Workspace Performance Audit
7
8## Authorized Scope
9
10Apply this engine only within the user's requested task and existing explicit
11authorization. Loading or delegating to it grants no additional authority.
12Preserve report-only restrictions and the caller's target, host, provider, and
13cost limits. Existing approval satisfies a gate only for the same actions and
14scope; obtain approval before expanding them. Forward these limits to delegates.
15
16## Contract
17
18Inputs:
19
20- Monorepo root path (defaults to current working directory)
21- Optional: target domain(s) to focus on (frontend, backend, database, extension)
22- Optional: audit mode (quick or full)
23
24Outputs:
25
26- Consolidated performance audit report
27- Prioritized recommendations with severity ratings
28
29Creates/Modifies:
30
31- `.agents/memory/performance-audit-YYYY-MM-DD.md` — writes the audit report
32
33External Side Effects:
34
35- None. Read-only analysis only; does not deploy, modify, or install anything.
36
37Confirmation Required:
38
39- Before writing the output report if the target path is outside the current workspace
40
41Delegates To:
42
43- `performance-expert` for metrics and optimization
44- `design-consistency-auditor` for UI/UX consistency
45- `qa-reviewer` for validation and prioritization
46
47## Skills Orchestrated
48
49| Skill | Focus Area | Phase |
50|-------|------------|-------|
51| `performance-expert` | Performance metrics & optimization | 1-4 |
52| `design-consistency-auditor` | UI/UX consistency & design debt | 1 |
53| `accessibility` | WCAG 2.1 AA compliance | 1 |
54| `security-expert` | Security validation | 2 |
55| `qa-reviewer` | Validation & prioritization | 5 |
56
57## Orchestration Flow
58
59```
60Phase 0: Workspace Discovery
61 → Identify apps, packages, tech stacks
62
63Phase 1: Frontend Audit (Next.js)
64 → Core Web Vitals, Bundle Analysis, Design, A11y
65
66Phase 2: Backend Audit (NestJS)
67 → API Response Times, N+1 Queries, Security
68
69Phase 3: Database Audit (MongoDB)
70 → Query Performance, Index Analysis
71
72Phase 4: Extension & Packages
73 → Bundle Sizes, Memory, Dependencies
74
75Phase 5: Consolidation
76 → Aggregate, Score, Prioritize, Report
77```
78
79## Key Metrics by Domain
80
81| Domain | Key Metrics | Targets |
82|--------|-------------|---------|
83| Frontend | LCP, FID, CLS | <2.5s, <100ms, <0.1 |
84| Backend | p50, p95 response | <100ms, <200ms |
85| Database | Query p95, Index hit | <50ms, >95% |
86| Extension | Content script size | <50KB |
87
88## Usage Modes
89
90**Quick Audit:** Essential checks only → 1-page summary
91**Full Audit:** All phases → Complete report
92**Domain-Specific:** Single domain focus
93
94---
95
96**For detailed phase execution, metric collection commands, report templates, and example interactions:** load `${CLAUDE_SKILL_DIR}/references/full-guide.md` when starting a full audit or when a specific phase requires detailed guidance.