Agent skill · data analytics · k-dense-ai
get-available-resources
Detect host inventory and effective CPU, memory, disk, scheduler, container, and accelerator limits when a user asks for resource-aware planning or before a clearly resource-sensitive local workload. Produces a redacted JSON snapshot and conservative planning helpers without stress tests or assuming visible host hardware is usable.
Why this skill is useful
Provides a detailed JSON output of resource availability that the AI wouldn't reliably generate on its own.
What it needs
Requires psutil installed locally. About 5k tokens when loaded. Last updated 2026-08-03. 32,849 stars on the source repository.
What this skill does
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. The bundled detector uses only fixed executable/argument tuples, no shell, short timeouts, bounded stdout/stderr, and partial-failure warnings. Quick start Run from this skill directory. Ephemeral stdout snapshot The command emits only JSON to stdout. Redirect it only when ordinary shell permissions are acceptable. Explicit private file Explicit output is restricted to one .json filename in the current directory, uses private permissions, rejects symlinks and path traversal, and refuses overwrite unless --force is supplied. Optional psutil enhancement The standard-library detector works without installation. For broader cross-platform physical-core, affinity, available-memory, swap, and disk coverage: The import is lazy. Failure to import psutil becomes a warning, not a fatal error. Skip management-tool probes Use this when accelerator discovery latency is undesirable. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills k-dense-ai/get-available-resources