lean-package-research
Skill3 starsChanged 24 days agoApache-2.0View on GitHub
USE FOR: Lean 4 package and toolchain research: evaluating Reservoir/GitHub packages, Mathlib/cslib pin changes. DO NOT USE FOR: ordinary theorem lookup without a package decision (@lean-research). TRIGGERS: Lean package, Reservoir, GitHub Lean repo, Lake dependency.
In this repository65 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-guard-judge-evalSkill
- applied-data-information-securitySkill
- applied-engineering-disciplinesSkill
- applied-legal-reasoningSkill
- epistemic-discovery-engineSkill
- epistemic-mappingSkill
- hol-metamath-adapterSkill
- isabelle-isar-adapterSkill
- itp-cross-portingSkill
- lean-ai-formalizationSkill
- lean-applied-reasoningSkill
- lean-axiom-closureSkill
- lean-bigraph-modelingSkill
- lean-bisectSkill
- lean-blueprintSkill
- lean-buildSkill
- lean-causal-reasoningSkill
- lean-competitive-mathSkill
- lean-convergence-verificationSkill
- lean-core-onlySkill
- lean-dag-visualizerSkill
- lean-deep-auditSkill
- lean-doc-feedbackSkill
- lean-doc-improvementSkill
- lean-doc-requirementsSkill
- lean-enforcementSkill
- lean-formalization-breakdownSkill
- lean-gatewaySkill
- lean-integration-protocolSkill
- lean-knowledge-formalizationSkill
- lean-math-analysisSkill
- lean-math-discreteSkill
- lean-math-dynamicalSkill
- lean-math-foundationsSkill
- lean-math-optimizationSkill
- lean-math-stochasticSkill
- lean-mweSkill
- lean-nested-learningSkill
- lean-pedagogical-expositionSkill
- lean-proof-refactorSkill
- lean-proof-repairSkill
- lean-proof-reviewSkill
- lean-proofSkill
- lean-prSkill
- lean-quality-engineSkill
- lean-replay-verificationSkill
- lean-reportSkill
- lean-researchSkill
- lean-retroactive-auditSkill
- lean-retro-methodologySkill
- lean-review-councilSkill
- lean-security-formalizationSkill
- lean-setupSkill
- lean-specificationSkill
- lean-tautology-triageSkill
- lean-upstream-portingSkill
- lean-vendor-substrateSkill
- lean-zettelkastenSkill
- math-product-managementSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 47
STOP if the package would require editing lean-toolchain, lakefile.lean, or lake-manifest.json without an explicit edit claim and human …
- Distinctive: line 49
STOP if the adoption class is ADOPT-NOW but confidence is below the local belief floor, validation is unknown, or the dependency graph is …
- Distinctive: line 51
STOP if a package is archived, stale, or has unclear transitive dependencies and the caller asks for immediate adoption.
≈ “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
lean-package-research
Package research is separate from theorem lookup because dependency decisions change reproducibility, build time, trust surface, and future maintenance. This skill turns a candidate package or pin change into an adoption recommendation with evidence, sequencing, and validation.
Routing
- USE FOR: Lean 4 package and toolchain research — evaluating Reservoir/GitHub packages, Mathlib/cslib pin changes, Lake dependency health, package adoption classes, update sequencing, and external theorem-substrate candidates.
- DO NOT USE FOR: ordinary theorem lookup without a package decision (use
@lean-research); package-file mutation orlake updateexecution (delegate validation to@lean-enforcementunder an edit claim); proof writing (use@lean-proof); general project QA (use@lean-quality-engine). - TRIGGERS: Lean package, Reservoir, GitHub Lean repo, Lake dependency,
Workflow
- Scope the package question [discover] — identify whether the caller wants
theorem borrowing, dependency adoption, pin update, fork/vendor choice, or
negative-result evidence. If the request only needs symbol lookup, hand off to
@lean-research. - Run the discovery ladder [discover] — use
../../references/discovery-ladder.mdfor Reservoir, GitHub, current-pin package source, theorem-search services, and literature checks. Record negative results rather than relying on memory. - Assess dependency health [validate] — inspect Lake metadata, toolchain compatibility, maintenance status, archive/staleness, license visibility, transitive dependencies, binary fetches, and whether the package is already
Recovery & STOP
- STOP if the package would require editing
lean-toolchain,lakefile.lean, orlake-manifest.jsonwithout an explicit edit claim and human authorization. - STOP if the adoption class is ADOPT-NOW but confidence is below the local belief floor, validation is unknown, or the dependency graph is dirty.
- STOP if a package is archived, stale, or has unclear transitive dependencies and the caller asks for immediate adoption; return RESEARCH-MORE or DO-NOT-ADOPT-NOW with evidence.
Handoffs
- Predecessors:
@lean-researchfor symbol/literature leads,@lean-integration-protocolfor project integration boundaries,agent:gatewayfor package-focused user requests. - Successors:
@lean-researchfor deeper theorem lookup,@lean-enforcementfor validation commands,@lean-quality-enginefor milestone/package-health scoring. - References: discovery ladder
(
../../references/discovery-ladder.md) and eval prompts
Detailed reference
Full encyclopedic reference, decision trees, and lookup tables live in
references/lean-package-research-handbook.md .
See also
../../references/lean-package-research-handbook.md-- Completelean-package-researchHandbook../lean-gateway/SKILL.md-- Top-level skill router
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.

