indexer — Claude Code skill: what it does, how to install
Sets up an Envio HyperIndex indexer that captures Monad smart contract events and exposes them over GraphQL for activity feeds or app triggers.
no license 248 installs ★ 15 updated 2026-10-12
npx skills add therealharpaljadeja/monskills --skill indexer -a claude-codeWhat indexer does
The skill runs envio init contract-import explorer inside an indexer/ folder, passing the contract address, network (monad or monad-testnet) and TypeScript as the target language. The contract has to be deployed and verified on a Monad explorer first, since ABI import pulls from there and fails on unverified contracts. Init produces config.yaml, schema.graphql and handler stubs that the developer fills in to decide what gets stored.
Transaction fields like event.transaction.hash are typed never by default, so handlers need a field_selection block added to config.yaml and a pnpm codegen rerun before those fields become usable.
Deploying and managing the indexer on Envio Cloud requires envio-cloud and the GitHub CLI (gh) already installed and authenticated. The skill won't install or log either in on its own, and a monskills hook blocks the command with a pointer to whatever's missing.
What it helps with
- build a historical feed of contract events
- trigger an app action from an onchain event
- get a GraphQL endpoint for a deployed indexer
- debug an indexer that fails to deploy or sync
- restart, promote or delete an existing Envio Cloud deployment
Example prompts for the agent
- Initialize an indexer for the MyToken contract on Monad testnet
- Add transaction_fields with hash to config.yaml and regenerate types
- Help debug an indexer that's failing to sync on Envio Cloud
How to install indexer
1Skills CLI (Vercel)
npx skills add therealharpaljadeja/monskills --skill indexer -a claude-code2Manually: put the files in place
~/.claude/skills/indexer/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/indexer/
1Skills CLI (Vercel)
npx skills add therealharpaljadeja/monskills --skill indexer -a codex2Manually: put the files in place
.agents/skills/indexer/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add therealharpaljadeja/monskills --skill indexer -a cursor2Manually: put the files in place
.cursor/skills/indexer/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install therealharpaljadeja/monskills skills/indexer2Manually: put the files in place
.github/skills/indexer/SKILL.md1Skills CLI (Vercel)
npx skills add therealharpaljadeja/monskills --skill indexer -a gemini-cli2Platform CLI
gemini skills install https://github.com/therealharpaljadeja/monskills --path skills/indexerManually: put the files in place
.devin/skills/indexer/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add therealharpaljadeja/monskills --skill indexer -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about indexer
How to install indexer in Claude Code?
Run npx skills add therealharpaljadeja/monskills --skill indexer -a claude-code; the skill lands at ~/.claude/skills/indexer/SKILL.md.
What does indexer do?
It sets up an Envio HyperIndex indexer for Monad contract events and handles its lifecycle on Envio Cloud: deploying, debugging, restarting, promoting and deleting.
What does indexer require to work?
The target contract must be deployed and verified on a Monad explorer, and deploying to Envio Cloud needs envio-cloud and the GitHub CLI (gh) already installed and logged in.