/monskills:indexerfrom monskills
Sets up and manages Envio HyperIndex indexers for onchain smart contract events on Monad. Covers init, deploy, debug, restart, promote, and delete on Envio Cloud.
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 covers initializing a HyperIndex indexer and deploying/managing it on Envio Cloud using the envio-cloud CLI.
Run the init command inside an indexer/ folder at the project root. Create the folder first if it doesn't exist.
Hard prereq: the contract must be both deployed AND verified on a Monad explorer before you run this. contract-import pulls the ABI from the explorer — an unverified contract will fail the import. If the user hasn't verified yet, stop and do that first (see scaffold/ skill for the verification API).
mkdir -p indexer && cd indexer
pnpx [email protected] init contract-import explorer \
-b monad \
-c <CONTRACT_ADDRESS> \
-n <CONTRACT_NAME> \
-l typescript \
-d ./ -o ./ \
--all-events --single-contract --api-token ""
mkdir -p indexer && cd indexer
pnpx [email protected] init contract-import explorer \
-b monad-testnet \
-c <CONTRACT_ADDRESS> \
-n <CONTRACT_NAME> \
-l typescript \
-d ./ -o ./ \
--all-events --single-contract --api-token ""
Notes:
<CONTRACT_ADDRESS> — the deployed, verified contract address.<CONTRACT_NAME> — the contract name (matches the Solidity contract, e.g. MyToken).--all-events imports every event in the ABI. Narrow this later by editing config.yaml if the user wants only specific events.--single-contract scaffolds for one contract. Re-run the command for additional contracts, or edit the config by hand.--api-token "" is intentional — leave it empty.-l typescript is a flag, not a positional — the envio CLI rejects typescript as a bare positional arg.[email protected] (use exactly this).After init, the indexer/ folder will contain config.yaml, schema.graphql, and handler stubs. The user edits the handlers to decide what gets stored in the database. Once the code is ready and pushed to GitHub, deploy to Envio Cloud (see below).
By default, event.transaction.* is typed never in generated handlers — accessing event.transaction.hash (or any other tx field) is a TypeScript error. Most frontends want the tx hash (for explorer links, dedup, etc.), so opt in explicitly before writing handler code.
Add field_selection to config.yaml:
field_selection:
transaction_fields:
- hash
Place it at the top level of config.yaml (sibling of networks:, contracts:, etc.), not nested under a network or contract. After editing, re-run pnpm codegen (or pnpx [email protected] codegen) so the types regenerate — otherwise event.transaction.hash will still be typed never.
Add other fields the handlers need (from, to, value, gasUsed, input, etc.) to the same list. Envio only pulls and types the fields listed here, so keep it minimal. The full set of available fields is in the Envio field selection docs.
Before any indexer command will work, the user must have all four of these in place:
envio-cloud installed globally: npm install -g envio-cloudenvio-cloud logged in: envio-cloud login (browser flow, 30-day session)gh) installed: brew install gh on macOS, or see https://cli.github.com/gh auth logingh is required because Envio Cloud deploys from GitHub — the indexer repo has to be pushed there, and gh is how that's done.
envio-cloud login or gh auth login for the user. Both open a browser and require the user to complete the flow themselves.If you attempt an envio-cloud command without these prereqs, the monskills hook will deny the tool call with a message pointing to the exact missing piece. That's expected — surface the message to the user and wait for them to resolve it.
This skill is split across reference files. Fetch them on demand:
envio-cloud command, grouped by area (auth, context, indexer lifecycle, deployment, env, security).Start with the workflow recipe that matches the user's goal. Drop into the CLI reference only when you need a flag or subcommand not covered there.
Every envio-cloud command follows the same exit code convention — check this, not just stdout, when deciding whether a step succeeded:
| Exit code | Meaning | How to react |
|---|---|---|
0 | Success | Continue |
1 | User error (bad args, unknown indexer, not logged in) | Read stderr, fix the input, retry |
2 | API/server error | Not the user's fault. Retry once; if it persists, tell the user and stop. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
envio, hyperindex, onchain-indexing, monad, smart-contract-events
10 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.npx claudepluginhub therealharpaljadeja/monskills --plugin monskillsOther plugins' skills for the same job