Catalog
pydantic/logfire-setup

pydantic

logfire-setup

Route broad requests to set up Pydantic Logfire across application instrumentation, infrastructure, evals, frontend observability, Gateway, or coding agents. Use for "set up Logfire", "add Logfire to my project", "get me set up properly with Logfire", "send as much data as would be useful", mentions of Logfire without specific scope, or multi-surface requests; use the matching specialist directly for an already scoped request.

NewUpdated Nov 25, 2026

Set Up Logfire

Load the specialist for the requested task. Proceed with reversible setup; pause for browser consent, an ambiguous target, materially more telemetry or cost, deployment changes, or destructive work.

Step 1: Authenticate and Select the Exact Project

For frontend, Gateway, coding agents, query or UI work, load that specialist first. Do not create an SDK write token just to route a request.

Read-only repository inspection does not require login. Before modifying the app or sending telemetry, follow Authenticate and Select the Exact Project. For standalone SDK setup, confirm the target with project current when configured. If the wizard already prepared this project, reuse its target and send-only SDK write token. Never broaden it. Mint a separate credential only if a later task needs one.

Step 2: Understand the Repo

Read the repository instructions and identify the runtime and package manager.

Surface Covers Skill
App instrumentation Traces, logs, metrics, and AI/agent spans from application code — Python, JavaScript/TypeScript, Rust, or any OpenTelemetry language logfire-instrumentation
Frontend observability Browser errors, RUM, Web Vitals, and session replays logfire-frontend
Infrastructure monitoring Hosts, Docker, Kubernetes, database/queue/cache servers, cloud-provider metrics — no application code logfire-infrastructure
Evals Set up and run AI/agent evaluations against test-case datasets in Python or Node.js logfire-evals
Querying telemetry Search traces/logs/spans/metrics, summarize errors, find root cause logfire-query
Live UI Open project pages, the live view, trace links, or the Explore page in a browser logfire-ui
Feature flags Runtime-managed variables (logfire.var(), logfire.template_var()) no dedicated skill yet — see the product's own docs
Application Gateway Route an application's model calls through Pydantic AI Gateway logfire-gateway
Coding agents Record Claude/Codex sessions or configure coding-agent Gateway routing logfire-coding-agents
  • With no specific scope, get one representative application service to verified first data. Incidental Docker/eval files do not expand the task. Route infrastructure-only repositories to logfire-infrastructure.
  • If "monitor Postgres" could mean server metrics or application queries, ask which.

Step 3: Fetch the Right Skill(s)

Load the selected specialist, not the entire catalog. In a CLI wizard handoff, use that executable to read the release-matched instructions offline: for example, logfire-cli skill prompt logfire-instrumentation --no-input --output json returns data.prompt, and skill read returns the selected reference in data.contents. Otherwise open the linked specialist or its installed copy. A query or link request does not require an SDK write token.

Never print, log, or commit credentials. See the credential handoff instructions if a later step needs a separate credential. After verification, share the clean project link and report what you actually observed. With the CLI, use mcp link project --project <confirmed-project> with --no-input --output json and without --open; return data.url. Prefer the verified trace or experiment link when available. If link creation fails, say so; never invent a URL or treat creating one as proof of ingestion. Do not rerun project current after a parent-prepared handoff.

Files1
1 files · 1.1 KB

Select a file to preview

Overall Score

82/100

Grade

B

Good

Grades are signals, not a certification. Always review a skill yourself before use.

Safety

88

Quality

84

Clarity

85

Completeness

76

Summary

This is a router/dispatcher skill that triages broad Logfire setup requests to specialized downstream skills. It educates users on the breadth of Logfire capabilities (app instrumentation, frontend observability, infrastructure monitoring, evals, querying, UI, Gateway, coding agents) and directs them to the appropriate specialist skill based on their intent. The skill emphasizes safe defaults: read-only repository inspection without login, credential minimization, reversibility, and browser consent for telemetry.

Detected Capabilities

read repositoryauthenticate to Pydantic platformroute to downstream skillsverify project contextcredential minting (send-only tokens)browser-based verification

Trigger Keywords

Phrases that agents use to match this skill to user intent.

set up logfireadd logfire instrumentationlogfire observabilitylogfire authenticationinstrument for observabilitymonitoring setupchoose logfire surface

Referenced Domains

External domains referenced in skill content, detected by static analysis.

pydantic.dev

Use Cases

  • Route ambiguous Logfire setup requests to the right specialist
  • Help users understand which Logfire surface (instrumentation, frontend, infrastructure, evals, Gateway, coding agents) matches their need
  • Educate on Logfire observability scope and guardrails
  • Delegate scoped Logfire tasks to downstream specialists
  • Authenticate safely and mint minimal credentials for setup
  • Verify project context before instrumentation or telemetry changes

Quality Notes

  • Clear gatekeeping logic: emphasizes read-only inspection first, then conditional authentication
  • Well-scoped table of surfaces and corresponding skills — users understand the taxonomy and when each applies
  • Strong emphasis on credential safety: 'Never broaden it. Mint a separate credential only if a later task needs one.'
  • Explicit pausing points documented: 'pause for browser consent, an ambiguous target, materially more telemetry or cost, deployment changes, or destructive work'
  • References external auth guide (pydantic.dev/.well-known/.../auth.md) for detailed credential handling — appropriate delegation
  • CLI workflow documented with specific commands and output fields (e.g., `logfire-cli skill prompt ... --output json` returns `data.prompt`)
  • Security-conscious: 'Never print, log, or commit credentials' and credential handoff instructions
  • All downstream specialists are clearly named and linked — no guesswork for routing
  • Ambiguity resolution guidance: 'If "monitor Postgres" could mean server metrics or application queries, ask which'
  • Incidental scope clarification: 'Incidental Docker/eval files do not expand the task' — prevents scope creep
Model: claude-haiku-4-5-20251001Analyzed: Nov 25, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Version History

  1. v2.1

    Content updated

    ✦ AISimplifies setup routing and authentication flow; rewrites credential handling and CLI output instructions.

    2026-11-25

    LATEST
  2. v2.0

    Contract changed: description

    ✦ AIAdds frontend observability, Application Gateway, and coding-agent routing; simplifies activation scope and auth workflow.

    triggering2026-10-17

    View This Version
  3. v1.0

    2026-10-13

    View This VersionInitial version

Use pydantic/logfire-setup in your dev environment

Command Palette

Search for a command to run...