# Mcore testing

> Mcore testing is an open-source agent skill for ai models and llm tooling. Guide for adding and running Megatron-LM unit and functional tests. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/NVIDIA/skills/tree/main/skills/mcore-testing
- **Repository:** https://github.com/nvidia/skills
- **GitHub stars:** 4,037
- **License:** Apache-2.0
- **Skill name:** mcore-testing
- **Collection:** https://github.com/NVIDIA/skills
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-21

## About

This skill explains how the Megatron-LM test system is laid out and how to work in it. It covers the unit_tests and functional_tests directories, the recipe folders for H100 and GB200 jobs, and how recipe YAML files expand a products block into individual workloads.

It describes how tests run in CI through a nemo-run launcher that starts a Docker container, how unit tests are dispatched with torch.distributed.run, and how functional tests are driven by a shell script. Known transient failures are retried up to three times. Practical sections cover running the full suite, a single file or one test, marker filters such as flaky, CI parity, and step lists for adding a unit or functional test.

It also gives quick answers for disabling a test without deleting it, for example suffixing a recipe scope with -broken or using pytest markers.

## When your agent uses it

> Test system for Megatron-LM. Covers test layout, recipe YAML structure, adding and running unit and functional tests, golden values, marker filters, and CI parity.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/NVIDIA/skills/tree/HEAD/skills/mcore-testing)
- [License: Apache-2.0](https://github.com/NVIDIA/skills/tree/HEAD/skills/mcore-testing)

## Features

- **Test layout map:** Explains where unit tests, functional test cases, recipes and helper scripts live.
- **Recipe YAML structure:** Shows how recipes expand a products block into workload specs.
- **Local test running:** Commands for the full suite, a single file, one test or a name filter.
- **Marker filters:** Explains flaky and experimental markers for including or excluding tests.
- **Disabling tests safely:** Covers the -broken scope suffix and pytest skip markers.
- **Adding tests:** Step lists for new unit and functional tests, plus common pitfalls.
- **Golden values:** Notes on downloading and updating golden value files.

## Good for

- Add a unit test to Megatron-LM
- Write a recipe YAML for a functional test
- Reproduce a CI test failure locally
- Disable a flaky test without deleting it
- Update golden values for a functional test

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/mcore-testing` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/NVIDIA/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/mcore-testing &&
cp -R "$tmp/skills/mcore-testing" ~/.claude/skills/mcore-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/mcore-testing` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/mcore-testing` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/NVIDIA/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/mcore-testing &&
cp -R "$tmp/skills/mcore-testing" ~/.agents/skills/mcore-testing &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/mcore-testing` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/mcore-testing` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/NVIDIA/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/mcore-testing &&
cp -R "$tmp/skills/mcore-testing" ~/.cursor/skills/mcore-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/mcore-testing` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/NVIDIA/skills.git --path skills/mcore-testing
```

Or copy the folder to `~/.gemini/skills/mcore-testing` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/mcore-testing`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/NVIDIA/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/mcore-testing &&
cp -R "$tmp/skills/mcore-testing" ~/.copilot/skills/mcore-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/mcore-testing` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/NVIDIA/skills.git
```

Then copy `skills/skills/mcore-testing` into your agent's skills folder as `mcore-testing`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I disable a functional test without deleting Mcore testing?

Suffix the recipe's scope with -broken, for example mr-github becomes mr-github-broken.

### How do I skip a flaky unit test?

Use the flaky_in_dev marker to skip in the default dev environment, or flaky to skip in LTS.

### Does CI retry failures?

Yes, known transient patterns such as NCCL timeouts are retried up to three times.

### What hardware do unit tests assume?

One node with 8 GPUs, run through torch.distributed.

### How do I install Mcore testing in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/mcore-testing to use it in all your projects, or to .claude/skills/mcore-testing in one project.

### Does Mcore testing run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Mcore testing?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Mcore testing?

The closest alternatives to Mcore testing are ML engineering, Nemo mbridge mlm bridge training, Mcore run on slurm, Nemo mbridge perf cuda graphs and Nemo mbridge recipe recommender.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [ML engineering](https://ai-powered.com/skills/ml-engineering): ML engineering is an open-source agent skill for developer tools.
- [Nemo mbridge mlm bridge training](https://ai-powered.com/skills/nemo-mbridge-mlm-bridge-training): Nemo mbridge mlm bridge training is an open-source agent skill for ai models and llm tooling.
- [Mcore run on slurm](https://ai-powered.com/skills/mcore-run-on-slurm): Mcore run on slurm is an open-source agent skill for developer tools.
- [Nemo mbridge perf cuda graphs](https://ai-powered.com/skills/nemo-mbridge-perf-cuda-graphs): Nemo mbridge perf cuda graphs is an open-source agent skill for developer tools.
- [Nemo mbridge recipe recommender](https://ai-powered.com/skills/nemo-mbridge-recipe-recommender): Nemo mbridge recipe recommender is an open-source agent skill for ai models and llm tooling.
- [Nemo mbridge perf megatron fsdp](https://ai-powered.com/skills/nemo-mbridge-perf-megatron-fsdp): Nemo mbridge perf megatron fsdp is an open-source agent skill for ai models and llm tooling.
- [Mcore linting and formatting](https://ai-powered.com/skills/mcore-linting-and-formatting): Mcore linting and formatting is an open-source agent skill for developer tools.
- [Nemo mbridge perf moe hardware configs](https://ai-powered.com/skills/nemo-mbridge-perf-moe-hardware-configs): Nemo mbridge perf moe hardware configs is an open-source agent skill for ai models and llm tooling.

---
Source: https://ai-powered.com/skills/mcore-testing
