Skill
mantle-risk-evaluator
When to use
What it does
by mantle-xyz·v1.0.0
Install
git clone https://github.com/mantle-xyz/mantle-skillsRun a mandatory pre-flight checklist and return a clear pass, warn, or block verdict. Prevent unsafe execution when any critical condition fails.
passwarnfailpass: no fails, optional warns.warn: no critical fails, but user confirmation required.block: one or more critical fails.All of the following MUST be present in the intent. If any is missing, immediately set the final verdict to block with blocking reason "mandatory field missing":
operation_typechain/environmentpass: trusted and verified source.warn: unknown but not explicitly flagged.fail: flagged, blacklisted, or malformed address.pass: existing allowance fits intended spend scope.warn: allowance materially larger than intended spend.fail: new or existing near-unlimited approval without explicit user confirmation. Near-unlimited heuristic: raw allowance >= 2^255.| Check | Warn | Fail | |---|---|---| | Slippage | > 0.5% | > 1.0% | | Estimated price impact | > 2% | > 5% | | Deadline horizon | > 20 minutes | > 60 minutes | | Gas deviation from baseline | > 20% | > 40% |
fail in ANY checklist item => final verdict block.fail and at least one warn => final verdict warn.pass => final verdict pass.high: all required signals present and consistent.medium: one non-critical signal missing.low: key signals missing (e.g., no liquidity data or unresolved address provenance).pass -> warn, warn -> block).Always use this exact structure. You MUST include ALL five checklist items in every response, even when blocking early due to missing fields. For checks that cannot be evaluated (e.g., because a required input is missing), mark them as fail with details explaining why (e.g., "cannot evaluate -- required field missing").
Mantle Preflight Risk Report
- operation:
- environment:
- evaluated_at_utc:
Checklist
- slippage_check: pass | warn | fail
details:
- liquidity_depth_check: pass | warn | fail
details:
- address_safety_check: pass | warn | fail
details:
- allowance_scope_check: pass | warn | fail
details:
- gas_and_deadline_check: pass | warn | fail
details:
Final Verdict
- status: pass | warn | block
- blocking_reasons:
- user_action_required:
references/risk-checklist.mdreferences/risk-threshold-guidance.md