solve-model
Formulate, implement, solve, and validate mathematical models with the repository algorithm library. Use when Codex needs to translate assumptions into…
by Chen-Jin-Han★ 24 GitHub stars
Install solve-model in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Solve Model
Turn an agreed route into results that can be explained, checked and used in a competition paper.
Workflow
- Confirm each question's objective, variables, units, constraints, assumptions, output and upstream model-selection rationale.
- Read
references/reasoning-and-validation.mdand the relevant part ofreferences/algorithm-api.md. - Formulate the real relationship before choosing a solver. Use analytical derivation for conservation, geometry, feasible ranges, reduction, scale or monotonicity whenever available.
- Implement a simple baseline before the complex route. Make data slicing, parameters, seed and units explicit; preserve failed runs and limitations. If a decision uses a model-generated forecast, create predictions with rolling origins using only observations available at each issue time, preserve the issued predictions, and estimate forecast-error or risk terms only from previously completed targets.
- For a critical event, define the event function, locate a first bracket, refine it and save left/right states. For a search, establish its prerequisites before bisection or Brent.
- Audit hard constraints independently. Compare with the declared baseline and, where risk warrants it, with an algorithm that does not share the same key implementation path.
- Separate parameter sensitivity from numerical convergence. Explain whether a perturbation changes a decision threshold rather than merely reporting a changed digit. Predeclare final holdout or extrapolation checks and do not repeatedly tune against them.
- Save structured results, source tables and validation evidence so figures and prose can be regenerated without copying numbers by hand.
Writing Handoff
Give write-model-paper plain-language material for each question: the relation being modeled, formulas with variable definitions, solving logic, representative results, comparison, mechanism, evidence, applicable range and limitation. Backend status labels, hashes and logs remain outside the paper.
Resources
references/algorithm-api.md— repository APIs.references/validation-checklist.md— baseline checks.references/reasoning-and-validation.md— event, search and validation reasoning.
Executable Contract
For repository-managed competition and audit projects, inspect the bundled contract with python <skill-directory>/scripts/_runtime/skill_contracts.py --skill solve-model --profile competition (or audit) and run this Skill through scripts/execute_skill.py with every contracted input and output role. In rapid, save the baseline, parameters or seed, result artifact, and limitation; do not represent an exploratory run as a validated decision.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- agents/openai.yaml
- references/algorithm-api.md
- references/reasoning-and-validation.md
- references/rule-pack-integration.md
- references/validation-checklist.md
- scripts/check_environment.py
- scripts/execute_skill.py
- scripts/solve_process_forecast.py
- scripts/solve_supplier_chain.py
FAQ
What does the solve-model skill do?
Formulate, implement, solve, and validate mathematical models with the repository algorithm library. Use when Codex needs to translate assumptions into equations, call or extend algorithms, optimize parameters, run simulations, or perform sensitivity and robustness analysis.
How do I install the solve-model skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the solve-model skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…