Skip to content

Coding Agent Skills

If you’re adding Logfire observability to your application with a coding agent, you can install the Logfire skill from the pydantic/skills repository to give your agent up-to-date framework knowledge.

Agent skills are packages of instructions and reference material that coding agents load on demand. The Logfire skill provides agents with patterns and guidance for instrumenting Python, JavaScript/TypeScript, and Rust applications, with auto-instrumentation for frameworks like FastAPI, httpx, asyncpg, and more.

Installation

Claude Code

Install the official Logfire plugin from the Anthropic marketplace, which is available by default:

Terminal
claude plugin install logfire@claude-plugins-official

The plugin bundles skills, commands, and an MCP server. Claude will use the relevant skills automatically, or you can invoke a command directly:

/instrument

As an alternative, you can install from the pydantic/skills marketplace, which bundles the Logfire skill alongside other Pydantic-maintained skills:

Terminal
claude plugin marketplace add pydantic/skills
claude plugin install logfire@pydantic-skills

Codex

Install the Pydantic marketplace in Codex:

Terminal
codex plugin marketplace add pydantic/skills --ref main

Then enable plugins from the Pydantic marketplace. Either enable them in the Codex plugin UI, or run:

Terminal
codex plugin add logfire@pydantic-skills
codex plugin add logfire-exporter@pydantic-skills

Two plugins are available:

PluginPurpose
LogfireGives Codex Logfire skills and the hosted Logfire MCP server for instrumentation, querying, and opening UI views.
Logfire ExporterExports completed Codex turns and tool calls to Logfire as OpenTelemetry traces.

These plugins solve different problems and can be installed together. After enabling Logfire Exporter, restart Codex and run /hooks if Codex asks you to review or trust the new hooks.

See also:

OpenCode

OpenCode discovers skills from .agents/skills/, so the cross-agent install below works without extra configuration:

Terminal
npx skills add pydantic/skills

OpenCode reads SKILL.md files from both the project directory and ~/.agents/skills/, walking up from the current directory to the root of your repository. Confirm what it picked up with:

Terminal
opencode debug skill

Pi

Pi implements the Agent Skills standard and loads skills from ~/.agents/skills/ globally and .agents/skills/ in your project, so the cross-agent install works there too:

Terminal
npx skills add pydantic/skills

Each skill is also available as a /skill:<name> command, for example /skill:logfire-instrumentation.

Cross-Agent

Install the Logfire skill using the skills CLI:

Terminal
npx skills add pydantic/skills

The CLI is interactive and lets you pick individual skills (e.g. logfire-instrumentation or logfire-query) rather than installing the whole bundle.

This works with 30+ agents via the agentskills.io standard, including Claude Code, Codex, Cursor, OpenCode, and Pi.

Library Skills

Logfire also ships its skill bundled with the package, so you can install it directly from your project’s dependencies via library-skills.io:

Terminal
uvx library-skills        # Python
npx library-skills        # JavaScript/TypeScript

Add --claude to also install into .claude/skills alongside the default .agents directory.

See also