ai-modcon/genesis-skills/perlmutter-nemo-generate
Claude Code and agent skill by ai-modcon/genesis-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when the user wants to run API-backed NeMo-Skills generation on NERSC Perlmutter with sshproxy MFA, podman-hpc image bootstrap, remote preflight checks, job submission, polling, and result retrieval. Require an absolute env file, an absolute local input.jsonl path, an absolute local prompt.yaml path, and a supported model.
Install
npx vskill@latest install ai-modcon/genesis-skills/perlmutter-nemo-generateSKILL.md
Perlmutter NeMo Generate
Use this skill for one job shape only:
ns generateserver_type=openai- Perlmutter
executor: slurm - Perlmutter
runtime: podman-hpc - external OpenAI-compatible endpoint
Do not use this skill for ns eval, sidecars, self-hosted vLLM, or multi-component jobs.
Inputs
The user must provide:
- an absolute local env file path
- an absolute local
input.jsonlpath - an absolute local
prompt.yamlpath - a supported
model
Supported models live in config/supported_models.txt.
Env var contract
Require these variables from the env file:
OPENAI_BASE_URLNERSC_USERSSH_LOGIN_IDENTITYNERSC_ACCOUNTNERSC_QOSNERSC_CONSTRAINTNERSC_JOB_DIRREMOTE_WORKSPACE_ROOTPERLMUTTER_IMAGE_NAMENEMO_SKILLS_REPO_DIR
Require at least one API key variable:
OPENAI_API_KEYNVIDIA_API_KEY
Optional vars:
NERSC_HOSTdefaultperlmutter.nersc.govSSH_IDENTITYdefaults to<SSH_LOGIN_IDENTITY>-cert.pubNODESdefault1NTASKS_PER_NODEdefault1DEFAULT_TIMEOUTdefault00:20:00HF_HOME_IN_WORKSPACEdefault/workspace/hf-cacheREMOTE_IMAGE_BUILD_DIRdefault$HOME/ns-image-buildSTATUS_POLL_INTERVALdefault30PERLMUTTER_BASE_IMAGEdefaultdocker.io/library/python:3.11PERLMUTTER_AGENT_RUNS_DIRto override where local run artifacts are storedPERLMUTTER_AGENT_STATE_DIRto override where the managed local virtualenv is stored
The explicit repo path in NEMO_SKILLS_REPO_DIR must point to the Perlmutter-enabled NeMo-Skills checkout. The scripts validate the repo shape and reject checkouts that do not contain the required Perlmutter files.
The local CLI contract is:
- the skill never trusts
nsfromPATH - the skill creates or reuses a managed virtualenv under
~/.cache/perlmutter-nemo-generateby default - the modified repo is installed into that managed virtualenv with
pip install -e - the rendered submission script uses that managed
nsbinary explicitly
The image contract is simple:
PERLMUTTER_IMAGE_NAMEis the tag the skill will look for on Perlmutter.- If that tag already exists, the skill reuses it.
- If that tag is missing, the skill builds the minimal podman-hpc image defined by templates/Containerfile.minimal.tmpl and migrates it.
- The user does not need to know a separate image "type"; the skill manages one image shape for this workflow.
Workflow
- Validate inputs.
- Require absolute local paths for the env file,
input.jsonl, andprompt.yaml. - Reject unsupported models with the allowlist file.
- Validate the explicit repo path from the env file.
- Load
NEMO_SKILLS_REPO_DIRfrom the env file. - Reject the run if the repo path is missing, not absolute, or does not contain the required Perlmutter-enabled files.
- Never assume a sibling
Skills/checkout. - Never clone or install the repo automatically.
- Ensure MFA-backed SSH access is live.
- Run scripts/ensure_sshproxy.sh.
- Treat
sshproxyas interactive and wait for the user to complete MFA.
- Run preflight checks before every submission.
- Run scripts/check_remote_access.sh without
--require-image. - Then run it with
--require-image. - If it exits with code
3, the target image is missing.
- If the image is missing, build it.
- Run scripts/build_remote_image.sh.
- Re-run the image preflight check after build and migration.
- Prepare the run bundle.
- Run scripts/prepare_run.sh.
- This renders:
perlmutter.yamlrun.shmanifest.json
- Stage user files.
- Run scripts/stage_inputs.sh.
- Always copy the user files into the remote mounted workspace first.
- Never rely on untracked local files being packaged by NeMo-Run.
- Submit the job.
- Poll until completion.
- Run scripts/check_status.sh with
--wait. - Success requires the remote
output.jsonl.donefile.
- Fetch outputs.
Behavior constraints
- Never print the contents of the env file.
- Never echo secret values from API keys or SSH settings.
- Always keep
perlmutter.yamlrun-specific; do not edit shared checked-in templates in place. - Always mount the run-specific remote directory to
/workspace. - Always submit from the repo pointed to by
NEMO_SKILLS_REPO_DIRso NeMo-Run packages the correct code. - The
run.shtemplate usescd /tmpbefore invokingns generate. Do not change this tocd "$SCRIPT_DIR". NeMo-Skills'get_packager()checks the process CWD for a git repo; if the CWD is inside any git repo (including this skill's own repo),GitArchivePackagerfires and fails on uncommitted run artifacts. Running from/tmpforces the safePatternPackagerpath. - Preflight checks are mandatory on every run. Do not treat them as optional health checks.
Final response
The final user-facing reply must include:
- whether the job succeeded or failed
- the local fetched
output.jsonlpath - the local fetched log directory or submission log path
- the image tag used
- a short failure summary if any step failed
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/baseeval-skills/perlmutter-ns-skills/perlmutter-nemo-generate/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ai-modcon/genesis-skills/perlmutter-nemo-generate)