sails-idl-client

sails-idl-client is a skill for Claude Code from gear-foundation/vara-skills. It costs 61 tokens per session (1,048 once invoked), scanned A, original, MIT.

A guide for connecting Gear or Vara Sails applications to generated, typed clients based on an IDL, a file that describes a program's callable interface. It covers Rust, JavaScript, and TypeScript client generation and integration.

In plain words
What is it for?
Use it to generate or repair Sails clients, configure build steps, connect through GearApi, and wire the client into application or test crates.
Why use it?
It avoids fragile hand-written message payloads and helps keep clients compatible when a deployed contract interface changes.

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 generate or repair Sails clients, configure build steps, connect through GearApi, and wire the client into application or test crates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gear-foundation/vara-skills/sails-idl-client
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-idl-client
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-idl-client

README.md
[![agentmods](https://agentmods.dev/badge/skills/gear-foundation/vara-skills/sails-idl-client/github.svg)](https://agentmods.dev/skills/gear-foundation/vara-skills/sails-idl-client)
Your own site
<a href="https://agentmods.dev/skills/gear-foundation/vara-skills/sails-idl-client"><img src="https://agentmods.dev/badge/skills/gear-foundation/vara-skills/sails-idl-client/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-idl-client

Your own site · 80×15
<a href="https://agentmods.dev/skills/gear-foundation/vara-skills/sails-idl-client"><img src="https://agentmods.dev/badge/skills/gear-foundation/vara-skills/sails-idl-client.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,048 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.00061 $0.01048
Opus 5 $0.00030 $0.00524
Sonnet 5 $0.00012 $0.00210
Haiku 4.5 $0.00006 $0.00105

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

Security

Grade A, and why

sails-idl-client 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 11d 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-idl-client/SKILL.md · 76 lines

How it starts

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

Sails IDL Client

Goal

Keep Sails builders on the typed pipeline for IDL generation, Rust client generation, and integration wiring.

If a released contract evolves or a new deployed contract version is introduced, keep the generated-client path compatible with the approved cutover plan instead of assuming one regenerated client can replace all consumers immediately.

Default JS Or TS Path

  • Treat the program .idl as the source of truth for the interface.
  • Generate the normal client with sails-js or sails-cli so the workspace gets lib.ts and typed program or service classes instead of hand-written payload code.
  • Pair the generated client with GearApi from @gear-js/api for node connectivity.
  • Use parseIdl from the sails-js and sails-js-parser path only when you explicitly need dynamic runtime control rather than pre-generated files.

Build Script Path

  • Check the repo's build.rs before inventing a manual IDL step.
  • For a dedicated Rust client crate, prefer the standard Sails build-helper path:
    • [build-dependencies] sails-rs = { version = "...", features = ["build"] }
    • fn main() { sails_rs::build_client::<Program>(); }
  • Treat direct sails-idl-gen plus sails-client-gen-v2 wiring as a manual fallback for non-standard layouts or explicitly custom generation needs.
  • Do not assume a single fixed output location. Depending on the repo, generated .idl and Rust client artifacts may land in OUT_DIR, the client crate output path, or another repo-defined location.

Generated Client Pitfalls

  • Custom BTreeMap key types: Public IDL-facing map keys should prefer primitive or tuple types (e.g. u64, (u32, u32), ActorId). Custom struct keys (e.g. BTreeMap<Pos, V>) may fail client-side decoding because the generated type may lack the required ordered-key traits. Stick to primitives or tuples unless generated-client support for that custom key type is confirmed.

Released Contract Evolution

  • Treat each .idl as the interface contract for one deployed program version.
  • If a new deployed contract version changes the public surface, do not assume every consumer can switch at once.
  • Keep old and new generated clients available during cutover when frontend, tests, scripts, or migration tooling still depend on the previous version.
  • Regenerate clients as part of release work, but do not treat regeneration alone as compatibility validation.

Read the full file on GitHub · 76 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. 11d ago First seen · 76 lines · 61 tokens per session scan A ae850e5a65c9

Subscribe to this mod's changes

sails-idl-client is a skill published in the GitHub repository gear-foundation/vara-skills (17 stars, last pushed 1mo ago), licensed MIT. It adds 61 tokens to every session and 1,048 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.