Linting and formatting for Megatron-LM. Covers running autoformat.sh, tools (ruff, black, isort, pylint, mypy), and code style rules.
Automate repetitive workflows and reduce manual effort
Example: Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example: Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example: Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Time estimate: 15-45 minutes depending on use case complexity
Prerequisites
Submit your Claude Code skill and start earning
epx add nvidia/skills/mcore-linting-and-formattingCompatible with
Supported agents
| name | mcore-linting-and-formatting |
| description | Linting and formatting for Megatron-LM. Covers running autoformat.sh, tools (ruff, black, isort, pylint, mypy), and code style rules. |
| license | Apache-2.0 |
| when_to_use | Running linting or autoformat; fixing style violations before a PR; 'pre-commit fails', 'ruff error', 'isort', 'mypy', 'style violation', 'how do I format', 'autoformat.sh'. |
| metadata | author: Philip Petrakian <ppetrakian@nvidia.com> |
Run before opening a PR:
# Check mode (no changes applied)
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
Tools invoked: black, isort, pylint, ruff, mypy.
After editing imports in any Python files, always run uv run isort on those
files before committing:
uv run isort <file1>.py <file2>.py
Inside the container:
uv sync --locked --only-group linting
This installs ruff, black, isort, pylint — the same tools used by
tools/autoformat.sh and CI's linting job.
X | None, not Optional[X].snake_case for functions and variables, PascalCase for classes.pyproject.toml).except: always catch specific exception types.AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionmcore-linting-and-formattingExecute the skills CLI command in your project's root directory to begin installation:
epx add nvidia/skills/mcore-linting-and-formattingFetches mcore-linting-and-formatting from nvidia/skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
.cursor/skills/mcore-linting-and-formatting
Restart Cursor to activate mcore-linting-and-formatting. Access via /mcore-linting-and-formatting in your agent's command palette.
Learn more:View source on GitHubSkills CLI docsAbout CursorWhat are agent skills?
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
cuopt-skill-evolution
nvidia/skills · cuopt · same repo
tao-train-depth-anything-v2
nvidia/skills · tao · same repo
jetson-init-image
nvidia/skills · jetson · same repo
nemo-automodel-model-onboarding
nvidia/skills · nemo · same repo
cuopt-numerical-optimization-api-c
nvidia/skills · cuopt · same repo
nemo-mbridge-perf-cpu-offloading
nvidia/skills · nemo-mbridge · same repo
mcore-linting-and-formatting reduced setup friction for our internal harness; good balance of opinion and flexibility.
mcore-linting-and-formatting is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
We added mcore-linting-and-formatting from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
mcore-linting-and-formatting is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
mcore-linting-and-formatting fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Registry listing for mcore-linting-and-formatting matched our evaluation — installs cleanly and behaves as described in the markdown.
We added mcore-linting-and-formatting from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
mcore-linting-and-formatting has been reliable in day-to-day use. Documentation quality is above average for community skills.
Solid pick for teams standardizing on skills: mcore-linting-and-formatting is focused, and the summary matches what you get after install.
Keeps context tight: mcore-linting-and-formatting is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 71