sign-evm-message

sign-evm-message is a skill for Cursor from MetaMask/metamask-connect-cursor-plugin. It costs 36 tokens per session (1,972 once invoked), scanned A, original, MIT.

A guide for signing messages in an Ethereum-compatible application through MetaMask, a cryptocurrency wallet. It covers plain messages, structured EIP-712 messages, and connecting before signing.

In plain words
What is it for?
Use it to add wallet-based authentication or verification, and to sign structured permissions, orders, or other typed messages.
Why use it?
It provides the required signing methods and explains how to handle connection problems or user rejections. This avoids treating a wallet signature as an ordinary text operation.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the metamask-connect plugin — 18 skills, 3 agents shipped together

Good fit Use it to add wallet-based authentication or verification, and to sign structured permissions, orders, or other typed messages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metamask/metamask-connect-cursor-plugin/sign-evm-message
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MetaMask/metamask-connect-cursor-plugin --skill sign-evm-message
Clone the repo
git clone --depth 1 https://github.com/MetaMask/metamask-connect-cursor-plugin

Made for: Cursor.

Or install metamask-connect, the plugin that ships this one along with the rest of its 18 skills, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sign-evm-message

README.md
[![agentmods](https://agentmods.dev/badge/skills/metamask/metamask-connect-cursor-plugin/sign-evm-message/github.svg)](https://agentmods.dev/skills/metamask/metamask-connect-cursor-plugin/sign-evm-message)
Your own site
<a href="https://agentmods.dev/skills/metamask/metamask-connect-cursor-plugin/sign-evm-message"><img src="https://agentmods.dev/badge/skills/metamask/metamask-connect-cursor-plugin/sign-evm-message/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sign-evm-message

Your own site · 80×15
<a href="https://agentmods.dev/skills/metamask/metamask-connect-cursor-plugin/sign-evm-message"><img src="https://agentmods.dev/badge/skills/metamask/metamask-connect-cursor-plugin/sign-evm-message.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,972 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.01972
Opus 5 $0.00018 $0.00986
Sonnet 5 $0.00007 $0.00394
Haiku 4.5 $0.00004 $0.00197

Measured 9d ago against content hash f6755b60bdfe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

sign-evm-message scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/sign-evm-message/SKILL.md · 227 lines

How it starts

The opening of the file, as written. The whole thing — 227 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sign EVM Messages with MetaMask Connect

When to use

Use this skill when:

  • Signing a plaintext message with personal_sign for authentication or verification
  • Signing structured EIP-712 typed data with eth_signTypedData_v4 for permits, orders, or typed messages
  • Using the connectAndSign shortcut to connect and sign in a single user approval
  • Handling signature errors and user rejections

Workflow

Step 1: Get the provider and connected account

Ensure the client is connected before requesting a signature:

import { createEVMClient, getInfuraRpcUrls } from '@metamask/connect-evm';

const client = await createEVMClient({
  dapp: { name: 'My DApp', url: window.location.href },
  api: {
    supportedNetworks: {
      ...getInfuraRpcUrls({ infuraApiKey: 'YOUR_INFURA_KEY', chainIds: ['0x1'] }),
    },
  },
});

const { accounts } = await client.connect({ chainIds: ['0x1'] });
const provider = client.getProvider();
const account = accounts[0]; // Address (0x-prefixed hex)

Step 2: Sign with personal_sign

personal_sign signs a UTF-8 message. The params order is [message, account] where message is a hex-encoded string:

// Convert message to hex
const message = 'Hello, MetaMask!';
const hexMessage = '0x' + Array.from(new TextEncoder().encode(message))
  .map((b) => b.toString(16).padStart(2, '0'))
  .join('');

try {
  const signature = await provider.request({
    method: 'personal_sign',
    params: [hexMessage, account],
  });

  console.log('Signature:', signature);
  // signature is a Hex string: 0x...
} catch (err: any) {
  if (err.code === 4001) {
    console.log('User rejected the signature request');
    return;
  }
  throw err;
}

MetaMask also accepts a raw UTF-8 string for the message parameter, but hex encoding is the canonical format per EIP-191.

Step 3: Sign EIP-712 typed data with eth_signTypedData_v4

Build the full EIP-712 typed data structure with types, primaryType, domain, and message, then pass it as a JSON string:

Read the full file on GitHub · 227 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 227 lines · 36 tokens per session scan A f6755b60bdfe

Subscribe to this mod's changes

sign-evm-message is a skill published in the GitHub repository MetaMask/metamask-connect-cursor-plugin (2 stars, last pushed 2mo ago), licensed MIT. It adds 36 tokens to every session and 1,972 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

signature-replay

Signature replay attacks — missing nonces, missing chain ID, ecrecover zero address, signature malleability, cross-chain replay.

PurpleAILAB/Decepticon · 31 tokens

official-sui-skills

Pointer to the official Mysten Labs skills for building on Sui — language fundamentals, object model, PTBs, SDKs, publishing, upgrades, frontend integration, accessing on-chain data. Maintained upstream at github.com/MystenLabs/skills; pinned to the same ref the audit catalog derives from (see…

MystenLabs/sui · 116 tokens

crypto-market-rank

Crypto market rankings and leaderboards. Query trending tokens, top searched tokens, Binance Alpha tokens, tokenized stocks, social hype sentiment ranks, smart money inflow token rankings, top meme token rankings from Pulse launchpad, and top trader PnL leaderboards. Use this skill when users ask about token rankings…

tradecatlabs/tradecat-public · 85 tokens

trading-signal

Subscribe and retrieve on-chain Smart Money signals. Monitor trading activities of smart money addresses, including buy/sell signals, trigger price, current price, max gain, and exit rate. Use this skill when users are looking for investment opportunities — smart money signals can serve as valuable references for…

tradecatlabs/tradecat-public · 64 tokens

bridge

Cross-chain token transfers using Wormhole and CCTP.

alsk1992/CloddsBot · 13 tokens

onchainkit

Build onchain apps with Coinbase's OnchainKit React components - wallets, swaps, NFTs, payments.

alsk1992/CloddsBot · 24 tokens