Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

gaussx's skill shelf: 24 use skills by role, seven cards, three listed

Design · the skill tree worked out for one library

1Decision

Recommended: gaussx’s shelf is 24 use skills and four extend skills, each tagged with its role; they group into seven units that each carry a contract card; three skills are listed, one per band; and every skill builds on the shared role-ladder skill instead of explaining the ladder itself. Alternative: seven listed skills, one per unit, which trigger more precisely and cost about 1.2k tokens in every session (estimate). Status: open, 12 Nov 2026.

What does not change: gaussx’s public API, the content of its four contributor skills, its maintenance skills, and the name of today’s skill, which stays as the front door.

2Question

gaussx has one use skill for its whole API. How should it split so that each library above gaussx gets only the part it uses, and what is the pattern the other 22 repositories can follow?

3Motivation

One skill covers a ladder of five rungs, and no dependent uses all of it.

gaussx @ 6f98b68 exports 367 names in gaussx.__all__ without the numpyro extra, and seven more with it. Its one skill, structured-gaussian-linalg, is 156 lines and costs about 2.1k tokens to load. Every count on this page comes from scripts/skill_shelf.py, which reads the submodules at the pins of this commit; tests/test_skill_shelf.py fails when a table here is stale. Table 1 counts the public names by unit, from the subpackage each one is imported from in src/gaussx/__init__.py.

Table 1:gaussx’s public names by unit. A unit groups subpackages that the same dependents use; its rungs follow AGENTS.md @ 6f98b68 and the ladder of the kinds-and-roles page, and its band is that page’s.

UnitRungsHome bandSubpackagesNames
Structures and primitives⓪ ①numericsgaussx._operators 39, gaussx._primitives 28, gaussx._tags 24, gaussx._linalg 20, gaussx._gmrf 12, gaussx._sparse 4127
Strategies②, setupnumerics, MLgaussx._strategies 27, gaussx._randomized 10, gaussx._sketching 7, gaussx._preconditioners 6, gaussx._solve_frontend 4, gaussx._known_values 256
Gaussians③MLgaussx._distributions 19, gaussx._expfam 1433
Gaussian processes④MLgaussx._gp 3030
State space④MLgaussx._ssm 5555
Quadrature② to ④MLgaussx._quadrature 4545
Inference and ensembles④MLgaussx._inference 4343
All389

Table 2 counts the distinct gaussx names each dependent package takes, from its imports and its attribute accesses on gaussx.

Table 2:Which part of gaussx each dependent package uses. A package that declares gaussx and takes no public name from it is not listed.

Dependent packageNames usedStructures and primitivesStrategiesGaussiansGaussian processesState spaceQuadratureInference and ensembles
pyrox-gp571113390147
pyrox-lgm38180404102
pyrox-ssm3832111894
filterax3752305121
pyrox-gauss269380600
argminax259700009
kernellib2516900000
vardax2014130002
gauss-flows-models195050621
radtrax105230000
gridax94500000
pyrox-nn75100001
spectraldiffx77000000
plumax64010001
sesmax-core40400000
manipy-jax33000000
sesmax-ocean30300000

Three groups stand out. kernellib, spectraldiffx and manipy stay at structures, primitives and strategies. filterax and gauss-flows mostly call algorithms: inference and ensembles for one, state space for the other. pyrox-gp uses every unit, and pyrox-lgm only structures, primitives and quadrature.

4Running example: two callers

The same two tasks are followed through every option.

TL;DR. An agent writing kernel ridge regression needs to know how to pass a solver; an agent writing a Poisson GP needs the integrator interface. Neither needs the other’s part of gaussx.

  1. kernellib, kernel ridge regression at N = 10⁵. The agent builds K + σ²I as an operator and solves it by preconditioned conjugate gradients. It needs the operator rules (⓪, ①) and the strategies (②).

  2. pyrox-gp, a sparse GP with a Poisson likelihood. The agent needs an expected log-likelihood under a Gaussian, so it needs an integrator and a likelihood (quadrature), the Gaussian helpers (③) and a solver= to pass down.

Table 3:What each caller’s skill carries about gaussx.

CallerTodayProposed
kernellibprose mentions; to learn more it loads the whole gaussx skill, about 2.1k tokenstwo cards (structures and primitives; strategies), at most 30 lines; it loads solvers-and-preconditioners only to tune the preconditioner
pyrox-gpprose mentions; the whole gaussx skillcards for the units it uses; it loads gaussians-and-recipes and its quadrature reference only to write a new likelihood

5The shelf

The shelf has three layers over a shared root: the catalogue of skills by role, the units that group them into cards, and the few that are listed.

Each arrow reads “builds on”, and an arrow that a longer path implies is left out.

The root: the role-ladder skill

The ladder is explained once, in a listed skill of its own, and no library’s skill repeats it.

role-ladder is the agent-facing form of the kinds-and-roles page. It has a job outside the tree as well: it explains an algorithm or a library by the roles its pieces play, which is what an explainer page needs, so it is listed and can be asked for directly. Every plugin in the stack depends on it, so it is always installed and its description is listed once. A first draft exists in the test repository, as a personal skill; its home in the stack is geostack’s plugin.

PartHolds
SKILL.mdthe seven rungs with their grammar, “which rung is it?”, how to explain an algorithm up the ladder, the bands and their floors
references/structure.md to references/recipe.mdone file per role, ⓪ to ⑥: what it is, how to tell it apart, how to explain it, how it goes wrong
references/orchestration.mdwhat runs recipes, and why it is not a rung
references/kinds.mdthe three kinds (function, Module, Operator), what each may take, and the three invariants
references/worked-example.mdone job climbed up the whole ladder: piece, rung, kind, used by

A unit builds on the role files of its rungs: gaussx’s strategies unit on strategy.md, its Gaussians on model.md. Three things then leave gaussx’s own skills. A skill says “⓪ structures” and does not define the word. The generic JAX rules in today’s “The rules your code must keep” move to the kinds file, and gaussx keeps only the rules that are its own. The extend skills stop restating what a Module is.

The shelf: 24 use skills by role

The shelf is the library: one short skill file per job a caller comes with, tagged with its role, so each can be pointed at on its own. With role-ladder as the root, an entry never explains what a strategy or a model is, which keeps it short.

Table 4:gaussx’s shelf. Each use skill is one file; the extend skills exist today in .claude/skills/. Names are from gaussx.__all__ @ 6f98b68.

RoleSkillCoversSubpackage
⓪ structureStructured operatorsthe Kronecker family, block, low-rank, Toeplitz and circulant, masked and interpolated operators_operators
⓪ structureTags and predicatesPSD, symmetric, Kronecker and the other tags, and what each unlocks_tags
⓪ structureSparse operatorsSparseOperator, patterns, symbolic and numeric sparse Cholesky_sparse, _operators
⓪ structureGMRF precisionsSPDE, random-walk, AR1, Besag and BYM2 builders_gmrf
⓪ structureadd-operatorextend
① primitiveSolves and factorisationssolve, logdet, cholesky, sqrt, inv, diag, trace, eig, svd_primitives
① primitiveLinear-algebra identitiesWoodbury, Schur complements, Lyapunov, tridiagonal, selected inverse_linalg
① primitiveadd-dispatch-pathextend
② strategyChoosing a solverdense, CG, preconditioned CG, BBMM, MINRES, LSMR, sparse Cholesky_strategies
② strategyLog-determinant strategiesdense, stochastic Lanczos, Nyström_strategies
② strategyPreconditionersJacobi, Nyström, partial Cholesky_preconditioners
② strategyIntegratorsGauss–Hermite, unscented, cubature, Taylor, Monte Carlo_quadrature
② strategyPassing a strategy throughhow a library above gaussx exposes solver=; linear_solve for a bare matvec_strategies, _solve_frontend
② strategyadd-solver-strategyextend
setupRandomized factorisationsrandomized SVD and eigh, Nyström, RP-Cholesky, sketches_randomized, _sketching
③ modelGaussiansdensities, KL, entropy, conditioning, sampling_distributions
③ modelDistribution objectsMultivariateNormal, LGSSM, MarkovGaussian, with the numpyro extra_distributions
③ modelExponential-family formsnatural, expectation and mean-covariance conversions_expfam
③ modelLikelihoodsGaussian, Poisson, Bernoulli, Student-t and the rest_quadrature
③ modelSDE kernelsMatérn, periodic, quasi-periodic, sums and products_ssm
④ algorithmGP conditioning and predictionconditionals, prediction caches, LOVE, Kronecker GPs, leave-one-out_gp
④ algorithmVariational GPsELBOs, the collapsed bound, whitening_gp
④ algorithmKalman filtering and smoothingsequential, parallel and infinite-horizon_ssm
④ algorithmNonlinear filtering and sitesnonlinear Kalman, CVI site updates, SpInGP_ssm
④ algorithmExpectations and moment matchingexpected log-likelihood, EP moments, uncertain inputs_quadrature
④ algorithmNatural-gradient and Newton updatesBLR, damped natural updates, Gauss–Newton_inference
④ algorithmEnsemble Kalmananalysis, ETKF, localisation, inflation_inference
④ algorithmadd-recipeextend

gaussx has nothing at ⑤ or ⑥, so its shelf stops at algorithms. Two entries are judgement calls: integrators sit at ② although they ship in _quadrature beside the likelihoods, and SDE kernels sit at ③ although they ship in _ssm with the Kalman code. Both follow the role, not the subpackage, as jejjohnson/geostack#122 proposes for the integrators.

Seven units: the shelf grouped into cards

A unit is a group of shelf entries that the same dependents use together. It is what a card describes and what a dependent’s edge points at. gaussx has seven, grouped by the band that works there.

Table 1 lists them with their rungs, bands and subpackages.

Inside gaussx the units are read in ladder order: nouns, verbs, adverbs, then models and algorithms. Two import tangles do not change that order. Layers 0, 1 and 1.5 “form one dispatch core with import cycles”, and _distributions uses the Kalman routines of _ssm (AGENTS.md @ 6f98b68).

Three listed skills

Listing is a separate decision from the shelf: a listed skill is always in the agent’s context, and a shelf entry is loaded when a listed skill or a card points at it. A unit is listed when someone would ask for it without mentioning the rest.

Table 5:The listed use skills. Line budgets are proposals.

SkillUnitsFloor it carries cards forShelf entries it holds
structured-gaussian-linalg, the front door, at most 150 linesstructures and primitiveslineax, equinoxthe four ⓪ entries and the two ① entries
solvers-and-preconditioners, at most 150 linesstrategiesstructures and primitives; lineaxchoosing a solver, log-determinant strategies, preconditioners, passing a strategy through, randomized factorisations
gaussians-and-recipes, at most 150 linesGaussians, and the four familiesstructures and primitives; strategiesthe five ③ entries, the seven ④ entries and integrators

What each skill’s body holds:

  1. structured-gaussian-linalg. The three rules that are gaussx’s own (operators not arrays, say what the structure is, never materialise to solve), the nouns and verbs a caller starts from, the “don’t write it” table for ⓪ and ①, and an “enter at” table that routes to the other two skills.

  2. solvers-and-preconditioners. How to choose between AutoSolver, DenseSolver, CGSolver, PreconditionedCGSolver, BBMMSolver and SparseCholeskySolver; which strategies take a key=; linear_solve for a bare v ↦ A v; and how a library above gaussx passes a strategy through, typed as AbstractSolverStrategy. pyrox-gp, kernellib and argminax all take strategies from gaussx.

  3. gaussians-and-recipes. The Gaussian helpers (gaussian_log_prob, gaussian_kl, conditional, sample_mvn), the natural and expectation parameter conversions, that the distribution objects need the numpyro extra, and one “enter a family” table that points at the shelf entries.

Seven cards

Each unit has one card, at most 15 lines, laid out by the grammar: nouns, verbs, adverbs. The card for structures and primitives:

- **Provides.** Covariance and precision operators that keep their structure, and the verbs that use it.
- **Nouns.** `gaussx.Kronecker`, `gaussx.BlockDiag`, `gaussx.BlockTriDiag`, `gaussx.Toeplitz`, `gaussx.SparseOperator`, `gaussx.low_rank_plus_diag`; any `lineax.AbstractLinearOperator`, tagged.
- **Verbs.** `gaussx.solve`, `gaussx.logdet`, `gaussx.cholesky`, `gaussx.sqrt`, `gaussx.inv`, `gaussx.diag`, `gaussx.trace`.
- **Adverbs.** `solver=`; left out, the verb dispatches on the structure.
- **Keep.** A dense matrix enters as `lx.MatrixLinearOperator(K, lx.positive_semidefinite_tag)`.
- **Never.** Call `as_matrix()` and then a dense `jnp.linalg` solve.
- **One rung down.** Open `gaussx:structured-gaussian-linalg` to build a new structure or to see which verb has a fast path for which noun.

A dependent package receives the card of each unit it uses. The script reads that from the package’s imports, with a threshold of three names (proposed, CARD_THRESHOLD). A package that subclasses one of a unit’s names receives the card whatever its count, and the table names the base. Below the threshold, with no subclass, the unit is named on an “also uses” line.

Table 6:The cards each dependent package would receive, and the units it uses fewer than three names of.

Dependent packageCardsAlso uses
pyrox-gpStructures and primitives; Strategies (subclasses AbstractLogdetStrategy, AbstractPreconditioner); Gaussians; Gaussian processes; Quadrature; Inference and ensembles
pyrox-lgmStructures and primitives; Gaussians (subclasses GaussianMRF, IntrinsicGMRF); State space; QuadratureInference and ensembles (2)
pyrox-ssmStructures and primitives; State space; Quadrature; Inference and ensemblesStrategies (2); Gaussians (1); Gaussian processes (1)
filteraxStructures and primitives; Gaussians; State space; Inference and ensemblesStrategies (2); Quadrature (1)
pyrox-gaussStructures and primitives; Strategies; Gaussians; State space
argminaxStructures and primitives; Strategies; Inference and ensembles
kernellibStructures and primitives; Strategies
vardaxStructures and primitives; GaussiansStrategies (1); Inference and ensembles (2)
gauss-flows-modelsStructures and primitives; Gaussians; State spaceQuadrature (2); Inference and ensembles (1)
radtraxStructures and primitives; GaussiansStrategies (2)
gridaxStructures and primitives; Strategies
pyrox-nnStructures and primitivesStrategies (1); Inference and ensembles (1)
spectraldiffxStructures and primitives
plumaxStructures and primitivesGaussians (1); Inference and ensembles (1)
sesmax-coreStrategies
manipy-jaxStructures and primitives
sesmax-oceanStrategies

The node is the package, not the repository. pyrox is a workspace of five packages at this pin, and they differ: pyrox-gp needs six cards, pyrox-ssm four, pyrox-lgm three, pyrox-nn one, and the core takes no gaussx name. The state-space models have moved out of pyrox-gp into pyrox-ssm, which takes the state-space card with them. A workspace is then a small tree of its own: pyrox-gp builds on pyrox core, as gaussx’s units build on each other.

The extend skills

The four contributor skills already map onto the rungs; each gains two links and loses its restatement of what its role requires.

Table 7:gaussx’s extend skills, which exist today in .claude/skills/.

SkillRung it adds toBuilds on (use unit)Builds on (role file)
add-operator⓪structures and primitivesstructure
add-dispatch-path①structures and primitivesprimitive
add-solver-strategy②strategiesstrategy
add-recipe③ ④Gaussians and the matching familymodel, algorithm

They stay contributor skills, loaded inside the gaussx repository only. pre-pr-check, gaussx-review, triage-ci-failure, deprecate-or-rename and the GitHub skills stay outside the tree.

What gaussx needs from below

A third-party library gets a card in a use skill only when its types appear in that unit’s public signatures.

Table 8:gaussx’s third-party dependencies and where they surface. “Imported in” is from src/gaussx @ 6f98b68.

LibraryImported inSurfaces to a callerCard in
lineaxevery subpackage but _sparseyes: every operator is an AbstractLinearOperator, and tags are lineax’sstructures and primitives; strategies
equinoxthroughoutyes: operators, strategies and models are Modulescovered by role-ladder’s kinds file
numpyro_distributions, behind the extrayes: MultivariateNormal, LGSSM and five more names exist only with itGaussians
matfree_primitives, _strategies, _linalg, _gp/_love.pynoadd-solver-strategy only
optimistixtwo primitives and the DARE solvernonone

6Options

The options differ in which skills are listed, not in the shelf, the units or the cards.

plugins/gaussx/skills/                                                proposed (A)
  structured-gaussian-linalg/    SKILL.md  card.md  shelf/{operators,tags,sparse,gmrf,solves,identities}.md
  solvers-and-preconditioners/   SKILL.md  card.md  shelf/{solvers,logdet,preconditioners,pass-through,randomized}.md
  gaussians-and-recipes/         SKILL.md           shelf/{gaussians,distributions,expfam,likelihoods,sde-kernels,integrators}.md
                                                    shelf/{gp,variational-gp,kalman,nonlinear-filtering,expectations,natural-gradient,ensemble-kalman}.md
                                 cards/{gaussians,gp,state-space,quadrature,inference-and-ensembles}.md

B. Seven listed skills, one per unit

plugins/gaussx/skills/                                                proposed (B)
  structured-gaussian-linalg/  solvers-and-preconditioners/  gaussians/
  gaussian-processes/  state-space-and-kalman/  quadrature-and-expectations/  ensemble-and-natural-gradient-updates/

C. One listed skill over the whole shelf

plugins/gaussx/skills/                                                proposed (C)
  structured-gaussian-linalg/    SKILL.md  cards/*.md  references/*.md

Table 9:The options on the running example. The always-on cost uses the 170 tokens that claude plugin details projects for today’s listing (see the skill tree).

CriterionABC
Listed skills371
Always in contextabout 510 tokens (estimate)about 1.2k tokens (estimate)about 170 tokens, as today
kernellib’s task: tune a preconditionerloads solvers-and-preconditionersthe sameloads the front door, then a shelf entry
pyrox’s task: a new likelihoodloads gaussians-and-recipes, then its likelihoods entryloads quadrature-and-expectationsloads the front door, then a shelf entry
“Run a Kalman smoother” triggersgaussians-and-recipes, by its descriptionits own skillthe front door, if its description says so
Cards777

Rejected. One skill per rung: _quadrature spans three rungs, and the four families share rung ④ but not a caller. Rejected. Splitting by subpackage: seventeen skills, and _tags or _sparse is never what someone asks for.

7Ownership

  1. gaussx owns its shelf, its three listed skills and its seven cards. It never writes a “Builds on” block by hand.

  2. geostack owns role-ladder, the substrate cards and the generator. It never edits gaussx’s skill bodies.

  3. A dependent owns nothing here: the cards it receives are decided by what it imports.

8Gates

Table 10:The checks for gaussx’s shelf. ST gates are those of the skill tree.

GatePasses when
GX-0 Currentpython scripts/skill_shelf.py --check exits 0: the three generated tables match the submodules
GX-1 Coveredevery name in gaussx.__all__ is named by exactly one shelf entry, and every entry declares one role
GX-2 Cards name real symbolsevery backticked gaussx.<name> in a card is in gaussx.__all__
GX-3 Budgeteach SKILL.md at most 150 lines, each card at most 15 lines, each shelf entry at most 120 lines (proposed)
GX-4 Laddereach unit declares its rungs, and no skill tells the agent to load a unit above it (ST-7, ST-4)
GX-5 Right parton the two running-example tasks, the agent loads no gaussx skill for kernellib’s first task and only gaussians-and-recipes for pyrox’s (proposed)
GX-6 Nothing lostevery row of today’s “Don’t write it” table appears in exactly one of the three skills

9Risks

10The pattern for another repository

gaussx’s shelf was derived in six steps, and each uses data the stack already has.

  1. List the contributor skills. Each add-<thing> names something the library lets you add, so it names a rung the shelf must cover: gaussx’s four are an operator, a dispatch path, a solver strategy and a recipe.

  2. Count the public names by subpackage (scripts/skill_shelf.py), and give each subpackage its role.

  3. Write the shelf: one entry per job a caller comes with, tagged with its role, following the role where it disagrees with the subpackage.

  4. Count which names each dependent package takes (the same script), and group the entries into units where the dependents split.

  5. List a unit when someone would ask for it alone.

  6. Link each contributor skill to the entries it extends and to its role file, and give a third-party library a card only where its types surface.

A library whose dependents do not split keeps one unit and one listed skill, and still has a shelf.

11Follow-up reports

12Relationships