/monskills:walletfrom monskills
Manages the coding agent's onchain wallet on Monad via Alchemy Agent Wallet. Signs and broadcasts transactions (send MON, call contracts, deploy contracts) without exposing private keys.
Ships in monskills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill is for the developer's coding agent signing onchain transactions on Monad — it is not a frontend wallet for end-users (for that, fetch wallet-integration/).
The agent uses an Alchemy Agent Wallet session: the private key lives inside a Privy embedded wallet on Alchemy's side, the agent only holds a session token, and the developer can revoke the session at any time from the Alchemy Dashboard.
--mode local for this skill. Local mode imports a raw private key file onto the developer's machine — that's exactly what Agent Wallet sessions are designed to avoid. If a workflow seems to require a raw key, stop and tell the user.alchemy auth on the user's behalf. Both require user-driven browser flows. Surface the prompt and wait.~/.alchemy/.The monskills hook (hooks/check-alchemy-auth.sh) gates every alchemy … command until both prereqs are satisfied. If either is missing, surface the exact command and stop.
CLI installed (v0.18.0 or newer) — ask the user to run:
npm install -g @alchemy/cli@latest
monskills requires @alchemy/cli v0.18.0+; the hook blocks alchemy commands on older versions. Check with alchemy --version.
Signed in — ask the user to run:
alchemy auth
Browser OAuth flow. Only the user can complete it. After sign-in the CLI prompts to pick an Alchemy app; pick the app whose API key you want monskills to use for RPC.
Headless / remote environments (no reachable browser): if the CLI is running somewhere a browser can't reach it — GitHub Codespaces, Gitpod, Replit, Google Cloud Shell, Coder workspaces, SSH sessions, or non-interactive/CI/piped sessions — do not ask the user to complete a browser login. Tell them to use the device authorization flow instead:
alchemy auth login --device-code
The CLI prints a short code and a verification link; the user opens the link in a browser on any device, checks the code matches their terminal, and approves. The --device-code flag works in every environment. Plain alchemy auth also switches to this flow automatically when it detects Codespaces, Gitpod, Replit, Google Cloud Shell, Coder, SSH, or a non-interactive session — so the flag isn't strictly required there. If auto-detection misses the environment, the browser login times out after two minutes and its error points to this same command. When in doubt in a remote/headless context, prefer --device-code.
Verify with:
alchemy auth status
alchemy doctor
Sessions are created in the Alchemy Dashboard, not from the CLI. The agent cannot create one autonomously — only the developer can.
alchemy wallet connect --mode session
alchemy wallet use session
alchemy wallet status --verify
alchemy wallet address
alchemy wallet status is the source of truth. Never assume a session exists — always check.
Set the default network so subsequent commands don't need -n on every call:
alchemy config set network monad-mainnet # or monad-testnet
Confirm with alchemy evm network list --search monad. Override per-command with -n monad-mainnet or -n monad-testnet.
Fund the session address with MON before any state-changing call.
For Monad testnet here is how to get funds from faucet:
# Fund agent's wallet from faucet, since it is testnet, funds can be claimed from faucet.
FAUCET_RESPONSE=$(curl -s -X POST https://agents.devnads.com/v1/faucet \
-H "Content-Type: application/json" \
-d "{\"chainId\": 10143, \"address\": \"$AGENT_WALLET_ADDRESS\"}")
# Then check for balance
Monad mainnet: bridge / on-ramp via providers in tooling-and-infra/.
These work natively through the session signer — no factory dance required.
alchemy evm send <recipient> 0.01 -n monad-mainnet
Returns a smart wallet call ID. Once the user op confirms, the same alchemy evm status <id-or-hash> resolves to a transaction hash.
alchemy evm contract call <address> "transfer(address,uint256)" \
--args "0xRecipient,1000000000000000000" \
-n monad-mainnet
For non-trivial ABIs, pass --abi-file ./out/Foo.sol/Foo.json (forge build output) instead of inline --abi.
Read-only calls don't need the session — use alchemy evm contract read (it's eth_call and consumes no gas).
The Alchemy CLI has no deploy subcommand, and Agent Wallet sessions cannot sign raw deploy transactions (tx.to == null) because session mode is built for contract-call user operations. The deploy path for this skill is CREATE2 via the canonical CreateX factory.
CreateX is deployed at the same address on Monad mainnet and Monad testnet (canonical CREATE2-deterministic deployment):
0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed
Verify it has code before relying on it — see addresses/ for the cast code check. Other canonical deployers (Create2Deployer, Foundry Deterministic Deployer) are also in addresses/ but CreateX is preferred here because it exposes a typed ABI that alchemy evm contract call can encode.
Assume Foundry is installed (build artifacts come from forge build).
Compile the contract:
forge build
Get the deploy init code — creation bytecode plus ABI-encoded constructor args:
CREATION=$(forge inspect src/Foo.sol:Foo bytecode)
# If the constructor takes args, append them:
ARGS=$(cast abi-encode "constructor(address,uint256)" 0xOwner 1000)
INIT_CODE="${CREATION}${ARGS#0x}"
If the constructor takes no args, INIT_CODE=$CREATION.
Pick a salt — bytes32. For a first deploy, 0x0000000000000000000000000000000000000000000000000000000000000000 is fine. For deterministic redeploys, use the same salt across networks.
Compute the deterministic address before sending the tx so the frontend / scripts / indexers can hardcode it:
# cast doesn't read `alchemy` config — point RPC_URL at the SAME network you'll
# deploy to with `-n`, or step 6 will check the wrong chain and report no code.
RPC_URL=https://rpc.monad.xyz # monad-mainnet
# RPC_URL=https://testnet-rpc.monad.xyz # monad-testnet
SALT=0x0000000000000000000000000000000000000000000000000000000000000000
INIT_CODE_HASH=$(cast keccak "$INIT_CODE")
PREDICTED=$(cast call 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed \
"computeCreate2Address(bytes32,bytes32)(address)" \
"$SALT" "$INIT_CODE_HASH" \
--rpc-url "$RPC_URL")
echo "Predicted address: $PREDICTED"
Deploy through the session signer:
alchemy evm contract call 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed \
"deployCreate2(bytes32,bytes)" \
--args "$SALT,$INIT_CODE" \
-n monad-mainnet
Wait for finality and confirm the predicted address has code:
alchemy evm status <call-id> # resolves to a tx hash
cast code "$PREDICTED" --rpc-url "$RPC_URL" # same network you deployed to
After deployment, verify the contract using monskills' verification flow (scaffold/).
Monad gas gotcha: Monad charges
gas_limit, notgas_used. CREATE2 deploys via CreateX are heavier than directforge createdeploys — pad estimates accordingly. Seegas/.
When the agent's job is done, revoke the session so a leaked token can't be reused:
alchemy wallet disconnect
This revokes the session backend-side and clears the local config. The developer can also revoke from the Agent Wallets dashboard at any time.
| Symptom | Check |
|---|---|
alchemy: command not found | CLI not installed. Ask user to npm install -g @alchemy/cli@latest. |
Hook denies: alchemy version below v0.18.0 | Ask user to upgrade: npm install -g @alchemy/cli@latest. monskills requires v0.18.0+. Do not upgrade it for them. |
Not authenticated | Ask user to alchemy auth. Do not run it for them. In a headless/remote env (Codespaces, Gitpod, Replit, Cloud Shell, Coder, SSH, CI), ask them to use alchemy auth login --device-code instead. |
| Browser login hangs / times out after 2 min | The environment is headless. Ask user to run alchemy auth login --device-code and approve via the printed link + code. |
No active signer / Session expired | alchemy wallet status --verify. If expired, ask user to re-approve the session in the dashboard, then alchemy wallet connect --mode session. |
| User op reverts on a CREATE2 deploy | Re-derive INIT_CODE (forge artifacts may be stale). Check the predicted address doesn't already have code — CreateX reverts on a re-deploy with the same salt + initCode. |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub therealharpaljadeja/monskills --plugin monskills10 skills in this plugin
/addressesSmart contract address for well known protocols on Monad. The addresses include testnet and mainnet smart contract addresses./conceptsMonad architecture concepts that affect how developers build apps — async execution, parallel execution, block states, reserve balance, EIP-7702, real-time data sources, and execution events. Fetch this skill when the developer needs to understand Monad-specific behavior that differs from Ethereum./gasHow gas pricing works on Monad and how it differs from Ethereum. Monad charges gas based on gas_limit (not gas used), has a different base fee controller, and different block gas limits. Fetch this skill whenever writing smart contracts, setting gas limits, estimating gas, or building any transaction-related UI on Monad incorrect gas handling can cost users real money./indexerThis skill has instructions to setup a Envio HyperIndex indexer to capture onchain smart contract events. Use when user wants a historical feed or activity feed or some similar tracking feed or feature in their app or wants to capture onchain smart contracts events as a trigger to perform some other actions in their app. Also use this skill when the user wants to debug, restart, promote or delete and existing Envio indexer deployed on Envio Cloud./monskillSet of skills for developing/building apps on Monad. Always start with this skill, this skill helps the agent/llm maneuver and choose the right skills for the task assigned to the agent, from the whole set of monskills./scaffoldEnd to end guide to take an idea build an app to production, if you are starting an app from scratch this skill must be fetched first.Other plugins' skills for the same job