본문으로 건너뛰기
Skillpedia
테스트7.0k · #13628

genvm-lint

하는 일

이 스킬은 GenVM 린터로 GenLayer 지능형 컨트랙트를 검사하는 방법을 설명합니다. 금지된 import, 비결정적 코드, SDK 오류를 찾아내며, 문제를 일찍 발견하려는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓GenLayer 컨트랙트를 방금 작성하거나 바꿔서 검사하고 싶을 때.
  • ✓컨트랙트가 올바른 SDK 타입과 데코레이터를 쓰는지 확인하고 싶을 때.
  • ✓컨트랙트 검사 결과를 프로그램이 읽을 수 있는 보고서로 받고 싶을 때.

스킬 링크

https://github.com/internet-court/internet-court-skill/blob/main/vendored/genlayer/genvm-lint/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/internet-court/internet-court-skill/blob/main/vendored/genlayer/genvm-lint/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“테스트를 실행하기 전에 제 GenLayer 컨트랙트에 실수가 없는지 검사해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 린터를 컨트랙트 파일에 실행합니다. 이 검사는 빠른 코드 안전성 스캔과 SDK 규칙 검사를 결합합니다. 스킬은 테스트를 실행하기 전에 모든 오류를 고치라고 말합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

GenVM Lint

Validate intelligent contracts for safety, correctness, and SDK compliance.

Setup

Requires genvm-linter (included in requirements.txt for boilerplate projects):

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.

genvm-lint check contracts/my_contract.py

check runs both lint (AST safety) and validate (SDK semantics) in one pass.

Commands

check (recommended)

genvm-lint check contracts/my_contract.py
genvm-lint check contracts/my_contract.py --json  # Machine-readable output

lint (fast AST checks only, ~50ms)

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)

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)

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)

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.

download (pre-download GenVM artifacts)

genvm-lint download                    # Latest
genvm-lint download --version v0.2.12  # Specific
genvm-lint download --list             # Show cached

Output Formats

Human (default)

✓ Lint passed (3 checks)
✓ Validation passed
  Contract: MyContract
  Methods: 8 (5 view, 3 write)

JSON (--json)

{"ok":true,"lint":{"ok":true,"passed":3},"validate":{"ok":true,"contract":"MyContract","methods":8,"view_methods":5,"write_methods":3,"ctor_params":2}}

Exit Codes

  • 0 — All checks passed
  • 1 — Lint or validation errors found
  • 2 — Contract file not found
  • 3 — SDK download failed

Agent Workflow

When fixing lint errors iteratively:

  1. Run genvm-lint check contract.py --json
  2. Parse JSON for specific errors
  3. Fix each error in the contract
  4. Re-run check until "ok": true
  5. Proceed to tests
자주 묻는 질문

린터는 어떤 문제를 찾나요?

os나 subprocess 같은 금지된 import, float 같은 비결정적 패턴, SDK 타입이나 데코레이터 오류를 찾습니다.

테스트 전에 실행해야 하나요, 후에 실행해야 하나요?

전에 실행합니다. 스킬은 먼저 린트를 돌리고 모든 오류를 고친 뒤 테스트하라고 말합니다.

프로그램이 읽을 수 있는 형식으로 결과를 받을 수 있나요?

네. 검사 명령에는 JSON 출력 옵션이 있습니다.

상세 정보

작성자의 원본 설명

Validate GenLayer intelligent contracts with the GenVM linter.

repo: internet-court/internet-court-skill

인기도

GitHub 스타
7.0k
순위
#13628
라이선스
—
업데이트
2026. 10. 26.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬