协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
profiling-performance【开发与工程】Profile a running web application's CPU performance using Cursor's built-in browser profiler. Captures call stacks, identifies slow functions, and suggests optimizations. Use when a page feels slow or janky.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a web application feels slow, janky, or unresponsive. Cursor's built-in browser has CPU profiling tools that capture real call stacks and timing data.
The cursor-ide-browser MCP provides browser_profile_start and browser_profile_stop tools that capture Chrome DevTools-format CPU profiles. Profile data is written to ~/.cursor/browser-logs/ as both raw JSON and a human-readable summary.
Ensure the app is running — start the dev server if it isn't already running.
Navigate to the slow page:
Tool: browser_navigate
Arguments: { "url": "http://localhost:3000/slow-page" }
Start profiling:
Tool: browser_profile_start
Reproduce the slow interaction — use browser tools to trigger the slow behavior:
browser_click, browser_scroll, browser_fill to interactStop profiling:
Tool: browser_profile_stop
This writes two files to ~/.cursor/browser-logs/:
cpu-profile-{timestamp}.json — raw Chrome DevTools profilecpu-profile-{timestamp}-summary.md — human-readable summaryAnalyze the results — read both files. Key things to look for in the raw JSON:
profile.nodes[].hitCount — how many samples hit each functionprofile.nodes[].callFrame.functionName — the function namesprofile.samples.length — total number of samples collectedCross-reference with the summary to identify:
Suggest fixes — based on the profile data, recommend specific optimizations:
.json profile to verify the summary — the summary can miss nuances.