math-model-selector

Routes problems to appropriate mathematical frameworks using expert heuristics

422 stars

Best use case

math-model-selector is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Routes problems to appropriate mathematical frameworks using expert heuristics

Teams using math-model-selector should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/math-model-selector/SKILL.md --create-dirs "https://raw.githubusercontent.com/vibeeval/vibecosystem/main/skills/math/math-model-selector/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/math-model-selector/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How math-model-selector Compares

Feature / Agentmath-model-selectorStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Routes problems to appropriate mathematical frameworks using expert heuristics

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Math Model Selector

## When to Use

Trigger on phrases like:
- "what math should I use"
- "which mathematical framework"
- "how do I model this"
- "what kind of problem is this"
- "formalize this problem"

Use when user has a problem but doesn't know which mathematical domain applies.

## Process

Guide user through decision tree using Polya-style questions:

### 1. Identify the quantity
**Ask:** "What quantity or phenomenon are you trying to understand?"
- Physics problem -> conservation laws, differential equations
- Economics -> equilibrium, optimization
- Data patterns -> statistics, regression

### 2. Characterize change
**Ask:** "What changes, and how does it change?"
- Discrete steps -> difference equations, recurrences
- Continuous rate -> ODEs
- Rate of rate matters -> 2nd order ODEs
- Spatial variation -> PDEs

### 3. Check for uncertainty
**Ask:** "Is there randomness or uncertainty involved?"
- Deterministic -> standard analysis
- Epistemic uncertainty -> Bayesian methods
- Random process -> probability theory, stochastic processes

### 4. Optimization check
**Ask:** "Are you optimizing something?"
- Convex objective -> linear/quadratic programming
- Non-convex -> gradient descent, evolutionary methods
- Discrete choices -> combinatorics, integer programming

### 5. Answer precision
**Ask:** "What level of answer do you need?"
- Rough estimate -> dimensional analysis
- Qualitative behavior -> phase portraits, stability
- Numerical answer -> simulation
- Exact closed form -> analytical methods

## Key Questions to Ask

1. What changes? (discrete vs continuous)
2. What causes the change? (rate dependencies)
3. What's random? (uncertainty type)
4. What's being optimized? (objective function)
5. How precise? (qualitative vs quantitative)

## Output Format

```
Framework Recommendation:
- Primary: [framework name]
- Why: [one-sentence justification]

Starting Point:
- Key equations: [relevant formulas]
- Initial approach: [first step]

Tools to Use:
- [specific script or computation tool]

Related Skills:
- [domain skill to activate next]
```

## Example Interaction

```
User: I want to model how a rumor spreads through a population

Claude: Let me help you find the right framework.

Q1: What quantity are we tracking?
> Number of people who heard the rumor over time.

Q2: What causes it to change?
> Spread rate depends on who knows and who doesn't.

Q3: Is there randomness?
> Assume deterministic (average behavior) for now.

Q4: Optimizing anything?
> No, just understanding dynamics.

Q5: What precision?
> Qualitative behavior, maybe predict peak rate.

Framework Recommendation:
- Primary: First-order ODE (logistic growth)
- Why: Rate depends on current state nonlinearly

Starting Point:
- dN/dt = r * N * (1 - N/K)
- N = heard count, K = population, r = spread rate

Tools:
- sympy_compute.py solve (equilibrium)
- Phase line for qualitative behavior

Related Skills:
- math/math-intuition-builder (understand the model)
- odes-pdes/first-order-odes (solve it)
```

## Co-activates

After framework selection, suggest:
- **math-intuition-builder** - to understand the framework
- **Relevant domain skill** - for actual computation
- **math-mode** - for symbolic verification

Related Skills

smart-model-routing

422
from vibeeval/vibecosystem

Dynamic model selection based on task complexity scoring. Replaces static model mappings with a weighted signal system that picks Opus, Sonnet, or Haiku-class speed per task. Works with agent-assignment-matrix.md.

math-progress-monitor

422
from vibeeval/vibecosystem

Metacognitive check-ins during problem solving - detects when to pivot or persist

math-intuition-builder

422
from vibeeval/vibecosystem

Develops mathematical understanding through examples, visualization, and analogy

math

422
from vibeeval/vibecosystem

Unified math capabilities - computation, solving, and explanation. I route to the right tool.

math-router

422
from vibeeval/vibecosystem

Deterministic router for math cognitive stack - maps user intent to exact CLI commands

math-help

422
from vibeeval/vibecosystem

Guide to the math cognitive stack - what tools exist and when to use each

workflow-router

422
from vibeeval/vibecosystem

Goal-based workflow orchestration - routes tasks to specialist agents based on user goals

wiring

422
from vibeeval/vibecosystem

Wiring Verification

websocket-patterns

422
from vibeeval/vibecosystem

Connection management, room patterns, reconnection strategies, message buffering, and binary protocol design.

visual-verdict

422
from vibeeval/vibecosystem

Screenshot comparison QA for frontend development. Takes a screenshot of the current implementation, scores it across multiple visual dimensions, and returns a structured PASS/REVISE/FAIL verdict with concrete fixes. Use when implementing UI from a design reference or verifying visual correctness.

verification-loop

422
from vibeeval/vibecosystem

Comprehensive verification system covering build, types, lint, tests, security, and diff review before a PR.

vector-db-patterns

422
from vibeeval/vibecosystem

Embedding strategies, ANN algorithms, hybrid search, RAG chunking strategies, and reranking for semantic search and retrieval.