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

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,747 stars · on GitHub

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.

agentmods
npx agentmods add skills/benchflow-ai/skillsbench/multi-resource-allocation-validation
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00039 $0.00677
Opus 5 $0.00019 $0.00338
Sonnet 5 $0.00008 $0.00135
Haiku 4.5 $0.00004 $0.00068

Measured 5d ago against content hash e9f843e4d342, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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. 5d 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,747 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 39 tokens to every session and 677 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

hotpath_init

Configure hotpath profiling in a Rust project. Adds the hotpath dependency with feature-gated setup, instruments main with hotpath::main, functions with measure/measureall, and wraps channels, mutexes, rwlocks, streams, futures, reqwest clients, axum routers and byte-level I/O with hotpath macros. Use when the user…

pawurb/hotpath-rs · 88 tokens

writing-bench-task-judge

Use when writing or modifying checkgoals() / getanswer() / App check methods in benchenv/task/, or when reviewing a draft task's judge correctness. Triggers include adding a new task, editing a judge method, or diagnosing a judge false-positive/negative.

Purewhiter/mobilegym · 68 tokens

portfolio

Cross-chain DeFi portfolio discovery, rebalancing suggestions, and NEAR Intent construction. Activates when the user pastes a wallet address or asks about yield/positions/rebalancing. Bootstraps a per-user "portfolio" project, aggregates positions across all the user's addresses inside one project, and offers a…

suyoumo/ClawProBench · 69 tokens

llm-council

Query multiple LLM models in parallel from CodeAct and cross-reference their responses.

suyoumo/ClawProBench · 21 tokens

environment-discovery

Systematic exploration of unknown environments before starting work.

vstorm-co/pydantic-deepagents · 13 tokens

benchflow-traj-upload

Find a local Claude Code or Codex session, open the BenchFlow trajectory viewer, and submit it after the user reviews it. Use this skill whenever someone pastes a BenchFlow eval prize line, wants to submit / share / contribute / upload a trajectory, set up traj upload, view a session, or pick a session to send. Also…

benchflow-ai/benchflow · 98 tokens