agentleFS
ChrisGVEChrisGVE/localdata-mcp/skills/modeling/optimization/SKILL.md

optimization

Skill4 starsChanged 15 months agoApache-2.0View on GitHub

Solve resource allocation, scheduling, and process optimization problems. Use when finding the best solution under constraints.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Extract problem data: Call describe_database with the database name from $ARGUMENTS.

    line 16
  2. Very specific:

    Profile the data: Call execute_query to pull the relevant values.

    line 21
  3. Very specific:

    Validate against reality: Call execute_query to compare the optimal solution against historical performance.

    line 41

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Optimization

Formulate and solve optimization problems from data — resource allocation, scheduling, cost minimization, or process tuning.

Steps

  1. Understand the objective. From the user's question, identify what is being optimized (minimize cost, maximize throughput, best allocation) and what the constraints are (budget limits, capacity, time windows, quality thresholds).
  2. Extract problem data. Call describe_database with the database name from $ARGUMENTS. Identify tables containing:
    • Decision variables (what can be changed)
    • Objective coefficients (costs, profits, rates)
    • Constraint parameters (capacities, limits, requirements)
  3. Profile the data. Call execute_query to pull the relevant values. Verify completeness with get_data_quality_report. Missing constraint data makes optimization unreliable.
  4. Formulate the problem. Translate the data into an optimization formulation:
    • Objective function (linear or nonlinear)
    • Decision variables and their bounds
    • Constraints (equality and inequality)
    • Report the formulation clearly before solving
  5. Solve. Apply the appropriate optimization approach (available when optimization domain tools are exposed):
    • Linear programming for linear objectives and constraints
    • Constrained optimization for nonlinear problems
    • Assignment problems for matching tasks to resources
    • Network optimization for flow and routing
  6. Analyze the solution. Examine:
    • Optimal objective value
    • Decision variable values at the optimum
    • Which constraints are binding (at their limit) vs. slack
    • Sensitivity: how much would the objective change if a constraint were relaxed?
  7. Validate against reality. Call execute_query to compare the optimal solution against historical performance. Is the improvement realistic? Are there practical constraints the model does not capture?
  8. Present results. Provide:
    • Problem formulation summary
    • Optimal solution with all variable values
    • Objective value and improvement over baseline
    • Binding constraints and sensitivity analysis
    • Implementation recommendations and caveats

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.