/meteor:meteor-reactfrom Meteor
Builds and debugs React interfaces in Meteor 3: scaffolding, Rspack config, react-meteor-data hooks (useTracker, useFind, useSubscribe), Suspense integration, Fast Refresh, and testing.
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.
React owns rendering and local UI state; Meteor owns reactive data and the build handoff. Components consume authorized data and invoke methods. Publications and methods remain the server authority.
meteor create --react <name>; React is also
the default skeleton. For TypeScript and TSX, run
meteor create --typescript <name>.package.json, .meteor/packages, .meteor/versions, the client
entry, and rspack.config.*. Skeletons and react-meteor-data versions can
change independently of this skill.Meteor.startup with createRoot.react-meteor-data surface for a component:
useSubscribe for readiness, useFind for reactive lists with stable
document references, and useTracker for other Tracker values.meteor create --react my-app
cd my-app
meteor
Current Meteor 3.4+ scaffolds use Rspack and react-meteor-data. Inspect
.meteor/versions: Meteor 3 requires 3.0.0+, these examples target 4.0.1, and
references/react-meteor-data.md records feature floors.
import { Meteor } from "meteor/meteor";
import { createRoot } from "react-dom/client";
import { App } from "/imports/ui/App";
import "/imports/ui/styles.css";
Meteor.startup(() => {
const container = document.getElementById("react-target");
if (!container) throw new Error("Missing #react-target");
createRoot(container).render(<App />);
});
TypeScript uses client/main.tsx, a tsconfig.json, and usually
rspack.config.ts. Meteor discovers that TypeScript config directly.
| Need | API | Contract |
|---|---|---|
| Subscription readiness | Classic useSubscribe | Returns an isLoading function. Call it. |
| Reactive list | Classic useFind | Return a cursor, never fetch(). |
| User, count, single document, ReactiveVar | Classic useTracker | Return the reactive value. Avoid arbitrary side effects. |
| Async value with Suspense | Suspense useTracker | Supply a stable key and Promise-producing function. |
| SSR-capable collection query | Suspense useFind | Pass the collection and the find argument tuple. |
| Existing class component | withTracker | Keep it during focused maintenance; plan hooks separately. |
Classic list scaffold:
import { useFind, useSubscribe } from "meteor/react-meteor-data";
import { Tasks } from "/imports/api/tasks";
export function TaskList({ listId }) {
const isLoading = useSubscribe("tasks.byList", listId);
const tasks = useFind(
() => Tasks.find({ listId }, { sort: { createdAt: -1 } }),
[listId],
);
if (isLoading()) return <p>Loading...</p>;
if (tasks.length === 0) return <p>No tasks.</p>;
return <ul>{tasks.map((task) => <li key={task._id}>{task.title}</li>)}</ul>;
}
useFind owns cursor observation and updates only changed document references.
Use useTracker when a transformed aggregate is clearer. Read
references/react-meteor-data.md before tuning dependencies or skipUpdate.
Suspense imports change signatures; they are not drop-in replacements:
import { Suspense } from "react";
import { useFind, useSubscribe } from "meteor/react-meteor-data/suspense";
import { Tasks } from "/imports/api/tasks";
function TaskList({ listId }) {
useSubscribe("tasks.byList", listId);
const tasks = useFind(Tasks, [
{ listId },
{ sort: { createdAt: -1 } },
], [listId]);
return <ul>{tasks.map((task) => <li key={task._id}>{task.title}</li>)}</ul>;
}
export function TaskScreen({ listId }) {
return (
<AppErrorBoundary>
<Suspense fallback={<p>Loading...</p>}>
<TaskList listId={listId} />
</Suspense>
</AppErrorBoundary>
);
}
Treat Suspense useSubscribe as a suspension-only call. In the currently
audited package, its declared return type and runtime value disagree, so do not
consume the return. Read references/suspense-and-async.md for stable keys,
rejections, SSR, and Tracker.withComputation after await.
Rspack detects React from the app's npm dependencies, enables JSX or TSX SWC parsing, and installs and injects React Refresh for client development. A normal React Rspack app does not add the refresh plugin manually.
Keep rspack.config.* minimal. The generated JavaScript skeleton demonstrates
an optional SVGR rule; the TypeScript skeleton demonstrates type checking.
Compose custom rules through defineConfig from @meteorjs/rspack without
replacing Meteor's SWC defaults.
For React Compiler, the Meteor 3.6 pairing supports SWC; older pairings can retain Babel. Read compiler setup for React-version targets and runtime requirements.
| Request | Owner |
|---|---|
| React detection, JSX or TSX, React Refresh boundary | This skill |
General rspack.config helpers, SWC, aliases, cache, chunks | meteor-modern-build-stack |
| Convert an existing app or legacy build plugin to Rspack | migrate-to-rspack |
Meteor-bundler HMR or custom module.hot lifecycle | Build skill, then this skill for React symptoms |
If edits reload the page or reset component state, first determine which
bundler compiled the module. In a Rspack client graph, inspect React Refresh
boundaries and avoid a second react-fast-refresh stack. In a Meteor-bundler
graph, verify hot-module-replacement and the bundled React Fast Refresh
integration. See references/build-refresh-and-testing.md.
Call Meteor.callAsync from event handlers, model pending and rejection in
React state, and leave validation and authorization inside the method. Do not
write sensitive collections directly from a component.
For tests, separate a presentational component that accepts data as props from the hook-owning container. Unit-test the former with the project's existing React test library. Test the latter in a browser client with controlled Minimongo or a real publication. Assert rendered behavior, not the number of reactive-function calls, because React can discard work and invoke initial render logic more than once.
isLoading as a boolean. It is a function and must be called.Tasks.find().fetch() to useFind. Return the cursor.useFind factory. Subscribe separately.useTracker reactive function.await without restoring the computation.@rspack/plugin-react-refresh to project config when Meteor already
injected it.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub meteor/agent-skills --plugin meteor17 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.
Other plugins' skills for the same job