gear-message-execution
Skill17 starsChanged 7 months agoMITView on GitHub
Use when a builder needs to design or debug Gear message flow, replies, delayed execution, reservations, or waitlist behavior inside a standard Gear/Vara Sails app. Do not use for Vara.eth or ethexe-first work, non-Sails repositories, or broad protocol research.
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
If raw bytes are involved, classify the source first: constructor, service payload, reply, event, full state, or state-function output.
- Distinctive: line 38
Check whether rollback should revert local state if a send or reply path fails.
- Distinctive: line 39
If the path is in tests, confirm the block-advance pattern and expected reply timing.
- Distinctive: line 43
Treat reply, timeout, and late hook execution as distinct states.
- Distinctive: line 44
Keep staged payload flows paired with their commit step.
- Distinctive: line 45
Treat reservation duration and waitlist expiry as architecture constraints.
- Very specific: line 46
Use exec::gas_available() (or Syscall::gas_available() if using Sails) when checking available gas during the current execution.
- Distinctive: line 47
Prefer generated Sails clients unless debugging the route or codec layer.
- Distinctive: line 48
If a Sails route is involved, expect Sails Header-aware encoding rather than a raw struct payload.
- Distinctive: line 49
Keep the guidance on the standard Gear/Vara Sails path.
- Distinctive: line 50
Prefer local repo references over external skill dependencies.
- Very specific: line 51
Do not start with plain Decode::<T> on arbitrary bytes when a Sails route may be involved.
- Very specific: line 53
Treat gear-meta as a debugging fallback, not the first-choice default path.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Gear Message Execution
Goal
Provide a focused local path for reasoning about message flow and execution behavior in standard Gear/Vara Sails work.
Inputs
../../references/gear-execution-model.md../../references/gear-sails-production-patterns.md../../references/gear-messaging-and-replies.md../../references/gear-gas-reservations-and-waitlist.md../../references/scale-binary-decoding-guide.md../../references/sails-syscall-mapping.md
Route Here When
- replies, timeouts, or error replies are surprising
- delayed work spans future blocks
- reservations or waitlist behavior affect the design
- a builder is mixing raw payload handling into an otherwise standard Sails flow
- raw hex, reply bytes, event bytes, or metadata-vs-IDL decoding path is unclear
- a reply from a hardcoded non-program
ActorIddoes not decode as a Sails route; route togear-builtin-actorsfor the matchinggbuiltin_*::Responsetype
Working Model
- Confirm what executes now versus after the next block.
- If raw bytes are involved, classify the source first: constructor, service payload, reply, event, full state, or state-function output.
- Determine whether the bytes are Sails-routed, plain SCALE, or metadata-driven state output.
- Match the decoder artifact to the source: generated client or
.idl,ProgramMetadata, orstate.meta.wasm. - Identify whether the path is fire-and-forget, reply-driven, delayed, or reservation-backed.
- Separate transport failure, timeout, and error reply.
- Check whether rollback should revert local state if a send or reply path fails.
- If the path is in tests, confirm the block-advance pattern and expected reply timing.
Guardrails
- Treat reply, timeout, and late hook execution as distinct states.
- Keep staged payload flows paired with their commit step.
- Treat reservation duration and waitlist expiry as architecture constraints.
- Use
exec::gas_available()(orSyscall::gas_available()if using Sails) when checking available gas during the current execution. - Prefer generated Sails clients unless debugging the route or codec layer.
- If a Sails route is involved, expect Sails Header-aware encoding rather than a raw struct payload.
- Keep the guidance on the standard Gear/Vara Sails path.
- Prefer local repo references over external skill dependencies.
- Do not start with plain
Decode::<T>on arbitrary bytes when a Sails route may be involved. - Match decode artifact to source: generated client or
.idlfor standard Sails interface paths,ProgramMetadatafor full state, andstate.meta.wasmfor state-function output. - Treat
gear-metaas a debugging fallback, not the first-choice default path.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- vara-skillsSkill
- vara-skillsSkill
- awesome-sails-vftSkill
- gear-architecture-plannerSkill
- gear-builtin-actorsSkill
- gear-gstd-api-mapSkill
- gtest-tdd-loopSkill
- idea-to-specSkill
- sails-architectureSkill
- sails-dev-envSkill
- sails-ethexe-architectureSkill
- sails-ethexe-implementerSkill
- sails-feature-workflowSkill
- sails-frontendSkill
- sails-gtestSkill
- sails-idl-clientSkill
- sails-indexerSkill
- sails-local-smokeSkill
- sails-new-appSkill
- sails-program-evolutionSkill
- sails-rust-implementerSkill
- ship-sails-appSkill
- task-decomposerSkill
- vara-skills-upgradeSkill
- vara-walletSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

