kwongfuk/codex-skills/palmetto-conda-scratch-guard

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Enforce Palmetto storage policy: keep /home for code, configs, and standard small experiment results, while placing Conda envs, caches, datasets, models, containers, checkpoints, and other large files under /scratch; run preflight checks for login-vs-compute node, GPU visibility, and CUDA tools/runtime before installs or training. Use when creating/updating envs, pulling HF models/datasets, preparing Apptainer images, debugging missing GPU/CUDA, or validating cluster node context.

Install

npx vskill@latest install kwongfuk/codex-skills/palmetto-conda-scratch-guard

SKILL.md

Palmetto Conda Scratch Guard

Rules

  • Treat /home/$USER as the source tree area: code, configs, small manifests, and standard lightweight experiment results may live there.
  • Treat /scratch/$USER as the heavy-storage area: envs, caches, datasets, model weights, container images, checkpoints, raw intermediate outputs, and any large file or large directory go there.
  • Create new environments under /scratch/$USER/envs/<env_name>.
  • Store Hugging Face model cache under /scratch/$USER/.hf_cache.
  • Store dataset downloads under /scratch/$USER/data.
  • Store model weights and large generated artifacts under /scratch/$USER/models or another scratch-backed project path.
  • Store container images under /scratch/$USER/containers.
  • Store pip cache under /scratch/$USER/.pip_cache.
  • In Codex/agent-run Slurm jobs, do not assume $USER matches the real Palmetto account. If the session user can be coder, use an explicit absolute scratch root such as /scratch/<real_user> or a validated SCRATCH_ROOT variable instead of deriving critical paths from $USER.
  • Do not create heavy Conda environments under /home/$USER unless the user explicitly requests it.
  • Do not place large caches, downloaded models, dataset shards, checkpoints, or other large artifacts under /home/$USER.
  • If an env path is missing, create /scratch/$USER/envs first.
  • Keep login node usage light; prefer compute allocation for heavy install/build workloads.
  • Set PYTHONNOUSERSITE=1 for env checks to avoid accidental package shadowing from ~/.local.

Workflow

  1. Run preflight checks:
bash
bash scripts/palmetto_preflight.sh
  1. Create environment in scratch:
bash
mkdir -p /scratch/$USER/envs
conda create -p /scratch/$USER/envs/<env_name> python=3.10 -y
  1. Activate by absolute path:
bash
conda activate /scratch/$USER/envs/<env_name>
  1. Install packages.
  1. Set cache paths to scratch before model/data/container downloads:
bash
mkdir -p /scratch/$USER/{.hf_cache,.pip_cache,data,containers,models}
export HF_HOME=/scratch/$USER/.hf_cache
export TRANSFORMERS_CACHE=$HF_HOME/transformers
export HUGGINGFACE_HUB_CACHE=$HF_HOME/hub
export PIP_CACHE_DIR=/scratch/$USER/.pip_cache
export PYTHONNOUSERSITE=1

Decision Guide

  • If preflight reports NODE_CLASS=login and task is heavy (large pip/conda builds, CUDA extensions, model runtime setup), move to an allocated compute node first (salloc or srun --pty bash).
  • If task includes pulling large models/datasets/containers, run on compute allocation and keep all targets under /scratch/$USER.
  • If an experiment produces only standard summary artifacts such as final tables, plots, or compact metrics, they may stay with the code under /home/$USER.
  • If an output is large, resumable, or expensive to regenerate, keep it under /scratch/$USER even if the final summarized result is later copied back to the project tree.
  • If nvidia-smi is missing or no GPUs are visible, check node class first. Login nodes often have no GPUs.
  • If torch.cuda.is_available() is false but GPUs exist, verify CUDA toolkit/driver compatibility and env package build.

References

  • See references/checklist.md for a compact troubleshooting checklist.

Security

  • Security scanPassed, 95 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/kwongfuk/codex-skills/palmetto-conda-scratch-guard/badge)](https://verified-skill.com/skills/kwongfuk/codex-skills/palmetto-conda-scratch-guard)

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