ampl-supply-chain

ampl-supply-chain is a skill for Claude Code, Codex from marcos-dv/ampl-agents. It costs 77 tokens per session (3,296 once invoked), scanned A, original, MIT.

A specialist guide for writing AMPL optimization models for supply-chain and logistics problems. AMPL is a language for describing mathematical optimization problems, such as choosing warehouse locations or routing shipments.

In plain words
What is it for?
Use it for facility-location, network-design, transportation, inventory, production-planning, routing, and other supply-chain linear or mixed-integer models.
Why use it?
It helps turn complex supply-chain decisions into structured models with readable constraints and sparse data. It also guides the choice and verification of optimization solvers.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Always-on constraints ([verified solve](../../rules/ampl-verified-solve.md), [model structure](../../rules/ampl-model-structure.md), [verified references](../...

Good fit Use it for facility-location, network-design, transportation, inventory, production-planning, routing, and other supply-chain linear or mixed-integer models.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/marcos-dv/ampl-agents
agentmods
npx agentmods add skills/marcos-dv/ampl-agents/ampl-supply-chain

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 ampl-supply-chain

README.md
[![agentmods](https://agentmods.dev/badge/skills/marcos-dv/ampl-agents/ampl-supply-chain/github.svg)](https://agentmods.dev/skills/marcos-dv/ampl-agents/ampl-supply-chain)
Your own site
<a href="https://agentmods.dev/skills/marcos-dv/ampl-agents/ampl-supply-chain"><img src="https://agentmods.dev/badge/skills/marcos-dv/ampl-agents/ampl-supply-chain/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 ampl-supply-chain

Your own site · 80×15
<a href="https://agentmods.dev/skills/marcos-dv/ampl-agents/ampl-supply-chain"><img src="https://agentmods.dev/badge/skills/marcos-dv/ampl-agents/ampl-supply-chain.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 3,296 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00077 $0.03296
Opus 5 $0.00039 $0.01648
Sonnet 5 $0.00015 $0.00659
Haiku 4.5 $0.00008 $0.00330

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

Security

Grade A, and why

ampl-supply-chain scanned grade A with 1 finding 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 11d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

IF you have internet access (WebFetch, browser, or curl):
skills/ampl-supply-chain/SKILL.md · 414 lines

How it starts

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

AMPL Supply Chain Skill

Always-on constraints (verified solve, model structure, verified references) live in rules/ and apply whenever this skill is active.

Mission

You model supply chain and logistics problems in AMPL with clear structure and efficient sparse indexing. You formulate LP and MIP models (and selected NLP where relevant) for networks, facilities, inventory, transportation, and production planning. You prefer logic and set-based flow templates over dense big-M matrices.

You align with verified Colab supply-chain examples and MO-Book network / facility chapters. You tune solvers for large MIPs common in routing and location problems.


Code examples convention

Every snippet lists Preferred: amplpy first, then Pure AMPL. Model in model.mod + ampl.read(); data via pandas/dicts.


Environment

Assume amplpy is installed and licensed — delegate setup to ampl-installer if not.

from amplpy import AMPL
ampl = AMPL()

Supply-chain MIPs: start with highs; production routing/location often needs gurobi or cplex.


Solver classification (commercial vs open-source)

Sources: https://dev.ampl.com/solvers/index.html , https://dev.ampl.com/ampl/python/modules.html

Open-source: highs (LP/MIP prototype — Colab Warehouse location uses HiGHS), cbc, scip, coin.

Commercial: gurobi, cplex, xpress, copt — large facility-location, VRP, multi-echelon MIPs.

Problem OSS Commercial
Transportation LP HiGHS Gurobi, CPLEX
Facility location MIP HiGHS (small) Gurobi, CPLEX, Xpress
VRP / routing MIP SCIP, CBC Gurobi, CPLEX (cuts, heuristics)
Stochastic / robust (MO-Book 8–9) HiGHS for LP relaxations Gurobi, CPLEX for large scenario MIPs

Module needs: highs for prototype, gurobi/cplex for production — ampl-installer. Options: https://dev.ampl.com/solvers//options.html

Read the full file on GitHub · 414 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. 11d ago First seen · 414 lines · 77 tokens per session scan A 47ce8b598260

Subscribe to this mod's changes

ampl-supply-chain is a skill published in the GitHub repository marcos-dv/ampl-agents (10 stars, last pushed 20d ago), licensed MIT. It adds 77 tokens to every session and 3,296 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

manimce-best-practices

Trigger when: (1) User mentions "manim" or "Manim Community" or "ManimCE", (2) Code contains from manim import , (3) User runs manim CLI commands, (4) Working with Scene, MathTex, Create(), or ManimCE-specific classes. Best practices for Manim Community Edition - the community-maintained Python animation engine.…

calesthio/OpenMontage · 149 tokens

torchtalk-analyzer

Analyze PyTorch internals across Python, C++, and CUDA layers using the TorchTalk MCP server. Use when asked about how PyTorch operators work internally, where functions are implemented, what would break if code is modified, or finding tests for PyTorch operators.

opendatahub-io/ai-helpers · 58 tokens

torchtalk-trace

Trace a PyTorch function's cross-language binding chain (Python -> C++ -> CUDA).

opendatahub-io/ai-helpers · 24 tokens

torchtalk-setup

Install and configure TorchTalk MCP server for PyTorch cross-language analysis.

opendatahub-io/ai-helpers · 19 tokens

parallel-feature-development

Coordinate parallel feature development with file ownership strategies, conflict avoidance rules, and integration patterns for multi-agent implementation. Use this skill when decomposing a large feature into independent work streams, when two or more agents need to implement different layers of the same system…

wshobson/agents · 105 tokens

nft-standards

Implement NFT standards (ERC-721, ERC-1155) with proper metadata handling, minting strategies, and marketplace integration. Use when creating NFT contracts, building NFT marketplaces, or implementing digital asset systems.

wshobson/agents · 48 tokens