Skip to content

Add /query command and skill for querying Logfire data#2

Open
hramezani wants to merge 1 commit intomainfrom
add-query-skill
Open

Add /query command and skill for querying Logfire data#2
hramezani wants to merge 1 commit intomainfrom
add-query-skill

Conversation

@hramezani
Copy link
Copy Markdown
Member

Summary

  • Adds /query slash command for interactive and programmatic Logfire data querying
  • Adds query skill (SKILL.md) with schema reference, SQL patterns, MCP and REST API approaches
  • Adds full schema reference for records and metrics tables with all columns and types
  • Adds client usage reference with examples for Python sync/async clients, DB API 2.0, pandas, and direct REST API (curl, httpx, fetch)
  • Mirrors all skill files to skills/logfire-query/ for standalone use
  • Updates check-skill-sync.sh with the 3 new file pairs

New files

File Purpose
plugins/logfire/commands/query.md /query command workflow
plugins/logfire/skills/query/SKILL.md Query skill with schema + SQL patterns
plugins/logfire/skills/query/references/schema.md Full records + metrics table schema
plugins/logfire/skills/query/references/client-usage.md Python clients, DB API, REST examples
skills/logfire-query/ Standalone mirrors of the above 3

Test plan

  • Run bash scripts/check-skill-sync.sh — all pairs in sync
  • claude --plugin-dir ./plugins/logfire then /query loads correctly
  • Verify skill triggers on "query logfire", "search traces", "find logs"

🤖 Generated with Claude Code

Adds a general-purpose query skill covering both interactive MCP querying
and programmatic REST API/Python client usage, with full schema reference
for the records and metrics tables.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Kludex
Copy link
Copy Markdown
Member

Kludex commented Apr 4, 2026

@hramezani Do you still want to merge this?

@hramezani
Copy link
Copy Markdown
Member Author

Not sure, I created the pr when you asked for it in slack.
We can close it if you think this is not useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants