sails-local-smoke
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.
What this skill does
# 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: ```bash 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: ```bash $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 ``` ## Sequence — Secondary Path (Rust gclient) Use this path when the project already has a Rust test harness that uses `gclient` and `GclientEnv`. 1. Confirm gtest is green. 2. Start or reuse a local node and connect with `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. 3. Deploy the `.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. 4. If the program uses delayed messages, transfer VARA to the program address before exercising commands. On-chain programs need balance to pay for future gas — this is not required in `gtest`. 5. Use the typed generated-client path through `GclientEnv`, wiring in the actual deployed program id. 6. Exercise one command or query path that proves the typed integration works on a local node. ## References - `../../references/gtest-cheatsheet.md` ## Guardrails - Keep this step typed and local. - Do not invent account addresses, program ids, or voucher ids in guidance that pretends they already exist. - Do not replace local smoke with explorer queries or ad hoc CLI poking. - If `gtest` is red or missing, stop and go back to `../sails-gtest/SKILL.md`. - Use `.opt.wasm` as the default deploy artifact. The plain `.wasm` is an intermediate build output that may exceed on-chain size limits. - When targeting a local node with `vara-wallet`, use `--network local` or `config set network local` or `VARA_WS=ws://localhost:9944`. The default endpoint is mainnet. - Do not embed machine-specific absolute paths in deploy commands or documentation. Use project-relative paths or skill-pack-relative references. - Verify the program initialized correctly by calling a read query immediately after deploy. An uninitialized program will appear active but return empty or default state.
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.