Slurm monitoring accounting starter
Skill ma-compbio-lab/SkillFoundry/skills/hpc/slurm-monitoring-accounting-starter
A framework for discovering, compiling, and validating reusable skills for scientific agents.
npx -y skills add ma-compbio-lab/SkillFoundry --skill slurm-monitoring-accounting-starterAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.1 KB, as published. Nobody here has run it
Slurm Monitoring and Accounting Starter
Use this skill to submit a tiny probe job, capture live squeue snapshots while it waits or runs, and then summarize final sacct accounting.
What it does
- Renders and submits a short Slurm batch job.
- Polls
squeueto record live queue states. - Resolves final job accounting through
sacct. - Optionally captures
seffoutput when the command is available on the cluster.
When to use it
- You need a verified starter for Slurm monitoring and post-run accounting.
- You want a reusable pattern for debugging queue state transitions and final resource summaries.
Example
python3 skills/hpc/slurm-monitoring-accounting-starter/scripts/run_slurm_monitoring_accounting.py \
--partition cpu \
--job-name monitor-accounting \
--sleep 2 \
--out scratch/slurm-monitoring/summary.json
Verification
- Skill-local tests:
python3 -m unittest discover -s skills/hpc/slurm-monitoring-accounting-starter/tests -p 'test_*.py' - Repository smoke:
python3 -m unittest tests.smoke.test_phase26_frontier_completion_skills -v