Skip to content
k-dense-ai avatar

Get Available Resources

Detects effective CPU, memory, disk, scheduler, and accelerator limits for resource-aware planning without stress tests.

CCM score
71 of 100
skills.sh installs
2.3K
GitHub stars
58.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers host inventory plus process affinity, cgroup/container limits, Slurm allocation, and accelerator runtime candidates, kept separate
  • Includes detect_resources.py, plan_workload.py, and snapshot_tools.py for detection, conservative worker planning, and snapshot validation or diffing
  • Enforces a redacted JSON snapshot, treats unknown values as unknown, and never assumes visible hardware is usable in a scheduler or container
  • Designed for local scientific workloads that need resource checks before launch, with no benchmarks, large allocations, or device changes

Install

$ npx -y skills add k-dense-ai/scientific-agent-skills --skill get-available-resources -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Get Available Resources

Build a conservative picture of resources available to the current process. Keep host inventory, process affinity, cgroup/container limits, scheduler allocation, and accelerator runtime usability separate.

Safety contract

Follow these rules:

  • Run detection when the user requests it or a specific workload needs resource planning. Do not persist a fingerprint for every scientific task.
  • Use stdout by default. Persist only when the user chooses an explicit generic local filename.
  • Do not run stress tests, benchmarks, large allocations, write probes, device resets, driver installation, or clock/power changes.
  • Do not dump the environment. Read only the named Slurm and accelerator variables implemented by the detector.
  • Do not report hostnames, absolute paths, cgroup paths, job IDs, device UUIDs, PCI addresses, or raw visibility-variable values.
  • Treat a missing observation as unknown. Never convert unknown to unlimited.
  • Never infer that a visible host CPU, memory pool, or GPU is usable inside a scheduler allocation or container.

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Categories
Data Science & Analytics, DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the get-available-resources skill do?

get-available-resources detects host inventory and the effective CPU, memory, disk, scheduler, container, and accelerator limits available to the current process. It produces a redacted JSON snapshot and conservative planning helpers, without running stress tests or assuming visible hardware is usable.

How do I install the get-available-resources skill?

Run npx -y skills add k-dense-ai/scientific-agent-skills --skill get-available-resources -y in a project to install it. Once installed, the get-available-resources skill lets the agent run resource detection before a resource-sensitive local workload.

Where does get-available-resources stand in Data Science & Analytics?

get-available-resources is listed in the Data Science & Analytics category, which is led by azure-kusto, analyze-project, run-train, explore-run, and add-analytics-instrumentation. Its own focus is resource-aware planning rather than querying or analyzing data.

What does get-available-resources need to run?

get-available-resources needs Python 3.11 or newer on Linux, macOS, or Windows. It uses only the standard library by default, with optional psutil 7.2.2 for broader coverage, and its accelerator probes are optional read-only checks.

More from k-dense-ai/scientific-agent-skills

All 132

Similar to Get Available Resources

More Data Science & Analytics