Dev & Engineering ✓ NVIDIA · Official

Megatron-Core Linting & Formatting

Standardize Megatron-LM Python checks and formatting before code review.

51/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 3.8k
Last updated
today
License
Apache-2.0
python-formattinglintingmegatron-coreruff
+4blackisortpylintmypy

What does this skill do, and when should you use it?

This skill provides linting and formatting guidance for Megatron-LM, within NVIDIA’s Megatron-Core skill collection. It explains how to run autoformat.sh in check or fix mode and how to use black, isort, pylint, ruff, and mypy. It also defines project style rules for public APIs, docstrings, naming, line length, and exception handling. It is a good fit for PR preparation and style-violation fixes, although the source does not document a platform matrix or standalone test suite.

Runs tools/autoformat.sh in check-only or fix mode; directs users to run uv run isort on edited Python files; installs the linting dependency group inside a container with uv sync --locked --only-group linting; and states rules for public API type hints, Google-style docstrings, Python naming, a 119-character line limit, and specific exception handling.

Good fit
  • A Megatron-LM contributor wants to validate formatting and linting before opening a PR.
  • A developer needs to address pre-commit fails, ruff errors, isort issues, mypy errors, or other style violations.
  • A contributor has edited Python imports and needs to reorder them according to project conventions.
  • A team needs the same linting tools used by autoformat.sh and the CI linting job inside a container.

How do you install this skill?

Before you use it
  • Fix mode directly changes source files; confirm the working-tree scope and create a recoverable version-control checkpoint before execution.
  • The guidance depends on tools/autoformat.sh, pyproject.toml, locked dependencies, and the container environment, so it may not run outside the corresponding Megatron-LM repository.
  • Tier 3 evaluation is unavailable; the reported PASS should not be interpreted as completed end-to-end validation.
  • Chinese-language guidance, systematic troubleshooting, and a tool-version compatibility matrix are not provided.
Before you start
Your agent needs
  • Shell / CLI
  • Local filesystem
Install first
  • bash
  • uv
  • black
  • isort
  • pylint
  • ruff
  • mypy

Install the individual skill with the default skills CLI:

npx skills add nvidia/skills --skill mcore-linting-and-formatting --yes

Alternatively, run npx skills add nvidia/skills interactively and select the skill. The README does not specify a manual-copy destination for this individual skill.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/NVIDIA/skills.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/skills/mcore-linting-and-formatting" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • pre-commit fails; help me run and fix Megatron-LM formatting checks.

Trigger it with a relevant request such as: “pre-commit fails; help me run and fix Megatron-LM formatting checks.”

Check mode:
BASE_REF=main CHECK_ONLY=true SKIP_DOCS=false bash tools/autoformat.sh

Fix mode:
BASE_REF=main CHECK_ONLY=false bash tools/autoformat.sh

After editing Python imports:
uv run isort <file1>.py <file2>.py

Install the linting group inside the container:
uv sync --locked --only-group linting

What are this skill's strengths and limitations?

Pros
  • Covers black, isort, pylint, ruff, and mypy, matching the tools named for autoformat.sh and CI linting.
  • Provides copyable commands for checking, fixing, import ordering, and dependency setup.
  • States concrete rules for public API typing, docstrings, naming, line length, and exception handling.
  • The collection README documents CLI installation targets including Codex, Claude Code, and Cursor.
Limitations
  • Focused on Megatron-LM Python style and linting rather than general code quality or testing.
  • The SKILL.md does not specify tool versions, operating-system support, or the full configuration files.
  • No standalone test suite, sample failure output, or verification results are provided.
  • Fix mode can modify files, so users should review their working-tree changes.

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
Megatron-Core Linting & Formatting this page ✓ NVIDIA · Official 51 · Use with care ★ 3.8k today Apache-2.0
RenderCV Development Context 57 · Use with care ★ 18k 7mo ago MIT
Megatron-Core Testing Guide ✓ NVIDIA · Official 52 · Use with care ★ 3.8k today Apache-2.0
MoE Hardware Configuration Reference ✓ NVIDIA · Official 52 · Use with care ★ 3.8k today Apache-2.0
Effect JSDoc Authoring Skill 77 · Strongly recommended ★ 28k 14d ago MIT

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
51/ 100 5-point scale 2.6 / 5
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
1Trust16 / 25 · 3.2/5

The skill only directs local linting and formatting tools; no malware, credential handling, or exfiltration is evident. It uses uv sync --locked, and the repository CI shows constrained permissions. Deductions apply because fix mode modifies files without explicit user confirmation, backup/rollback guidance, data-flow disclosure, execution isolation, or clear recovery boundaries.

2Reliability8 / 20 · 2.0/5

The commands, tool list, and check/fix paths are broadly consistent, and the benchmark reports passing static validation. Deductions apply because autoformat.sh, pyproject.toml, and the relevant CI configuration are not included in the target skill evidence; abnormal inputs, missing tools, version incompatibility, and diagnostic failure handling are unspecified. Under static calibration, the score remains at or below 10.

3Adaptability9 / 15 · 3.0/5

The audience, Megatron-LM context, trigger phrases, and main tools are reasonably clear, covering pre-PR checks and common lint issues. Deductions apply because non-fit cases, prerequisites, platform differences, and Chinese-language guidance are not stated. The container and uv assumptions limit environment fit, although the core function does not depend on overseas online services.

4Convention8 / 15 · 2.7/5

Front matter supplies the name, description, author, and Apache-2.0 license; the skill card adds use case, output, version, owner, and references, while command examples support progressive use. Deductions apply for missing metadata.tags, Instructions, Examples, and Purpose sections noted by the report, plus limited FAQ/known-limitations coverage, no substantive changelog, and no clear maintenance/update path. Repository license metadata is NOASSERTION.

5Effectiveness6 / 15 · 2.0/5

The skill gives directly reusable commands and style rules for the core Megatron-LM linting and formatting task, likely reducing manual lookup. Deductions apply because no actual outputs, remediation workflow, or result verification are shown, and users must still validate script and tool configuration. The benchmark provides no usable Tier 3 results, so static calibration limits the score to 7 or below.

6Verifiability4 / 10 · 2.0/5

Commands, tool declarations, and benchmark static findings are reviewable, and the skill card provides a version and reference documentation. Deductions apply because the benchmark explicitly lacks Tier 3 task details, signals, and rollup, evals.json is empty, and no committed CI/test evidence covers this skill's key paths. Evidence is therefore limited to static material and remains at or below 5.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Jul 20, 2026 Reviewed revision 55f18499943e Review evidence[1][2][3][4][5][6][7][8][9][10][11][12][13]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

Does it run unit tests?
The source only describes formatting and static-analysis tools; it does not say that unit tests are run.
Does it require network access?
The skill describes no network calls. Dependency installation with uv may need to obtain uncached packages, but the source does not specify the network behavior.
Which projects does it target?
It explicitly targets Megatron-LM and its autoformat.sh, CI linting workflow, and Python style rules.
Will installation automatically change code?
Check mode applies no changes; fix mode uses CHECK_ONLY=false and applies formatting fixes.

More skills from this repository

All from NVIDIA/skills

Dev & Engineering ✓ NVIDIA · Official

Megatron-Core Testing Guide

Design, run, and reproduce distributed Megatron-Core tests with CI-aligned workflows.

★ 3.8k FS 52 Use with care today
Dev & Engineering ✓ NVIDIA · Official

MoE Hardware Configuration Reference

Plan MoE training layouts and throughput expectations across NVIDIA GPU platforms.

★ 3.8k FS 52 Use with care today
Automation & Ops ✓ NVIDIA · Official

Megatron-Core CI Failure to Issue

Investigate failed GitHub Actions jobs and create structured bug issues for NVIDIA Megatron-LM.

★ 3.8k FS 46 Use with care today
Dev & Engineering ✓ NVIDIA · Official

NVIDIA cuOpt Developer

Guides source-level cuOpt modification, builds, tests, debugging, and contributions.

★ 3.8k FS 62 Recommended today
Dev & Engineering ✓ NVIDIA · Official

NeMo Relay Installation Guide

Choose and verify the right NeMo Relay path for CLIs, language packages, and maintained frameworks.

★ 3.8k FS 62 Recommended today
Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge GPU Memory Tuning

Diagnose GPU OOMs in Megatron Bridge training and reduce fragmentation, activation, and PEFT memory usage.

★ 3.8k FS 61 Recommended today
Dev & Engineering ✓ NVIDIA · Official

NeMo Relay Quick Start

Helps first-time NeMo Relay users prove observable execution value through the smallest suitable trial.

★ 3.8k FS 61 Recommended today
Data & Analysis ✓ NVIDIA · Official

DICOM Series Preflight

Header-only validation for one DICOM series before conversion or inference.

★ 3.8k FS 60 Recommended today
Dev & Engineering ✓ NVIDIA · Official

Megatron Bridge Activation Recompute

Trade extra compute for lower GPU activation memory in Megatron Bridge training.

★ 3.8k FS 59 Recommended today
Dev & Engineering ✓ NVIDIA · Official

DALI Dynamic Mode Assistant

Helps agents write, review, and migrate NVIDIA DALI imperative dynamic-mode code.

★ 3.8k FS 58 Recommended today
Dev & Engineering ✓ NVIDIA · Official

NeMo Evaluator Plugin Skill

Run and manage NeMo Platform model evaluations through the Evaluator CLI and Python SDK.

★ 3.8k FS 58 Recommended today
Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge Parallelism Strategy Guide

Choose, combine, and validate Megatron Bridge parallelism configurations.

★ 3.8k FS 58 Recommended today
Writing & Content ✓ NVIDIA · Official

Skill Card Generator

Generates or refreshes governance cards for existing agent skills.

★ 3.8k FS 58 Recommended today
Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge MoE Expert-Parallel Overlap

Configure, validate, and troubleshoot MoE expert-parallel communication overlap in Megatron-Bridge.

★ 3.8k FS 57 Use with care today
Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge MoE VLM Training Guide

Guides FSDP and 3D-parallel choices and tuning for MoE vision-language model training.

★ 3.8k FS 57 Use with care today
Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge Training Resiliency

Configure fault recovery and hang detection for Megatron Bridge distributed training.

★ 3.8k FS 57 Use with care today
Dev & Engineering ✓ NVIDIA · Official

NeMo Relay Migration Assistant

Safely migrate NeMo Flow projects to NeMo Relay.

★ 3.8k FS 57 Use with care today
Dev & Engineering ✓ NVIDIA · Official

Earth2Studio Diagnostic Builder

Build Earth2Studio wrappers for single-step diagnostic data transformations.

★ 3.8k FS 56 Use with care today
Data & Analysis ✓ NVIDIA · Official

Earth2Studio Weather Data Fetch

Fetch validated weather and climate variables from Earth2Studio sources by time and data type.

★ 3.8k FS 56 Use with care today
Dev & Engineering ✓ NVIDIA · Official

Earth2Studio Installation Guide

Helps users install Earth2Studio and configure model extras and environment settings safely.

★ 3.8k FS 56 Use with care today

Related skills