feat(contributor): add one-command and one-prompt developer onboarding
Problem Statement
NemoClaw has a guided installer for end users, but a new core engineer cannot prepare a source checkout for contribution through one supported command or one coding-agent prompt.
The contributor workflow is currently spread across CONTRIBUTING.md, AGENTS.md, package.json, the runtime installer, GitHub documentation, and manual platform setup. A new engineer must independently configure the host toolchain, container runtime, repository dependencies, Git hooks, GitHub authentication, verified commit signing, and optional NemoClaw runtime.
The current documentation also contains drift:
CONTRIBUTING.mdandAGENTS.mdinstruct contributors to runuv syncinsidenemoclaw-blueprint/, but the repositorypyproject.tomlanduv.lockare at the root.- Root
npm install, local CLI exposure, plugin installation, and hook installation overlap but are not presented as one idempotent workflow. - GitHub authentication, contributor identity, commit signing, and DCO requirements are documented separately from initial setup.
- Pi is pinned as a repository development dependency, but the contributor guide does not explain how to launch the pinned version.
- Runtime onboarding is mixed into installation even though documentation changes and many unit-test changes do not require a running sandbox.
- There is no single readiness command that reports whether a machine is prepared to create a compliant first PR.
Related work:
- #6090 tracks three immediate
CONTRIBUTING.mdsetup defects. This proposal should consume or coordinate with that fix rather than duplicate it. - #5047 and #5048 track the agent-supported install path for end users creating a first sandbox. This issue covers the separate core-contributor workflow.
- #2399 previously identified that contributor conveniences should be separated from the package
preparelifecycle.
Proposed Design
Add one executable source of truth for contributor setup:
./scripts/dev-setup.sh
Support these modes:
./scripts/dev-setup.sh
./scripts/dev-setup.sh --doctor
./scripts/dev-setup.sh --repair
./scripts/dev-setup.sh --with-runtime
Default setup
The default command should be idempotent and:
- Detect the supported operating system and architecture.
- Verify required versions of Node.js, npm, Python, uv, Git, GitHub CLI, hadolint, and the selected container runtime.
- Print or, after explicit approval, execute platform-specific dependency installation instructions.
- Verify that Docker is reachable and report its effective CPU, memory, storage, and runtime.
- Install root dependencies.
- Install and build the
nemoclaw/plugin. - Run
uv syncfrom the repository root with a supported Python version. - Install the repository's prek hooks.
- Build and type-check the CLI and plugin.
- Verify that the development
nemoclawcommand resolves to this checkout. - Verify Git contributor name, email, commit-signing configuration, and
commit.gpgsign=true. - Verify GitHub authentication without printing credentials.
- Print a machine-readable and human-readable readiness report.
The default path must not create a gateway or sandbox. Runtime onboarding should occur only with --with-runtime.
Readiness mode
--doctor must be read-only and return nonzero when a required contributor prerequisite is missing.
Example output:
NemoClaw contributor environment
✓ Node.js 22
✓ Supported npm
✓ Python 3.12 repository environment
✓ Root dependencies
✓ Plugin dependencies and build
✓ Git hooks
✓ Git contributor identity
✓ SSH commit signing
✓ GitHub authentication
✓ Docker runtime resources
✓ CLI and plugin type checks
✓ Pi available through npm exec pi
Ready to create a feature branch.
Runtime sandbox: not configured (optional)
Every failure should include one precise remediation command.
Repair mode
--repair may correct repository-local setup such as dependencies, builds, hooks, and local CLI exposure.
It must request confirmation before:
- Installing or changing host packages.
- Starting or replacing a container runtime.
- Generating or registering a signing key.
- Changing GitHub state.
- Changing global Git configuration.
- Destroying or recreating a sandbox.
Runtime mode
--with-runtime should call the existing supported NemoClaw installer/onboarding implementation rather than duplicate it.
It must preserve explicit user decisions for:
- Third-party software acceptance.
- Inference provider and model.
- Credentials.
- Sandbox name and resources.
- Messaging integrations.
- Network policy.
Package aliases
Expose stable contributor commands through package.json:
{
"scripts": {
"dev:setup": "bash scripts/dev-setup.sh",
"dev:doctor": "bash scripts/dev-setup.sh --doctor",
"agent": "pi"
}
}
The Pi command should use the repository-pinned @earendil-works/pi-coding-agent dependency rather than requiring a separate global Pi installation.
One-prompt workflow
Add a contributor skill:
.agents/skills/nemoclaw-contributor-onboard/SKILL.md
A contributor should be able to ask Codex, Pi, or another compatible coding agent:
Set up this machine as a NemoClaw contributor and prepare it for a first PR.
The skill should:
- Read
CONTRIBUTING.mdandAGENTS.md. - Invoke
scripts/dev-setup.shrather than duplicating setup logic. - Ask for contributor identity only when it is missing.
- Pause for browser authentication, signing-key registration, license acceptance, credentials, or privileged changes.
- Run
--doctorand report remaining failures. - Ask whether runtime onboarding is necessary for the intended issue.
- Explain the feature-branch, Conventional Commit, targeted-test, verified-signature, DCO, PR-template, and CI workflow.
- Never print or store tokens in the repository.
Documentation
Update CONTRIBUTING.md so the first contributor path is:
./scripts/dev-setup.sh
Keep the individual manual commands in a troubleshooting or advanced setup section.
Update AGENTS.md to direct coding agents to the contributor-onboarding skill and the same script.
Clearly separate:
- End-user installation and sandbox onboarding.
- Contributor source setup.
- Optional runtime validation.
- PR publication requirements.
Alternatives Considered
Documentation-only correction
Correcting the existing commands would resolve immediate defects such as #6090, but future changes could drift across CONTRIBUTING.md, AGENTS.md, and package scripts again. An executable readiness check gives the documentation a testable source of truth.
Reuse the end-user installer as contributor setup
The installer is optimized for installing NemoClaw and launching a sandbox. It does not own GitHub authentication, contributor identity, commit signing, development hooks, Python documentation dependencies, or PR readiness. It is also unnecessarily heavy for documentation and isolated unit-test work.
Require a development container
A development container could pin the build toolchain, but NemoClaw itself manages containers and OpenShell sandboxes. Making nested or host Docker access the primary contributor path would add complexity around runtime testing, GitHub credentials, and signing. It can remain a future optional environment.
Agent instructions without a setup script
A prompt-only implementation would duplicate shell logic across agents and become difficult to test. The agent skill should orchestrate the same idempotent script used by humans.
Acceptance Criteria
- [ ] A clean supported contributor machine can prepare the repository with one documented command.
- [ ]
npm run dev:doctorreports every required contributor prerequisite and exits nonzero when setup is incomplete. - [ ] Running setup repeatedly is safe and does not recreate working state unnecessarily.
- [ ] Repository-local repair is automated.
- [ ] Host, account, credential, license, and destructive changes require explicit approval.
- [ ] Runtime sandbox creation is optional and disabled by default.
- [ ]
CONTRIBUTING.mdandAGENTS.mduse the setup script as their common source of truth. - [ ] The incorrect
nemoclaw-blueprint/uv syncinstruction is removed or corrected in coordination with #6090. - [ ] The repository-pinned Pi version is launchable through
npm run agentornpm exec pi. - [ ] The contributor-onboarding skill can drive the same workflow from one prompt.
- [ ] Readiness checks cover GitHub authentication, contributor identity, verified commit signing, hooks, builds, and type checks.
- [ ] Tests cover supported dry-run, idempotency, missing dependency, authentication failure, signing failure, and container-runtime failure paths.
- [ ] No secret or credential value is written to logs, command arguments, generated reports, or tracked files.
- [ ] Contributor docs explain DCO in the PR description and GitHub
Verifiedcommit requirements before the first commit.
Category
Feature
Checklist
- [x] I searched open and closed issues and this is not a duplicate.
- [x] This is a design proposal, not a "please build this" request.
@apurvvkumaria see the starter prompt install at https://docs.nvidia.com/nemoclaw/user-guide/openclaw/home#get-started
Are we replacing this or improving it? Also, ideally this prompt would surface in the readme.