get-available-resources

get-available-resources is a skill for Claude Code, Codex from K-Dense-AI/scientific-agent-skills. It costs 64 tokens per session (2,559 once invoked), scanned A, original, MIT.

A resource detector that reports the CPU, memory, disk, scheduler, container, and accelerator limits available to the current process. It produces a privacy-conscious snapshot for planning local workloads.

In plain words
What is it for?
Use it before resource-sensitive tasks to check usable limits and make conservative decisions about workload size, parallelism, and accelerator use.
Why use it?
It prevents resource plans from assuming that all hardware visible on a machine is actually available to the running job.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before resource-sensitive tasks to check usable limits and make conservative decisions about workload size, parallelism, and accelerator use.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/k-dense-ai/scientific-agent-skills/get-available-resources
About the project

Scientific Agent Skills is a collection of reusable procedures that give AI agents capabilities for scientific research across areas such as biology, chemistry, medicine, and drug discovery. It is used by researchers and by people building AI scientist workflows with compatible coding agents. The catalogue contains many of the project's skills and supporting instructions.

K-Dense-AI/scientific-agent-skills · 58,946 stars · on GitHub · arxiv.org

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add K-Dense-AI/scientific-agent-skills --skill get-available-resources
Clone the repo
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for get-available-resources

README.md
[![agentmods](https://agentmods.dev/badge/skills/k-dense-ai/scientific-agent-skills/get-available-resources/github.svg)](https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/get-available-resources)
Your own site
<a href="https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/get-available-resources"><img src="https://agentmods.dev/badge/skills/k-dense-ai/scientific-agent-skills/get-available-resources/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for get-available-resources

Your own site · 80×15
<a href="https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/get-available-resources"><img src="https://agentmods.dev/badge/skills/k-dense-ai/scientific-agent-skills/get-available-resources.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,559 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 21 Oct 2026
  • Snyk pass 21 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.02559
Opus 5.5 $0.00026 $0.01024
Sonnet 5.5 $0.00013 $0.00512
Haiku 4.5 $0.00006 $0.00256

Measured 1mo ago against content hash 54044d598fce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

get-available-resources scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/_common.py, scripts/accelerator_diagnostics.py, scripts/detect_resources.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/get-available-resources/SKILL.md · 297 lines

How it starts

The opening of the file, as written. The whole thing — 297 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

python scripts/detect_resources.py

The command emits only JSON to stdout. Redirect it only when ordinary shell permissions are acceptable.

Explicit private file

python scripts/detect_resources.py --output resource-snapshot.json

Explicit output is restricted to one .json filename in the current directory, uses mode 0600 on POSIX, rejects symlinks and path traversal, and refuses overwrite unless --force is supplied. Forced output also rejects hard links and non-regular files. Windows privacy additionally depends on the directory ACL.

Optional psutil enhancement

The standard-library detector works without installation. For broader cross-platform physical-core, affinity, available-memory, swap, and disk coverage:

Read the full file on GitHub · 297 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +12 lines · +1 tokens per session 54044d598fce
  2. 2mo ago Changed · +7 lines 0d39629aea29
  3. 2mo ago Changed · +17 lines 1ecca3aff630
  4. 3mo ago First seen · 261 lines · 63 tokens per session scan A f9d65a3a81ff

Subscribe to this mod's changes

get-available-resources is a skill published in the GitHub repository K-Dense-AI/scientific-agent-skills (58,946 stars, last pushed 7d ago), licensed MIT. It adds 64 tokens to every session and 2,559 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

get-available-resources compared with skills from other repositories

get-available-resources next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
get-available-resourcesK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA64Claude Code, Codex
discovery-toolboxdekan-aleksandr/biodiscovery-skillsSkill113mo agoMITA122Claude Code
discovery-directordekan-aleksandr/biodiscovery-skillsSkill113mo agoMITA114Claude Code
create-video-seedance-2-falgooseworks-ai/goose-skillsSkill1.3k2d agoMITA121Claude Code, Codex
meta-ad-managergooseworks-ai/goose-skillsSkill1.3k2d agoMITA108Codex
run-memorygooseworks-ai/goose-skillsSkill1.3k2d agoMITA72Claude Code, Codex
render-imessage-chatgooseworks-ai/goose-skillsSkill1.3k2d agoMITA63Claude Code, Codex