Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
lingzhi227 avatar

Symbolic Equation

  • 1.2k installs
  • 255 repo stars
  • Updated February 27, 2026
  • lingzhi227/agent-research-skills

symbolic-equation is a Claude Code skill that discovers symbolic mathematical equations for scientific systems using LLM-driven multi-island evolutionary search for developers who need interpretable formulas from data.

About

symbolic-equation is a lingzhi227/agent-research-skills agent skill extracted from the LLM-SR codebase spanning pipeline.py, sampler.py, buffer.py, evaluator.py, and config.py. It runs a multi-island evolutionary pipeline where parallel LLM samplers propose equation function structures, an ExperienceBuffer clusters programs across islands, and evaluators score fitness against scientific inputs. Prompts ask the model to complete equation functions respecting physical meaning and variable relationships. Developers reach for symbolic-equation when fitting compact symbolic models to experimental datasets instead of opaque black-box neural regressors.

  • Multi-island evolutionary algorithm with parallel LLM samplers and evaluators
  • ExperienceBuffer maintains versioned improving program clusters across islands
  • Automated prompt construction from physical system relationships
  • Continuous sampling loop with early stopping based on global sample count
  • Parallel evaluation pipeline that scores and registers discovered equations

Symbolic Equation by the numbers

  • 1,196 all-time installs (skills.sh)
  • +33 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #930 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/lingzhi227/agent-research-skills --skill symbolic-equation

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.2k
repo stars255
Security audit2 / 3 scanners passed
Last updatedFebruary 27, 2026
Repositorylingzhi227/agent-research-skills

How do you discover symbolic equations from scientific data?

Discover symbolic mathematical equations that model scientific systems using LLM-driven evolutionary search.

Who is it for?

ML and scientific computing developers who need interpretable symbolic formulas discovered via LLM-guided evolutionary search over equation structures.

Skip if: Production deep learning training, computer vision pipelines, or problems where black-box accuracy outweighs interpretable symbolic forms.

When should I use this skill?

The user asks to discover, evolve, or fit symbolic mathematical equations or function structures from scientific observational data.

What you get

Candidate equation functions, scored program clusters per island, and evaluated symbolic models fit to scientific input relationships.

  • symbolic equation functions
  • scored program candidates

By the numbers

  • Implements multi-island evolutionary search with parallel LLM samplers and per-island ExperienceBuffer clusters

Files

SKILL.mdMarkdownGitHub ↗

Symbolic Equation Discovery

Discover interpretable scientific equations from data using LLM-guided evolutionary search.

Input

  • $0 — Dataset description, variable names, and physical context

References

  • LLM-SR patterns (prompts, evolution, sampling): ~/.claude/skills/symbolic-equation/references/llmsr-patterns.md

Workflow (from LLM-SR)

Step 1: Define Problem Specification

Create a specification with: 1. Input variables: Physical quantities with types (e.g., x: np.ndarray, v: np.ndarray) 2. Output variable: Target quantity to predict 3. Evaluation function: Fitness metric (typically negative MSE with parameter optimization) 4. Physical context: Domain knowledge to guide equation discovery

# Example specification
@equation.evolve
def equation(x: np.ndarray, v: np.ndarray, params: np.ndarray) -> np.ndarray:
    """Describe the acceleration of a damped nonlinear oscillator."""
    return params[0] * x

Step 2: Initialize Multi-Island Buffer

  • Create N islands (default: 10) for population diversity
  • Each island maintains independent clusters of equations
  • Clusters group equations by performance signature

Step 3: Evolutionary Search Loop

Repeat until convergence or max samples: 1. Select island: Random island selection 2. Build prompt: Sample top equations from clusters (softmax-weighted by score) 3. LLM proposes: Generate new equation as improved version 4. Evaluate: Execute on test data, compute fitness score 5. Register: Add to island's cluster if valid

Step 4: Prompt Construction

Present previous equations as versioned sequence:

def equation_v0(x, v, params):
    """Initial version."""
    return params[0] * x

def equation_v1(x, v, params):
    """Improved version of equation_v0."""
    return params[0] * x + params[1] * v

def equation_v2(x, v, params):
    """Improved version of equation_v1."""
    # LLM completes this

Step 5: Island Reset (Diversity Maintenance)

Periodically (default: every 4 hours): 1. Sort islands by best score 2. Reset bottom 50% of islands 3. Seed each reset island with best equation from a surviving island 4. Restart cluster sampling temperature

Step 6: Extract Best Equations

After search completes: 1. Collect best equation from each island 2. Rank by fitness score 3. Simplify if possible (algebraic simplification) 4. Report with physical interpretation

Cluster Sampling

Temperature-scheduled softmax over cluster scores:

temperature = T_init * (1 - (num_programs % period) / period)
probabilities = softmax(cluster_scores / temperature)
  • Higher temperature → more exploration
  • Lower temperature → more exploitation of best clusters
  • Within clusters: shorter programs are preferred (Occam's razor)

Rules

  • Equations must use only standard mathematical operations
  • Parameter optimization via scipy BFGS or Adam
  • Fitness = negative MSE (higher is better)
  • Timeout protection for equation evaluation
  • No recursive equations allowed
  • Physical interpretability is preferred over pure fit

Related Skills

  • Upstream: data-analysis, math-reasoning
  • Downstream: paper-writing-section
  • See also: algorithm-design

Related skills

How it compares

Choose symbolic-equation when interpretable symbolic formulas matter more than opaque neural network regression accuracy.

FAQ

What algorithm does symbolic-equation use?

symbolic-equation uses an LLM-SR multi-island evolutionary algorithm with parallel LLM samplers, an ExperienceBuffer clustering programs per island, and evaluators scoring proposed equation function structures.

What codebase patterns does symbolic-equation follow?

symbolic-equation follows patterns extracted from the LLM-SR codebase including pipeline.py, sampler.py, buffer.py, evaluator.py, and config.py for scientific equation discovery workflows.

Is Symbolic Equation safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

AI & Agent Buildingagentsllmresearch

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.