Agent skill · AI & Agents

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.

K-Dense-AIgithub.com/K-Dense-AIGitHub ↗
claude-codeships scriptsMIT
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill get-available-resources --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 9
SKILL.md size: 9 KB
Bundled scripts: yes
Version: 1.2
Requires: Python 3.11+ on Linux, macOS, or Windows; standard library by default, optional psutil 7.2.2; accelerator and scheduler…
Path: skills/get-available-resources/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 32,619
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Safety contract
  2. Quick start
  3. Ephemeral stdout snapshot
  4. Explicit private file
  5. Optional psutil enhancement
  6. Skip management-tool probes
  7. Required interpretation
  8. CPU
  9. Memory
  10. Accelerators
  11. Disk
  12. Scheduler and container
  13. Plan a workload
  14. Validate or diff snapshots
Ships with 8 files
  • references/resource_semantics.md
  • references/snapshot_schema.md
  • references/sources.md
  • scripts/_common.py
  • scripts/accelerator_diagnostics.py
  • scripts/detect_resources.py
  • scripts/plan_workload.py
  • scripts/snapshot_tools.py
Commands it runs
python scripts/detect_resources.py
python scripts/detect_resources.py --output resource-snapshot.json
uv pip install "psutil==7.2.2"
python scripts/detect_resources.py --skip-accelerators
python scripts/plan_workload.py resource-snapshot.json \
python scripts/snapshot_tools.py validate resource-snapshot.json
python scripts/snapshot_tools.py diff before.json after.json
python scripts/accelerator_diagnostics.py resource-snapshot.json \
More from scientific-agent-skills
All skills →
About this skill
What does the get-available-resources skill do?

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.

How do I install it?

Run `npx skills add K-Dense-AI/scientific-agent-skills --skill get-available-resources --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From K-Dense-AI/scientific-agent-skills, a repository with 32,619 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going