Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

linear-solvers

Skill by beita6969

Selects and configures solvers for linear systems Ax=b, covering dense and sparse problems. It helps choose direct or iterative methods, pick preconditioners, and diagnose convergence in GMRES, CG and BiCGSTAB.

  • Score 85
  • 1k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install linear-solvers

Built from the published package, never by AI.

git clone --depth 1 https://github.com/beita6969/ScienceClaw /tmp/ScienceClaw && mkdir -p ~/.claude/skills && cp -r /tmp/ScienceClaw/skills/linear-solvers ~/.claude/skills/linear-solvers

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install linear-solvers in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

linear-solvers is an agent skill for choosing and tuning solvers for linear systems Ax=b, in both dense and sparse problems. It gives a workflow to characterize a matrix, analyze its sparsity, select a solver, choose a preconditioner, apply scaling, and monitor convergence. It includes six Python scripts that return JSON output, such as solver_selector.py and convergence_diagnostics.py.

The skill uses a decision flowchart based on size, symmetry and definiteness, along with quick reference tables and a stagnation diagnosis guide. The source says it is meant for linear systems arising in numerical simulations. It lists Python 3.8+, NumPy and SciPy as requirements and points to reference files on solver choice, preconditioners, convergence patterns and scaling.

Written from the project's SKILL.md and checked against it.

What it can do

  • sparsity_stats.pyReports nnz, density, bandwidth and symmetry for a matrix.
  • solver_selector.pyRecommends a solver, with alternatives and notes, based on matrix properties.
  • preconditioner_advisor.pySuggests a preconditioner for a given matrix type and stagnation state.
  • scaling_equilibration.pyComputes row and column scale factors for an ill-conditioned matrix.
  • convergence_diagnostics.pyEstimates the convergence rate from residuals and flags stagnation.
  • residual_norms.pyComputes residual and relative norms and reports whether the solve converged.

What you need

  • Python 3.8+
  • NumPy
  • SciPy

Try asking

  • Which solver should I use for a large sparse SPD matrix?
  • My GMRES residual stalls after 50 iterations. What should I try?
  • Analyze the sparsity and symmetry of my matrix saved as A.npy.

Good to know

  • Large dense matrices may run out of memory with direct solvers.
  • Highly indefinite systems may cause standard preconditioners to fail.
  • Saddle-point problems require specialized block preconditioners.

Security check

B
  • Allowed to use Bash, Write without limitsIn SKILL.md

Checked automatically: skills/linear-solvers/SKILL.md, skills/linear-solvers/scripts/convergence_diagnostics.py, skills/linear-solvers/scripts/preconditioner_advisor.py, skills/linear-solvers/scripts/residual_norms.py, skills/linear-solvers/scripts/scaling_equilibration.py, skills/linear-solvers/scripts/solver_selector.py, skills/linear-solvers/scripts/sparsity_stats.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadBashWriteGrepGlob

  • SKILL.md6 KB
  • references/convergence_patterns.md10 KB
  • references/preconditioner_catalog.md8 KB
  • references/scaling_guidelines.md8 KB
  • references/solver_decision_tree.md8 KB
Show all 11 files
  • scripts/convergence_diagnostics.py2 KB
  • scripts/preconditioner_advisor.py3 KB
  • scripts/residual_norms.py6 KB
  • scripts/scaling_equilibration.py4 KB
  • scripts/solver_selector.py4 KB
  • scripts/sparsity_stats.py3 KB

Alternatives to linear-solvers

All alternatives →

Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database

linear-solvers: common questions

Which solver does this skill suggest for a sparse symmetric positive definite system?

The flowchart and quick reference point to CG with an AMG or IC preconditioner for sparse SPD matrices.

What should I do if GMRES stagnates?

The skill suggests increasing the restart parameter, trying ILU(k) with a higher k, or switching to AMG. It uses convergence_diagnostics.py and preconditioner_advisor.py to support this.

What are the known limits of this skill?

The source warns that large dense matrices may exhaust memory, highly indefinite systems may defeat standard preconditioners, and saddle-point problems need block preconditioners.

How do I install linear-solvers?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is linear-solvers free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is linear-solvers safe to use?

It scores 85 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use bash, write without limits). Review the code before you install. How grades work.

What are alternatives to linear-solvers?

Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.

linear-solvers Install

Add to stack

Loading.