OpenTelemetry skills and reference documentation for AI coding assistants - instrumentation patterns, telemetry quality guides, and Dash0 integration
npx skills add https://github.com/dash0hq/agent-skills --skill otel-collectorقم بتثبيت هذه المهارة باستخدام واجهة سطر الأوامر (CLI) وابدأ في استخدام سير عمل SKILL.md في مساحة عملك.
A collection of skills for AI coding agents to make applications observable with OpenTelemetry and Dash0.
Skills are packaged instructions and scripts that extend agent capabilities, following the Agent Skills format.
Install with skills CLI (universal, works with any Agent Skills-compatible tool):
npx skills add https://github.com/dash0hq/agent-skills --all
# or a single skill:
npx skills add https://github.com/dash0hq/agent-skills --skill otel-semantic-conventions
/plugin marketplace add dash0hq/agent-skills
/plugin install dash0-agent-skills@dash0hq
gemini extensions install https://github.com/dash0hq/agent-skills
Update with gemini extensions update dash0-agent-skills.
Copy skills into the cross-client discovery directory:
git clone https://github.com/dash0hq/agent-skills.git ~/.cursor/skills/dash0-agent-skills
Cursor auto-discovers skills from .agents/skills/ and .cursor/skills/.
Copy skills into the cross-client discovery directory:
/plugin install https://github.com/dash0hq/agent-skills
# or
git clone https://github.com/dash0hq/agent-skills.git ~/.copilot/skills/dash0-agent-skills
Copilot auto-discovers skills from .copilot/skills/.
Copy skills into the cross-client discovery directory:
git clone https://github.com/dash0hq/agent-skills.git ~/.agents/skills/dash0-agent-skills
OpenCode auto-discovers skills from .agents/skills/, .opencode/skills/, and .claude/skills/.
Clone into the cross-client discovery path:
git clone https://github.com/dash0hq/agent-skills.git ~/.agents/skills/dash0-agent-skills
Codex auto-discovers skills from ~/.agents/skills/ and .agents/skills/. Update with git -C ~/.agents/skills/dash0-agent-skills pull.
Clone and symlink into the cross-client discovery path:
git clone https://github.com/dash0hq/agent-skills.git ~/.antigravity/skills/dash0-agent-skills
Update with git -C ~/.antigravity/skills/dash0-agent-skills pull.
Copy skills into the cross-client discovery directory:
git clone https://github.com/dash0hq/agent-skills.git ~/.openclaw/skills/dash0-agent-skills
# or in workspace:
git clone https://github.com/dash0hq/agent-skills.git ~/.openclaw/workspace/skills/dash0-agent-skills
Skills are automatically available once installed. The agent will use them when relevant tasks are detected.
Examples:
Add OpenTelemetry instrumentation to my app
My traces are broken — spans show up as separate roots instead of a connected trace
Set up an OpenTelemetry Collector pipeline that forwards to Dash0
Write an OTTL expression to redact credit card numbers from log bodies
Ensure that my HTTP server spans have the correct attributes
Help me fix high-cardinality metrics that are blowing up my costs
OpenTelemetry Semantic Conventions define standardized names, types, and semantics for telemetry attributes, metric names, span names, and status codes.
Following them is the single highest-leverage thing you can do for observability quality.
When instrumentation follows semantic conventions:
When conventions are missing or inconsistent, these capabilities degrade silently — no errors, just incomplete data, broken topology views, and fragmented queries.
Some of the guidance in these skills is aligned with the Instrumentation Score specification — a vendor-neutral corpus of guidance that quantifies how well a service follows OpenTelemetry best practices.
The spec defines impact-weighted rules across resources, spans, metrics, and logs.
Following the guidance in these skills helps your services score higher, which directly translates to better observability outcomes.
Expert guidance for implementing high-quality, cost-efficient OpenTelemetry telemetry.
Covers backend and browser instrumentation across multiple languages.
Use when:
Rules covered:
Platforms:
Expert guidance for selecting, applying, and reviewing OpenTelemetry semantic conventions — the standardized names, types, and semantics for telemetry attributes, span names, and status codes.
Use when:
Rules covered:
Expert guidance for configuring and deploying the OpenTelemetry Collector to receive, process, and export telemetry.
Covers pipeline configuration, deployment patterns, and forwarding to Dash0.
Use when:
Rules covered:
Expert guidance for writing and debugging OpenTelemetry Transformation Language (OTTL) expressions for the OpenTelemetry Collector's transform and filter processors.
Use when:
Capabilities:
Contexts: resource, scope, span, spanevent, metric, datapoint, log
You can configure Claude Code to apply these skills automatically — both in interactive sessions and in headless CI/CD pipelines.
Add a CLAUDE.md file to your repository root with instructions that tell Claude Code when to use the skills.
Claude Code loads this file at the start of every session.
# Observability
This project uses OpenTelemetry for observability.
When adding or modifying instrumentation, follow the guidance from the installed `dash0hq/agent-skills` skills.
When working on application code or deployment specs, use the `otel-instrumentation` skill.
When working on Collector configuration, use the `otel-collector` skill.
When choosing or reviewing telemetry attributes, use the `otel-semantic-conventions` skill.
When writing or debugging OTTL expressions, use the `otel-ottl` skill.
Use claude -p to run Claude Code non-interactively in a pipeline.
This enables automated instrumentation reviews, skill-guided code generation, and PR checks.
# Review instrumentation quality on a pull request
claude -p "Review the OpenTelemetry instrumentation changes in this PR. \
Check for missing context propagation, incorrect span status handling, \
and semantic convention violations." \
--allowedTools "Read,Grep,Glob"
name: Instrumentation review
on: [pull_request]
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install skills
run: npx skills add dash0hq/agent-skills
- name: Review instrumentation
run: |
claude -p "Review the OpenTelemetry instrumentation in this PR \
for correctness and semantic convention compliance. \
Post your findings as a summary." \
--allowedTools "Read,Grep,Glob" \
--output-format json > review.json
- name: Comment on PR
run: |
findings=$(jq -r '.result' review.json)
gh pr comment "$PR_NUMBER" --body "## Instrumentation review"$'\n\n'"$findings"
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
Each skill contains:
SKILL.md - Instructions for the agentrules/ - Focused guidance documentsREADME.md - Human-readable documentation