microsoft/ort-lint
Lint and format ONNX Runtime code. Use this skill when asked to lint, format, or check code style for C++ or Python files in ONNX Runtime.
npx skills add https://github.com/microsoft/onnxruntime --skill ort-lint
ONNX Runtime uses lintrunner for both C++ (clang-format) and Python (ruff).
pip install -r requirements-lintrunner.txt
lintrunner init
lintrunner -a # auto-fix changed files
lintrunner -a --all-files # auto-fix all files
lintrunner -a path/to/file.py path/to/other_file.cc # auto-fix specific files
lintrunner f --all-files # format Python files only
lintrunner # check without fixing (dry run)
docs/Coding_Conventions_and_Standards.md for full details).clang-format and .clang-tidypyproject.tomlAGENTS.md.lintrunner -a (changed files only) over --all-files unless the user asks for a full sweep.Take microsoft/ort-lint from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference pip.
Without those the skill loads but fails at the first command.