Reference for preparing and instrumenting applications on Temps. Covers runtime contract (.temps.yaml health, HOST/PORT, SIGTERM, replicas, migrations) and production observability (errors, traces, metrics, logs, analytics, sampling, cardinality, credential boundaries).
Ships in Temps. 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.
Best practices for application code that runs on Temps. This skill owns the runtime contract and production observability; use temps-cli for platform operations.
.temps.yaml; for image/static deployments, inspect the deployment health-path override because no repository config is available.Every web application should expose a dedicated health endpoint. Repository builds configure it in .temps.yaml under the project's effective Temps Root Directory / Docker build context:
health:
path: /healthz
Use health.path; do not rely on the currently parsed-but-unapplied status, interval, timeout, or retries fields. If OpenTelemetry server tracing is enabled, exclude the exact health path from incoming spans and routine access-log/request-metric noise. Keep the route, .temps.yaml, and filters synchronized.
Image and static deployments cannot read .temps.yaml; set the same route through their deployment health_check_path / CLI --health-check-path override instead.
Also require the app to read PORT, bind to HOST/0.0.0.0, align a custom image's EXPOSE, handle SIGTERM, flush telemetry, and exit inside Temps' 10-second shutdown window. See the runtime reference for readiness semantics, scale-to-zero caveats, replicas, migrations, stdout/stderr, and cron authentication.
Path blocks, scanner traps (/wp-admin, /.env), old-URL redirects, office-only admin paths and bot challenges are better as project edge rules than as app middleware: the proxy answers them before a container is woken or a replica is spent, and they change without a deploy. Keep app middleware for decisions that need the app's own state (sessions, roles, tenants). When adding edge rules:
allow rule only skips the remaining edge rules; IP restrictions, rate limits and Shield still apply.See the temps skill's edge rules how-to for the rule format and the CLI/MCP workflow.
Temps replaces Sentry + Datadog/Honeycomb + PostHog with one ingestion surface. This section is the map across all five pillars — use it to decide which pillar a signal belongs in, and to find the concrete endpoint/auth/gotcha details for each. It complements, not replaces, the narrower setup skills:
@temps-sdk/react-analytics hook usageGoal: an app in any language gets runtime health, error tracking, and traces working safely.
Temps auto-injects exporter destinations and credentials; it does not install or initialize an SDK. Apps deployed through Temps receive these variables at Docker build time and container runtime, but application instrumentation still has to be installed, initialized, filtered, and verified:
| Env var | What it's for | Client-safe? |
|---|---|---|
SENTRY_DSN | Server-side/generic error-tracking DSN | Server by default |
NEXT_PUBLIC_SENTRY_DSN / NUXT_PUBLIC_SENTRY_DSN / VITE_SENTRY_DSN / PUBLIC_SENTRY_DSN / REACT_APP_SENTRY_DSN | Framework-specific public Sentry write key | Yes |
SENTRY_RELEASE | Commit SHA; leave release unset in Sentry.init() so the SDK reads it | Server/build metadata |
OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_PROTOCOL | OTLP destination and http/protobuf protocol | Endpoint is non-secret |
OTEL_EXPORTER_OTLP_HEADERS | Deployment-token authorization for OTLP | No — server only |
OTEL_SERVICE_NAME, OTEL_SERVICE_VERSION | Stable service and release metadata | Non-secret |
Build-time availability does not make a server credential browser-safe. Never expose OTEL_EXPORTER_OTLP_HEADERS, TEMPS_API_TOKEN, dt_, or tk_ through a public-prefixed variable or client bundle. Browser/mobile OTLP must use an authenticated backend or collector; see references/telemetry-hygiene.md.
This auto-injection is scoped to apps deployed through Temps. It does not apply to: an app running elsewhere and only sending telemetry to a self-hosted Temps instance, or to Temps' own console/dashboard (which is built by its own CI, not through this deploy pipeline — self-referential, since Temps doesn't deploy itself as a project on itself). For those cases, get the real credential from the dashboard and wire it through whatever env var / build-arg / secrets mechanism that project's own build system already uses:
https://<public_key>@<temps-host>/<project_id>)dt_...) or API key (tk_...) for OTLP: Project Settings → API KeysNever hardcode a token or endpoint into source, a Dockerfile, or CI config. Do not ask the user for a token so it can be committed. A Sentry DSN public key is designed for client writes, but should still come from the platform's supported configuration path.
Either way, the app-side steps are the same:
| Pillar | What it's for | Reference |
|---|---|---|
| Error tracking | Uncaught exceptions, handled errors, stack traces, source maps | references/error-tracking.md |
| Traces (OTLP) | Distributed request spans, AI/gen_ai call chains, latency breakdowns | references/opentelemetry-traces.md |
| Metrics (OTLP) | Counters/gauges/histograms — request rates, queue depth, custom business metrics | references/metrics.md |
| Logs (OTLP) | Structured log records correlated to traces | references/logs.md |
| Analytics | Page views, custom product events, session replay, Web Vitals | references/analytics.md |
Read the specific reference file(s) for the pillar(s) in play — don't load all five unless doing a full-stack instrumentation pass.
Cross-pillar production rules live in references/telemetry-hygiene.md, not duplicated in every pillar.
trace_id/span_id attributes set, so they join with the trace in the dashboard.Temps OTLP ingestion shares a rate-limit/quota model, but token support differs by signal:
tk_ API key: server-side; needs X-Temps-Project-Id.dt_ deployment token: server-side and project/environment scoped. Prefer the header-based endpoint so Temps resolves attribution from the token. Do not expose it to a browser.si_ integration token: supported for infrastructure metrics ingestion, not general traces/logs.Authorization: Bearer <token> or X-Temps-Api-Key: <token>. Some OTLP exporters URL-encode the header as Bearer%20<token> — Temps accepts that too.TEMPS_OTEL_RATE_LIMIT, TEMPS_OTEL_RATE_LIMIT_WINDOW_SECS — server-side config, not something the app sets).TEMPS_OTEL_QUOTA_GB. If ingestion suddenly starts 413'ing, that's the likely cause.POST /api/otel/v1/{traces|metrics|logs} with attribution resolved from the token. Path-based endpoints exist, but should not be used to override a deployment token's intended deployment attribution..temps.yaml for repository builds or the deployment override for image/static deploys; SIGTERM drains and exits within 10 seconds.duration_ms.dt_, tk_, TEMPS_API_TOKEN, or OTLP authorization header.If a signal never appears, check whether the SDK was actually initialized, then endpoint/protocol, token type/header, rate limit, and quota.
Beyond the runtime health contract and observability guidance above, deployment, service/database provisioning, environment variables, domains, monitoring config, backups, and CI/CD automation are all reached through the Temps CLI (bunx @temps-sdk/cli). Use the temps-cli skill for those operations.
evals/evals.json (opens in a new tab)references/analytics.md (opens in a new tab)references/error-tracking.md (opens in a new tab)references/logs.md (opens in a new tab)references/metrics.md (opens in a new tab)references/opentelemetry-traces.md (opens in a new tab)references/runtime-contract.md (opens in a new tab)references/telemetry-hygiene.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
temps, runtime-contract, health-checks, telemetry, observability, deployment
/temps:temps-best-practicesfrom Temps
npx claudepluginhub gotempsh/temps --plugin temps11 skills in this plugin
/add-custom-domainAdd a custom domain to a Temps project and provision an automatic SSL/TLS certificate via Let's Encrypt, driven entirely from the `@temps-sdk/cli` CLI. Handles subdomains, apex domains, HTTP-01 and DNS-01 challenges, wildcard domains, and domains served through a Cloudflare Tunnel (no certificate, no open ports). Use when the user wants to: (1) Add a custom domain to their Temps app, (2) Set up HTTPS/SSL for a deployment, (3) Point their own domain at a Temps project, (4) Add a wildcard domain, (5) Configure DNS for Temps, (6) Expose an app on a worker behind NAT through a tunnel. Triggers: "add custom domain", "point my domain at temps", "set up ssl", "https for my app", "wildcard domain", "add domain to project", "cloudflare tunnel", "expose app without open ports".
/add-error-trackingAdd Temps error tracking to applications using the Sentry-compatible SDK. Temps exposes a Sentry-compatible DSN that works with the official Sentry SDK for each language/framework — no code changes beyond initialization are required. Use when the user wants to: (1) Add error tracking to any app (React, Next.js, Vue, Svelte, Angular, Node.js, Python, Go, Rust, Ruby, Java, PHP, .NET, React Native, Flutter), (2) Wire up uncaught exception and unhandled promise rejection capture, (3) Configure session replay for errors, (4) Upload source maps for readable stack traces, (5) Report releases and environments, (6) Capture custom errors/messages. Triggers: "add error tracking", "add sentry", "track exceptions", "report errors", "temps error tracking", "wire up error monitoring".
/add-node-sdkIntegrate the Temps Node.js SDKs for server-side platform access, KV storage, and Blob storage. Use when the user wants to: (1) Call the Temps platform API from Node.js (deployments, projects, analytics, session replay, etc.), (2) Use Temps KV (key-value) storage, (3) Use Temps Blob storage for files, (4) Server-side integration with a Temps project, (5) Backend access to Temps resources. Triggers: "temps node sdk", "temps kv", "temps blob", "backend integration", "node.js temps", "@temps-sdk/node-sdk".
/add-react-analyticsAdd Temps analytics to React applications with comprehensive tracking capabilities including page views, custom events, scroll tracking, engagement monitoring, session recording, and Web Vitals performance metrics. Use when the user wants to: (1) Add analytics to a React app (Next.js App Router, Next.js Pages Router, Vite, Create React App, or Remix), (2) Track user events or interactions, (3) Monitor scroll depth or element visibility, (4) Add session recording/replay, (5) Track Web Vitals or performance metrics, (6) Measure user engagement or time on page, (7) Set up product analytics or telemetry. Triggers: "add analytics", "track events", "session recording", "web vitals", "user tracking", "temps analytics", "react analytics".
/add-session-recordingAdd privacy-aware session recording and replay to React applications using the Temps SDK. Captures user interactions for playback while respecting privacy through input masking, element blocking, and GDPR-compliant consent flows. Use when the user wants to: (1) Add session recording to their app, (2) Implement session replay functionality, (3) Record user sessions for debugging, (4) Add privacy-compliant screen recording, (5) Debug user issues with visual replay, (6) Implement rrweb-based recording, (7) Set up GDPR-compliant session capture. Triggers: "session recording", "session replay", "record sessions", "user replay", "screen recording", "rrweb", "session capture".
/deploy-to-tempsDeploy applications to the Temps platform with automatic framework detection, Dockerfile generation, and container orchestration. Supports Next.js, Vite, React, Node.js, Python, Go, Rust, Java, and C# applications. Use when the user wants to: (1) Deploy their app to Temps, (2) Set up CI/CD with Temps, (3) Configure deployment settings, (4) Create a Dockerfile for Temps, (5) Deploy a containerized application, (6) Set up automatic deployments from Git. Triggers: "deploy to temps", "temps deployment", "push to temps", "containerize for temps", "temps ci/cd".
Other plugins' skills for the same job