Skip to content
Skill

logfire

by ryx2

AI Summary

Logfire is a debugging skill that queries Pydantic Logfire logs, traces, and performance data to help developers diagnose errors, identify slow requests, and analyze backend issues. It's essential for any team using Logfire for observability.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "logfire" skill in my project.

Please run this command in my terminal:
# Install skill into the correct directory
mkdir -p .claude/skills/logfire-skill && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/logfire-skill/SKILL.md "https://raw.githubusercontent.com/ryx2/logfire-skill/master/SKILL.md"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Query Logfire logs and traces for debugging. Use when user mentions logs, traces, errors, exceptions, slow requests, or asks to debug backend issues.

Example Usage

User: /logfire errors → Run: uv run python {SKILL_DIR}/scripts/errors.py User: /logfire trace 019c22c6b9fd5b710ca67ed52055d835 → Run: uv run python {SKILL_DIR}/scripts/query.py --trace 019c22c6b9fd5b710ca67ed52055d835 User: /logfire search "upload" --span → Run: uv run python {SKILL_DIR}/scripts/search.py "upload" --span User: /logfire slow --min-ms 2000 → Run: uv run python {SKILL_DIR}/scripts/slow.py --min-ms 2000

Logfire Log Query Skill

Query Pydantic Logfire for logs, traces, errors, and performance data.

Setup

Requires LOGFIRE_READ_TOKEN environment variable (from .env or exported).

Bundled Scripts

Run scripts from the skill's scripts directory using uv run: | Command | Script | |---------|--------| | /logfire errors | uv run python {SKILL_DIR}/scripts/errors.py | | /logfire slow | uv run python {SKILL_DIR}/scripts/slow.py | | /logfire recent | uv run python {SKILL_DIR}/scripts/recent.py | | /logfire search <term> | uv run python {SKILL_DIR}/scripts/search.py "<term>" | | /logfire trace <id> | uv run python {SKILL_DIR}/scripts/query.py --trace <id> | | /logfire trace <id> --span <span> | uv run python {SKILL_DIR}/scripts/query.py --trace <id> --span <span> | | /logfire query <sql> | uv run python {SKILL_DIR}/scripts/query.py "<sql>" | | /logfire endpoints | uv run python {SKILL_DIR}/scripts/endpoints.py | | /logfire link <trace_id> | uv run python {SKILL_DIR}/scripts/link.py <trace_id> | Replace {SKILL_DIR} with the actual skill directory path shown in the "Base directory" header.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 2mo ago
Active
AdoptionUnder 100 stars
1 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Stars1
Issues0
Updated2mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code