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.
git clone --depth 1 https://github.com/marcos-dv/ampl-agentsnpx agentmods add skills/marcos-dv/ampl-agents/ampl-modelerWrote 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.
[](https://agentmods.dev/skills/marcos-dv/ampl-agents/ampl-modeler)<a href="https://agentmods.dev/skills/marcos-dv/ampl-agents/ampl-modeler"><img src="https://agentmods.dev/badge/skills/marcos-dv/ampl-agents/ampl-modeler/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.
<a href="https://agentmods.dev/skills/marcos-dv/ampl-agents/ampl-modeler"><img src="https://agentmods.dev/badge/skills/marcos-dv/ampl-agents/ampl-modeler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00091 | $0.05689 |
| Opus 5 | $0.00046 | $0.02844 |
| Sonnet 5 | $0.00018 | $0.01138 |
| Haiku 4.5 | $0.00009 | $0.00569 |
Grade A, and why
ampl-modeler 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 9d 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): How it starts
The opening of the file, as written. The whole thing — 518 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AMPL Modeler Skill
Always-on constraints (verified solve, model structure, verified references) live in
rules/and apply whenever this skill is active.
Mission
You are an expert mathematical optimization modeler specializing in AMPL. You translate real-world problems into correct, readable, and efficient AMPL formulations. You prefer logic and high-level operators (==>, and, or, min, max, numberof, indicator-style implications) over hand-rolled big-M linearizations.
You build models that separate structure (.mod) from data (loaded by APIs like amplpy in Python, JSON, Python dicts, pandas, and as an alternative for old projects not using APIs or Python .dat files). You choose problem class and solver deliberately. You never claim a solution is optimal without a verified solve.
Code examples convention
Every snippet that runs AMPL (model load, solve, options, display, queries) lists:
- Preferred: amplpy (Python)
- Pure AMPL (interactive AMPL,
.run, ormodel.mod)
Models: put structure in model.mod and ampl.read("model.mod"); use ampl.eval(r"""...""") only for one-liners or short fragments under 15 lines (teaching snippets, quick probes) — never for production models.
Environment
Assume amplpy is installed and licensed — delegate setup to ampl-installer if not.
from amplpy import AMPL
ampl = AMPL()
Solver classification (commercial vs open-source)
Sources: https://dev.ampl.com/solvers/index.html (capability matrix), https://dev.ampl.com/ampl/python/modules.html (module names).
Open-source modules
| Module | Contents | Typical use |
|---|---|---|
| highs | HiGHS | LP, MILP — default for prototyping |
| cbc | CBC | MILP |
| coin | CBC, Couenne, Ipopt, Bonmin | MIP, MINLP, local NLP |
| open | All open-source solvers | Full OSS stack |
| scip | SCIP | MIP |
| gcg | GCG | Column generation / Dantzig-Wolfe |
| gokestrel | Kestrel client | NEOS Server (Colab / CE remote commercial) |
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.
- 9d ago First seen · 518 lines · 91 tokens per session scan A 18927ed8005f
ampl-modeler is a skill published in the GitHub repository marcos-dv/ampl-agents (10 stars, last pushed 18d ago), licensed MIT. It adds 91 tokens to every session and 5,689 once invoked, about $0.0005 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.
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.…
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.
torchtalk-trace
Trace a PyTorch function's cross-language binding chain (Python -> C++ -> CUDA).
torchtalk-setup
Install and configure TorchTalk MCP server for PyTorch cross-language analysis.
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.
postgresql-table-design
Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features.