Lean4 Memories
This skill should be used when working on Lean 4 formalization projects to maintain persistent memory of successful proof patterns, failed approaches, project conventions, and user preferences across sessions using MCP memory server integration
Install
npx skills add UCSB-NLP-Chang/Skill-Usage --skill lean4-memoriesgit clone --depth 1 https://github.com/UCSB-NLP-Chang/Skill-Usage.git /tmp/Skill-Usage
mkdir -p ~/.claude/skills
cp -r /tmp/Skill-Usage/tasks/lean4-proof/environment/skills/lean4-memories ~/.claude/skills/lean4-memoriesPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Lean 4 Memories ## Overview This skill enables persistent learning and knowledge accumulation across Lean 4 formalization sessions by leveraging MCP (Model Context Protocol) memory servers. It transforms stateless proof assistance into a learning system that remembers successful patterns, avoids known dead-ends, and adapts to project-specific conventions. **Core principle:** Learn from each proof session and apply accumulated knowledge to accelerate future work. ## When to Use This Skill This skill applies when working on Lean 4 formalization projects, especially: - **Multi-session projects** - Long-running formalizations spanning days/weeks/months - **Repeated proof patterns** - Similar theorems requiring similar approaches - **Complex proofs** - Theorems with multiple attempted approaches - **Team projects** - Shared knowledge across multiple developers - **Learning workflows** - Building up domain-specific proof expertise **Especially important when:** - Starting a new session on an existing project - Encountering a proof pattern similar to previous work - Trying an approach that previously failed - Needing to recall project-specific conventions - Building on successful proof strategies from earlier sessions ## How Memory Integration Works ### Memory Scoping All memories are scoped by: 1. **Project path** - Prevents cross-project contamination 2. **Skill context** - Memories tagged with `lean4-memories`
Details
- Skill name
lean4-memories- Repository
- UCSB-NLP-Chang/Skill-Usage
- Path
tasks/lean4-proof/environment/skills/lean4-memories/SKILL.md- Repo updated
- 8 April 2026
FAQ
What does the Lean4 Memories skill do?
This skill should be used when working on Lean 4 formalization projects to maintain persistent memory of successful proof patterns, failed approaches, project conventions, and user preferences across sessions using MCP memory server integration
How do I install the Lean4 Memories skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add UCSB-NLP-Chang/Skill-Usage --skill lean4-memories. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Lean4 Memories popular?
It lives in UCSB-NLP-Chang/Skill-Usage, which has 49 GitHub stars and 5 forks.
Related skills
Pubchem Database
49UCSB-NLP-Chang/Skill-Usage
Query PubChem via PUG-REST API/PubChemPy (110M+ compounds). Search by name/CID/SMILES, retrieve properties, similarity/substructure searches, bioactivity, for cheminformatics.
Pymatgen
49UCSB-NLP-Chang/Skill-Usage
Materials science toolkit. Crystal structures (CIF, POSCAR), phase diagrams, band structure, DOS, Materials Project integration, format conversion, for computational materials science.
Rdkit
49UCSB-NLP-Chang/Skill-Usage
Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom sanitization, specialized algorithms.
Memory Optimization
49UCSB-NLP-Chang/Skill-Usage
Optimize Python code for reduced memory usage and improved memory efficiency. Use when asked to reduce memory footprint, fix memory leaks, optimize data structures for memory, handle large datasets efficiently, or diagnose memory issues. Covers object sizing, generator patterns, efficient data structures, and memory profiling strategies.
Harbor
49UCSB-NLP-Chang/Skill-Usage
Harbor framework for agent evaluation. Use when: (1) Running harbor commands (harbor run, harbor tasks check), (2) Creating/validating SkillsBench tasks, (3) Understanding task format or debugging failures.
Parallel Processing
49UCSB-NLP-Chang/Skill-Usage
Parallel processing with joblib for grid search and batch computations. Use when speeding up computationally intensive tasks across multiple CPU cores.
Browse the most popular Claude skills, all productivity & notes skills, or write your own with the skills generator.