Thank you for your interest in contributing to NVIDIA NemoClaw. This guide covers how to set up your development environment, run tests, and submit changes.
Open an issue when you encounter one of the following situations.
- A real bug that you confirmed and could not fix.
- A feature proposal with a design — not a "please build this" request.
- Security vulnerabilities must follow SECURITY.md — not GitHub issues.
Install the following before you begin.
- Node.js 22.16+ and npm 10+
- Python 3.11+ (for blueprint and documentation builds)
- Docker (running)
- uv (for Python dependency management)
- hadolint (Dockerfile linter —
brew install hadolinton macOS)
Install the root dependencies and build the TypeScript plugin:
# Install root dependencies (OpenClaw + CLI entry point)
npm install
# Install and build the TypeScript plugin
cd nemoclaw && npm install && npm run build && cd ..
# Install Python deps for the blueprint
cd nemoclaw-blueprint && uv sync && cd ..The TypeScript plugin lives in nemoclaw/ and compiles with tsc:
cd nemoclaw
npm run build # one-time compile
npm run dev # watch modeThe CLI (bin/, scripts/) is type-checked separately:
npm run typecheck:cli # or: npx tsc -p tsconfig.cli.jsonAfter building, return to the repository root and link the CLI so the nemoclaw command is available locally.
If you followed the build step above, you are still inside nemoclaw/ and must cd .. first:
cd .. # back to the repo root (from nemoclaw/ subdirectory)
npm link
nemoclaw --version # verify the linked versionTo unlink when you are done: npm unlink -g nemoclaw
These are the primary make and npm targets for day-to-day development:
| Task | Purpose |
|---|---|
make check |
Run all linters (TypeScript + Python) |
make lint |
Same as make check |
make format |
Auto-format TypeScript and Python source |
npm run typecheck:cli |
Type-check CLI TypeScript (bin/, scripts/) |
npm test |
Run root-level tests (test/*.test.js) |
cd nemoclaw && npm test |
Run plugin unit tests (Vitest) |
make docs |
Build documentation (Sphinx/MyST) |
make docs-live |
Serve docs locally with auto-rebuild |
npx prek run --all-files |
Run all hooks from .pre-commit-config.yaml — see below |
All git hooks are managed by prek, a fast, single-binary pre-commit hook runner installed as a devDependency (@j178/prek). The npm install step runs prek install automatically via the prepare script, which wires up the following hooks from .pre-commit-config.yaml:
| Hook | What runs |
|---|---|
| pre-commit | File fixers, formatters, linters, doc-to-skills regeneration, Vitest (plugin) |
| commit-msg | commitlint (Conventional Commits) |
| pre-push | TypeScript type check (tsc --noEmit for plugin, JS, and CLI) |
For a full manual check: npx prek run --all-files. For scoped runs: npx prek run --from-ref <base> --to-ref HEAD.
If you still have core.hooksPath set from an old Husky setup, Git will ignore .git/hooks. Run git config --unset core.hooksPath in this repo, then npm install so prek install (via prepare) can register the hooks.
make check remains the primary documented linter entry point.
The repository is organized as follows.
| Path | Purpose |
|---|---|
nemoclaw/ |
TypeScript plugin (Commander CLI, OpenClaw extension) |
nemoclaw-blueprint/ |
Python blueprint for sandbox orchestration |
bin/ |
CLI entry point (nemoclaw.js) |
scripts/ |
Install helpers and automation scripts |
test/ |
Root-level integration tests |
docs/ |
User-facing documentation (Sphinx/MyST) |
All new source files must be TypeScript. Do not add new .js files to the project. When modifying an existing JavaScript file, prefer migrating it to TypeScript in the same PR.
Only a small CommonJS launcher/compatibility layer remains in bin/, while the main CLI implementation now lives in src/lib/ and compiles to dist/. Tests in test/ may remain ESM JavaScript for now but new test files should use TypeScript where practical.
Shell scripts (scripts/*.sh) must pass ShellCheck and use shfmt formatting.
If your change affects user-facing behavior (new commands, changed defaults, new features, bug fixes that contradict existing docs), update the relevant pages under docs/ in the same PR.
If you use an AI coding agent (Cursor, Claude Code, Codex, etc.), the repo includes the nemoclaw-contributor-update-docs skill that drafts doc updates. Use it before writing from scratch and follow the style guide in docs/CONTRIBUTING.md.
To build and preview docs locally:
make docs # build the docs
make docs-live # serve locally with auto-rebuildSee docs/CONTRIBUTING.md for the full style guide and writing conventions.
The docs/ directory is the source of truth for user-facing documentation.
The script scripts/docs-to-skills.py converts doc pages into agent skills under .agents/skills/.
These generated skills let AI agents answer user questions and walk through procedures without reading raw doc pages.
Always edit pages in docs/.
Never edit generated skill files under .agents/skills/nemoclaw-user-*/ — your changes will be overwritten on the next run.
A pre-commit hook regenerates skills automatically whenever you commit changes to docs/**/*.md files. The hook runs scripts/docs-to-skills.py and stages the updated skills so they are included in the same commit. No manual step is needed for normal workflows.
To regenerate skills manually (for example, after rebasing or outside of a commit), run from the repo root:
python scripts/docs-to-skills.py docs/ .agents/skills/ --prefix nemoclaw-userAlways use this exact output path (.agents/skills/) and prefix (nemoclaw-user) so skill names and locations stay consistent.
Preview what would change before writing files:
python scripts/docs-to-skills.py docs/ .agents/skills/ --prefix nemoclaw-user --dry-runOther useful flags:
| Flag | Purpose |
|---|---|
--strategy <name> |
Grouping strategy: smart (default), grouped, or individual. |
--name-map CAT=NAME |
Override a generated skill name (e.g. --name-map about=overview). |
--exclude <file> |
Skip specific files (e.g. --exclude "release-notes.md"). |
Each skill directory contains:
.agents/skills/<skill-name>/
├── SKILL.md # Frontmatter + procedures + related skills
└── references/ # Detailed concept and reference content (loaded on demand)
├── <concept-page>.md
└── <reference-page>.md
Agents load the references/ directory only when needed (progressive disclosure).
The SKILL.md itself stays under 500 lines so agents can read it quickly.
We welcome contributions. Every PR requires maintainer review. To keep the review queue healthy, limit the number of open PRs you have at any time to fewer than 10.
Warning
Accounts that repeatedly exceed this limit or submit automated bulk PRs may have their PRs closed or their access restricted.
Do not add links to third-party code repositories, community collections, or unofficial resources in documentation, README files, or code. This includes "awesome lists," community template repositories, wrapper projects, and similar community-maintained resources — regardless of popularity or utility.
Links to official documentation for tools we depend on (e.g., Node.js, Python, uv) and industry standards (e.g., Conventional Commits) are acceptable.
Why: External repositories are outside our control. They can change ownership, inject malicious content, or misrepresent an endorsement by NVIDIA. Keeping references within our own repo avoids these risks entirely.
If you believe an external resource belongs in our docs, open an issue to discuss it with maintainers first.
Follow these steps to submit a pull request.
- Create a feature branch from
main. - Make your changes with tests.
- Run
make checkandnpm testto verify. - Open a PR.
This project uses Conventional Commits. All commit messages must follow the format:
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
Types:
feat- New featurefix- Bug fixdocs- Documentation onlychore- Maintenance tasks (dependencies, build config)refactor- Code change that neither fixes a bug nor adds a featuretest- Adding or updating testsci- CI/CD changesperf- Performance improvements
Examples:
feat(cli): add --profile flag to nemoclaw onboard
fix(blueprint): handle missing API key gracefully
docs: update quickstart for new install wizard
chore(deps): bump commander to 13.2