Agent skill

Dd Instrument Rum

by datadog-labs in datadog-labs/agent-skills

Instrument browser-based web applications with Datadog Browser RUM.

MITAuto-check passedDevOps & Cloud

Install Dd Instrument Rum

skills CLI
$ npx skills add datadog-labs/agent-skills --skill dd-instrument-rum -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install datadog-labs/agent-skills dd-instrument-rum --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/datadog-labs/agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/dd-instrument-rum .claude/skills/dd-instrument-rum && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dd-instrument-rum
GitHub stars
177
Token cost
~2.4k tokens
SKILL.md length
1,165 words
Files
10 (incl. references)
Skills in repo
39
Repo updated
First seen
Licence
MIT

At a glance

Instrument browser-based web applications with Datadog Browser RUM.

  • Works in 3 steps: analyze the target → instrument → verify and report
  • Verify Datadog RUM
  • SKILL.md covers Ground rules, Phase 1: analyze the target, Phase 2: instrument and Phase 3: verify and report
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Dd Instrument Rum is an agent skill from datadog-labs/agent-skills. Instrument browser-based web applications with Datadog Browser RUM. Detect the application framework, router, package manager, bundler, entrypoint, credentials, and existing RUM setup; add or safely complete classic Browser RUM instrumentation for React, Next.js App or Pages Router, Angular, Vue, Nuxt, Svelte, vanilla JavaScript, SPAs, and iframe-hosted apps; avoid duplicate initialization; and verify the application still builds. Use when asked to add, set up, instrument, repair, or verify Datadog RUM, Browser…

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including reference files (for example `references/common-credentials.md`, `references/common-verify-report.md` and `references/rum-angular.md`).

It sits in DevOps & Cloud. It works with Datadog, Angular, Next.js and Nuxt. The repository describes itself as: Public repository for Datadog Agent Skills. The licence is MIT.

When your agent uses it

  • Verify Datadog RUM
  • Browser Monitoring
  • Framework-specific Browser RUM plugins

Example prompts

  • “/dd-instrument-rum”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. analyze the target
  2. instrument
  3. verify and report

What it can do on your machine

Read from SKILL.md and the folder at commit d2411cc. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dd Instrument Rum loads about 2.4k tokens when it runs, and up to ~8.8k if it reads all its reference files. Until then it costs about 151 tokens; SKILL.md has 1,165 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~151
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from datadog-labs/agent-skills at commit d2411cc, republished under its MIT licence (© datadog-labs). 1,165 words, ~2,422 tokens.

Download SKILL.mdSave it as .claude/skills/dd-instrument-rum/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.
name
dd-instrument-rum
description
Instrument browser-based web applications with Datadog Browser RUM. Detect the application framework, router, package manager, bundler, entrypoint, credentials, and existing RUM setup; add or safely complete classic Browser RUM instrumentation for React, Next.js App or Pages Router, Angular, Vue, Nuxt, Svelte, vanilla JavaScript, SPAs, and iframe-hosted apps; avoid duplicate initialization; and verify the application still builds. Use when asked to add, set up, instrument, repair, or verify Datadog RUM, Browser Monitoring, Session Replay, or framework-specific Browser RUM plugins.
metadata.version
0.1.0
metadata.author
datadog-labs
metadata.repository
https://github.com/datadog-labs/agent-skills
metadata.tags
datadog,rum,browser-rum,instrumentation,session-replay,react,nextjs,angular,vue,nuxt,svelte
metadata.alwaysApply
false

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.

Show full SKILL.md (452 more words)Show less
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.

© datadog-labs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 9 other files (references) in dd-instrument-rum of datadog-labs/agent-skills.

  • SKILL.md
  • references/common-credentials.md
  • references/common-verify-report.md
  • references/rum-angular.md
  • references/rum-core.md
  • references/rum-nextjs.md
  • references/rum-nuxt.md
  • references/rum-other-frameworks.md
  • references/rum-react.md
  • references/rum-vue.md

Open the folder on GitHubat commit d2411cc

Compare with similar skills

Dd Instrument Rum next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dd Instrument Rum compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dd Instrument Rum this skilldatadog-labs/agent-skills177—~2.4kAutomated safety check: PassMIT
Markstream Installsickn33/agentic-awesome-skills47k1 repos~2kAutomated safety check: PassMIT
Solar Iconssaoudi-h/solar-icons190—~2.1kAutomated safety check: PassMIT
A11y Auditalirezarezvani/claude-skills28k—~2.4kAutomated safety check: PassMIT
Markstream Installgithub/awesome-copilot40k—~1.5kAutomated safety check: PassMIT
A11y Auditricneves-ai/flowgrammers-skills115—~2.7kAutomated safety check: PassMIT

Similar skills

  • Markstream Install

    sickn33/agentic-awesome-skills

    Install and configure Markstream streaming Markdown renderers for Vue, React, Svelte, Angular, Nuxt, Next.js, and Vue 2 applications.

    47k GitHub starsUsed in 1 repo~2k tokens
    Frontend & DesignAuto-check passed
  • Solar Icons

    saoudi-h/solar-icons

    Add Solar Icons via @solar-icons/cli to any React, Vue, Svelte, Solid, Angular, React Native, Nuxt, Static, vanilla JS, or Laravel Blade project.

    190 GitHub stars~2.1k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • A11y Audit

    alirezarezvani/claude-skills

    Accessibility audit skill for scanning, fixing, and verifying WCAG 2.2 Level A and AA compliance across React, Next.js, Vue, Angular, Svelte, and plain HTML codebases.

    28k GitHub stars~2.4k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • Markstream Install

    github/awesome-copilot

    Official

    Install and configure Markstream streaming Markdown renderers for Vue, React, Svelte, Angular, Nuxt, and Vue 2 applications.

    40k GitHub stars~1.5k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • A11y Audit

    ricneves-ai/flowgrammers-skills

    Skill de auditoria de acessibilidade para escanear, corrigir e verificar a conformidade WCAG 2.2 Nível A e AA em codebases React, Next.js, Vue, Angular, Svelte e HTML puro.

    115 GitHub stars~2.7k tokensUpdated 15 days ago
    Frontend & DesignAuto-check passed
  • Kb Framework Accessibility

    Community-Access/accessibility-agents

    Reference data, not a reviewer. An agent skill from Community-Access/accessibility-agents.

    423 GitHub stars~1.8k tokensUpdated 17 days ago
    Frontend & DesignAuto-check passed

More from datadog-labs/agent-skills

All 39 skills in this repo
  • Bootstrap a reproducible LLM Observability experiment through the Python ddtrace SDK or the Node dd-trace SDK.

    177 GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check passed
  • Dd Account Setup

    datadog-labs/agent-skills

    Ensure the user has an authenticated Datadog account with a valid DDAPIKEY on the right region before any Datadog setup or instrumentation.

    177 GitHub stars~4.5k tokensUpdated 2 days ago
    Auto-check: notes
  • Dd Orchestrator

    datadog-labs/agent-skills

    Entry point for Datadog onboarding. An agent skill from datadog-labs/agent-skills.

    177 GitHub stars~6.7k tokensUpdated 2 days ago
    Auto-check passed
  • Dd Apm

    datadog-labs/agent-skills

    APM - install, onboard, instrument, enable, set up, configure, traces, services, dependencies, performance analysis, Data Streams Monitoring (DSM), queue lag, pipeline latency.

    177 GitHub stars~2k tokensUpdated 2 days ago
    Auto-check passed
  • Agent Install

    datadog-labs/agent-skills

    Install the Datadog Agent on Kubernetes using the Datadog Operator — required before enabling Single Step Instrumentation (SSI), which automatically instruments applications for APM without code…

    177 GitHub stars~2.1k tokensUpdated 2 days ago
    Auto-check: warnings
  • Dd AWS Integration

    datadog-labs/agent-skills

    Set up the Datadog AWS integration with Terraform - creates the cross-account IAM role Datadog assumes (external ID, no stored credentials), attaches the permission policies Datadog publishes, and…

    177 GitHub stars~6.8k tokensUpdated 2 days ago
    Auto-check: notes

Categories

Questions about Dd Instrument Rum

What does Dd Instrument Rum do?

Instrument browser-based web applications with Datadog Browser RUM. Dd Instrument Rum is an agent skill from datadog-labs/agent-skills. Instrument browser-based web applications with Datadog Browser RUM.

When should I use Dd Instrument Rum?

Dd Instrument Rum fits situations like: verify Datadog RUM; browser Monitoring; framework-specific Browser RUM plugins.

How do I install Dd Instrument Rum in Claude Code?

Run `npx skills add datadog-labs/agent-skills --skill dd-instrument-rum -a claude-code`. Or copy the skill folder (dd-instrument-rum in datadog-labs/agent-skills) into .claude/skills/dd-instrument-rum in your project. Claude Code loads it when a task matches its description.

How do I install Dd Instrument Rum in Codex?

Run `npx skills add datadog-labs/agent-skills --skill dd-instrument-rum -a codex`. Or copy the skill folder (dd-instrument-rum in datadog-labs/agent-skills) into .agents/skills/dd-instrument-rum in your project. Codex loads it when a task matches its description.

Can I use Dd Instrument Rum in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add datadog-labs/agent-skills --skill dd-instrument-rum -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dd-instrument-rum, .gemini/skills/dd-instrument-rum, .github/skills/dd-instrument-rum and .opencode/skills/dd-instrument-rum in your project.

What does Dd Instrument Rum need to run?

SKILL.md names no scripts, command-line tools or credentials: Dd Instrument Rum is instructions for the agent only.

Does Dd Instrument Rum access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Dd Instrument Rum safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Dd Instrument Rum use?

Dd Instrument Rum is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dd Instrument Rum use?

About 2.4k tokens (SKILL.md is roughly 9.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6.4k tokens, read only when the agent opens those files.

What are the alternatives to Dd Instrument Rum?

Skills that share tags, products or a category with Dd Instrument Rum: Markstream Install (sickn33/agentic-awesome-skills, 47k stars), Solar Icons (saoudi-h/solar-icons, 190 stars), A11y Audit (alirezarezvani/claude-skills, 28k stars) and Markstream Install (github/awesome-copilot, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dd Instrument Rum?

datadog-labs (a GitHub organization) maintains it in datadog-labs/agent-skills, which has 177 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on October 8, 2026.

Source: datadog-labs/agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.