openmath-submit-theorem
Submits proofs to the OpenMath platform using a two-stage commit-reveal flow. Use when the user wants to commit a proof hash or reveal a Lean/Rocq proof on the Shentu network.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bennyzhe/openmath-submit-theoremOpenMath Submit Theorem
Instructions
Use this skill for the two-stage Shentu proof submission flow.
- Stage 1 submits a proof hash as a commitment so others can see you already know the answer without learning the proof details.
- Stage 2 submits the proof detail to reveal and verify the same proof on-chain.
- This is an operational skill, not an instruction-only note: it shells out to trusted local
python3andshentud, reads sharedopenmath-env.json, queries/broadcasts to a Shentu RPC endpoint, and uses the local OS keyring for signing flows. - Default: authz + feegrant from
prover_address(the user's OpenMath Wallet Address). - Shared config resolution order:
--config <path>→OPENMATH_ENV_CONFIG→./.openmath-skills/openmath-env.json→~/.openmath-skills/openmath-env.json. IfOPENMATH_ENV_CONFIGis set, treat it as the selected config path. If that file is missing or invalid, stop and fix it instead of silently falling back. - Shentu chain/RPC settings come from
SHENTU_CHAIN_IDandSHENTU_NODE_URLor built-in defaults, not fromopenmath-env.json. - The skill always uses
--keyring-backend osfor local key lookups and generated submission commands. - Direct signer fallback:
generate_submission.py --mode direct. - Required local dependencies are
python3andshentud. Environment variables are optional overrides, not mandatory setup:OPENMATH_ENV_CONFIG,OPENMATH_SHENTUD_BIN,OPENMATH_SUBMISSION_MODE,OPENMATH_INNER_TX_FEES,OPENMATH_INNER_TX_GAS,SHENTU_CHAIN_ID, andSHENTU_NODE_URL.
For least-privilege operation, treat openmath-env.json creation or editing, shentud installation, and local key creation or recovery as manual prerequisites documented in references/. The default skill flow may run read-only checks such as command -v shentud, shentud version, or shentud keys show, but it should not auto-install binaries, auto-edit config files, or run shentud keys add as part of normal execution.
Before any action that writes openmath-env.json or creates or recovers a local key, get explicit user approval. shentud installation should stay a manual user step, guided by the reference docs rather than performed by the skill. Prefer the official Shentu releases page plus a user-local install at $HOME/bin/shentud, and use OPENMATH_SHENTUD_BIN only as an explicit fallback. Do not generate or manage mnemonics on the user's machine without that approval.
First-run gate
If the selected openmath-env.json is missing, or if it exists but is missing prover_address, agent_address, or agent_key_name, do not proceed. Follow references/init-setup.md, and treat any config write or key creation/recovery as an explicit-user-approval step, then validate:
python3 scripts/check_authz_setup.py [--config <path>]
Require Status: ready before any submission. Repeat on each new machine or workspace.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bennyzhe-openmath-submit-theorem": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
openmath-rocq-theorem
Configures Rocq environments, runs preflight checks, and guides the proving workflow for OpenMath Rocq theorems. Use when the user wants to set up Rocq tooling, prove a downloaded OpenMath theorem in Rocq/Coq, or verify and submit a Rocq proof.
openmath-lean-theorem
Configures Lean environments, installs external proof skills, runs preflight checks, and guides the workflow for proving downloaded OpenMath Lean theorems locally.
openmath-lean-theorem
Configures Lean environments, installs external proof skills, runs preflight checks, and guides the workflow for proving downloaded OpenMath Lean theorems locally.
openmath-claim-reward
Claims earned rewards from the OpenMath platform. Use when the user wants to query claimable imported/proof rewards or withdraw verified Shentu rewards after a proof has passed verification.
openmath-open-theorem
Queries open formal verification theorems from the OpenMath platform. Use when the user asks for a list of open theorems, wants Lean or Rocq-specific theorems, needs full detail for a theorem ID, or wants to download a theorem and scaffold a local proof workspace.