01
It starts by itself
every morning. Runs in Claude Code routine.
- ↻ every morning
0 7 * * *
Daily summary of new errors.
Install the Logfire Query skill and make it a habit: follow https://gethabit.dev/skills/pydantic/logfire-query.md
2K installs144 starsMIT licenceSource on GitHub ↗

Logfire Query
by pydantic · 2K installs
The skill
Logfire query is a skill for developers who query and analyse Logfire telemetry with SQL: traces, logs, spans and metrics, through the MCP query_run tool or the REST /v1/query API.
Only when you ask.
The habit
Daily summary of new errors.
↻ Runs by itselfevery morning
When does it start? How does it check its work? What does it remember?
Stops after five queries per run.
Treat the run as query analysis, not a Logfire UI view.
Call query_run on the records table for rows where is_exception is true, with a LIMIT.
Count errors per service_name and list top exception_type values.
Query spans with long duration, ordered by duration, with a LIMIT.
Compare with yesterday's digest and write new or growing errors to the log.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the Logfire Query skill helps.
MCP query_run fits interactive analysis; the REST endpoint /v1/query fits code in a project with a read token.
No. UI and link requests go to the logfire-ui skill.
Copy the prompt at the top into your agent. It installs the skill from pydantic/skills and sets up the habit. Or run npx skills add pydantic/skills --skill logfire-query.
Yes. It is published under MIT. Habit is free too.
Install the Logfire Query skill and make it a habit: follow https://gethabit.dev/skills/pydantic/logfire-query.md
All pydantic skills →More ops skills →
Works in
Made by pydantic, published under MIT. Habit links to the original and never changes it. Is this your skill?