workspace-performance-audit

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Workspace Performance Audit

工作区性能审计

Overview

概述

Orchestrates comprehensive performance audits across entire monorepo workspaces. Coordinates multiple specialized skills to analyze frontend (Next.js), backend (NestJS), database (MongoDB), browser extensions (Plasmo), and shared packages—delivering consolidated reports with prioritized recommendations.
统筹整个单体仓库工作区的全面性能审计。协调多个专业技能,分析前端(Next.js)、后端(NestJS)、数据库(MongoDB)、浏览器扩展(Plasmo)及共享包——交付带有优先级建议的整合报告。

When to Use

适用场景

  • Full workspace performance review
  • Audit a monorepo
  • "audit performance", "check workspace performance"
  • Identify bottlenecks across frontend, backend, extensions
  • Consolidated performance metrics needed
  • 全工作区性能评审
  • 单体仓库审计
  • "audit performance"(性能审计)、"check workspace performance"(检查工作区性能)
  • 识别前端、后端、扩展中的性能瓶颈
  • 需要整合的性能指标

Skills Orchestrated

协调的技能

SkillFocus AreaPhase
performance-expert
Performance metrics & optimization1-4
design-consistency-auditor
UI/UX consistency & design debt1
accessibility
WCAG 2.1 AA compliance1
security-expert
Security validation2
qa-reviewer
Validation & prioritization5
技能聚焦领域阶段
performance-expert
性能指标与优化1-4
design-consistency-auditor
UI/UX一致性与设计债务1
accessibility
WCAG 2.1 AA合规性1
security-expert
安全验证2
qa-reviewer
验证与优先级排序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
Phase 0: 工作区发现
    → 识别应用、包、技术栈

Phase 1: 前端审计(Next.js)
    → 核心Web指标、包分析、设计、可访问性

Phase 2: 后端审计(NestJS)
    → API响应时间、N+1查询、安全

Phase 3: 数据库审计(MongoDB)
    → 查询性能、索引分析

Phase 4: 扩展与包审计
    → 包大小、内存、依赖

Phase 5: 整合阶段
    → 汇总、评分、优先级排序、生成报告

Key Metrics by Domain

各领域关键指标

DomainKey MetricsTargets
FrontendLCP, FID, CLS<2.5s, <100ms, <0.1
Backendp50, p95 response<100ms, <200ms
DatabaseQuery p95, Index hit<50ms, >95%
ExtensionContent script size<50KB
领域关键指标目标值
前端LCP、FID、CLS<2.5s, <100ms, <0.1
后端p50、p95响应时间<100ms, <200ms
数据库查询p95、索引命中率<50ms, >95%
扩展内容脚本大小<50KB

Usage Modes

使用模式

Quick Audit: Essential checks only → 1-page summary Full Audit: All phases → Complete report Domain-Specific: Single domain focus
快速审计: 仅进行必要检查 → 1页摘要报告 完整审计: 覆盖所有阶段 → 完整报告 特定领域审计: 聚焦单个领域

Integration

集成方式

Produces reports for
.agents/AUDITS/YYYY-MM-DD-performance.md

For detailed phase execution, metric collection commands, report templates, best practices, and example interactions, see:
references/full-guide.md
生成的报告将保存至
.agents/AUDITS/YYYY-MM-DD-performance.md

关于详细的阶段执行、指标收集命令、报告模板、最佳实践及示例交互,请参阅:
references/full-guide.md