openmath-lean-theorem

v1.0.3

Configures Lean environments, installs external proof skills, runs preflight checks, and guides the workflow for proving downloaded OpenMath Lean theorems lo...

0· 140·1 current·1 all-time
byshentu-org@bennyzhe
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The skill name/description (configure Lean, run preflight, install proof skills) matches the provided assets: a SKILL.md describing preflight/install steps and a preflight Python script that detects toolchains, checks for required skills, optionally clones the official leanprover/skills repo, and runs build checks. Required binaries and actions (lean, lake, elan, python3, git for auto-install) are appropriate to the stated purpose.
Instruction Scope
Runtime instructions tell the agent to run a local preflight script which: inspects the workspace (files like lean-toolchain, lakefile.lean, theorem.json), searches common skill directories under the user's home and repo, optionally performs a lake build, and — only when --auto-install-skills plus an explicit install dir (or OPENMATH_LEAN_SKILL_INSTALL_DIR) are provided — clone the configured skill repo and copy missing skill directories into the chosen install dir. These steps are within scope for preparing a Lean proving environment, but they do touch the user's home-directory skill paths and will perform network cloning if the explicit auto-install path is used.
Install Mechanism
This is an instruction-only skill with an included Python script; there is no package install spec. The script may run 'git clone' of the DEFAULT_LEAN_SKILL_REPO_URL (default: https://github.com/leanprover/skills.git) into a temporary directory and copy selected skill subdirectories into an explicit install dir. Cloning a well-known GitHub repo is reasonable here, but the repo URL can be overridden via env var, so users should review the upstream repository before allowing auto-install.
Credentials
The registry shows no required env vars, but the SKILL.md and script use/recognize optional environment variables (OPENMATH_SKILL_DIRS, OPENMATH_LEAN_SKILL_INSTALL_DIR, OPENMATH_LEAN_SKILL_REPO_URL). Those are reasonable for customizing search/install locations. The script also enumerates and probes common skill directories under the user's home; this file-system inspection is expected for finding installed skills but is worth noting. No secrets or unrelated credentials are requested.
Persistence & Privilege
The skill is not always-enabled and does not request permanent platform privileges. It only writes files when the user explicitly runs the preflight with --auto-install-skills and supplies an explicit install directory (or sets OPENMATH_LEAN_SKILL_INSTALL_DIR). The script does not modify other skills' configs beyond copying selected skill directories into the user-specified target.
Assessment
This skill appears to do what it says: check your Lean workspace, verify toolchains, and (optionally) install missing proof skills. Before using auto-install: (1) prefer the manual 'npx leanprover-skills install ...' approach; (2) if you do use --auto-install-skills, always pass an explicit --install-dir (or set OPENMATH_LEAN_SKILL_INSTALL_DIR) and review the upstream repo (default: https://github.com/leanprover/skills.git); (3) be aware the script will probe common agent/skills directories under your home directory to detect installed skills; and (4) do not set OPENMATH_LEAN_SKILL_REPO_URL to an untrusted location unless you want to clone from it.

Like a lobster shell, security has layers — review code before you run it.

latestvk9799fn5vkvdj49ytwptpw8ac983kvmt

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Comments