Skip to main content
skill CX Codex

matrices — Claude Code skill: linear algebra computations

matrices — a skill for matrix operations: identifies types, performs arithmetic, solves linear systems. Includes decompositions like LU, QR, SVD and works across Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode.

MIT 1 installs ★ 3,951 updated 2026-01-26

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add parcadei/Continuous-Claude-v3 --skill matrices -a claude-code
Open on GitHub

What matrices does

Runs on all six supported platforms. The skill provides a decision tree: start by identifying matrix type (square, symmetric, orthogonal, diagonal), then pick your operation—from basic multiplication and inversion to full decompositions. Commands wrap sympy_compute.py and z3_solve.py, called via uv run python -m runtime.harness with shorthand like matmul "A" "B" for multiplication and linsolve "A" "b" for solving Ax = b.

You can compute determinants, check linear system consistency via constraint solving, and work with both numerical and symbolic matrices. Each command names its inputs: matrix references like "A" or inline arrays like "[[1,2],[3,4]]".

Requires Python and the uv package manager. Documentation lives in .claude/skills/matrices/SKILL.md (Claude Code), with platform-specific paths for other IDEs.

What it helps with

  • compute matrix inverse and determinant
  • solve linear systems Ax = b with consistency checks
  • identify matrix properties and types
  • perform LU, QR, and SVD decompositions
  • run matrix multiplication and transposition

Example prompts for the agent

  • Find the inverse of [[1,2],[3,4]] using matrices
  • Solve the system A = [[1,2],[3,4]], b = [5,6] with matrices linsolve
  • Decompose a matrix using SVD with matrices

How to install matrices

1Skills CLI (Vercel)

npx skills add parcadei/Continuous-Claude-v3 --skill matrices -a claude-code

2Manually: put the files in place

~/.claude/skills/matrices/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/matrices/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about matrices

How do I install matrices in Claude Code?

Run npx skills add parcadei/Continuous-Claude-v3 --skill matrices -a claude-code, then check ~/.claude/skills/matrices/SKILL.md.

What does matrices do?

The skill provides matrix operations: type detection, arithmetic (multiplication, inversion, transpose), solving linear systems Ax = b, and three decompositions—LU, QR, and SVD.

What dependencies does matrices need?

Python, the uv package manager, and SymPy. Commands invoke sympy_compute.py through uv run python -m runtime.harness.

Source text

SKILL.md · MIT
---
name: matrices
description: "Problem-solving strategies for matrices in linear algebra"
allowed-tools: [Bash, Read]
---

# Matrices

## When to Use

Use this skill when working on matrices problems in linear algebra.

## Decision Tree


1. **Identify Matrix Type**
   - Square, symmetric, orthogonal, diagonal?
   - Check properties with `sympy_compute.py matrix_type`

2. **Basic Operations**
   - Multiplication: `sympy_compute.py matmul "A" "B"`
   - Inverse: `sympy_compute.py inverse "A"`
   - Transpose: `sympy_compute.py transpose "A"`

3. **Solve Linear Systems**
   - Ax = b: `sympy_compute.py linsolve "A" "b"`
   - Check consistency with `z3_solve.py sat`

4. **Decompositions**
   - LU: `sympy_compute.py lu "A"`
   - QR: `sympy_compute.py qr "A"`
   - SVD: `sympy_compute.py svd "A"`


## Tool Commands

### Sympy_Inverse
```bash
uv run python -m runtime.harness scripts/sympy_compute.py inverse "[[1,2],[3,4]]"
```

### Sympy_Det
```bash
uv run python -m runtime.harness scripts/sympy_compute.py det "[[a,b],[c,d]]"
```

### Sympy_Linsolve
```bash
uv run python -m runtime.harness scripts/sympy_compute.py linsolve "[[1,2],[3,4]]" "[5,6]"
```

## Cognitive Tools Reference

See `.claude/skills/math-mode/SKILL.md` for full tool documentation.

© parcadei · MIT · parcadei/Continuous-Claude-v3

Similar skills

All skills for AI and ML →

From the same set161

The whole set →
proof-theory proof-theory — a skill for mathematical logic proofs and decision trees across strategies. Guides you through direct proof, proof by contradiction, case analysis, and induction; verifies soundness, completeness, and cut elimination. CX Codex +1 1installs propositional-logic Guides solving propositional logic problems using truth tables, Z3 proofs, and semantic tableaux. CX Codex +1 1installs predicate-logic A skill for tackling predicate logic in mathematical logic. Handles quantifier analysis, normal form conversion, proof construction, and countermodel search. CX Codex +1 1installs prime-numbers Skill for working with prime numbers in graph and number theory. Offers strategies for primality testing (trial division, Miller-Rabin, AKS), factorization, and applications of Fermat's and Wilson's theorems through Bash and Read tools. CX Codex +1 1installs leann-search leann-search runs semantic code queries against a LEANN vector index when exact keyword matches fall short. CX Codex +1 ★ 3,951repo stars natural-transformations This skill guides category-theory work on natural transformations, with Lean 4 notation for checking naturality and applying related constructions. CX Codex +1 ★ 3,951repo stars categories-functors categories-functors — a skill for solving category and functor problems in category theory. Validates axioms, checks functor properties, and verifies proofs in Lean 4 via compiler. CX Codex +1 ★ 3,951repo stars limits-colimits limits-colimits is a Claude Code skill that provides decision workflows for category theory limits and colimits, including Lean 4 proof formalization and SymPy calculations. CX Codex +1 ★ 3,951repo stars

Project sponsors

Companies that keep this analytics open