ai-modcon/genesis-skills/perlmutter-nemo-generate

Claude Code and agent skill by ai-modcon/genesis-skills

Trust tier 3
  • community
Source check pending

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-generate

SKILL.md

Perlmutter NeMo Generate

Use this skill for one job shape only:

  • ns generate
  • server_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.jsonl path
  • an absolute local prompt.yaml path
  • a supported model

Supported models live in config/supported_models.txt.

Env var contract

Require these variables from the env file:

  • OPENAI_BASE_URL
  • NERSC_USER
  • SSH_LOGIN_IDENTITY
  • NERSC_ACCOUNT
  • NERSC_QOS
  • NERSC_CONSTRAINT
  • NERSC_JOB_DIR
  • REMOTE_WORKSPACE_ROOT
  • PERLMUTTER_IMAGE_NAME
  • NEMO_SKILLS_REPO_DIR

Require at least one API key variable:

  • OPENAI_API_KEY
  • NVIDIA_API_KEY

Optional vars:

  • NERSC_HOST default perlmutter.nersc.gov
  • SSH_IDENTITY defaults to <SSH_LOGIN_IDENTITY>-cert.pub
  • NODES default 1
  • NTASKS_PER_NODE default 1
  • DEFAULT_TIMEOUT default 00:20:00
  • HF_HOME_IN_WORKSPACE default /workspace/hf-cache
  • REMOTE_IMAGE_BUILD_DIR default $HOME/ns-image-build
  • STATUS_POLL_INTERVAL default 30
  • PERLMUTTER_BASE_IMAGE default docker.io/library/python:3.11
  • PERLMUTTER_AGENT_RUNS_DIR to override where local run artifacts are stored
  • PERLMUTTER_AGENT_STATE_DIR to 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 ns from PATH
  • the skill creates or reuses a managed virtualenv under ~/.cache/perlmutter-nemo-generate by default
  • the modified repo is installed into that managed virtualenv with pip install -e
  • the rendered submission script uses that managed ns binary explicitly

The image contract is simple:

  • PERLMUTTER_IMAGE_NAME is 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

  1. Validate inputs.
  • Require absolute local paths for the env file, input.jsonl, and prompt.yaml.
  • Reject unsupported models with the allowlist file.
  1. Validate the explicit repo path from the env file.
  • Load NEMO_SKILLS_REPO_DIR from 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.
  1. Ensure MFA-backed SSH access is live.
  1. Run preflight checks before every submission.
  1. If the image is missing, build it.
  1. Prepare the run bundle.
  1. 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.
  1. Submit the job.
  1. Poll until completion.
  1. 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.yaml run-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_DIR so NeMo-Run packages the correct code.
  • The run.sh template uses cd /tmp before invoking ns generate. Do not change this to cd "$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), GitArchivePackager fires and fails on uncommitted run artifacts. Running from /tmp forces the safe PatternPackager path.
  • 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.jsonl path
  • 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ai-modcon/genesis-skills/perlmutter-nemo-generate/badge)](https://verified-skill.com/skills/ai-modcon/genesis-skills/perlmutter-nemo-generate)

Something wrong with this skill or its page? Tell us.