Query Logfire logs via the Logfire query API using read tokens and JSONL output. Use when you need to fetch or filter Logfire records, build log queries, or provide agent-ready log retrieval from this repo. Triggers: Logfire read, query API, JSONL logs, read token, log retrieval, log queries.
Use this skill to read Logfire records with JSONL output using the repo’s reader utilities.
.env from the repo root:set -a
. ./.env
set +a
python scripts/logfire-fetch.py
Or use the bundled script:
./.codex/skills/logfire-read/scripts/read_logs.sh --message-like "Processing failed" --limit 10
Use the agent helper for targeted queries:
python scripts/logfire-read-agent.py --since 2026-01-11T00:00:00Z --message-like "Processing failed" --limit 10
Use query_logfire() for programmatic access:
from logger import query_logfire
rows = query_logfire(jsonl=True, level=21, message_like="Processing failed", limit=10)
for row in rows:
print(row)
Required:
LOGFIRE_READ_URL (e.g., https://logfire-us.pydantic.dev/v1/query)LOGFIRE_READ_TOKENOptional filters:
LOGFIRE_READ_COLUMNSLOGFIRE_READ_LIMITLOGFIRE_READ_SINCELOGFIRE_READ_LEVELLOGFIRE_READ_MESSAGE_LIKELOGFIRE_READ_TRACE_IDLOGFIRE_READ_SPAN_IDLOGFIRE_READ_JSONL=truelevel is converted to severity strings (trace, debug, info, warn, error, fatal).npx skills add michaeltschreiber/logfire-read下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer