gear-builtin-actors

gear-builtin-actors is a skill for Claude Code from gear-foundation/vara-skills. It costs 97 tokens per session (1,084 once invoked), scanned A, original, MIT.

A guide for connecting Gear/Vara Sails programs to runtime-provided builtin actors, which are special blockchain services for tasks such as staking, proxy management, cryptography, and Ethereum bridging.

In plain words
What is it for?
Use it when building or debugging calls to BLS12-381, staking, proxy, or Ethereum bridge actors, including their message formats, actor identifiers, replies, and gas handling.
Why use it?
These calls use different request and reply formats from ordinary Sails program messages. The guide helps developers encode requests, decode replies, identify actors, and budget gas and storage deposits correctly.

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 when building or debugging calls to BLS12-381, staking, proxy, or Ethereum bridge actors, including their message formats, actor identifiers, replies, and gas handling.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/gear-foundation/vara-skills/gear-builtin-actors"><img src="https://agentmods.dev/badge/skills/gear-foundation/vara-skills/gear-builtin-actors.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,084 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.00097 $0.01084
Opus 5 $0.00048 $0.00542
Sonnet 5 $0.00019 $0.00217
Haiku 4.5 $0.00010 $0.00108

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

Security

Grade A, and why

gear-builtin-actors 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/gear-builtin-actors/SKILL.md · 48 lines

How it starts

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

Gear Builtin Actors

Goal

Treat builtin actors as a distinct call target: runtime-provided pseudo-programs at hardcoded ActorIds, reached via the normal msg::send_for_reply family but with request and reply types defined in the gbuiltin-* helper crates, not in a Sails IDL.

Inputs

  • ../../references/gear-builtin-actors.md — actor catalog, ActorId derivation, per-actor request/response shapes, calling pattern
  • ../../references/gear-messaging-and-replies.md — reply semantics for send_for_reply
  • ../../references/gear-gas-reservations-and-waitlist.md — gas budgeting and waitlist interaction when awaiting builtin replies
  • ../../references/gear-gstd-api-and-syscalls.md — the underlying gstd::msg API family

Route Here When

  • a feature needs staking, nominating, proxy management, BLS12-381 pairings, or ETH bridging from inside a Sails program
  • a send_for_reply targets a hardcoded non-program ActorId and the reply does not decode as a Sails route
  • a reply bytes stream is expected to decode as a gbuiltin_*::Response rather than a Sails-routed payload
  • a builder is unsure whether to call a builtin directly from a service handler or wrap it behind a dedicated broker service
  • a gtest or local-smoke run fails at the builtin call site with gas or ED errors
  • a runtime upgrade changes the set of registered builtins and existing hardcoded ActorId constants need revalidation

Working Model

  1. Confirm the actor is registered in the target runtime. For Vara, the authoritative tuple is BuiltinActors in gear/vara/runtime/vara/src/lib.rs (IDs 1 = BLS12-381, 2 = staking, 3 = ETH bridge, 4 = proxy). IDs are runtime-version-bound.
  2. Pick the correct gbuiltin-* helper crate: gbuiltin-staking, gbuiltin-proxy, gbuiltin-bls381, gbuiltin-eth-bridge. Import its Request (and Response where defined).
  3. Derive the ActorId from the builtin ID via hash((b"built/in", id).encode()), or take the stable hex from the reference. Store as a const ActorId in the module that owns the call.
  4. Call from an async handler: msg::send_bytes_for_reply(ACTOR_ID, &payload[..], value, reply_deposit)?.await. Value and reply deposit follow Substrate ED rules for the builtin's underlying pallet.
  5. Classify the reply: success reply decodes as gbuiltin_*::Response (where one is defined) or is empty for fire-and-forget variants; an error reply surfaces as the .await Err arm and carries a BuiltinActorError payload.
  6. Budget gas against the builtin's declared max_gas() weight; block allowance failures manifest as error replies, not panics.
  7. For first-time interactions with a new builtin address, confirm ED is minted (runtime migrations handle this for shipped builtins — only relevant on fresh chains or new actors).
  8. When a service wraps a builtin (broker pattern), keep the wrapping service responsible for idempotency, reply routing, and state reconciliation — the builtin itself has no memory, no read_state, and no code.

Read the full file on GitHub · 48 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 · 48 lines · 97 tokens per session scan A 7aa5c7405cd9

Subscribe to this mod's changes

gear-builtin-actors is a skill published in the GitHub repository gear-foundation/vara-skills (17 stars, last pushed 2mo ago), licensed MIT. It adds 97 tokens to every session and 1,084 once invoked, about $0.0005 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.