workspace-performance-audit
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWorkspace 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
协调的技能
| Skill | Focus Area | Phase |
|---|---|---|
| Performance metrics & optimization | 1-4 |
| UI/UX consistency & design debt | 1 |
| WCAG 2.1 AA compliance | 1 |
| Security validation | 2 |
| Validation & prioritization | 5 |
| 技能 | 聚焦领域 | 阶段 |
|---|---|---|
| 性能指标与优化 | 1-4 |
| UI/UX一致性与设计债务 | 1 |
| WCAG 2.1 AA合规性 | 1 |
| 安全验证 | 2 |
| 验证与优先级排序 | 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, ReportPhase 0: 工作区发现
→ 识别应用、包、技术栈
Phase 1: 前端审计(Next.js)
→ 核心Web指标、包分析、设计、可访问性
Phase 2: 后端审计(NestJS)
→ API响应时间、N+1查询、安全
Phase 3: 数据库审计(MongoDB)
→ 查询性能、索引分析
Phase 4: 扩展与包审计
→ 包大小、内存、依赖
Phase 5: 整合阶段
→ 汇总、评分、优先级排序、生成报告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 |
| 领域 | 关键指标 | 目标值 |
|---|---|---|
| 前端 | 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.mdFor 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