get-available-resources

get-available-resources is a skill for Claude Code, Codex from Zaoqu-Liu/ScienceClaw. It costs 115 tokens per session (2,459 once invoked), scanned A, a copy of get-available-resources, MIT.

A utility that checks available computing resources such as CPU cores, GPUs, memory, and disk space before a scientific task begins. It also writes a report with recommendations for choosing an approach.

In plain words
What is it for?
Use it before loading large datasets, training models, running parallel work, or deciding whether GPU acceleration or out-of-memory processing is needed.
Why use it?
It helps prevent jobs from exceeding available memory, storage, or processing capacity.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/detect_resources.py.

Good fit Use it before loading large datasets, training models, running parallel work, or deciding whether GPU acceleration or out-of-memory processing is needed.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Zaoqu-Liu/ScienceClaw
agentmods
npx agentmods add skills/zaoqu-liu/scienceclaw/get-available-resources

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/zaoqu-liu/scienceclaw/get-available-resources/github.svg)](https://agentmods.dev/skills/zaoqu-liu/scienceclaw/get-available-resources)
Your own site
<a href="https://agentmods.dev/skills/zaoqu-liu/scienceclaw/get-available-resources"><img src="https://agentmods.dev/badge/skills/zaoqu-liu/scienceclaw/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/zaoqu-liu/scienceclaw/get-available-resources"><img src="https://agentmods.dev/badge/skills/zaoqu-liu/scienceclaw/get-available-resources.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,459 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.
Origin 91% copy Near-identical to another mod 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.00115 $0.02459
Opus 5 $0.00057 $0.01229
Sonnet 5 $0.00023 $0.00492
Haiku 4.5 $0.00012 $0.00246

Measured 7d ago against content hash 3fb76837e44d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 7d ago.

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

This is a copy

91% identical to get-available-resources — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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

How it starts

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

Get Available Resources

Overview

Detect available computational resources and generate strategic recommendations for scientific computing tasks. This skill automatically identifies CPU capabilities, GPU availability (NVIDIA CUDA, AMD ROCm, Apple Silicon Metal), memory constraints, and disk space to help make informed decisions about computational approaches.

When to Use This Skill

Use this skill proactively before any computationally intensive task:

  • Before data analysis: Determine if datasets can be loaded into memory or require out-of-core processing
  • Before model training: Check if GPU acceleration is available and which backend to use
  • Before parallel processing: Identify optimal number of workers for joblib, multiprocessing, or Dask
  • Before large file operations: Verify sufficient disk space and appropriate storage strategies
  • At project initialization: Understand baseline capabilities for making architectural decisions

Example scenarios:

  • "Help me analyze this 50GB genomics dataset" → Use this skill first to determine if Dask/Zarr are needed
  • "Train a neural network on this data" → Use this skill to detect available GPUs and backends
  • "Process 10,000 files in parallel" → Use this skill to determine optimal worker count
  • "Run a computationally intensive simulation" → Use this skill to understand resource constraints

How This Skill Works

Resource Detection

The skill runs scripts/detect_resources.py to automatically detect:

  1. CPU Information

    • Physical and logical core counts
    • Processor architecture and model
    • CPU frequency information
  2. GPU Information

    • NVIDIA GPUs: Detects via nvidia-smi, reports VRAM, driver version, compute capability
    • AMD GPUs: Detects via rocm-smi
    • Apple Silicon: Detects M1/M2/M3/M4 chips with Metal support and unified memory
  3. Memory Information

    • Total and available RAM
    • Current memory usage percentage
    • Swap space availability
  4. Disk Space Information

    • Total and available disk space for working directory
    • Current usage percentage

Read the full file on GitHub · 277 lines

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. 7d ago First seen · 277 lines · 115 tokens per session scan A 3fb76837e44d

Subscribe to this mod's changes

get-available-resources is a skill published in the GitHub repository Zaoqu-Liu/ScienceClaw (60 stars, last pushed 5mo ago), licensed MIT. It adds 115 tokens to every session and 2,459 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to get-available-resources, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories

proof-orchestrator

Manage a stateful, run-directory-based proof project: continuation across runs, run-local source bookkeeping, manual GPT Pro handoff packages when a local attempt stalls, and an optional DeepSeek second opinion as additional evidence only. Use when the user asks for proof-run orchestration, a GPT Pro handoff, or…

wanshuiyin/Auto-claude-code-research-in-sleep · 93 tokens

Science

The scientific method as a universal problem-solving algorithm — goal-first, plural falsifiable hypotheses, designed experiments, and honest measurement, scaling from TDD to feature validation to MVP launch. USE WHEN think about, figure out, experiment, iterate, optimize, hypothesis, science, full cycle, quick…

danielmiessler/LifeOS · 85 tokens

template-maintenance

On-demand maintenance helpers for the template repository. Includes workspace management, project info display, working-project rendering, PDF re-rendering, executive output organization, test supplement merging, batch source improvement, pre-commit setup, and CodeGraph index helpers. None run in the default pipeline…

docxology/template · 63 tokens

meal

A meal log that records foods and estimates calories, protein, carbohydrates, and fat for each meal.

shikidmsh-rgb/mochibot · 16 tokens

causal-inference

Bengio's causal inference for AI: Interventional reasoning, counterfactuals, and System 2 deep learning. World models with causal structure.

plurigrid/asi · 36 tokens

fitness-pre-workout-brief

Prepare and persist TODAY'S pre-workout / training-readiness brief — the daily "should I train today?" call. It reads the board's deterministic FORM SCORE (0–100, with its hrv / sleep / resting-HR / load breakdown), folds in last night's sleep + this morning's metrics + recent training load + the athlete profile +…

philipyaz/cos · 242 tokens