meteor/agent-skills

meteor-debugging

Use when diagnosing an unexplained failure in a Meteor 3 application before the failing layer or fix is known.

Ver código fuente
Documento original del Skill

Contenido del repositorio de origen con títulos, ejemplos, código, tablas, enlaces e imágenes preservados.

Debug Meteor applications

Find the first failing boundary before changing behavior. Produce a stable reproduction, evidence for one cause, and a verification target. Then use the skill that owns the repair.

Diagnosis loop

  1. Record the exact symptom, complete error and stack, command or user action,

Meteor release, resolved Atmosphere and npm versions, environment, and last known working state.

  1. Reproduce with the narrowest stable command or action before editing.
  2. Classify the first uncertain boundary with the table below.
  3. Read existing evidence before adding instrumentation. Compare client and

server output, recent changes, and passing versus failing environments.

  1. Add one targeted observation only when current evidence cannot answer the

question. Do not combine a diagnostic change with a speculative fix.

  1. State one falsifiable hypothesis and the observation that would reject it.
  2. Change one variable, reproduce, and trace a bad value or event backward to

its origin.

  1. Fix the confirmed cause through the owning skill. Add a regression at the

lowest reliable layer when the failure can recur.

  1. Re-run the focused reproduction, then the affected suite or

production-like check. Remove temporary diagnostics and artifacts.

If several evidence-backed hypotheses fail, revisit the boundary map and assumptions before stacking mitigations or widening the change.

Select the boundary

SymptomFirst evidenceRead
Build stalls, compilation error, rebuild regression, Rspack or SWC failureFull build output, --verbose, exact release and build-package versionsBuild debugging
Server crashes before startup or fails in a method, publication, job, or hookEarliest server stack, startup order, request-correlated evidenceRuntime and inspector
Client stack, stale render, reactive loop, or client/server disagreementBrowser stack, rendered state, reactive invalidation, server comparisonRuntime and inspector, then the React or Blaze skill
Missing documents, stuck subscription, reconnect, or proxy/WebSocket symptomServer query, publication output, DDP state, subscription readiness, MinimongoDDP and data
Current output cannot distinguish an entry, guard, branch, state change, or event orderA small set of redacted boundary observationsLogs and instrumentation
Meteor Mocha failure, suite-only failure, async flake, or browser E2E failureFull hook output, client/server test counts, existing report and traceTests and browser
Cordova or HCP problem, device-only failure, or live incidentDevice logs and versions; deployment logs, health, metrics, release diffMobile and production

A syntax error needs its stack, not browser tracing. A browser-only hydration race needs client evidence, not a server inspector. Use the smallest tool that can reject the current hypothesis.

Evidence rules

  • Label runtime side and operation in temporary logs. Include a request or

event identifier only when concurrent flows can interleave.

  • Record selected, redacted fields. Never log credentials, tokens, cookies,

authorization headers, private settings, unrestricted method arguments, or full user documents.

  • Treat console.log as temporary instrumentation. Use meteor/logging or the

application's established structured logger for evidence that must persist.

  • Use .only only as temporary local test focus when the runner and execution

mode support it. Remove it and run the broader suite before handoff.

  • Prefer observable readiness over sleeps: subscription ready, settled method,

expected document, visible UI, or a specific browser event.

  • Inspect existing Playwright reports and traces before starting an interactive

browser. For a playwright-cli request, first check whether the executable is available. If it is unavailable, obtain authority before installation or browser downloads. Explicitly report that availability result and request the authority rather than only asking for the application URL. Use it only for a real browser boundary.

  • For an authorized ad hoc playwright-cli reproduction: MUST run

snapshot, console, and requests, start tracing before the failing action, stop tracing immediately after it, and close the browser session. Do not substitute source inspection for this browser evidence or omit the trace because the console or network already suggests a cause.

  • Use only an application path or URL the user placed in scope. If the current

workspace has no app and the prompt gives no URL, ask for one. Do not scan unrelated directories, processes, or ports to discover an application.

  • Read through meteor shell and meteor mongo before mutating. Never use

meteor reset --db as a diagnostic shortcut.

  • On production, do not expose an inspector, deploy a debug build, retain

secret-bearing traces, or experiment on live data.

Handoffs

Confirmed causeContinue with
Test setup, design, driver, fixture, or new regression structuremeteor-testing
SWC, Rspack, watcher, cache, build graph, or generated handoffmeteor-modern-build-stack or migrate-to-rspack
Confirmed Cordova platform, native plugin/configuration, device networking, signing, or native HCP compatibilitymeteor-native
Method, publication, Mongo/Minimongo, React, Blaze, accounts, or securityMatching domain skill
Galaxy, container, proxy, environment, health check, or rolloutmeteor-deployment
Documented community package behaviormeteor-community-packages, then the upstream repository
Pure Node.js, browser, database, or runner failure with no Meteor boundaryGeneral debugging guidance

Cleanup

Before handoff:

  1. Remove only the logs, debugger statements, .only markers, pauses,

temporary routes, and debug settings added for this investigation.

  1. Delete or protect screenshots, traces, profiles, saved browser state, and

dumps according to their data sensitivity.

  1. Re-run the original reproduction and the affected suite.
  2. Report the confirmed cause, evidence, fix, verification, and any remaining

uncertainty.

Anti-patterns

  • Edit the assertion before checking setup, async completion, and skipped

client coverage.

  • Add logs across the application without a hypothesis.
  • Serialize every runtime object indiscriminately. Circular values, reactive

wrappers, getters, binary data, and large documents need selected snapshots.

  • Treat a focused passing test as success when the suite still fails.
  • Add arbitrary sleeps, broad selectors, retries, or heap increases until the

symptom disappears.

  • Install browser tooling or scaffold tests for a server, build, or database

failure.

References

del mismo repositorio

Más Skills

Todos los Skills
meteor
Comunidad

meteor-community-packages

Use when choosing, evaluating, adopting, configuring, or debugging a package from Meteor's documented community catalog, or moving from a community package to a promoted core package such as roles. Triggers on community package recommendations, Atmosphere vs npm selection, Packosphere maintenance checks, jam: helpers, Meteor.publish.once, Meteor.publish.stream, meteor-rpc, Wormhole, cluster, mail-preview, meteor add --search, or adopting a Git-hosted Atmosphere package. Use this skill when the user asks which maintained package fits or how its documented integration works. Route Meteor 2-to-3 package failures to migrate-to-meteor-3 and underlying core API design to its owning skill.

instalaciones
1
GitHub Stars
9
Actualizado
11 sept
meteor
Comunidad

meteor-deployment

Use when deploying a Meteor 3 application. Triggers on meteor build, meteor deploy, Galaxy Push to Deploy, Galaxy Mode, Repository Mode, DEPLOYHOSTNAME, Docker, Kubernetes, settings.json, METEORSETTINGS, MONGOURL, MONGOOPLOGURL, ROOTURL, PORT, HTTPFORWARDEDCOUNT, NODEOPTIONS, health checks, pre-deploy commands, hot code push, --architecture os.linux.x8664, --server-only, or a deployed Node.js version mismatch. Use this skill when the user asks about shipping the app, asks about production config, or asks about containerizing. For Cordova Android/iOS artifacts, signing, and native HCP compatibility use meteor-native; this skill owns the backend deployment.

instalaciones
1
GitHub Stars
9
Actualizado
11 sept
meteor
Comunidad

meteor-methods

Use when authoring or debugging Meteor methods (Meteor.methods, Meteor.call, Meteor.callAsync). Triggers on argument validation with check(), optimistic UI stubs, latency compensation, Meteor.Error handling, and DDPRateLimiter. Use this skill when the user asks about server-side mutation, asks about rate limiting RPC, or asks about wrapping a method with auth checks.

instalaciones
1
GitHub Stars
9
Actualizado
11 sept
meteor
Comunidad

meteor-modern-build-stack

Use when configuring or tuning the Meteor 3 modern build stack: SWC transpiler, SWC-based minifier, modern @parcel/watcher, web-arch skipping in development, .meteorignore, and the Rspack bundler integration via the rspack Atmosphere package. Triggers on package.json "meteor": { "modern": true }, .swcrc, swc.config.js, [Transpiler] Used Babel Fallback logs, rspack.config.js, rspack.config.ts, defineConfig from @meteorjs/rspack, Meteor.compileWith helpers, Meteor.extendConfig, Meteor.extendSwcConfig vs Meteor.replaceSwcConfig, Meteor.splitVendorChunk, Meteor.persistDevFiles, Meteor.disablePlugins, Meteor.enablePortableBuild, HtmlRspackPlugin customization, RSPACKDEVSERVERPORT, TOOLNODEFLAGS, pnpm workspaces, Rspack 2, skeleton selection, PWA, Workbox and service-worker build setup. Use this skill when the user asks about SWC vs Babel or Rspack configuration. Route existing-app bundler migration to migrate-to-rspack, Blaze PWA scaffolding to meteor-blaze, and jam:offline data to meteor-community-packages.

instalaciones
1
GitHub Stars
9
Actualizado
11 sept