mcp-gateway: Skill for Claude Code

.claude/skills/otel-instrument/SKILL.md

OpenTelemetry Instrumentation Extension is a skill for Claude Code from docker/mcp-gateway. It costs 102 tokens per session (2,658 once invoked), scanned A, original, MIT.

A guide for adding OpenTelemetry monitoring to an MCP Gateway. OpenTelemetry is a standard way to collect information about application activity, such as metrics and traces.

In plain words
What is it for?
Use it when adding or reviewing gateway operations, CLI commands, packages, database or file changes, containers, configuration changes, metrics, or tracing.
Why use it?
It helps keep new operations and state-changing code observable, so developers can investigate behavior and failures. It also checks whether existing telemetry patterns are being followed.

Skill for Claude Code ✓ vendor

Written for Claude Code: installed under .claude/.

This is docker/mcp-gateway's own configuration. It tells Claude Code how to work on mcp-gateway itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-gateway configures →

About the project

Docker MCP Gateway is a Docker CLI plugin that runs and manages Model Context Protocol (MCP) servers, which connect AI applications to external tools, services, databases, and APIs. Developers use it to give multiple AI clients a shared, controlled way to access MCP servers, including isolated containers and authentication flows. The catalogue add-ons support operating and configuring this gateway.

docker/mcp-gateway · 1,557 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to docker/mcp-gateway. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/docker/mcp-gateway/main/.claude/skills/otel-instrument/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/docker/mcp-gateway

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for OpenTelemetry Instrumentation Extension

README.md
[![agentmods](https://agentmods.dev/badge/skills/docker/mcp-gateway/otel-instrument.svg)](https://agentmods.dev/skills/docker/mcp-gateway/otel-instrument)
Your own site
<a href="https://agentmods.dev/skills/docker/mcp-gateway/otel-instrument"><img src="https://agentmods.dev/badge/skills/docker/mcp-gateway/otel-instrument.svg" alt="Measured on agentmods" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,658 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 253
    Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
    Fix: Pin the image: image:tag or image@sha256:abc123
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00102 $0.02658
Opus 5 $0.00051 $0.01329
Sonnet 5 $0.00020 $0.00532
Haiku 4.5 $0.00010 $0.00266

Measured 8d ago against content hash ed553455382e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

OpenTelemetry Instrumentation Extension scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/otel-instrument/SKILL.md · 318 lines

How it starts

The opening of the file, as written. The whole thing — 318 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenTelemetry Instrumentation Extension

Automatically extend OpenTelemetry instrumentation for new functionality in the MCP Gateway, following established patterns documented in docs/telemetry/README.md.

When to Use This Skill

Automatically apply when:

  • New state-changing operations added (Create, Update, Delete, Push, Pull, Add, Remove, etc.)
  • New CLI commands added to cmd/docker-mcp/
  • New packages with operations in pkg/
  • User mentions "otel", "telemetry", "instrumentation", "metrics", or "tracing"
  • Code changes that modify state (database, files, containers, configuration)
  • Reviewing code for telemetry coverage

Workflow

Phase 1: Analysis & Suggestion

  1. Read project telemetry standards:

    • Read docs/telemetry/README.md "Development Guidelines" section
    • Read pkg/telemetry/telemetry.go to understand existing patterns and metrics
  2. Identify scope using git diff:

    • Find new/changed files in pkg/ and cmd/docker-mcp/
    • Identify functions performing state-changing operations
    • Infer domain from package structure (e.g., pkg/foo/ → domain: foo)
  3. Categorize findings:

    • Operations in existing domains (use existing metrics)
    • Operations in new domains (need new metrics)
  4. Present suggestions to user:

    • List each function needing instrumentation with file:line reference
    • Specify operation type (create, update, delete, etc.)
    • Identify domain and whether metrics exist
    • Show what will be added (instrumentation code, metrics, docs, tests)

Phase 2: Implementation (After User Approval)

Execute in this order:

  1. Make changes: Instrument operations and add metrics to pkg/telemetry/telemetry.go
  2. Verify: Build, run with OTEL collector, check docker logs otel-debug output
  3. Write tests: Add tests to pkg/telemetry/telemetry_test.go
  4. Update docs: Add metrics/operations to docs/telemetry/README.md
  5. Run tests: Execute make test
  6. Final verification: Run ./docs/telemetry/testing/test-telemetry.sh

Read the full file on GitHub · 318 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 318 lines · 102 tokens per session scan A ed553455382e

Subscribe to this mod's changes

OpenTelemetry Instrumentation Extension is a skill published in the GitHub repository docker/mcp-gateway (1,557 stars, last pushed 12d ago), licensed MIT. It adds 102 tokens to every session and 2,658 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens