/meteor:meteor-methodsfrom Meteor
Authors and debugs Meteor methods including argument validation with check(), optimistic UI stubs, latency compensation, Meteor.Error handling, and DDPRateLimiter.
Ships in Meteor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
check(). Otherwise the agent should refuse to write the method.DDPRateLimiter.addRule.import { Meteor } from "meteor/meteor";
import { check, Match } from "meteor/check";
Meteor.methods({
async addItem(payload) {
check(payload, {
title: String,
qty: Match.Integer,
});
if (!this.userId) {
throw new Meteor.Error("not-authorized");
}
const _id = await Items.insertAsync({
...payload,
ownerId: this.userId,
createdAt: new Date(),
});
return _id;
},
});
try {
const id = await Meteor.callAsync("addItem", { title: "Hi", qty: 1 });
setLocalId(id);
} catch (err) {
if (err && typeof err === "object" && "error" in err) {
console.error(err.error, err.reason, err.details);
} else {
console.error("local or transport failure", err);
}
}
Define the same method on the client. The client stub runs immediately against the local Minimongo; the server's authoritative result reverts any divergence.
// client/methods.js
import { Meteor } from "meteor/meteor";
import { Random } from "meteor/random";
Meteor.methods({
addItem(payload) {
Items.insert({
...payload,
_id: Random.id(),
ownerId: Meteor.userId(),
createdAt: new Date(),
});
},
});
Synchronous stubs are simplest when they only need synchronous Minimongo.
Async stubs are also supported by callAsync and are useful when the same
method definition runs on client and server with *Async collection calls.
An async stub may await microtask-based local work, but it must not wait on
fetch, timers, IndexedDB, workers, or other browser macrotask APIs. Run
external I/O outside the stub.
import { DDPRateLimiter } from "meteor/ddp-rate-limiter";
DDPRateLimiter.addRule(
{
type: "method",
name: "addItem",
userId: (userId) => Boolean(userId),
},
5, // operations
10000, // per 10s
);
Meteor 3.5+ permits async matcher functions for database-backed decisions. On Meteor 3.0 through 3.4, matchers must stay synchronous; use a fixed rule, precomputed synchronous state, or upgrade instead of awaiting Mongo in a matcher.
Meteor awaits async matchers sequentially on the incoming connection's message queue. Project only required fields and keep the lookup fast. A rejected matcher Promise errors the invocation; test that path explicitly.
See references/rate-limiting.md for the rule-object schema and
per-connection vs per-user keys.
Own every client callAsync result: await it inside try/catch, return it
to a caller that handles rejection, or attach an explicit .catch for
intentional background work. Show a confirmed-save message only after the
awaited call succeeds; keep pending/optimistic UI distinct from confirmation.
The client async-stub queue attaches no-op rejection handlers, so an ignored
call can reject without console output or an unhandledrejection event.
Awaiting the returned Promise still exposes the error. This queue behavior
does not imply that server logs or every derived Promise are silent. See the
client queue implementation.
Throw Meteor.Error(code, reason, details?) for an intentional client-visible
failure. A plain Error is logged on the server and sanitized for the client
as Meteor.Error(500, "Internal server error"); its original message and
stack are not exposed. Meteor.Error carries its code, reason, and details.
Do not assume every callAsync rejection has that shape: callback misuse,
transport failures, and local stub exceptions can produce native or arbitrary
errors. Narrow the caught value before reading Meteor-specific fields.
Meteor.callAsync without handling or deliberately forwarding its
Promise, then display success or rely on global rejection logging.check() on every argument. Reject the method in code
review.fetch or timers inside a client
stub. Async stubs are valid, but those APIs let unrelated code run before
the optimistic simulation finishes.Meteor.user() inside an async method body. Use this.userId.references/check-and-validate.mdreferences/rate-limiting.mdreferences/eval-cases.mdWhat SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/meteor-accountsUse when wiring up authentication in a Meteor 3 app. Triggers on accounts-password, accounts-base, OAuth (Google, Facebook, GitHub, Apple, Twitter, Meetup, Weibo), accounts-2fa, accounts-passwordless, ServiceConfiguration.configurations.upsertAsync, Accounts.createUserAsync, Accounts.setPasswordAsync, Accounts.forgotPassword, Accounts.resetPassword, Accounts.verifyEmail, useHttpOnlyCookies, clientStorage, Meteor.loginWithPasswordAnd2faCode, email verification, accounts-express, authFetchAllowedOrigins. Use this skill when the user asks about signups, signins, or asks about token storage vs HttpOnly cookies.
/meteor-blazeUse when building or debugging Meteor 3 Blaze interfaces: meteor create --blaze, Spacebars, helpers/events, lifecycle, Tracker, ReactiveVar/ReactiveDict, subscriptions, Promise helpers, #let states, Template.dynamic, Blaze.render, and blaze-hot HMR. Triggers on stale async results, lost reactivity after await, data-context lookup surprises, duplicate DOM integrations, Rspack full reloads, raw HTML in triple braces, jQuery not found, Expected template or null, Template.instance() is null after await, missing event.dataTransfer, Reactive HTML attributes, BLOCKOPEN, TRIPLE template tag, Expected "li" end tag, or Template can't be named. Use this skill when asked about reusable Blaze components, the Blaze PWA scaffold, package/backend selection, Rspack entry imports, or template tests. For Meteor 2 to 3 upgrades, use migrate-to-meteor-3; for unexplained cross-layer failures, meteor-debugging.
npx claudepluginhub meteor/agent-skills --plugin meteorOther plugins' skills for the same job