Skills Plugins MCP Prompt Model 博客 我的中心

slurm-job-script-generator

Generate SLURM `sbatch` job scripts and sanity-check HPC resource requests (nodes, tasks, CPUs, memory, GPUs) for simulation runs. Use when preparing submission scripts, deciding MPI vs MPI+OpenMP layouts, standardizing `#SBATCH` directives, or debugging job launch configuration (`sbatch`/`srun`).

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=freedomintelligence-openclaw-medical-skills-skills-slurm-job-script-generator-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name slurm-job-script-generator description Generate SLURM `sbatch` job scripts and sanity-check HPC resource requests (nodes, tasks, CPUs, memory, GPUs) for simulation runs. Use when preparing submission scripts, deciding MPI vs MPI+OpenMP layouts, standardizing `#SBATCH` directives, or debugging job launch configuration (`sbatch`/`srun`). allowed-tools Read, Bash, Write, Grep, Glob SLURM Job Script Generator Goal Generate a correct, copy-pasteable SLURM job script ( .sbatch ) for running a simulation, and surface common configuration mistakes (bad walltime format, conflicting memory flags, oversubscription hints). Requirements Python 3.8+ No external dependencies (Python standard library only) Works on Linux, macOS, and Windows (script generation only) Inputs to Gather Input Description Example Job name Short identifier for the job phasefield-strong-scaling Walltime SLURM time limit 00:30:00 Partition Cluster partition/queue (if required) compute Account Project/account (if required) matsim Nodes Number of nodes to allocate 2 MPI tasks Total tasks, or tasks per node 128 or 64 per node Threads CPUs per task (OpenMP threads) 2 Memory --mem or --mem-per-cpu (cluster policy dependent) 32G GPUs GPUs per node (optional) 4 Working directory Where the run should execute $SLURM_SUBMIT_DIR Modules Environment modules to load (optional) gcc/12 , openmpi/4.1 Run command The command to launch under SLURM ./simulate --config cfg.json Decision Guidance MPI vs MPI+OpenMP layout Does the code use OpenMP / threading? ├── NO → Use MPI-only: cpus-per-task=1 └── YES → Use hybrid: set cpus-per-task = threads per MPI rank and export OMP_NUM_THREADS = cpus-per-task Rule of thumb: if you see diminishing strong-scaling efficiency at high MPI ranks, try fewer ranks with more threads per rank (and measure). Memory flag selection Use either --mem (per node) or --mem-per-cpu (per CPU), not both. Follow your cluster’s documentation; some sites enforce one style. SLURM --mem units are integer MB by default, or an integer with suffix K/M/G/T (and --mem=0 commonly means “all memory on node”). Script Outputs (JSON Fields) Script Key Outputs scripts/slurm_script_generator.py results.script , results.directives , results.derived , results.warnings Workflow Gather cluster constraints (partition/account, GPU policy, memory policy). Choose a process layout (MPI-only vs hybrid MPI+OpenMP). Generate the script with slurm_script_generator.py . Inspect warnings (conflicts, suspicious layouts). Save the generated script as job.sbatch . Submit with sbatch job.sbatch and monitor with squeue . CLI Examples # Preview a job script (prints to stdout) python3 skills/hpc-deployment/slurm-job-script-generator/scripts/slurm_script_generator.py \ --job-name phasefield \ -- time 00:10:00 \ --partition compute \ --nodes 1 \ --ntasks-per-node 8 \ --cpus-per-task 2 \ --mem 16G \ --module gcc/12 \ --module openmpi/4.1 \ -- \ ./simulate --config config.json # Write to a file and also emit structured JSON python3 skills/hpc-deployment/slurm-job-script-generator/scripts/slurm_script_generator.py \ --job-name phasefield \ -- time 00:10:00 \ --nodes 1 \ --ntasks 16 \ --cpus-per-task 1 \ --out job.sbatch \ --json \ -- \ /bin/echo hello Conversational Workflow Example User : I need an sbatch script for my MPI simulation. I want 2 nodes, 64 ranks per node, 2 OpenMP threads per rank, and 2 hours. Agent workflow : Confirm partition/account and whether GPUs are needed. Generate a hybrid job script: python3 scripts/slurm_script_generator.py --job-name run -- time 02:00:00 --nodes 2 --ntasks-per-node 64 --cpus-per-task 2 -- -- ./simulate Explain the mapping: Total ranks = 128 Threads per rank = 2 ( OMP_NUM_THREADS=2 ) If the user provides node core counts, sanity-check oversubscription using --cores-per-node . Error Handling Error Cause Resolution time must be HH:MM:SS or D-HH:MM:SS Bad walltime format Use 00:30:00 or 1-00:00:00 nodes must be positive Non-positive nodes Provide --nodes >= 1 Provide either --mem or --mem-per-cpu, not both Conflicting memory directives Choose one memory style Provide a run command after -- Missing launch command Add -- ./simulate ... Limitations Does not query cluster hardware or site policies; it can only validate internal consistency. SLURM installations vary (GPU directives, QoS rules, partitions). Adjust directives for your site. References references/slurm_directives.md - Common #SBATCH directives and mapping tips Version History v1.0.0 (2026-02-25): Initial SLURM job script generator
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。