agentleFS
JunMA98JunMA98/Computer-science-claude-skills/skills/get-available-resources/SKILL.md

get-available-resources

Skill3 starsChanged 8 months agoMITView on GitHub

Detect available CPU, GPU, memory, and disk resources before compute-heavy CS work. Use when planning model training, large-scale evaluation, embedding generation, experiment sweeps, dataset processing, log analysis, or reproduction runs where hardware limits affect the workflow.

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use usfiscaldata, deeptools and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • yf8578Skill

    usfiscaldata

    Query the U.S. Treasury Fiscal Data API for federal financial data including national debt, government spending, revenue, interest rates, exchange rates, and savings bonds. Access 54 datasets and 182 data tables with no API key required. Use when working with U.S. federal fiscal data, national debt tracking (Debt to the Penny), Daily Treasury Statements, Monthly Treasury Statements, Treasury securities auctions, interest rates on Treasury securities, foreign exchange rates, savings bonds, or any U.S. government financial statistics.

    Also in 7 projects that use this

  • garri333Skill

    deeptools

    NGS analysis toolkit. BAM to bigWig conversion, QC (correlation, PCA, fingerprints), heatmaps/profiles (TSS, peaks), for ChIP-seq, RNA-seq, ATAC-seq visualization.

    Also in 9 projects that use this

  • garri333Skill

    dnanexus-integration

    DNAnexus cloud genomics platform. Build apps/applets, manage data (upload/download), dxpy Python SDK, run workflows, FASTQ/BAM/VCF, for genomics pipeline development and execution.

    Also in 9 projects that use this

  • +9 more from garri333

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill early in a CS workflow when hardware constraints may change the implementation plan.

    line 8
  2. Very specific:

    Run scripts/detect_resources.py to collect CPU, GPU, memory, and disk information.

    line 20
  3. Distinctive:

    When no exact format is requested, return:

    line 45

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Get Available Resources

Use this skill early in a CS workflow when hardware constraints may change the implementation plan.

Typical Triggers

  • choosing between in-memory and out-of-core data processing
  • checking whether a model fits on available GPU memory
  • sizing parallel workers for preprocessing or evaluation
  • deciding whether to run locally, distribute with Dask, or move to Modal
  • estimating whether a reproduction or benchmark sweep is realistic on the current machine

Workflow

  1. Run scripts/detect_resources.py to collect CPU, GPU, memory, and disk information.
  2. Save or inspect the generated JSON report.
  3. Translate the report into execution choices.
  4. State the constraints explicitly before proposing a heavy workflow.

CS-Focused Decisions

Map resource findings to concrete tool choices:

  • fits in RAM: prefer polars, pandas, or standard PyTorch workflows
  • exceeds RAM on one machine: consider dask or vaex
  • limited local GPU but scalable remote need: consider modal
  • multi-GPU or long training runs: plan around pytorch-lightning or distributed tooling
  • low disk headroom: avoid materializing large intermediate checkpoints or duplicated datasets

What to Report

By default, summarize:

  • CPU cores and whether high parallelism is realistic
  • available GPUs, VRAM, and likely model-size limits
  • total RAM and whether dataset / checkpoint loading is safe
  • free disk space and likely pressure points
  • practical recommendations for the current task

Default Output

When no exact format is requested, return:

  1. a concise resource summary
  2. the main bottlenecks
  3. recommended execution strategy
  4. any risk to training, evaluation, or large-file processing

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.