genvm-lint
SolidValidate GenLayer intelligent contracts with the GenVM linter.
Code & Development 5,580 stars
103 forks Updated 3 weeks ago NOASSERTION
Install
Quality Score: 84/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# GenVM Lint
Validate intelligent contracts for safety, correctness, and SDK compliance.
## Setup
Requires `genvm-linter` (included in `requirements.txt` for boilerplate projects):
```bash
pip install genvm-linter
```
## Workflow
**Always lint before testing.** Run `genvm-lint check` after writing or modifying a contract. Fix all errors before running tests.
```bash
genvm-lint check contracts/my_contract.py
```
`check` runs both lint (AST safety) and validate (SDK semantics) in one pass.
## Commands
### check (recommended)
```bash
genvm-lint check contracts/my_contract.py
genvm-lint check contracts/my_contract.py --json # Machine-readable output
```
### lint (fast AST checks only, ~50ms)
```bash
genvm-lint lint contracts/my_contract.py
```
Catches:
- Forbidden imports (`os`, `sys`, `subprocess`, `random`, etc.)
- Non-deterministic patterns (bare `float` usage)
- Contract header structure issues
### validate (SDK semantic checks, ~200ms)
```bash
genvm-lint validate contracts/my_contract.py
```
Validates:
- Types exist in SDK (`TreeMap`, `DynArray`, `Address`, etc.)
- Decorators correctly applied (`@gl.public.view`, `@gl.public.write`)
- Storage fields have valid types (no `dict`/`list`)
- Method signatures correct
### schema (extract ABI)
```bash
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
```
### typecheck (Pyright/Pylance)
```bash
genvm-lint typechec...
Details
- Author
- internet-court
- Repository
- internet-court/internet-court-skill
- Created
- 2 months ago
- Last Updated
- 3 weeks ago
- Language
- TypeScript
- License
- NOASSERTION
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
write-contract
Write 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.
5,580 Updated 3 weeks ago
internet-court AI & Automation Solid
genlayer-cli
Use the GenLayer CLI to deploy, interact with, and debug intelligent contracts.
5,580 Updated 3 weeks ago
internet-court Code & Development Listed
golang-lint
Configure, run, or interpret Go formatting and static-analysis checks, especially golangci-lint, go vet, staticcheck, revive, and nolint directives. Use for lint diagnostics, policy, suppression review, migration, or incremental adoption.
0 Updated 2 weeks ago
reagin