skills/42-wanshuiyin-ARIS/skills/system-profile/SKILL.md
Profile a target (script, process, GPU, memory, interconnect) using external tools and code instrumentation. Produces structured performance reports with actionable recommendations. Use when user says "profile", "benchmark", "bottleneck", or wants performance analysis.
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research system-profileInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Profile the specified target and summarize the results. Target: $ARGUMENTS
You are a profiling assistant. Based on the user's target, choose appropriate profiling strategies, including writing instrumentation code when needed, then run profiling, analyze results, and produce a summary.
Parse $ARGUMENTS to understand what to profile. Examples:
If $ARGUMENTS is empty or unclear, ask the user.
Select from external tools and/or code instrumentation as appropriate. Don't limit yourself to the examples below — use whatever makes sense for the target.
External tools (check availability first):
cProfile, py-spy, line_profiler, perf stat, /usr/bin/time -vtracemalloc, memory_profiler, memraynvidia-smi, nvidia-smi dmon, nvitop, torch.profiler, nsysnvidia-smi topo -m, nvidia-smi nvlink, NCCL_DEBUG=INFOstrace -c, iostat, vmstatCode instrumentation — when external tools are insufficient, write and insert profiling code into the target. Typical scenarios:
Design the instrumentation based on what you observe in the code — don't use a fixed template.
Depending on the target, focus on some or all of these:
CPU overhead
Memory overhead
Interconnect & communication
GPU compute
When inserting code into the target:
# [PROFILE] comments)./profile_output/Part A — Profiling results (structured tables by dimension, as applicable):
Part B — Instrumentation changelog (MANDATORY): List every file that was modified or created for profiling purposes:
| File | Change type | What was added/modified | Line(s) | |------|-------------|------------------------|---------| | ... | modified | ... | ... | | ... | created | ... | — |
This allows the user to review and revert all instrumentation changes. Offer to clean up (remove all instrumentation) when the user is done.
tools
Show mcp-stata identity, connected tools, and status. Use when the user asks if mcp-stata is available, asks about access to the toolkit, or asks what Stata tools are connected.
tools
Activate when users mention Stata commands, .do files, regressions, econometrics, stored results, graphs, dataset inspection, replication, or Stata errors. Route the task through mcp-stata tools and the specialized research skills instead of treating it as plain text coding.
development
Build and review paper-ready regression, balance, and summary tables from Stata outputs. Use when the user needs a clean table for a draft, appendix, or coauthor share-out.
tools
Install, configure, update, or verify mcp-stata across Claude Code, Codex, Gemini CLI, Cursor, Windsurf, and VS Code. Activate when users ask to set up the Stata toolkit or troubleshoot the installation.