comm_bottleneck

comm_bottleneck is a skill for Claude Code, Codex from DeepLink-org/probing. It costs 15 tokens per session (458 once invoked), scanned A, original, Apache-2.0.

A performance-analysis skill for finding slow communication operations in distributed machine-learning training. Collective operations are steps where multiple computers or GPUs exchange data, such as combining results from all GPUs.

In plain words
What is it for?
Use it to inspect NCCL or PyTorch communication timings, find communication hotspots, and investigate issues such as slow all-reduce operations or network congestion.
Why use it?
It shows whether communication, rather than computation, is making each training step slow, and ranks the biggest total and worst-case latency contributors.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/deeplink-org/probing/comm_bottleneck
Any agent
npx skills add DeepLink-org/probing --skill comm_bottleneck
Clone the repo
git clone --depth 1 https://github.com/DeepLink-org/probing

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for comm_bottleneck

README.md
[![agentmods](https://agentmods.dev/badge/skills/deeplink-org/probing/comm_bottleneck.svg)](https://agentmods.dev/skills/deeplink-org/probing/comm_bottleneck)
Your own site
<a href="https://agentmods.dev/skills/deeplink-org/probing/comm_bottleneck"><img src="https://agentmods.dev/badge/skills/deeplink-org/probing/comm_bottleneck.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 458 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00015 $0.00458
Opus 5 $0.00008 $0.00229
Sonnet 5 $0.00003 $0.00092
Haiku 4.5 $0.00002 $0.00046

Measured 5d ago against content hash bb665f53b8c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

comm_bottleneck scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

python/probing/bundled_skills/comm_bottleneck/SKILL.md · 40 lines

What it actually says

Communication bottleneck

按 collective op 聚合延迟与传输量,定位通信热点。 适用于「计算不慢但 step 时间长」或「通信占比高」的场景。

数据层次(勿混淆计时语义)

计时
NCCL profiler 插件(优先 nccl.coll_perfnccl.proxy_ops NCCL 原生事件,执行时间/带宽精准(见 timing_source
Torch API 层插桩(回退) python.comm_collective Python 墙钟,launch 层粗粒度;独有 global_step 上下文

Torch 侧插桩默认关闭(含多 rank);需 PROBING_TORCH_COLLECTIVE_ENABLE=1SET probing.torch.collective.enable=1

Parameters

  • step_window (integer, default 50):
  • use_global (boolean, default True):
  • all_reduce 慢 → 检查 bucket 大小、overlap、FP16 compress
  • nccl.proxy_ops → skill: nccl_culprit_victim(culprit/victim 归因)
  • RoCE 拥塞 → 查 rdma.mlx_hca 与交换机 ECN 配置
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 40 lines · 15 tokens per session scan A bb665f53b8c6

Subscribe to this mod's changes

comm_bottleneck is a skill published in the GitHub repository DeepLink-org/probing (11 stars, last pushed 4d ago), licensed Apache-2.0. It adds 15 tokens to every session and 458 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.