/genlayer-dev:genvm-lintfrom genlayer-dev
Validates GenLayer intelligent contracts for safety, correctness, and SDK compliance using the genvm-linter tool. Runs AST safety checks, SDK semantic validation, ABI schema extraction, and Pyright typechecking.
Ships in genlayer-dev. 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.
Validate intelligent contracts for safety, correctness, and SDK compliance.
Requires genvm-linter (included in requirements.txt for boilerplate projects):
pip install genvm-linter
Contracts pinned to the v0.3 or v0.4 runners (the current write-contract headers) need genvm-linter 0.11.1 or later. As of 2026-11-23 that is a pre-release (0.11.1rc2), so install it with pip install -U --pre genvm-linter (without -U, pip keeps an installed 0.11.0). Version 0.11.0 only knows the legacy v0.2 runners: on a current contract check fails validation with Failed to load SDK: "filename 'runners/py-genlayer/...tar' not found", and its lint step skips the storage and structure checks because it does not recognise gl.contract.Contract subclasses as contracts.
Always lint before testing. Run genvm-lint check after writing or modifying a contract. Fix all errors before running tests.
genvm-lint check contracts/my_contract.py
check runs both lint (AST safety) and validate (SDK semantics) in one pass.
genvm-lint check contracts/my_contract.py
genvm-lint check contracts/my_contract.py --json # Machine-readable output
genvm-lint lint contracts/my_contract.py
Catches:
os, sys, subprocess, random, etc.)float usage)genvm-lint validate contracts/my_contract.py
Validates:
TreeMap, DynArray, Address, etc.)@gl.public.view, @gl.public.write)dict/list)genvm-lint schema contracts/my_contract.py
genvm-lint schema contracts/my_contract.py --json
genvm-lint schema contracts/my_contract.py --output abi.json
genvm-lint typecheck contracts/my_contract.py
genvm-lint typecheck contracts/my_contract.py --json
genvm-lint typecheck contracts/my_contract.py --strict
Runs Pyright with SDK paths auto-configured. Catches type mismatches, missing attributes, undefined variables. Pyright is not installed with the linter: pip install pyright first.
The genvm-manager release names below need genvm-linter 0.11.1 or later. Version 0.11.0 only sees the releases of the archived genvm repository and fails on these names with No GenVM runner bundle for v0.6.0-rc14.
genvm-lint download # Latest
genvm-lint download --version v0.6.0-rc14 # Specific genvm-manager release
genvm-lint download --list # Show cached
genvm-lint download --available # Show releases on GitHub
✓ Lint passed (3 checks)
✓ Validation passed
Contract: MyContract
Methods: 8 (5 view, 3 write)
--json){"ok":true,"lint":{"ok":true,"passed":3},"validate":{"ok":true,"contract":"MyContract","methods":8,"view_methods":5,"write_methods":3,"ctor_params":2}}
0 — All checks passed1 — Lint or validation errors found2 — Contract file not found3 — SDK download failedgenvm-linter 0.11.1rc2 reports E014 (Class 'X' used in storage needs @allow_storage decorator) for storage dataclasses decorated with @gl.storage.allow, because the lint step only recognizes the legacy decorator name. This is a false positive: @allow_storage does not exist on the v0.3 and v0.4 runners. When E014 is the only lint finding and validation passes, treat the check as passed and keep @gl.storage.allow.
A passing check proves the contract loads in the runner its header pins. It does not prove the target network ships that runner: a v0.3 pin (written for the retired Bradbury Phase 2) lints clean and is still rejected by Studio and Testnet Bradbury Phase 3. Confirm the pin with the dry-runs in the write-contract skill.
When fixing lint errors iteratively:
genvm-lint check contract.py --json"ok": true (or until the only finding left is the E014 false positive described in Limits, which keeps "ok": false)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
genlayer, genvm, smart-contract-linting, contract-validation
npx claudepluginhub genlayerlabs/skills --plugin genlayer-dev5 skills in this plugin
/direct-testsWrite and run fast direct mode tests for GenLayer intelligent contracts./genlayer-cliUse the GenLayer CLI to deploy, interact with, and debug intelligent contracts./integration-testsWrite and run integration tests against a GenLayer environment./write-contractWrite production-quality GenLayer intelligent contracts. Always pins concrete GenVM runner version hashes and never uses local-only test/latest runner aliases. Covers equivalence principles, storage rules, LLM resilience, and cross-contract interaction.Other plugins' skills for the same job