meteor-methods

Installation
SKILL.md

Meteor methods

Methods are Meteor's primitive for server-side mutation called from the client. In Meteor 3 they are async on the server. Latency compensation still works via client-side stubs.

Decision flow

  1. Is this code mutating server data? Use a method.
  2. Does the client need to read the result before the server replies? Write a client stub with the same name; it mutates the local Minimongo collection and the change is reverted if the server disagrees.
  3. Does the method accept untrusted input? Validate every argument with check(). Otherwise the agent should refuse to write the method.
  4. Is the method rate-sensitive? Add a DDPRateLimiter.addRule.

Scaffold

Installs
33
GitHub Stars
7
First Seen
12 days ago
meteor-methods — meteor/agent-skills