Tooluck logoTooluck
SKILL.md

online-resource-scheduling

Agent skill frombenchflow-ai/skillsbench

Design deterministic online scheduling policies from current observations. Use when assigning arriving work to limited resources without seeing future requests.

How to install online-resource-scheduling

install online-resource-scheduling
# install the skillsbench pack with the skills CLI
npx skills add benchflow-ai/skillsbench

# or add only this skill to Claude Code: copy the folder

tasks-extra/gpu-cluster-online-scheduling/environment/skills/online-resource-scheduling/

# into

~/.claude/skills/online-resource-scheduling/ (all projects)

.claude/skills/online-resource-scheduling/ (one project)

tasks-extra/gpu-cluster-online-scheduling/environment/skills/online-resource-scheduling/SKILL.md

Apache-2.0Full file
1# Online Resource Scheduling
2
3Use this skill to build online schedulers that make deterministic decisions from the current observation only.
4
5## Core Workflow
6
7Convert each observation into a temporary state, rank pending work, score feasible actions by weighted marginal cost, update the temporary state immediately, then replay the final action list before returning it.
8
9```text
10actions = []
11temporary_state = copy_resources(observation)
12
13for item in ranked_pending_items(observation):
14 candidates = enumerate_feasible_actions(item, temporary_state)
15 if not candidates:
16 actions.append(defer_or_reject(item))
17 continue
18
19 scored = []
20 for action in candidates:
21 deltas = estimate_objective_deltas(action, temporary_state)
22 score = sum(weights[k] * deltas[k] for k in deltas)
23 scored.append((score, stable_tie_break(action), action))
24
25 chosen = min(scored)[-1]
26 actions.append(chosen)
27 apply(chosen, temporary_state)
28
29validate(actions, observation)
30return actions
31```
32
33## Weighted Marginal Scoring
34
35When a task provides objective weights, use them to compare feasible actions. Avoid fixed rules such as "always first-fit", "always minimize fragmentation", or "always use the tightest slot". Those can be wrong when another objective component has a larger weighted effect.
36
37Suggested generic workflow:
38
391. Read visible objective weights.
402. For each pending item, enumerate feasible actions.
413. For each feasible action, estimate the change in each objective component.
42…

Excerpt shown under the repository's Apache-2.0 license.

More skills in skillsbench

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Leonxlnx /

taste-skill
113k

Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages

CCCXCU1 skill

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates