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…
Skill by Zejie0920
Chalk Labs
Need help deploying get-available-resources?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/zejie0920-get-available-resources
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/get-available-resources
What's inside
- Skill name
get-available-resources- Description
- 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.
- License
- MIT
- Compatibility
- Python 3.11+ on Linux, macOS, or Windows; standard library by default, optional psutil 7.2.2; accelerator and scheduler CLIs are optional read-only probes.
- Metadata
- version: 1.2 · skill-author: K-Dense Inc.
- Instructions
- 252 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (9)
- SKILL.md
- resource_semantics.md · references/
- snapshot_schema.md · references/
- sources.md · references/
- _common.py · scripts/
- accelerator_diagnostics.py · scripts/
- detect_resources.py · scripts/
- plan_workload.py · scripts/
- snapshot_tools.py · scripts/
SKILL.md (first lines)
# 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 ```bash python scripts/detect_resources.py ``` The command emits only JSON to stdout. Redirect it only when ordinary shell permissions are acceptable. ### Explicit private file ```bash python scripts/detect_resources.py --output resource-snapshot.json ``` 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: ```bash uv pip install "psutil==7.2.2" ``` The import is lazy. Failure to import psutil becomes a warning, not a fatal error. ### Skip management-tool probes ```bash python scripts/detect_resources.py --skip-accelerators ``` Use this when accelerator discovery latency is undesirable. The detector still summarizes the presence and state of allowlisted visibility variables without returning their values. ## Required interpretation ### CPU Read these as different facts: - `cpu.host.logical`: system-visible scheduling units. - `cpu.host.physical`: physical topology, or null; never inferred from logical count. - `cpu.process.affinity_logical`: current affinity-set size when supported. - `cpu.cgroup_v2.cpuset_logical`: effective cgroup cpuset size. - `cpu.cgroup_v2.quota_cores`: finite `cpu.max` capacity, possibly fractional. - `scheduler.allocation.cpu_per_process`: bounded Slurm per-task interpretation when scope is clear. - `cpu.effective.capacity_cores`: minimum positive observed constraint. - `cpu.effective.worker_ceiling`: conservative floor for CPU process workers. A quota of 1.5 is CPU-time capacity, not 1.5 physical cores. Affinity and cpusets constrain placement; quota constrains bandwidth. ### Memory Keep these separate: - host total/available memory; - current cgroup usage, hard `memory.max`, and remaining hierarchical capacity; - `memory.high`, which is a pressure/throttle boundary rather than a hard cap; - scheduler memory allocation and its scope; and - conservative effective hard limit and available estimate. On Apple silicon, `memory.model` is `unified_cpu_gpu`. Do not add integrated GPU memory to RAM or describe it as separate VRAM. ### Accelerators Each device is a backend **candidate**: - NVIDIA GPU → CUDA candidate; - AMD GPU → ROCm candidate; - Apple integrated GPU → Metal candidate. Management-query visibility does not establish: 1. scheduler/container permission; 2. device-node access; 3. driver/runtime compatibility;
From Zejie0920/mather-workflow, MIT.
More from Zejie0920/mather-workflow
- 0.529score
paper-lookup
Zejie0920
Search 11 academic literature APIs for papers, preprints, citations, and open-access full text, and return results with reproducible provenance.
SkillBFreshness: BClaude Code +9 - 0.529score
hypothesis-generation
Zejie0920
Formulate evidence-bounded scientific questions, candidate hypotheses, rival explanations, causal or associational claims, discriminating predictions…
SkillBFreshness: BClaude Code +9 - 0.524score
networkx
Zejie0920
Create, analyze, and visualize complex networks and graphs in Python with NetworkX.
SkillBFreshness: BClaude Code +9 - 0.524score
mineru-parser
Zejie0920
Precise document parsing via MinerU API.
SkillBFreshness: BClaude Code +9 - 0.516score
mather-math-modeling-solver
Zejie0920
数学建模问题解决skill。用于解决数学建模竞赛问题,将问题拆分为子任务并协调subagent完成。手动调用此skill(/mather-math-modeling-solver)。适用场景:用户提出数学建模问题、需要求解建模竞赛题目、需要完整的建模求解流程。
SkillBFreshness: BClaude Code +9 - 0.513score
mather-solving
Zejie0920
数学建模问题求解子skill。负责执行算法求解、模型构建、数据处理。由 math-modeling-solver 主skill的阶段二(问题求解)subagent加载。不适用于其他阶段。
SkillBFreshness: BClaude Code +9 - 0.513score
mather-tex-framework
Zejie0920
数学建模论文框架创建子skill。负责创建完整论文TeX框架(含所有问题占位符)。由 math-modeling-solver 主skill的阶段零(初始化)subagent加载。不适用于其他阶段。
SkillBFreshness: BClaude Code +9 - 0.513score
mather-tex-update
Zejie0920
数学建模论文增量更新子skill。负责将求解结果增量写入论文TeX文件。由 math-modeling-solver 主skill的阶段六(增量更新论文)subagent加载。不适用于其他阶段。
SkillBFreshness: BClaude Code +9 - 0.513score
mather-review
Zejie0920
数学建模审查验证子skill。负责验证求解逻辑正确性、结果合理性,检测工程化操作。由 math-modeling-solver 主skill的阶段五(审查验证)subagent加载。不适用于其他阶段。
SkillBFreshness: BClaude Code +9 - 0.513score
mather-final-review
Zejie0920
数学建模论文最终审视子skill。负责统一润色全文、检查逻辑衔接、编译PDF。由 math-modeling-solver 主skill的最终审视阶段subagent加载。仅在所有问题解决后使用。
SkillBFreshness: BClaude Code +9 - 0.513score
mather-visualization
Zejie0920
数学建模可视化子skill。负责制作论文图表(绘图/制表)。由 math-modeling-solver 主skill的阶段三(可视化)subagent加载。不适用于其他阶段。
SkillBFreshness: BClaude Code +9 - 0.508score
mather-analysis
Zejie0920
数学建模结果分析子skill。负责对求解结果进行深入分析,提炼关键发现。由 math-modeling-solver 主skill的阶段四(结果分析)subagent加载。不适用于其他阶段。
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 8, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.2
- License
- MIT
- Repository
- github.com/Zejie0920/mather-workflow
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Zejie0920
- 0.529score
paper-lookup
Zejie0920
Search 11 academic literature APIs for papers, preprints, citations, and open-access full text, and return results with reproducible provenance.
SkillBFreshness: BClaude Code +9 - 0.529score
hypothesis-generation
Zejie0920
Formulate evidence-bounded scientific questions, candidate hypotheses, rival explanations, causal or associational claims, discriminating predictions…
SkillBFreshness: BClaude Code +9 - 0.524score
networkx
Zejie0920
Create, analyze, and visualize complex networks and graphs in Python with NetworkX.
SkillBFreshness: BClaude Code +9 - 0.524score
mineru-parser
Zejie0920
Precise document parsing via MinerU API.
SkillBFreshness: BClaude Code +9 - 0.516score
mather-math-modeling-solver
Zejie0920
数学建模问题解决skill。用于解决数学建模竞赛问题,将问题拆分为子任务并协调subagent完成。手动调用此skill(/mather-math-modeling-solver)。适用场景:用户提出数学建模问题、需要求解建模竞赛题目、需要完整的建模求解流程。
SkillBFreshness: BClaude Code +9 - 0.513score
mather-solving
Zejie0920
数学建模问题求解子skill。负责执行算法求解、模型构建、数据处理。由 math-modeling-solver 主skill的阶段二(问题求解)subagent加载。不适用于其他阶段。
SkillBFreshness: BClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get get-available-resources running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
get-available-resources skill. Agent Mart. https://agentmart.dev/skills/zejie0920-get-available-resources (last updated 2026-10-24)