AgentSkillsCN

workspace-performance-audit

统筹全栈单体仓库的全面性能审计。协调性能专家、设计一致性审核员、无障碍专家、安全专家,以及 QA 审核人员的专业技能,对前端、后端、数据库、浏览器扩展,以及共享组件进行全面审计。

SKILL.md
--- frontmatter
name: workspace-performance-audit
description: 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.

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.

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

Skills Orchestrated

SkillFocus AreaPhase
performance-expertPerformance metrics & optimization1-4
design-consistency-auditorUI/UX consistency & design debt1
accessibilityWCAG 2.1 AA compliance1
security-expertSecurity validation2
qa-reviewerValidation & prioritization5

Orchestration Flow

code
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

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

Usage Modes

Quick Audit: Essential checks only → 1-page summary Full Audit: All phases → Complete report Domain-Specific: Single domain focus

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