sails-rust-implementer
Skill17 starsChanged 7 months agoMITView on GitHub
Use when approved Gear or Vara tasks require Rust or Sails code changes in a real workspace. Do not use when the spec or architecture is still unsettled, or when the task is only review or deployment.
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 11 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
If the task touches a released contract, preserve public routes, reply shapes, emitted events, and generated-client expectations unless the …
- Very specific: line 30
If the target crate explicitly builds an ethexe path, stop and hand back to a dedicated ethexe workflow instead of extending this standard …
- Distinctive: line 38
Keep failure handling aligned with Gear/Vara async semantics.
- Distinctive: line 43
Do not redesign the feature while coding.
- Distinctive: line 44
Prefer Sails-level interfaces over raw payload work unless the task says otherwise.
- Distinctive: line 45
Keep constructor shape and state ownership consistent with the approved architecture instead of inventing a new storage pattern …
- Distinctive: line 46
Use generated clients or equivalent Sails Header-aware encoding for normal Sails calls.
- Very specific: line 47
If the feature needs a delayed self-message, use the shared payload recipe and the Syscall::message_source() == Syscall::program_id() guard …
- Very specific: line 49
Use Syscall::gas_available() for remaining-gas checks in execution paths.
- Very specific: line 50
Use Syscall::* for all runtime accessors instead of raw gcore::*, msg::*, or exec::* calls.
- Distinctive: line 51
Treat value flow, replies, and async ordering as first-class behavior.
- Distinctive: line 52
Stop and hand back to planning if implementation uncovers a real architecture gap.
- Distinctive: line 53
Do not change a released public route shape in place unless the approved architecture explicitly allows it.
- Distinctive: line 54
Do not change a released event payload in place without explicit versioning or cutover guidance.
- Distinctive: line 55
Do not assume IDL regeneration alone makes a breaking interface change safe.
- Very specific: line 56
Do not leave old-version write behavior undefined if the architecture requires ReadOnly or write-disable handling.
- Very specific: line 60
All public service methods must be annotated with #[export].
≈ “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
Sails Rust Implementer
Overview
Implement approved tasks in Sails-first Rust workspaces without freelancing new scope. If the task touches a released contract, preserve public routes, reply shapes, emitted events, and generated-client expectations unless the approved architecture explicitly changes them.
Inputs
../../references/sails-cheatsheet.md— core Sails patterns and APIs../../references/sails-rs-imports.md— import paths for sails-rs types../../references/delayed-message-pattern.md— delayed self-message recipe../../references/vara-domain-overview.md— Vara domain context../../references/gear-sails-production-patterns.md— production patterns../../references/gear-messaging-and-replies.md— messaging and reply flows../../references/gear-gas-reservations-and-waitlist.md— gas and waitlist../../references/sails-syscall-mapping.md—Syscall::*API mapping (use instead of rawgcore::*/msg::*/exec::*)
Additional references by task type:
- Token work:
../../references/awesome-sails-token-patterns.md - Released contract changes:
../../references/contract-interface-evolution.md
Consume the approved spec, architecture, and tasks artifacts before changing code.
If the target crate explicitly builds an ethexe path, stop and hand back to a dedicated ethexe workflow instead of extending this standard Sails pack.
Workflow
- Confirm the task is already specified and architecture-approved.
- Identify the smallest code change that satisfies the current task.
- Match the current Sails release conventions before improvising: public service routes use
#[export], events useemit_event, and shared types use#[sails_type](expands toEncode + Decode + TypeInfo + ReflectHashwith correct crate paths). Prefer#[sails_type]over manual derives for all service types, command/query params, and event payloads. Use#[sails_type(crate = my_crate)]when re-exporting from a different crate. - Preserve released routes, reply shapes, emitted events, IDL expectations, and client-facing contract stability unless the task explicitly changes them.
- Keep failure handling aligned with Gear/Vara async semantics.
- Hand local verification to the gtest loop before claiming the task is done.
Guardrails
- Do not redesign the feature while coding.
- Prefer Sails-level interfaces over raw payload work unless the task says otherwise.
- Keep constructor shape and state ownership consistent with the approved architecture instead of inventing a new storage pattern mid-implementation.
- Use generated clients or equivalent Sails Header-aware encoding for normal Sails calls; do not substitute bare raw structs for constructor or service payloads.
- If the feature needs a delayed self-message, use the shared payload recipe and the
Syscall::message_source() == Syscall::program_id()guard pattern instead of ad hoc routing bytes. - Preserve fail-fast command behavior; panic on fatal stateful command-path failures instead of introducing partial-commit recovery.
- Use
Syscall::gas_available()for remaining-gas checks in execution paths. - Use
Syscall::*for all runtime accessors instead of rawgcore::*,msg::*, orexec::*calls. Full mapping:../../references/sails-syscall-mapping.md(listed in Inputs). - Treat value flow, replies, and async ordering as first-class behavior.
- Stop and hand back to planning if implementation uncovers a real architecture gap.
- Do not change a released public route shape in place unless the approved architecture explicitly allows it.
- Do not change a released event payload in place without explicit versioning or cutover guidance.
- Do not assume IDL regeneration alone makes a breaking interface change safe.
- Do not leave old-version write behavior undefined if the architecture requires
ReadOnlyor write-disable handling.
#[export] Usage
All public service methods must be annotated with #[export]. For standard (non-ethexe) Sails apps, no transport flags are needed — #[export] enables SCALE transport by default. Transport flags (scale, ethabi, payable) are ethexe-specific; see the sails-ethexe-implementer skill for details.
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
- gear-message-executionSkill
- 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
- 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.

