/substreams-evm-extended:pinned-source-researchfrom substreams-evm-extended
How to bind a contract to a pinned source offline for substreams-evm-extended: which files to fetch, what to extract (declaration order, packing, constants, keccak-named and ERC-7201 slots, formulas, rounding, events), how to write source_pin strings and where to store the notes.
Ships in substreams-evm-extended. 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.
None: SKILL.md is the whole skill.
docs/research/ (see its README for the schema), and put a compact
source_pin string in the fixture: owner/repo@<40-hex-commit> path/A.sol, path/B.sol; <address book or deployments file>.ceil(size/32) consecutive words at keccak(key . base) + i.bytes32 constant X = keccak256("...") or
literal position with its label; the map derives the slot by hashing the
label at parse time (other_slot_names) and a test asserts the committed
hex. Aragon apps (aragonOS.*), Lido (lido.*), OpenZeppelin ERC-7201
(keccak256(abi.encode(uint256(keccak256(id)) - 1)) & ~0xff), EIP-1967
(keccak256("eip1967.proxy.implementation") - 1).UnstructuredStorageExt
low/high uint128) define the exact halves.rayMul half-up vs rayMulRoundDown, mulDiv floor vs
ceil, _divup, rpow half-up), checked casts and their revert
conditions, argument guards (< 2^128), zero-supply branches._auth, onlyOwner); which slots are written on every call (guards,
nonces, stake limits) so routine blocks do not fail closed.topic0
(keccak256("Name(type,...)")), indexed vs data fields, emitter.contractVersion), migration functions that move or zero
slots between versions.source_pin; placeholders explicit.docs/storage-layout-provenance.md: the verification level of each slot.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub pinax-network/substreams-evm-balances --plugin substreams-evm-extended4 skills in this plugin
/balance-state-packageHow to add or change a protocol balance-state package (one RPC-free map_events emitting evm.balance_state.v1) in substreams-evm-extended, with the fail-closed rules, fixture and test conventions, README template and review checklist used by the existing aave, compound-v2, compound-v3, lido and erc4626 packages./roadmap-issue-workflowHow roadmap issues in pinax-network/substreams-evm-extended move from acceptance list to merged PR and status comment: reading the issue, doing the offline part, commit and PR conventions, CI constraints, polling checks and merging without auto-merge, and when an issue may be closed./storage-layout-verificationHow to upgrade a balance-state fixture's inferred storage slots to compiler-verified layouts offline with solc --storage-layout (or an AST walk for solc 0.4.x), store the layout as evidence and pin fixture slots to it with a Rust test.