slurm-job-script-generator
Pass
Audited by Gen Agent Trust Hub on Mar 7, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill generates SLURM job scripts using a Python utility that implements strict input validation. It uses regular expressions to enforce formats for job names, memory specifications, and walltime limits, ensuring that generated directives are syntactically correct and conform to cluster expectations.
- [SAFE]: The generator script employs
shlex.quote()for all user-provided strings (such as commands, environment variables, and module names) before interpolating them into the output bash script. This follows security best practices to prevent shell injection or command manipulation within the generated.sbatchfiles. - [SAFE]: Analysis of the Python source code confirms it relies exclusively on the standard library. No external network requests, file exfiltration patterns, or hardcoded credentials were identified. The file writing operations are limited to the user-specified output path.
- [SAFE]: There is no evidence of prompt injection, obfuscation, or persistence mechanisms. The metadata and documentation are consistent with the functional code.
Audit Metadata