nemo-helix: Command for Claude Code

.claude/commands/docs-lint.md

docs-lint is a command for Claude Code from NVIDIA-NeMo/nemo-helix. It costs 0 tokens per session (841 once invoked), scanned A, original, Apache-2.0.

A command for checking Python code blocks embedded in Markdown and MDX documentation without running them. It can also type-check the collected snippets for invalid names, attributes, and method calls.

In plain words
What is it for?
Use it to lint one documentation page or a directory of pages, and optionally check the snippets' types.
Why use it?
It catches broken examples before readers copy them, while avoiding the side effects of executing documentation code. This keeps tutorials and reference pages closer to the actual SDK or API.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Cursor.

This is NVIDIA-NeMo/nemo-helix's own configuration. It tells Claude Code how to work on nemo-helix itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nemo-helix configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run python docs/_scripts/lint_python_snippets.py <path>.

Reuse

Borrowing it

Nothing to install: this file belongs to NVIDIA-NeMo/nemo-helix. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/NVIDIA-NeMo/nemo-helix/main/.claude/commands/docs-lint.md
Clone the repo
git clone --depth 1 https://github.com/NVIDIA-NeMo/nemo-helix

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docs-lint

README.md
[![agentmods](https://agentmods.dev/badge/commands/nvidia-nemo/nemo-helix/docs-lint/github.svg)](https://agentmods.dev/commands/nvidia-nemo/nemo-helix/docs-lint)
Your own site
<a href="https://agentmods.dev/commands/nvidia-nemo/nemo-helix/docs-lint"><img src="https://agentmods.dev/badge/commands/nvidia-nemo/nemo-helix/docs-lint/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docs-lint

Your own site · 80×15
<a href="https://agentmods.dev/commands/nvidia-nemo/nemo-helix/docs-lint"><img src="https://agentmods.dev/badge/commands/nvidia-nemo/nemo-helix/docs-lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 841 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00841
Opus 5.5 $0.00000 $0.00336
Sonnet 5.5 $0.00000 $0.00168
Haiku 4.5 $0.00000 $0.00084

Measured today against content hash 74f8176f2cb2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs-lint scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/docs-lint.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Linting Documentation Python Snippets

Lint Markdown and MDX Python fenced code blocks for syntax and type errors without executing them using docs/_scripts/lint_python_snippets.py.

Basic Usage

uv run python docs/_scripts/lint_python_snippets.py <path>

Examples:

# Lint a single doc page
uv run python docs/_scripts/lint_python_snippets.py docs/run-inference/tutorials/deploy-llm-nims.md

# Lint all Markdown/MDX pages in a directory
uv run python docs/_scripts/lint_python_snippets.py docs/run-inference/

Running in Cursor Agent Sandbox Mode

When running through the Cursor agent in sandbox mode, the agent will set UV_CACHE_DIR in the shell environment to avoid read-only filesystem errors. The agent will also use required_permissions: ["network", "git_write"] since uv needs network access to download packages and git_write permissions to create cache directories.

Type Checking

Add --type-check to run ty type checker on the combined snippets:

uv run python docs/_scripts/lint_python_snippets.py docs/run-inference/ --type-check

This catches:

  • Wrong SDK method names (e.g., gateway.create() instead of gateway.post_model())
  • Missing attributes (e.g., client.customizer when customizer isn't available)
  • Type mismatches

Note: ty is alpha software and reports some false positives for SDK attributes it can't fully resolve.

What It Checks

  1. Syntax errors - Python AST parsing (always enabled)
  2. Type errors - ty type checker (with --type-check flag)

How It Works

The script:

  1. Finds Markdown and MDX files under the requested paths
  2. Extracts all python and py fenced code blocks
  3. Combines snippets from each page into a single file so earlier snippets can define later context
  4. Runs ty check and maps diagnostics back to the original doc lines

Read the full file on GitHub · 99 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 99 lines · 0 tokens per session scan A 74f8176f2cb2

Subscribe to this mod's changes

docs-lint is a command published in the GitHub repository NVIDIA-NeMo/nemo-helix (160 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 841 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-05.

Related

docs-lint compared with commands from other repositories

docs-lint next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docs-lintNVIDIA-NeMo/nemo-helixCommand160todayApache-2.0A0Claude Code
AGENTSpromptfoo/promptfooCommand28ktodayMITA0Claude Code
labelkubestellar/kubestellar-mcpCommand2todayApache-2.0A0Claude Code
deletekubestellar/kubestellar-mcpCommand2todayApache-2.0A0Claude Code
helm-uninstallkubestellar/kubestellar-mcpCommand2todayApache-2.0A0Claude Code
TEMPLATEkubestellar/kubestellar-mcpCommand2todayApache-2.0A0Claude Code
deploykubestellar/kubestellar-mcpCommand2todayApache-2.0A0Claude Code