skills/lean-proof-to-solidity-smart-contract-generator/SKILL.md
Lean Proof To Solidity Smart Contract Generator: The tool allows you to validate Lean, generate Solidity from it, compile the. Use when an agent needs lean proof to solidity smart contract generator, fetch allowable advanced lean templates and snippets, validate advanced lean solidity ir before generation, generate solidity from advanced lean solidity ir, compile generated solidity to abi and bytecode, catalog, compile abi bytecode, soliditytext through AgentPMT-hosted remote tool calls.
npx skillsauth add AgentPMT/agent-skills lean-proof-to-solidity-smart-contract-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Last updated: 2026-06-24.
If the current date is more than 7 days after the last updated date, reinstall this skill from skills.sh or ClawHub before relying on endpoints, schemas, setup steps, or examples.
PROOF OF CONCEPT - This tool does not include an exhaustive Lean to Solidity code mapping, but it shows the capabilities of our system and the value of going from proven Lean straight to Solidity. Build your logic in a proven language first, then generate your Solidity from that. We have included Lean templates and allowable Lean snippets to get you started. Try it live in the builder, or use the AI agent to help you build faster. The tool allows you to validate Lean, generate Solidity from it, compile the generated Solidity to ABI and bytecode, encode ABI calls, and then run offline EVM simulation before deployment. The full system is available for licensing - inquire directly if interested.
Use this tool to work directly in the advanced Lean Solidity IR lane.
Recommended flow:
catalogvalidate_leangenerate_solidityget_task until the generation task reaches completedcompile_abi_bytecodeencode_callevm_simulationlist_tasks only when you need to review recent generation jobs in your current budget scopeAction breakdown
catalog
advancedTemplates and advancedSnippets.Example:
{
"action": "catalog"
}
validate_lean
leanSourceText and leanSourceExpr.errorKind, and parsed diagnostics with submitted line and column information.Example:
{
"action": "validate_lean",
"leanSourceText": "import HeytingLean.LeanSP.Emit.SolEmit\n\nnamespace Demo\nopen LeanSP.Emit\n\ndef counter : SolContract :=\n { name := \"Counter\"\n , stateVars := [ { name := \"storedValue\", ty := .uint 256, visibility := .pub } ]\n , functions :=\n [ { name := \"setValue\"\n , params := [(\"newValue\", .uint 256)]\n , visibility := .external\n , body := [ .assign (.var \"storedValue\") (.var \"newValue\") ]\n }\n ]\n }\n",
"leanSourceExpr": "Demo.counter"
}
generate_solidity
leanSourceText and leanSourceExpr.get_task until the task reaches completed. The completed result includes emitted Solidity text and related metadata.Example:
{
"action": "generate_solidity",
"leanSourceText": "import HeytingLean.LeanSP.Emit.SolEmit\n\nnamespace Demo\nopen LeanSP.Emit\n\ndef counter : SolContract :=\n { name := \"Counter\"\n , stateVars := [ { name := \"storedValue\", ty := .uint 256, visibility := .pub } ]\n , functions :=\n [ { name := \"setValue\"\n , params := [(\"newValue\", .uint 256)]\n , visibility := .external\n , body := [ .assign (.var \"storedValue\") (.var \"newValue\") ]\n }\n ]\n }\n",
"leanSourceExpr": "Demo.counter"
}
compile_abi_bytecode
solidityText and optionally sourceName, contractName, and extraSources.encode_call
evm_simulation
get_task
generate_solidity.list_tasks
Notes:
catalog returns immediately with only the advanced templates and snippet catalog.validate_lean returns immediately with structured diagnostics.generate_solidity submits a background task.compile_abi_bytecode, encode_call, and evm_simulation return immediately.get_task and list_tasks are restricted to the caller's active budget scope.Lean Proof To Solidity Smart Contract Generator on AgentPMT.catalog, compile_abi_bytecode, encode_call, evm_simulation, generate_solidity, get_task, list_tasks, validate_lean.No categories or industry tags are published for this tool.
Complete generated action schema: ./schema.md.
Supported action count: 8.
x402 availability: not enabled for this product.
catalog (action slug: catalog): Fetch the advanced Lean catalog. Returns only the allowable advanced templates and reusable advanced Lean snippets. Price: 0 credits. Parameters: none.compile_abi_bytecode (action slug: compile-abi-bytecode): Compile Solidity source and return ABI plus deployable bytecode immediately. Price: 0 credits. Parameters: contractName, extraSources, solidityText, sourceName.encode_call (action slug: encode-call): Encode a contract function call using one ABI item and return the calldata immediately for later simulation or execution. Price: 0 credits. Parameters: abiItem, args, expectReturnAddress, expectReturnHex, expectReturnStartsWith, expectReturnU256, expectRevert, fromAlias, plus 3 more.evm_simulation (action slug: evm-simulation): Run offline EVM simulation against compiled contract output and return the result immediately. Price: 0 credits. Parameters: calls, compileOutput.generate_solidity (action slug: generate-solidity): Generate Solidity from advanced Lean Solidity IR source and return a background task id for the generation job. Price: 0 credits. Parameters: leanSourceExpr, leanSourceText.get_task (action slug: get-task): Fetch the current status and result payload for a previously submitted background generate_solidity task within the caller's budget scope. Price: 0 credits. Parameters: task_id.list_tasks (action slug: list-tasks): List recent background generate_solidity tasks for the caller's active budget only. Price: 0 credits. Parameters: limit.validate_lean (action slug: validate-lean): Validate advanced Lean Solidity IR source immediately and return structured diagnostics that explain what is wrong before you submit a generation job. Price: 0 credits. Parameters: leanSourceExpr, leanSourceText.Use the compact schema above for ordinary calls. Before a new production integration, or whenever parameters, enum values, nested objects, outputs, or examples are unclear, fetch live details first.
agentpmt-tool-search-and-execution with action: "get_schema", and tool_id: "lean-proof-to-solidity-smart-contract-generator".agentpmt-tool-search-and-execution with action: "get_instructions" and tool_id: "lean-proof-to-solidity-smart-contract-generator", or call this product with action: "get_instructions" when the product tool is already selected.MCP schema lookup through the main AgentPMT MCP server:
{
"method": "tools/call",
"params": {
"name": "AgentPMT-Tool-Search-and-Execution",
"arguments": {
"action": "get_schema",
"tool_id": "lean-proof-to-solidity-smart-contract-generator"
}
}
}
For live examples, keep the same MCP tool and use these arguments:
{
"action": "get_instructions",
"tool_id": "lean-proof-to-solidity-smart-contract-generator"
}
Authenticated AgentPMT REST schema lookup body:
{
"name": "agentpmt-tool-search-and-execution",
"parameters": {
"action": "get_schema",
"tool_id": "lean-proof-to-solidity-smart-contract-generator"
}
}
Authenticated AgentPMT REST live examples body:
{
"name": "agentpmt-tool-search-and-execution",
"parameters": {
"action": "get_instructions",
"tool_id": "lean-proof-to-solidity-smart-contract-generator"
}
}
Product slug: lean-proof-to-solidity-smart-contract-generator
Marketplace page: https://www.agentpmt.com/marketplace/lean-proof-to-solidity-smart-contract-generator
../agentpmt-account-mcp-rest-api-setup to connect the main MCP server or REST API for an Agent Group where this tool is enabled.../what-is-agentpmt for marketplace, Agent Group, workflow, MCP, REST, and payment concepts.If those setup skills are not installed beside this product skill, use the downloads below.
Core AgentPMT setup skills:
openclaw skills install what-is-agentpmtnpx skills add AgentPMT/agent-skills --skill what-is-agentpmtopenclaw skills install agentpmt-account-mcp-rest-api-setupnpx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setupskills.sh install script:
npx skills add AgentPMT/agent-skills --skill what-is-agentpmt
npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup
MCP call shape after the main AgentPMT MCP server is connected:
{
"method": "tools/call",
"params": {
"name": "Lean-Proof-To-Solidity-Smart-Contract-Generator",
"arguments": {
"action": "catalog"
}
}
}
Use the exact tool name returned by tools/list; the name above is the expected readable form.
Authenticated AgentPMT REST call body:
{
"name": "lean-proof-to-solidity-smart-contract-generator",
"parameters": {
"action": "catalog"
}
}
Use the setup skill for the account connection details before making REST calls.
passed or success-style boolean, use it as the workflow gate.get_schema or get_instructions before retrying.catalog fails, preserve the request parameters and retry only after fixing schema, auth, or payment errors.what-is-agentpmt, page: https://clawhub.ai/agentpmt/what-is-agentpmt; skills.sh: npx skills add AgentPMT/agent-skills --skill what-is-agentpmt)agentpmt-account-mcp-rest-api-setup, page: https://clawhub.ai/agentpmt/agentpmt-account-mcp-rest-api-setup; skills.sh: npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup)tools
Plaud Transcripts Corrected With Your Own Terminology Glossary: Fixes the words your transcription keeps getting wrong, by giving the pipeline your vocabulary instead of hoping a bigger model guesses right. Every speech model mangles terms it has never seen: cell line and reagent names, drug and device names, case and matter numbers, part numbers, local spelling and number conventions, team and client names. Swapping to a different model does not fix this, because none of them have your terms e.
tools
Plaud Spoken Field Notes to a Structured Sheet: Turns a spoken site visit into a filled-in spreadsheet row, so measurements and specs never get typed up twice. Built for anyone who dictates structured details on the job rather than writing them down: window and flooring measurements, equipment specs, inspection findings, punch lists, service call notes. Say the details out loud in the same order each visit (client, room, width, drop, colour, notes) and the workflow reads each new Plaud recordin.
development
Plaud Recordings to Google Calendar Events: Puts the meetings you agree to out loud straight onto your Google Calendar, without Zapier in the middle. Plaud's own app has no Calendar integration, so this closes that gap directly: each new recording is scanned, the transcript pulled, and any genuine scheduling commitment spoken in it ("let's do Tuesday at 3", "I'll come back out Thursday morning") is extracted with the relative date resolved against the recording's own date and your timezone. Eac.
development
One Plaud Recording, Several Differently Formatted Summaries: Gets you past the one-template-per-recording ceiling. The Plaud app applies a single AutoFlow template to a recording, so if you want a short recap for yourself, a decisions-only version for the people who missed it, and a clean action list for your task manager, you are re-running or rewriting by hand. This workflow reads the transcript once and produces every format you have defined in a single pass: you list the output formats you.