google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
lean4-prove
Retrieval-augmented Lean4 proof generation. Queries 94k+ exemplars from DeepSeek-Prover V1+V2, uses hybrid search (BM25 + semantic + graph), generates via Claude, compiles in Docker, retries on failure.
Full skill instructions
Retrieval-augmented Lean4 proof generation for engineering requirements. Uses 94,000+ proven theorems from DeepSeek-Prover V1+V2 to guide proof synthesis via hybrid search (BM25 + semantic + graph traversal).
Requirement + Tactics + Persona
│
▼
┌───────────────────────────┐
│ 1. RECALL similar proofs │ ← Hybrid search on ArangoDB
│ from 94k+ exemplars │ (BM25 + semantic + graph)
└───────────────────────────┘
│
▼
┌───────────────────────────┐
│ 2. BUILD support pack │
│ - Validated imports │
│ - Tactic patterns │
│ - Similar proofs │
└───────────────────────────┘
│
▼
┌───────────────────────────┐
│ 3. GENERATE N candidates │ ← Claude with exemplar context
│ constrained by corpus │
└───────────────────────────┘
│
▼
┌───────────────────────────┐
│ 4. COMPILE each in │ ← lean_runner Docker
│ lean_runner container │
└───────────────────────────┘
│
┌────┴────┐
│ │
Success Failure
│ │
▼ ▼
Return Retry with error feedback
(up to max_retries)
simp sets and proof patterns# Basic proof
./run.sh --requirement "Prove n + 0 = n"
# With tactics preference
./run.sh -r "Prove commutativity of addition" -t "simp,ring,omega"
# With persona context
./run.sh -r "Prove message integrity" -p "cryptographer"
# Via stdin (JSON)
echo '{"requirement": "Prove n + 0 = n", "tactics": ["rfl"]}' | ./run.sh
# Custom settings
./run.sh -r "Prove theorem" --candidates 5 --retries 5 --model claude-sonnet-4-20250514
{
"success": true,
"code": "import Mathlib\n\ntheorem list_append_length (xs ys : List α) :\n (xs ++ ys).length = xs.length + ys.length := by\n induction xs with\n | nil => simp\n | cons x xs ih => simp [List.cons_append, ih]",
"attempts": 1,
"candidate": 0,
"errors": null,
"retrieval": {
"retrieved": 5,
"tactics_added": ["simp", "aesop", "norm_num", "intro"],
"imports_count": 3
}
}
On failure:
{
"success": false,
"code": null,
"attempts": 9,
"errors": [
"Candidate 0 attempt 1: unknown identifier 'natAdd'",
"Candidate 1 attempt 1: type mismatch..."
],
"retrieval": {
"retrieved": 5,
"tactics_added": ["simp", "exact"],
"imports_count": 3
}
}
| Parameter | Default | Description |
|---|---|---|
--requirement, -r | (required) | Theorem to prove |
--tactics, -t | none | Comma-separated preferred tactics |
--persona, -p | none | Persona context for generation |
--candidates, -n | 3 | Parallel proof candidates |
--retries | 3 | Max retries per candidate |
--model | claude-sonnet-4-20250514 | Claude model |
--container | lean_runner | Docker container name |
--timeout | 120 | Compilation timeout (seconds) |
# Proof generation
LEAN4_CONTAINER=lean_runner # Docker container
LEAN4_TIMEOUT=120 # Compile timeout
LEAN4_MAX_RETRIES=3 # Retries per candidate
LEAN4_CANDIDATES=3 # Parallel candidates
LEAN4_PROVE_MODEL=opus # Claude model (opus recommended for proofs)
# Retrieval (requires ArangoDB with ingested dataset)
LEAN4_RETRIEVAL=1 # Enable/disable retrieval (default: 1)
LEAN4_RETRIEVAL_K=5 # Number of exemplars to retrieve
ARANGO_URL=http://127.0.0.1:8529 # ArangoDB connection
ARANGO_DB=memory # Database name (same as memory skill)
The skill uses 94,000+ theorems from DeepSeek-Prover V1+V2 for retrieval:
status: "proven")status: "ok" for 11,689 proven + others)One-time ingest:
# Ingest full dataset (~5 min)
./ingest.sh
# Or limit for testing
./ingest.sh --limit 1000
This populates the lean_theorems collection in ArangoDB with:
formal_statement - The theorem statementformal_proof - Working proof codeheader - Validated imports (Mathlib, Aesop, etc.)tactics - Extracted tactic namessource - "deepseek-prover-v1" or "deepseek-prover-v2"status - "proven" (V1) or "ok"/"failed"/etc. (V2)Uses Claude Code CLI (claude -p) in headless non-interactive mode.
The CLI is called with:
-p flag for print/headless mode--output-format text for plain text output--max-turns 1 for single-turn operationEnvironment variables CLAUDE_CODE and CLAUDECODE are cleared to avoid recursion detection when called from within Claude Code.
No separate API key required - authentication is handled via your Claude subscription.
lean_runner container running (Lean4 + Mathlib installed)claude) in PATH with valid authentication./ingest.sh (one-time setup)Common Lean4/Mathlib tactics to suggest:
| Tactic | Use For |
|---|---|
rfl | Reflexivity proofs |
simp | Simplification |
ring | Ring arithmetic |
omega | Linear arithmetic |
decide | Decidable propositions |
exact | Exact term construction |
apply | Apply lemmas |
induction | Inductive proofs |
./run.sh -r "Prove length(xs ++ ys) = length(xs) + length(ys)" -t "simp,induction"
./run.sh -r "When mux_enable is false, output shall equal default_value" \
-p "embedded systems engineer" -t "simp,cases,decide"
./run.sh -r "Prove message append preserves checksum: checksum(msg ++ data) = update(checksum(msg), data)" \
-t "simp,induction,ring"
./run.sh -r "Prove that XOR is self-inverse: a ⊕ a = 0" -p "cryptographer" -t "simp,decide"
./run.sh -r "Prove the sum of first n natural numbers equals n*(n+1)/2" \
-t "induction,simp,ring" \
--candidates 5 \
--retries 5
| Skill | Purpose |
|---|---|
lean4-verify | Compile-only. Takes Lean4 code, returns pass/fail |
lean4-prove | Full pipeline. Takes requirement, generates + compiles + retries |
Use lean4-verify when you already have Lean4 code to check.
Use lean4-prove when you need to generate the proof from a requirement.
The skill integrates with the memory project for hybrid retrieval (BM25 + semantic + graph traversal):
# One-time setup: embed theorems and create edges
ARANGO_PASS=yourpass ARANGO_DB=memory python integrate_memory.py
This creates:
lesson_embeddings for semantic searchThis enables:
Extract lemma dependencies during compilation to build an impact graph:
Query: "What's affected if mux_default changes?"
Answer:
mux_default
└── system_safe_state (NEEDS RE-VERIFY)
└── requirement_42 (NEEDS RE-VERIFY)
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.
Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.
Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.
Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.
Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.
Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".
Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.
Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.