SkillAgentSearch skills...

lean-verify

Claude Code skill: find bugs and prove optimizations equivalent with Lean 4

Install / Use

npx skills add hirosassa/lean-verify

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

72/100

Supported Platforms

Claude Code

Tags

Our assessment of lean-verify

lean-verify scores 72/100 on our quality scale, 3840th of 4,722 Development & Engineering skills we index.

Its SKILL.md is 2.2 KB long, split into 7 sections with 4 code examples: moderately detailed.

It has 51 GitHub stars, a meaningful sign that others use it.

Substance
20/30
Structure
18/20
Description
12/15
Adoption
7/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 4 days ago, so lean-verify is actively maintained.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 95/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.

Automated pattern scan on 2026-11-26. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

lean-verify compared with similar skills

All 4 of these similar skills score higher than lean-verify; compare them before choosing.

SkillScoreStarsUpdatedFormat
lean-verify (this skill)by hirosassa72514d agoSKILL.md
taste-skillby Leonxlnx100122.3k1d agoCLAUDE.md
hyperframesby heygen-com10091.5ktodayCLAUDE.md
ai-job-searchby ai-job-search-dev10073.7ktodayCLAUDE.md
claude-howtoby luongnv8910047.6k7d agoCLAUDE.md

Frequently asked questions

How do I install lean-verify?
Run npx skills add hirosassa/lean-verify. The install tabs above show the steps for each supported agent.
Which AI agents does lean-verify work with?
It is written for Claude Code, as a SKILL.md file. Other agents that read the same format can often use it too.
Is lean-verify safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 95/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is lean-verify still maintained?
The repository was last updated 4 days ago, so lean-verify is actively maintained.

lean-verify

A Claude Code skill that uses the Lean 4 theorem prover as a small, practical tool for:

  • Bug hunting: find integer overflow, bit-manipulation, and boundary-condition bugs with concrete counterexamples (bv_decide).
  • Safe optimization: prove that an optimized or refactored version is equivalent to the naive one for all inputs.

It targets small functions and single rewrite rules, not whole-program verification. It is language-agnostic (Rust, C, Go, TypeScript, ...): you model the target in Lean, then translate any counterexample back to the original code.

Install

With the GitHub CLI (gh skill, preview):

gh skill install hirosassa/lean-verify lean-verify
# target a specific agent / scope if needed, e.g. --agent claude-code

With APM (Agent Package Manager):

apm install hirosassa/lean-verify
# deploys to .claude/skills/lean-verify (and/or other detected agents); pin with --target claude

Or clone manually:

git clone https://github.com/hirosassa/lean-verify /tmp/lean-verify
cp -r /tmp/lean-verify/skills/lean-verify ~/.claude/skills/

Lean itself is installed on demand by the skill (see references/setup.md), after asking you.

Layout

| Path | Contents | |---|---| | skills/lean-verify/SKILL.md | Skill entry point: when to use it, workflow, modeling pitfalls | | skills/lean-verify/references/bug-hunting.md | Counterexample-driven bug hunting | | skills/lean-verify/references/perf-equivalence.md | Proving optimizations equivalent | | skills/lean-verify/references/tactics.md | Tactic cheat sheet (core-only first) | | skills/lean-verify/references/setup.md | Installing Lean / elan, minimal lake project | | skills/lean-verify/scripts/check_lean.sh | Checks the Lean environment | | skills/lean-verify/assets/examples/ | Runnable Lean examples |

Try the examples

lean skills/lean-verify/assets/examples/induction_decide_omega.lean
lean skills/lean-verify/assets/examples/bv_overflow_and_strength_reduction.lean   # bad_ng is expected to fail with a counterexample

License

MIT

Related Skills

View on GitHub
GitHub Stars51
CategoryDevelopment
Updated4d ago
Forks2

Languages

Shell

Trust signals

95/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 low
lean-verify — Claude Code Skill: Install & Safety Check | SkillAgent