dd-instrument-llmo
БесплатноБез исполняемых скриптовНе проверенInstrument the current project with Datadog LLM Observability for Python or Node.js/Next.js backends that call LLMs or run AI agents. Detects the runtime and…
от datadog-labs★ 188 звёзд на GitHubОб этом скилле
Datadog LLM Observability Instrumentation
This skill assesses the current project (backend runtime, LLM/agent framework, existing instrumentation) and routes you to the right reference file under references/ for the actual setup steps. It is fully self-contained — it does not call any Datadog MCP server. Credential provisioning uses the local CreateApiKey tool, and all code changes are made by you, directly, using your own file-editing tools.
Stay within LLM Observability scope. Do not add RUM, APM application instrumentation, or unrelated Datadog products. RUM and a Datadog Agent are relevant only because they change what session/trace linking is achievable (see the "Beyond SDK init" section in the reference files).
Do NOT invent tool names. Use only CreateApiKey as described in references/common-credentials.md; every other step is done with your normal file-editing/search tools.
Do NOT write anything to memory during or after this skill. Project paths, frameworks, credentials, and ML app names are project-specific and must not be stored in persistent memory.
Ground rules while instrumenting
- Verify before you assert. If you're not sure about file content or codebase structure, read the files — do not guess.
- Check for existing instrumentation first. Before touching the backend, check whether
ddtrace/dd-traceis already initialized with LLM Observability enabled. If it is, do not add a second, competinginit/enablecall. This only means skip re-init — it does not mean skip the work. SDK presence is not the same as a well-formed trace or a session ID that actually flows; run the session-ID plumbing audit in Phase 1d and close any gap it finds, even when the SDK is already present. - Only use packages/features you've explicitly been told to add. Don't decide on your own to enable an additional Datadog product or SDK feature beyond what this skill specifies.
- Persist added dependencies into the deploy's manifest. Any Datadog package you add (
ddtrace,dd-trace) must be written into the dependency manifest the build/deploy installs from — the one identified in Phase 1e — not just installed into the local environment. A clean deploy install reads only the manifest and will crash with a missing-module error (e.g.ModuleNotFoundError: No module named 'ddtrace') if the package isn't declared there. - Don't make stylistic changes to code you're not otherwise touching.
- No package aliases when importing Datadog packages.
- Copy Datadog SDK package names, import paths, and init keyword arguments verbatim from the applicable reference section — do not paraphrase them from memory. The Python LLM Observability import is exactly
from ddtrace.llmobs import LLMObs— the module isddtrace.llmobs, notddtrace.llm_observability(that module does not exist and produces a deploy-timeModuleNotFoundError). The Node package isdd-trace, initialized with the form that matches the project: CommonJSrequire('dd-trace').init(...), an ESMimport-based form for"type": "module"/.mjsprojects, or Next.js'sdd-trace/initialize.mjsininstrumentation.ts— all shown inreferences/llmobs-nodejs.md; never forcerequire(...)into an ESM project. Use the exactLLMObs.enable(...)/.init({...})keyword arguments shown; do not add, drop, or rename kwargs based on general Datadog knowledge. - Use a real edit tool for existing files (
Edit/Write, notsed -i,awk, or scripted find/replace via Bash). If an edit-by-text-match fails, re-read the file first rather than retrying the identical edit. - Checklist discipline. Before starting the instrumentation steps, post a short checklist of the steps you're about to take. Check items off as you go, and review the checklist at the end of the run.
- After any code change, check
package.jsonfor alint:fix,fix, orformatscript (oreslint --fix/prettier --writeconfig) and run it automatically — no need to ask permission. - Verify the app still builds/runs before declaring success (see
references/common-verify-report.md). - LLM Observability session IDs propagate from the root span only. Never pass a session ID to a child span/decorator — see the "Adding spans" section in
references/llmobs-python.md/references/llmobs-nodejs.md. - Don't promise what the environment doesn't support. If no RUM SDK is detected, don't claim RUM session linking; if no dd-agent is detected, don't claim navigable APM trace linking. State the gap and the upgrade path instead (see the "Beyond SDK init" section in the reference files).
Phase 1: Analysis
Inspect the relevant application directory before asking questions or editing files.
1a. Detecting the backend LLM/agent runtime
- Python signals:
requirements.txt,pyproject.toml,Pipfile, or*.pyfiles → runtimepython - Node.js signals: a backend entry point (
server.js,index.js, an Ex
Установить dd-instrument-llmo в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл dd-instrument-llmo?
Instrument the current project with Datadog LLM Observability for Python or Node.js/Next.js backends that call LLMs or run AI agents. Detects the runtime and LLM framework, provisions credentials, adds SDK init (ddtrace/dd-trace) with the correct kwargs, persists the dependency into the deploy manifest, and audits session-ID plumbing for gaps — fixing them when found. Use when the user says "instrument this project with LLM Observability", "add LLM Observability", "monitor my AI app in Datadog", "add LLM spans", "add agent session tracking", or "verify/repair my LLM Observability setup".
Как установить скилл dd-instrument-llmo?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dd-instrument-llmo запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic