ampl

Community

Ground every AMPL answer in best practice

AuthorMihailby
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents vague or error-prone AMPL guidance by enforcing consistent environment detection, response modes, and formulation standards while grounding answers in AMPL documentation chunks.

Core Features & Use Cases

  • Conversation setup & routing: Detects Pure AMPL vs amplpy/Jupyter vs Python scripts and selects the correct code/output style.
  • Response-mode control: Switches between Full Build, Debug, Explanation, Refactor, Performance, and Data modes based on user intent and whether code exists.
  • Optimization-quality guardrails: Enforces native AMPL constructs (e.g., abs/min/max/PWL/logical operators) to avoid manual linearizations and weak big-M formulations.
  • amplpy-safe data handling: Directs users to load data via Python/pandas (and explicitly avoids AMPL data; blocks in amplpy).
  • Solver selection guidance: Recommends appropriate solvers per problem class (LP/MIP/NLP/MINLP/conic/global/VRP) with tuning and diagnosis hints.

Quick Start

Ask your question naturally, for example: "In Jupyter, help me debug an infeasible AMPL model and refactor the formulation to improve numerical stability."

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ampl
Download link: https://github.com/Mihailby/amplskills/archive/main.zip#ampl

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.