Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
athola avatar

Utility

  • 75 installs
  • 325 repo stars
  • Updated August 2, 2026
  • athola/claude-night-market

Pick the highest-utility next action for Claude scopes (self, subagent, dispatch) using a scored Gain minus cost formula.

About

utility is a journey-wide agent orchestration skill from the Claude Night Market stack that treats each step as a utility maximization problem. Solo builders wiring multi-agent or dispatch flows can use it whenever the agent must choose among respond, retrieve, tool_call, verify, delegate, or stop instead of guessing the next move. Input expects session state from state-builder plus per-candidate component scores; the procedure enumerates scope-appropriate actions, ranks them by U(a), checks termination, and emits an action report for executors. Self scope may delegate into nested dispatch evaluations; subagents omit delegate; dispatch scopes manage fleets. It is intermediate complexity agent-tooling for Claude Code-style systems where explicit economics of steps matter. Use during Build when designing rituals, during Ship when debugging agent loops, or during Operate when tuning lambda weights for cost and redundancy.

  • Computes U(a) = Gain − λ₁·StepCost − λ₂·Uncertainty − λ₃·Redundancy per candidate
  • Scope-specific action sets for self, subagent, and dispatch orchestration modes
  • Produces an action report template for downstream execution consumers
  • Termination logic gates when to stop versus continue stepping
  • Integrates scores from Gain, StepCost, Uncertainty, and Redundancy components

Utility by the numbers

  • 75 all-time installs (skills.sh)
  • Ranked #5,486 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/athola/claude-night-market --skill utility

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs75
repo stars325
Security audit3 / 3 scanners passed
Last updatedAugust 2, 2026
Repositoryathola/claude-night-market

What it does

Pick the highest-utility next action for Claude scopes (self, subagent, dispatch) using a scored Gain minus cost formula.

Files

SKILL.mdMarkdownGitHub ↗

Utility Skill

Overview

A decision framework for agent orchestration based on Liu et al., "Utility-Guided Agent Orchestration for Efficient LLM Tool Use" (arXiv:2603.19896). Each candidate action is scored by subtracting weighted costs from expected gain, producing a single utility value that guides action selection. The framework prevents over-calling tools and premature stopping by making both errors costly. Utility range is [-2.3, 1.0].

When To Use

  • Deciding whether to dispatch another agent or tool call
  • Gating expensive tool calls (search, code execution, delegation)
  • Selecting the right model tier for a sub-task
  • Continuation decisions after receiving partial results
  • Verification gating before writing or committing output

When NOT to Use

  • Single-step operations with one obvious action
  • Trivial tasks where cost of scoring exceeds benefit
  • Already-committed actions that cannot be undone

Action Space

A = {respond, retrieve, tool_call, verify, delegate, stop}

ActionDescription
respondEmit a final answer from current context
retrieveFetch additional information (search, read, lookup)
tool_callExecute a tool (code runner, API, file write)
verifyCheck a prior result for correctness or completeness
delegateSpawn a sub-agent or hand off to a specialist
stopTerminate the loop and return current state

Utility Function

U(a | s_t) = Gain(a | s_t)
           - λ₁ · StepCost(a | s_t)
           - λ₂ · Uncertainty(a | s_t)
           - λ₃ · Redundancy(a | s_t)
ParameterDefaultRationale
λ₁1.0Cost baseline; all other weights relative to this
λ₂0.5Weak empirical correlation with outcome (r=0.0131)
λ₃0.8Redundancy pruning yields ~10% token savings

Utility range: [-2.3, 1.0]. Positive values indicate the action is worth taking. Values below the floor (-0.5 default) indicate the action should be skipped.

Termination Conditions

Stop the loop when any of the following is true:

  • (a) Selected action is stop
  • (b) Step budget exhausted (default: 10 steps)
  • (c) All non-stop actions score below the floor (default: -0.5)

High-gain override: If Gain >= 0.7 for any action, condition (c) may be overridden. Document the override and the gain value in your reasoning trace.

Quick Start

Minimal 4-step advisory pattern:

1. Construct state: gather task context per modules/state-builder.md 2. Score candidates: evaluate each action in A per modules/action-selector.md 3. Prefer highest utility: select the action with the maximum U(a | s_t), subject to termination conditions 4. Log score and decision: record the winning action, its utility value, and step count before executing

Detailed Resources

  • State Builder: modules/state-builder.md, how to

populate s_t from task context

  • Gain: modules/gain.md, estimating expected information

or progress gain

  • Step Cost: modules/step-cost.md, token, latency, and

monetary cost tables

  • Uncertainty: modules/uncertainty.md, confidence

estimation and calibration

  • Redundancy: modules/redundancy.md, detecting duplicate

or low-delta actions

  • Action Selector: modules/action-selector.md, scoring

loop and tie-breaking rules

  • Integration: modules/integration.md, wiring utility

scoring into existing orchestration loops

Exit Criteria

  • [ ] State constructed with task goal and prior steps
  • [ ] All six actions scored before selecting one
  • [ ] Termination condition checked after each step
  • [ ] Score and decision logged for each step taken
  • [ ] High-gain overrides documented with gain value

Related skills

FAQ

Is Utility safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.