lmfdb-cli
Skill0 starsChanged 8 months agoMITView on GitHub
Query LMFDB to verify number theory results, including number field properties, elliptic curve data, and algebraic number theory computations.
- Installs packages
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ccswitchSkill
- code-rulesSkill
- leanmgr-cache-managerSkill
- learn-math-by-lean-notebookSkill
- mathlib-styleSkill
- mathlib-workflowSkill
- openclaw-rssSkill
- pre-initSkill
- pr-worktree-workflowSkill
- sshSkill
- tmuxSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use lmfdb CLI to look up concrete examples and verify results against the LMFDB database.
- Very specific: line 147
JSON for parsing: Use --fmt json when you need to process results programmatically.
- Very specific: line 149
Specific fields: Use -f to request only the fields you need — makes output cleaner and queries faster.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Querying LMFDB for Mathematical Verification
Use lmfdb CLI to look up concrete examples and verify results against the LMFDB database.
Installation
brew tap frankieew/tap && brew install lmfdb-cli
# or build from source: go build -o lmfdb ./cmd/lmfdbNumber Fields (nf)
Quick Reference
lmfdb nf [options]| Flag | Meaning | Example |
-d <n> | Degree [Q(α):Q] | -d 3 (cubic fields) |
-n <n> | Number of results | -n 50 |
--disc <val> | Discriminant | --disc -23 |
--class <n> | Class number h(K) | --class 1 |
--sig <r1,r2> | Signature (r₁,r₂) | --sig 0,1 (totally imaginary) |
--id <label> | Specific field by LMFDB label | --id 2.0.3.1 |
--sort <field> | Sort (prefix - for desc) | --sort -disc |
-f <fields> | Select specific fields | -f label,disc,class_number |
--fmt json | Output as JSON | --fmt json |
-o <file> | Save to file | -o results.csv --fmt csv |
--browser | Bypass reCAPTCHA | for large queries |
Common Verification Tasks
Find all quadratic fields with class number 1:
lmfdb nf -d 2 --class 1 -n 100Check imaginary quadratic fields (signature (0,1)):
lmfdb nf -d 2 --sig 0,1 -n 50Look up a specific number field by label:
lmfdb nf --id 2.0.3.1
# Returns full record: discriminant, class number, Galois group, regulator, etc.Cubic fields sorted by discriminant:
lmfdb nf -d 3 --sort disc -n 20Totally real quartic fields:
lmfdb nf -d 4 --sig 4,0 -n 20Export for further analysis:
lmfdb nf -d 2 -n 200 -f label,disc,class_number,regulator --fmt json -o quadratic_fields.jsonLMFDB Number Field Labels
Format: d.r.D.n where:
d= degreer= number of real embeddings (0 or positive)D= absolute discriminantn= index among fields with same (d, r, D)
Example: 2.0.3.1 = degree 2, no real embeddings, |disc| = 3, first such field = Q(√-3)
Available Fields for -f
Key fields in nf_fields collection:
label— LMFDB labeldegree— [K:Q]disc— discriminant Δ_Kclass_number— h(K)class_group— structure of Cl(K)signature— [r₁, r₂]regulator— regulator R_Kgalt— Galois group (transitive group label)subfields— subfield labelszk— integral basiscoeffs— minimal polynomial coefficients
Elliptic Curves (ec)
Quick Reference
lmfdb ec [options]| Flag | Meaning | Example |
-r <n> | Mordell-Weil rank | -r 2 |
-t <n> | Torsion order | -t 7 |
--conductor <n> | Conductor N | --conductor 11 |
-n <n> | Number of results | -n 50 |
--sort <field> | Sort | --sort conductor |
-f <fields> | Select fields | -f lmfdb_label,rank,conductor |
Common Verification Tasks
Find rank 2 elliptic curves:
lmfdb ec -r 2 -n 20Curves with torsion group of order 7:
lmfdb ec -t 7 -n 10Curves of conductor 11:
lmfdb ec --conductor 11 --fmt jsonExport rank data for analysis:
lmfdb ec -r 0 -n 100 -f lmfdb_label,conductor,torsion_structure --fmt csv -o rank0_curves.csvOther Collections
lmfdb list # Show all available collectionsAvailable: number fields, elliptic curves, genus 2 curves, Dirichlet characters, Maass forms, modular forms, local fields, Artin representations, Belyi maps.
Tips
- reCAPTCHA blocking: For large queries (n > 50), use
--browserflag. Runlmfdb install-browserfirst to download Chromium. - JSON for parsing: Use
--fmt jsonwhen you need to process results programmatically. - Pagination: Combine
-nand--offsetto page through large result sets. - Specific fields: Use
-fto request only the fields you need — makes output cleaner and queries faster.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

