npx skills add ...
npx skills add nvidia/tensorrt-llm --skill perf-analysis
Performance analysis coordination workflow. Guides profiling delegation, bottleneck classification (compute/memory/launch/communication/sync), and structured report generation. Use when the user asks to analyze performance, profile a workload, check MFU/SOL, or diagnose bottlenecks.
npx skills add nvidia/tensorrt-llm --skill perf-analysis
When diagnosing performance issues, classify the primary bottleneck:
| Type | Indicator | Description |
|---|---|---|
| Compute-bound | High GPU utilization, low memory bandwidth usage | Limited by compute capacity (FLOPs) |
| Memory-bound | High memory bandwidth, low compute utilization | Limited by DRAM throughput |
| Launch-overhead | Many small kernels, high CPU time | CPU becoming bottleneck from kernel launch overhead |
| Communication-bound | Significant time in collective operations | Limited by inter-GPU or inter-node communication |
| Sync-bound | Excessive CPU-GPU synchronization points | Stalls from unnecessary synchronization |
After classifying, consult the perf-optimization-casebook skill for candidate optimizations (decision precedents) matching the bottleneck class, model, and hardware. Use it to populate the Recommendations section with proven, adapted approaches rather than inventing them — but report only measured numbers, never a case's expected effect as an achieved result.
When delegating to specialists, describe the desired outcome -- not the tool methodology.
DO include:
DO NOT include:
--set=full, --section SpeedOfLight)Specialists have their own skills that encode best practices for tool usage
and their own workspace artifacts for output. Prescribing commands in the
delegation overrides their skills and may lead to suboptimal profiling
strategies (e.g., collecting 8000+ metrics with --set=full when a targeted
section analysis would be faster and more surgical).
When profiling on a remote SLURM cluster, include the Remote Execution Context block in the delegation prompt with the SSH+srun wrapper for the target cluster. The perf-profiling-specialist will prefix its commands (nsys, ncu, nvidia-smi) with this wrapper.
The perf-profiling-specialist does not need the remote-slurm skill — the
context block provides everything it needs to execute remotely.
Delegate profiling and domain-specific analysis to these specialists:
Structure every analysis report with these four sections: