What problem does it solve? Profiling Node.js code for CPU and memory regressions is ad hoc and error-prone, and results often lack structure for downstream analysis. This Skill provides a repeatable profiling workflow that runs measurements in an isolated sandbox and returns structured JSON data to the performance_engineer agent. ## Core Features & Use Cases - Sandboxed CPU and Memory Profiling: Executes test fixtures inside the code-execution-mcp Docker sandbox using process.cpuUsage() and heapUsed deltas with a 5-second timeout and 512MB memory cap. - Bundle and Web Vitals Measurement: Runs build-size analysis and headless Lighthouse audits via the Bash tool for metrics requiring network access. - Structured JSON Output: Returns a standardized envelope with measurement value, unit, baseline delta percentage, and raw output for the performance_engineer agent to synthesize into reports. - Use Case: Before deploying a change to src/core/scheduler.js, invoke the skill with metric=cpu and a baseline SHA to detect whether the new code increased CPU time by more than an acceptable threshold. ## Quick Start Ask the agent to profile src/core/scheduler.js for CPU usage with the ai-profile skill and compare it against a baseline commit.