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.
curl -O https://raw.githubusercontent.com/NVIDIA-NeMo/nemo-helix/main/.claude/commands/docs-lint.mdgit clone --depth 1 https://github.com/NVIDIA-NeMo/nemo-helixWrote 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.
[](https://agentmods.dev/commands/nvidia-nemo/nemo-helix/docs-lint)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 ofgateway.post_model()) - Missing attributes (e.g.,
client.customizerwhen 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
- Syntax errors - Python AST parsing (always enabled)
- Type errors -
tytype checker (with--type-checkflag)
How It Works
The script:
- Finds Markdown and MDX files under the requested paths
- Extracts all
pythonandpyfenced code blocks - Combines snippets from each page into a single file so earlier snippets can define later context
- Runs
ty checkand maps diagnostics back to the original doc lines
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.
- today First seen · 99 lines · 0 tokens per session scan A 74f8176f2cb2
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.
docs-lint compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| docs-lintNVIDIA-NeMo/nemo-helix | Command | 160 | today | Apache-2.0 | A | 0 | Claude Code |
| AGENTSpromptfoo/promptfoo | Command | 28k | today | MIT | A | 0 | Claude Code |
| labelkubestellar/kubestellar-mcp | Command | 2 | today | Apache-2.0 | A | 0 | Claude Code |
| deletekubestellar/kubestellar-mcp | Command | 2 | today | Apache-2.0 | A | 0 | Claude Code |
| helm-uninstallkubestellar/kubestellar-mcp | Command | 2 | today | Apache-2.0 | A | 0 | Claude Code |
| TEMPLATEkubestellar/kubestellar-mcp | Command | 2 | today | Apache-2.0 | A | 0 | Claude Code |
| deploykubestellar/kubestellar-mcp | Command | 2 | today | Apache-2.0 | A | 0 | Claude Code |