Skip to content

Add slurm-snakemake plugin#1

Open
andynu wants to merge 3 commits intomasterfrom
add-slurm-snakemake
Open

Add slurm-snakemake plugin#1
andynu wants to merge 3 commits intomasterfrom
add-slurm-snakemake

Conversation

@andynu
Copy link
Copy Markdown
Contributor

@andynu andynu commented Mar 23, 2026

Summary

  • Adds slurm-snakemake plugin for Snakemake 8+ workflow development on Slurm HPC clusters
  • Covers executor plugin system (not legacy --cluster), profiles, resource directives, job debugging, NFS latency handling, job grouping
  • Software environments section is tool-agnostic (conda, uv/venv, envmodules, containers)
  • No hardcoded cluster-specific values — uses placeholders throughout

Test plan

  • Load plugin with claude --plugin-dir ./plugins/slurm-snakemake
  • Test skill invocation with /slurm-snakemake:slurm-snakemake
  • Validate on cluster with real Snakemake workflows — refine based on usage

PR Review Checklist

Per https://github.com/whitehead/claude-plugins#pr-review-checklist:

  • No usernames or account names. Uses YOUR_PARTITION, YOUR_ACCOUNT placeholders.
  • No real names. No names in skill content. Author attribution in plugin.json per repo convention.
  • No internal hostnames or paths. No server names, NFS paths, or home directories.
  • No credentials or tokens. None present.
  • No internal URLs. Only link is to the public https://snakemake.github.io/snakemake-plugin-catalog/plugins/executor/slurm.html.
  • No institutional operational details. No lab names, project codenames, or infrastructure details.

andynu added 3 commits March 23, 2026 13:12
Snakemake 8+ workflow development with Slurm executor plugin for HPC
clusters. Covers profiles, resource directives, job debugging, NFS
gotchas, and multiple software environment approaches.
Verified all skill elements by running 11 independent test workflows
on a real Slurm cluster (Snakemake 9.17.3, executor plugin 2.5.4).

Fixes:
- Remove `runtime` from profile examples — does not propagate to
  Slurm's --time flag via default-resources/set-resources (only works
  when set directly in rule resources: blocks)

Additions:
- Automatic Partition Selection via partitions.yaml — recommended
  approach that also avoids numeric partition summing bug in group jobs
- Intermediate File Cleanup section (temp(), protected()) — critical
  for shared HPC storage management
- Shadow Rules section — isolated execution with automatic cleanup
- Partition summing bug warning in Grouping Jobs section
- New entries in failure patterns table and Critical Rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant