mip-solver-and-solution-audit

mip-solver-and-solution-audit is a skill for Claude Code, Codex from benchflow-ai/skillsbench. It costs 77 tokens per session (2,224 once invoked), scanned A, original, Apache-2.0.

A workflow for solving mixed-integer optimization problems and checking that the reported solution is correct. Mixed-integer problems include decisions such as whether something is on or off, alongside numeric quantities.

In plain words
What is it for?
Use it to choose an available solver, preserve solution evidence, extract schedules, recompute results, and write an accurate report.
Why use it?
It prevents a feasible answer from being presented as proven optimal and keeps the solver result, metrics, files, and explanation consistent.

Skill for Claude CodeCodex

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

Good fit Use it to choose an available solver, preserve solution evidence, extract schedules, recompute results, and write an accurate report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/benchflow-ai/skillsbench/mip-solver-and-solution-audit
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,757 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 mip-solver-and-solution-audit
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 mip-solver-and-solution-audit

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/benchflow-ai/skillsbench/mip-solver-and-solution-audit"><img src="https://agentmods.dev/badge/skills/benchflow-ai/skillsbench/mip-solver-and-solution-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,224 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 274
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00077 $0.02224
Opus 5 $0.00039 $0.01112
Sonnet 5 $0.00015 $0.00445
Haiku 4.5 $0.00008 $0.00222

Measured 6d ago against content hash 34ab1c8cd80a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

mip-solver-and-solution-audit 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 6d 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/exam-block-sequencing/environment/skills/mip-solver-and-solution-audit/SKILL.md · 286 lines

How it starts

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

MIP Solver and Solution Audit

Core principle

A valid optimization submission has one final solution, one set of recomputed metrics, and one truthful solver report. The solver objective, written output, metrics file, and explanation must all refer to the same final solution.

Feasible does not mean optimal. A time-limited MIP solve may return a useful incumbent without proving optimality. Report that distinction clearly.

Solver discovery

For Python optimization tasks, test installed solver packages before concluding that no solver is available. Prefer a callable installed solver over writing a model for an unavailable package or falling back to a heuristic-only method.

PySCIPOpt is a good first check for binary and mixed-integer models:

try:
    from pyscipopt import Model, quicksum
    SCIP_AVAILABLE = True
except Exception as exc:
    SCIP_AVAILABLE = False
    SCIP_IMPORT_ERROR = exc

If PySCIPOpt imports successfully, use it unless the task or environment clearly provides a better solver. Do not skip it because other packages or command-line binaries are unavailable.

If the task requires an integer program or optimization solver, do not submit a pure greedy search, local search, swap heuristic, or advisory script as the main method unless the task explicitly allows that substitution.

Minimal PySCIPOpt pattern

from pyscipopt import Model, quicksum

model = Model("mip_model")
model.setParam("limits/time", 600.0)

# create binary/integer variables
# add hard constraints
# build named objective components
model.setObjective(objective_expr, "minimize")

model.optimize()
status = str(model.getStatus()).lower()

if model.getNSols() == 0:
    raise RuntimeError(f"No feasible solution found; solver status={status}")

sol = model.getBestSol()
incumbent_objective = float(model.getObjVal())

try:
    best_bound = float(model.getDualbound())
except Exception:
    best_bound = None

try:
    mip_gap = float(model.getGap())
except Exception:
    mip_gap = None

Read the full file on GitHub · 286 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. 6d ago First seen · 286 lines · 77 tokens per session scan A 34ab1c8cd80a

Subscribe to this mod's changes

mip-solver-and-solution-audit is a skill published in the GitHub repository benchflow-ai/skillsbench (1,757 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 77 tokens to every session and 2,224 once invoked, about $0.0004 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-09-03.