multi-resource-allocation-validation

multi-resource-allocation-validation is a skill for Claude Code, Codex from benchflow-ai/skillsbench. It costs 39 tokens per session (677 once invoked), scanned A, original, Apache-2.0.

A validator for proposed assignments of work to machines when each assignment uses several limited resources, such as CPU, memory, or GPU capacity.

In plain words
What is it for?
Use it to replay placements, detect incompatible or over-capacity actions, repair or defer invalid ones, and return a feasible allocation plan.
Why use it?
It prevents a batch of assignments from overusing resources by checking each one against the capacity left after earlier assignments.

Skill for Claude CodeCodex

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

Good fit Use it to replay placements, detect incompatible or over-capacity actions, repair or defer invalid ones, and return a feasible allocation plan.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/benchflow-ai/skillsbench/multi-resource-allocation-validation
About the project

SkillsBench is a benchmark for measuring how effectively AI agents use modular skills—folders containing instructions, scripts, and resources—to complete specialized tasks. It helps researchers and developers evaluate both skill quality and agent behavior, including tasks that require combining multiple skills. The catalogue’s skills and instructions are evaluated as part of this workflow.

benchflow-ai/skillsbench · 1,941 stars · on GitHub · skillsbench.ai

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 benchflow-ai/skillsbench --skill multi-resource-allocation-validation
Clone the repo
git clone --depth 1 https://github.com/benchflow-ai/skillsbench

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 multi-resource-allocation-validation

README.md
[![agentmods](https://agentmods.dev/badge/skills/benchflow-ai/skillsbench/multi-resource-allocation-validation/github.svg)](https://agentmods.dev/skills/benchflow-ai/skillsbench/multi-resource-allocation-validation)
Your own site
<a href="https://agentmods.dev/skills/benchflow-ai/skillsbench/multi-resource-allocation-validation"><img src="https://agentmods.dev/badge/skills/benchflow-ai/skillsbench/multi-resource-allocation-validation/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 multi-resource-allocation-validation

Your own site · 80×15
<a href="https://agentmods.dev/skills/benchflow-ai/skillsbench/multi-resource-allocation-validation"><img src="https://agentmods.dev/badge/skills/benchflow-ai/skillsbench/multi-resource-allocation-validation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 677 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
  • 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.00039 $0.00677
Opus 5.5 $0.00016 $0.00271
Sonnet 5.5 $0.00008 $0.00135
Haiku 4.5 $0.00004 $0.00068

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

Security

Grade A, and why

multi-resource-allocation-validation 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 3mo 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.

tasks-extra/gpu-cluster-online-scheduling/environment/skills/multi-resource-allocation-validation/SKILL.md · 77 lines

How it starts

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

Multi-Resource Allocation Validation

Use this skill before returning a batch of resource allocation actions, and after building a feasible schedule to make small objective improvements.

Core Workflow

Replay every proposed action against a temporary resource state. A placement is valid only if each required resource remains non-negative after applying all earlier placements in the same batch. Do not validate each placement only against the original observation.

Example field names vary by task, but common reminders include cpu_free, memory_free, and gpu_slots[*].free_gpu_units.

Replay Skeleton

Use replay validation as the final gate before returning actions:

temporary_state = copy_resources(original_observation)
repaired_actions = []

for action in actions:
  if action is not a placement:
    repaired_actions.append(action)
    continue

  find the work item, target machine, and target slot/resource
  check compatibility
  check every required resource is available

  if any check fails:
    action = repair_or_replace_with_defer_or_reject(action, temporary_state)

  if action is still a placement:
    subtract consumed resources from temporary_state

  repaired_actions.append(action)

The combined action list must be feasible after all earlier actions in the same batch have consumed resources. Each work item should appear in at most one action, and deferred or rejected work should not consume resources.

Repair Order

When a placement fails validation, repair it in this order:

  1. Try an alternate slot or resource on the same target.
  2. Try an alternate active machine or target that already has compatible allocations.
  3. Try an alternate inactive machine or empty target.
  4. Defer the work if waiting is allowed and still useful.
  5. Reject the work only when no valid placement or defer decision is appropriate.

In shorthand: alternate slot -> alternate active machine -> alternate inactive machine -> defer -> reject.

Feasible-Solution Improvement Pass

Read the full file on GitHub · 77 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. 3mo ago First seen · 77 lines · 39 tokens per session scan A e9f843e4d342

Subscribe to this mod's changes

multi-resource-allocation-validation is a skill published in the GitHub repository benchflow-ai/skillsbench (1,941 stars, last pushed 6d ago), licensed Apache-2.0. It adds 39 tokens to every session and 677 once invoked, about $0.0002 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

multi-resource-allocation-validation compared with skills from other repositories

multi-resource-allocation-validation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
multi-resource-allocation-validationbenchflow-ai/skillsbenchSkill1.9k6d agoApache-2.0A39Claude Code, Codex
nemo-gym-analyzing-resultsNVIDIA-NeMo/GymSkill1.4ktodayApache-2.0A101Codex
hotpath_initpawurb/hotpath-rsSkill1.9k8d agoMITA88Claude Code
environment-discoveryvstorm-co/pydantic-deepagentsSkill1.1kyesterdayMITA13Claude Code, Codex
codspeed-optimizeCodSpeedHQ/codspeedSkill3943d agoApache-2.0A113Claude Code
performant-codevstorm-co/pydantic-deepagentsSkill1.1kyesterdayMITA14Claude Code, Codex
portfoliosuyoumo/ClawProBenchSkill8293mo agoApache-2.0A69Claude Code, Codex