discover-formal

rand's avatarfrom rand

Automatically discover formal methods and verification skills when working with formal methods. Activates for formal development tasks.

⭐33stars🔀2forks📁View on GitHub🕐Updated Nov 25, 2025⬇️2downloads

When & Why to Use This Skill

The Formal Skills Discovery skill acts as an intelligent gateway that automatically enhances Claude's capabilities when handling high-assurance software development and mathematical verification. It proactively detects tasks related to formal methods, theorem proving, and constraint solving, providing seamless access to a specialized suite of tools including Lean, Z3, and SMT solvers. By implementing a progressive loading architecture, it ensures that complex verification workflows are streamlined and that the most relevant formal logic expertise is always available without manual intervention.

Use Cases

  • Theorem Proving & Mathematical Logic: Automatically surfacing Lean 4 tactics, Mathlib4 references, and proof-solving strategies when working on formal mathematical proofs.
  • Software Verification & Bug Hunting: Detecting SMT/SAT solving tasks and providing optimized Z3 solver configurations and constraint propagation techniques to verify code correctness.
  • Complex Constraint Modeling: Assisting in the design of Constraint Satisfaction Problems (CSP) by loading specialized modeling and backtracking search skills.
  • Formal Specification Analysis: Streamlining the analysis of system architectures through formal methods by providing quick-reference guides and cross-referenced documentation for verification workflows.
namediscover-formal
descriptionAutomatically discover formal methods and verification skills when working with formal methods. Activates for formal development tasks.

Formal Skills Discovery

Provides automatic access to comprehensive formal skills.

When This Skill Activates

This skill auto-activates when you're working with:

  • formal methods
  • theorem proving
  • SAT
  • SMT
  • Z3
  • Lean
  • constraint solving
  • verification

Available Skills

Quick Reference

The Formal category contains 10 skills:

  1. backtracking-search
  2. constraint-propagation
  3. csp-modeling
  4. lean-mathlib4
  5. lean-proof-basics
  6. lean-tactics
  7. lean-theorem-proving
  8. sat-solving-strategies
  9. smt-theory-applications
  10. z3-solver-basics

Load Full Category Details

For complete descriptions and workflows:

cat ~/.claude/skills/formal/INDEX.md

This loads the full Formal category index with:

  • Detailed skill descriptions
  • Usage triggers for each skill
  • Common workflow combinations
  • Cross-references to related skills

Load Specific Skills

Load individual skills as needed:

cat ~/.claude/skills/formal/backtracking-search.md
cat ~/.claude/skills/formal/constraint-propagation.md
cat ~/.claude/skills/formal/csp-modeling.md
cat ~/.claude/skills/formal/lean-mathlib4.md
cat ~/.claude/skills/formal/lean-proof-basics.md

Progressive Loading

This gateway skill enables progressive loading:

  • Level 1: Gateway loads automatically (you're here now)
  • Level 2: Load category INDEX.md for full overview
  • Level 3: Load specific skills as needed

Usage Instructions

  1. Auto-activation: This skill loads automatically when Claude Code detects formal work
  2. Browse skills: Run cat ~/.claude/skills/formal/INDEX.md for full category overview
  3. Load specific skills: Use bash commands above to load individual skills

Next Steps: Run cat ~/.claude/skills/formal/INDEX.md to see full category details.