skills/sails-local-smoke/SKILL.md
Use when a builder has a standard Gear/Vara Sails app with green gtest coverage and needs typed validation against a local node. Do not use before gtest passes, for remote networks, or for non-Sails programs.
npx skillsauth add gear-foundation/vara-skills sails-local-smokeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Validate the generated client path against a local node after gtest is already green.
.opt.wasm file (optimized WASM), not the plain .wasm. The .opt.wasm is produced by wasm-opt during the Sails build and is significantly smaller. Uploading the unoptimized .wasm to a node will often fail with CodeTooLarge.vara-wallet for deploying to a local node. It handles account management and program upload without requiring a Gear source checkout or Rust-specific tooling.gclient, the GearApi + GclientEnv path remains valid as a secondary option.SS58 form for standard Vara account flows; do not default to Ethereum 0x addresses for normal local-node work.program id from the deploy step and pass that into the typed client. If the flow uses vouchers, issue one first and use the returned voucher ID. Do not invent either identifier.../../references/sails-gtest-and-local-validation.md../../references/sails-idl-client-pipeline.md../vara-wallet/SKILL.md../../references/sails-cheatsheet.md../../references/voucher-and-signless-flows.md../../references/sails-header-wire-format.md — Sails Header layout for debugging wire payloadsdocs/plans/...-gtest.md note shows a green test loop.$VW config set network local (persists) or export VARA_WS=ws://localhost:9944 (session only) or --network local (per-command). The default is mainnet — always override for local work.$VW wallet import --seed '//Alice' --name alice..opt.wasm artifact and record the program id:
UPLOAD=$($VW --account alice program upload ./target/wasm32-unknown-unknown/release/my_program.opt.wasm --idl ./my_program.idl --args '[]')
PROGRAM_ID=$(echo $UPLOAD | jq -r .programId)
If the constructor does non-trivial work, override gas with --gas-limit.
$VW --account alice transfer $PROGRAM_ID 100.$VW --account alice call $PROGRAM_ID MyService/DoSomething --args '["hello"]' --idl ./my_program.idl
$VW call $PROGRAM_ID MyService/GetState --args '[]' --idl ./my_program.idl
Use this path when the project already has a Rust test harness that uses gclient and GclientEnv.
GearApi::init(WSAddress::dev()) for local node on default port. Do not use GearApi::dev_from_path() — that expects a filesystem path to the node binary, not a WebSocket URL..opt.wasm and record the actual program id returned by the deploy flow. If the constructor does non-trivial work, override gas with an explicit limit.gtest.GclientEnv, wiring in the actual deployed program id.../../references/gtest-cheatsheet.mdgtest is red or missing, stop and go back to ../sails-gtest/SKILL.md..opt.wasm as the default deploy artifact. The plain .wasm is an intermediate build output that may exceed on-chain size limits.vara-wallet, use --network local or config set network local or VARA_WS=ws://localhost:9944. The default endpoint is mainnet.development
Use when approved tasks require Rust code changes in a Sails ethexe workspace with the ethexe feature enabled. Do not use for standard Gear/Vara Sails apps without ethexe, or when the spec or architecture is still unsettled.
development
Use when a builder needs to design or review architecture for a Sails ethexe app with dual-transport, payable methods, Solidity interface generation, or Ethereum-style events. Do not use for standard Gear/Vara Sails apps without ethexe.
development
Use when a builder needs to design or debug calls from a standard Gear/Vara Sails program into runtime builtin actors such as BLS12-381, staking, proxy, or ETH bridge, including ActorId derivation, request encoding, reply decoding, and gas or ED budgeting. Do not use for regular program-to-program messaging, Vara.eth or ethexe-only work, non-Sails repositories, or runtime-maintenance tasks inside the Gear repo.
development
Use when a builder needs a read-side indexer and query API for a standard Gear/Vara Sails app using program events, IDL-driven decoding, projected read models, and optional on-chain query enrichment. Do not use for command-side backends, generic Node APIs, non-Sails repositories, Vara.eth or ethexe-first work.