一键导入
genlayer-cli
Deploy, interact with, inspect, and debug GenLayer intelligent contracts with the GenLayer CLI across local Studio, hosted Studio, and testnet.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Deploy, interact with, inspect, and debug GenLayer intelligent contracts with the GenLayer CLI across local Studio, hosted Studio, and testnet.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes or mentions "/commit".
Scaffold a new skill directory using the multi-YAML pattern. Use when user says /create-skill.
Write, run, and refine fast direct-mode tests for GenLayer intelligent contracts using the in-memory pytest fixtures.
Refresh documentation with deterministic generation from source files. Use when user says /docs-refresh.
Install, upgrade, and monitor a GenLayer validator node on AMD64 Linux, including zero-downtime updates and LLM provider setup.
Lint, validate, schema-extract, and typecheck GenLayer intelligent contracts before tests or deployment.
基于 SOC 职业分类
| name | genlayer-cli |
| description | Deploy, interact with, inspect, and debug GenLayer intelligent contracts with the GenLayer CLI across local Studio, hosted Studio, and testnet. |
Use this skill when a task requires the genlayer CLI for network selection, account management, deployment, contract interaction, or transaction debugging.
Use this skill for:
genlayer network set for built-in networksFor built-in networks, prefer:
genlayer network set
genlayer network set testnet-bradbury
Do not default to --rpc for built-in networks. That can bypass network-specific configuration and break transaction polling.
Typical built-in network names:
localnetstudionettestnet-asimovtestnet-bradburygenlayer account unlock depends on an OS keychain and often fails in containers or headless agents. In those environments, expect password prompts for signing commands and verify automation flags against genlayer --help before scripting them.
npm install -g genlayer
genlayer network set
genlayer network set testnet-bradbury
genlayer network info
genlayer network list
genlayer account
genlayer account list
genlayer account create --name dev1
genlayer account use dev1
genlayer account import --name imported --private-key 0x...
genlayer account import --name imported --keystore ./keystore.json
genlayer account send 0x123...abc 10gen
For validator operations, remember the role split:
Fresh testnet accounts usually start with zero GEN. Fund them before deploy or write operations. If the faucet requires a browser challenge, treat that step as manual and continue the scripted flow only after balance is confirmed.
Deploy a single contract:
genlayer deploy --contract contracts/my_contract.py
genlayer deploy --contract contracts/my_contract.py --args "arg1" 42
If the repo uses deploy scripts, prefer the repo's documented deployment flow instead of ad hoc commands.
Read methods:
genlayer call 0x123...abc get_data --args "key1"
Write methods:
genlayer write 0x123...abc set_data --args "hello"
Inspect a deployed contract:
genlayer schema 0x123...abc
genlayer code 0x123...abc
genlayer receipt <txHash>
genlayer receipt <txHash> --stdout
genlayer receipt <txHash> --stderr
genlayer receipt <txHash> --status FINALIZED
genlayer appeal <txHash>
When a deploy or write call behaves unexpectedly:
genlayer init
genlayer up
genlayer up --reset-db
genlayer stop
Use these when the task is ordinary local environment setup or reset, not full validator operations.
$genvm-lint, $direct-tests, or $integration-tests as appropriate.