Skip to main content
Ejecuta cualquier Skill en Manus
con un clic

monitor-hook-perf-rules

Estrellas10
Forks6
Actualizado10 de junio de 2026 a las 09:20

Mandatory discipline for monitor (probe) hot paths in internal_medicine. Hooks can enqueue CUDA/NCCL work that contends with EP a2a / DDP / TP communication, so they must not D2H-sync (.item/.cpu/.tolist/.numpy/python-compare on tensors), should avoid hook-time collectives unless correctness requires them, and must declare their full metric schema at registration before allocate_buffers. Use when adding or modifying any monitor, touching any _make_*_hook / register_hooks / _compute_* function, reviewing a PR that changes hot-path code or adds a metric, or diagnosing a perf regression that appears after enabling internal_medicine_monitors.

Instalación

Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.

SKILL.md
readonly