sails-local-smoke

sails-local-smoke is a skill for Claude Code from gear-foundation/vara-skills. It costs 52 tokens per session (1,232 once invoked), scanned A, original, MIT.

A validation workflow for a Sails application, a Gear/Vara smart-contract application framework, that tests a typed client against a local blockchain node after local GoogleTest checks pass.

In plain words
What is it for?
Use it to deploy a Sails build to a local node and verify that its generated typed client can communicate with the deployed program.
Why use it?
It catches deployment and client-integration problems, including using the optimized WebAssembly artifact and real local account and program identifiers.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the vara-skills plugin — 26 skills shipped together

Good fit Use it to deploy a Sails build to a local node and verify that its generated typed client can communicate with the deployed program.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gear-foundation/vara-skills/sails-local-smoke
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gear-foundation/vara-skills --skill sails-local-smoke
Clone the repo
git clone --depth 1 https://github.com/gear-foundation/vara-skills

Made for: Claude Code.

Or install vara-skills, the plugin that ships this one along with the rest of its 26 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sails-local-smoke

README.md
[![agentmods](https://agentmods.dev/badge/skills/gear-foundation/vara-skills/sails-local-smoke/github.svg)](https://agentmods.dev/skills/gear-foundation/vara-skills/sails-local-smoke)
Your own site
<a href="https://agentmods.dev/skills/gear-foundation/vara-skills/sails-local-smoke"><img src="https://agentmods.dev/badge/skills/gear-foundation/vara-skills/sails-local-smoke/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sails-local-smoke

Your own site · 80×15
<a href="https://agentmods.dev/skills/gear-foundation/vara-skills/sails-local-smoke"><img src="https://agentmods.dev/badge/skills/gear-foundation/vara-skills/sails-local-smoke.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,232 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.01232
Opus 5 $0.00026 $0.00616
Sonnet 5 $0.00010 $0.00246
Haiku 4.5 $0.00005 $0.00123

Measured 12d ago against content hash df2f2e411f59, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

sails-local-smoke scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/sails-local-smoke/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sails Local Smoke

Goal

Validate the generated client path against a local node after gtest is already green.

Deploy Artifact And Tooling

  • The deploy artifact is the .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.
  • Prefer 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.
  • For Rust-native test harnesses that already use gclient, the GearApi + GclientEnv path remains valid as a secondary option.

Identity Rules

  • Use local dev accounts or user-provided account addresses in SS58 form for standard Vara account flows; do not default to Ethereum 0x addresses for normal local-node work.
  • Record the real deployed 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.
  • Keep seed phrases and private keys out of committed scripts, docs, and examples. Use local keyrings, environment input, or interactive setup instead.

Inputs

  • ../../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 payloads

Sequence — Primary Path (vara-wallet + sails-js)

  1. Confirm the docs/plans/...-gtest.md note shows a green test loop.
  2. Start or reuse a local node on the default port (ws://localhost:9944).
  3. Set the endpoint: $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.
  4. Import a funded dev account: $VW wallet import --seed '//Alice' --name alice.
  5. Deploy the .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.
    • Post-deploy verification: If the service exposes a query, call it immediately after deploy to verify the constructor ran. An uninitialized program will return default or empty state, or panic.
  6. If the program uses delayed messages, transfer VARA to the program address: $VW --account alice transfer $PROGRAM_ID 100.
  7. Exercise one command and one query to prove the integration works:
    $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
    

Read the full file on GitHub · 78 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 78 lines · 52 tokens per session scan A df2f2e411f59

Subscribe to this mod's changes

sails-local-smoke is a skill published in the GitHub repository gear-foundation/vara-skills (17 stars, last pushed 2mo ago), licensed MIT. It adds 52 tokens to every session and 1,232 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.