Логотип Dd Instrument Rum

Dd Instrument Rum

Організація
datadog-labs
dd-instrument-rum

Інструментуйте вебзастосунки в браузері за допомогою Datadog Browser RUM. Визначте фреймворк застосунку, маршрутизатор, менеджер пакетів, збирач, точку входу, облікові дані та наявне налаштування RUM; додайте або безпечно завершіть класичне інструментування Browser RUM для React, Next.js App Router або Pages Router, Angular, Vue, Nuxt, Svelte, vanilla JavaScript, SPA та застосунків, вбудованих в iframe; уникайте повторної ініціалізації та перевірте, чи застосунок і далі збирається. Використовуйте, коли вас просять додати, налаштувати, інструментувати, відновити або перевірити Datadog RUM, Browser Monitoring, Session Replay чи плагіни Browser RUM для певного фреймворку.

Огляд

Видавецьdatadog-labs
Репозиторійagent-skills
Назва навичкиdd-instrument-rum
Зірки
172
Форки
28
Файли в пакеті
9
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 9

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: datadog-labs. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Dd Instrument Rum у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/datadog-labs/agent-skills/tree/main/dd-instrument-rum
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/datadog-labs/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/dd-instrument-rum .claude/skills/dd-instrument-rum
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Dd Instrument Rum в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Dd Instrument Rum, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Dd Instrument Rum не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Datadog Browser RUM instrumentation

Instrument only the browser application in scope. Do not add Datadog APM, tracing, LLM Observability, Logs, source-map upload, user identification, Vercel metadata, Shopify, Salesforce, or unrelated Datadog products.

Use normal file inspection, editing, and command tools for every step except optional RUM application creation. Use only CreateRumApplication for that operation, as described in references/common-credentials.md; never invent Datadog tool names.

Ground rules

  • Inspect before editing. Base every framework, version, entrypoint, command, and configuration decision on project files.
  • Copy package names, import paths, exported symbols, and init option keys exactly from the applicable references. Do not substitute package aliases or recreate SDK APIs from memory.
  • Post a short checklist before making changes and update it as work completes.
  • Initialize RUM exactly once and as early as safely possible in the browser lifecycle. Never put init() in a component render, lifecycle hook, route handler, or repeated callback.
  • Preserve an existing valid init configuration. Add missing compatible framework plugin wiring to that init in place; never create a competing init.
  • Existing-init credential guardrail: when one valid RUM init already exists, treat its applicationId, clientToken, site, service tags, sampling, privacy, tracking, and every other existing option as immutable. Credentials supplied by the task are for a new init only; they are not an override for an existing valid init. In this branch, do not rewrite credential lines while adding plugin wiring.
  • Stop without editing when required credentials cannot be resolved, site is invalid, framework/plugin prerequisites are unmet, permissions prevent the work, or multiple conflicting init calls cannot be safely consolidated.
  • Install only packages required for Browser RUM. Keep @datadog/browser-rum and every @datadog/browser-rum-* integration package on the same exact SDK version.
  • Persist dependencies in the manifest and lockfile used by the real build. Do not rely on packages that happen to exist in node_modules.
  • Preserve application behavior, existing custom error handling, formatting conventions, and unrelated code.
  • Apply edits with the available file-editing tool. If an expected text match fails, re-read the file and adapt to its current contents instead of retrying the same edit.
  • Do not write project paths, framework details, credentials, client tokens, or RUM application IDs to persistent memory.
  • Run a terminating build before reporting success. Never claim telemetry was received unless it was actually observed.

Phase 1: analyze the target

Locate the browser application

Identify the project root that produces browser code. In a monorepo, inspect workspace configuration, scripts, Dockerfiles, and CI/deployment configuration to find the frontend manifest used by the real build rather than editing the repository root by assumption. Record that manifest path and its package manager before editing. If several independent browser applications are plausible and the user did not select one, ask which application to instrument.

Reject non-browser applications such as Ink CLIs and projects with no HTML/browser build target.

Detect the framework and runtime shape

Inspect dependencies and source layout in this order so meta-frameworks win over their underlying UI library:

  1. nuxt -> Nuxt
  2. next -> Next.js; distinguish App Router from Pages Router by source layout
  3. @angular/core -> Angular; distinguish standalone bootstrap from NgModule
  4. vue -> Vue
  5. svelte or @sveltejs/kit -> Svelte or SvelteKit
  6. react -> React
  7. Browser entrypoint without the above -> generic/vanilla browser application

Also detect:

  • Exact framework, React Router, TanStack Router, Vue Router, and Node versions.
  • TypeScript when a tsconfig.json or TypeScript dependency is present; otherwise preserve JavaScript.
  • Package manager from the deployed manifest's packageManager field first, then its adjacent lockfile: bun.lock or bun.lockb, pnpm-lock.yaml, yarn.lock, or package-lock.json. Use npm only when no stronger project signal exists, and never mix managers.
  • Bundler from configuration and dependencies: Vite, Webpack, Rollup, esbuild, Rspack, or Create React App (react-scripts). Treat unmanaged HTML as CDN only when no package/bundler build owns it.
  • Browser entrypoint from build configuration, HTML script targets, framework conventions, and the import graph rather than filename alone.
  • The normal terminating build/typecheck command.
  • Existing public environment-variable conventions.

Read references/rum-core.md, then read exactly the applicable framework reference:

TargetReference
React, React Router, TanStack Routerreferences/rum-react.md
Next.js App or Pages Routerreferences/rum-nextjs.md
Angularreferences/rum-angular.md
Vuereferences/rum-vue.md
Nuxtreferences/rum-nuxt.md
Svelte, vanilla, generic SPA, iframe-hosted appreferences/rum-other-frameworks.md

Validate every prerequisite in the selected reference before provisioning credentials or editing. Do not upgrade a framework and do not silently fall back to core-only RUM when a detected framework plugin is incompatible.

Detect existing RUM instrumentation

Search source, HTML, and configuration files while excluding dependency, build, generated, and coverage directories such as node_modules, dist, build, .next, .nuxt, and coverage.

Check for:

  • Imports or requires from @datadog/browser-rum, including renamed and namespace bindings.
  • Imports from any @datadog/browser-rum-* integration package.
  • Calls bound to the imported datadogRum.init, including aliases and local wrapper modules.
  • DD_RUM.init, window.DD_RUM.init, DD_RUM.onReady, and Datadog CDN loader URLs.
  • Existing plugin registrations, router wrappers/providers/components, and framework error hooks.

Treat package presence alone as insufficient: a dependency may be unused.

  • No init: add one using the selected reference.
  • One valid init: keep its location and all existing values. Do not resolve or apply replacement credentials. Add only missing compatible plugin/router/error wiring to it.
  • One init with missing or invalid required credentials/site: stop and report the invalid configuration; do not layer another init over it.
  • Multiple init calls or mixed npm/CDN setups: stop and report every location unless they can be proven to be one mutually exclusive setup. Do not guess which setup should win.
  • Complete setup: make no changes; still run the applicable verification.

Phase 2: instrument

Resolve credentials through references/common-credentials.md only after analysis succeeds. If analysis found one valid existing init, reuse its existing credentials and skip credential replacement entirely. Supplied task credentials may be used only when creating a new init. Then:

  1. Install the core SDK and compatible framework package(s) with the detected package manager, using the deployed frontend manifest. For an existing valid init, install only a missing integration package; never replace already-valid RUM packages or configuration.
  2. Apply the canonical configuration and install method from references/rum-core.md. For an existing valid init, apply only missing compatible fields to that same object; do not copy credential or canonical-option placeholders over existing values.
  3. Apply the selected framework reference, including router tracking and safe framework error integration when those surfaces exist.
  4. Update the lockfile with the same package manager. Never hand-edit a generated lockfile.
  5. Detect configured formatting from manifest scripts such as lint:fix, fix, or format and from ESLint/Prettier configuration. Run the project's formatter or fix command only for files changed by this work.

Do not add allowedTracingUrls or any backend/CORS/tracing configuration; those belong to an APM onboarding workflow.

Phase 3: verify and report

Follow references/common-verify-report.md. Before reporting success, inspect the final diff against the pre-edit project. When an existing valid init was found, verify that every pre-existing init value—including both credentials—remains byte-for-byte unchanged and that the only setup changes are the required missing integration wiring (plus any strictly necessary dependency/lockfile change). If an existing value changed, restore it before reporting success. Do not report success unless required packages are persisted, the resulting setup contains exactly one init, and the normal build succeeds.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Dd Instrument Rum?

Інструментуйте вебзастосунки в браузері за допомогою Datadog Browser RUM. Визначте фреймворк застосунку, маршрутизатор, менеджер пакетів, збирач, точку входу, облікові дані та наявне налаштування RUM; додайте або безпечно завершіть класичне інструментування Browser RUM для React, Next.js App Router або Pages Router, Angular, Vue, Nuxt, Svelte, vanilla JavaScript, SPA та застосунків, вбудованих в iframe; уникайте повторної ініціалізації та перевірте, чи застосунок і далі збирається. Використовуйте, коли вас просять додати, налаштувати, інструментувати, відновити або перевірити Datadog RUM, B...

Навіщо використовувати Dd Instrument Rum у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Dd Instrument Rum — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Dd Instrument Rum у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/datadog-labs/agent-skills/tree/main/dd-instrument-rum. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Dd Instrument Rum?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Dd Instrument Rum?

Зі скількома забажаєте. У TypingMind ви можете використовувати Dd Instrument Rum із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Dd Instrument Rum?

Так. На GitHub цю навичку публікує datadog-labs за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇