Agent skill

Upgrade Browser SDK V6

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

Upgrade Datadog Browser SDK from v5 to v6. An agent skill from datadog-labs/agent-skills.

MITAuto-check passedProductivity & Automation

Install Upgrade Browser SDK V6

skills CLI
$ npx skills add datadog-labs/agent-skills --skill upgrade-browser-sdk-v6 -a claude-code

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

GitHub CLI
$ gh skill install datadog-labs/agent-skills upgrade-browser-sdk-v6 --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-browser-sdk/upgrade-v6 .claude/skills/upgrade-browser-sdk-v6 && 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
upgrade-browser-sdk-v6
GitHub stars
177
Token cost
~2.7k tokens
SKILL.md length
831 words
Files
1
Skills in repo
39
Repo updated
First seen
Licence
MIT

At a glance

Upgrade Datadog Browser SDK from v5 to v6. An agent skill from datadog-labs/agent-skills.

  • Works in 6 steps: Update SDK version → Remove deprecated options → Update changed defaults → …
  • Encountering removed options like useCrossSiteSessionCookie
  • SKILL.md covers Step 1: Update SDK version, Step 2: Remove deprecated…, Step 3: Update changed defaults and Step 4: Handle Session Replay…, plus 4 more sections
  • Calls npm and yarn

What it does

Upgrade Browser SDK V6 is an agent skill from datadog-labs/agent-skills. Upgrade Datadog Browser SDK from v5 to v6. Use when encountering removed options like useCrossSiteSessionCookie, sendLogsAfterSessionExpiration, or when dropping IE11 support, or when a project references datadoghq-browser-agent.com CDN with /v5/ paths.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Productivity & Automation, covering Browser automation. It works with Datadog and npm. The repository describes itself as: Public repository for Datadog Agent Skills. The licence is MIT.

When your agent uses it

  • Encountering removed options like useCrossSiteSessionCookie
  • SendLogsAfterSessionExpiration
  • Dropping IE11 support
  • A project references datadoghq-browser-agent.com CDN with /v5/ paths

Example prompts

  • “/upgrade-browser-sdk-v6”

Requirements

  • Node.js

Workflow steps

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

  1. Update SDK version
  2. Remove deprecated options
  3. Update changed defaults
  4. Handle Session Replay lazy loading
  5. Review behavioral changes (no code required, but may need attention)
  6. Update infrastructure

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

    Shell commands in SKILL.md call:

    • npm
    • yarn

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

  • Network

    Links to these hosts (documentation or services it may open):

    • webpack.js.org
    • esbuild.github.io
    • rollupjs.org
    • parceljs.org

    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

Upgrade Browser SDK V6 loads about 2.7k tokens when it runs. Until then it costs about 69 tokens; SKILL.md has 831 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~69
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

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). 831 words, ~2,669 tokens.

Download SKILL.mdSave it as .claude/skills/upgrade-browser-sdk-v6/SKILL.md (or your agent's skills folder).
name
upgrade-browser-sdk-v6
description
Upgrade Datadog Browser SDK from v5 to v6. Use when encountering removed options like useCrossSiteSessionCookie, sendLogsAfterSessionExpiration, or when dropping IE11 support, or when a project references datadoghq-browser-agent.com CDN with /v5/ paths.
metadata.version
1.0.0
metadata.author
datadog-labs
metadata.repository
https://github.com/datadog-labs/agent-skills
metadata.tags
datadog,browser-sdk,rum,logs,migration,v6,upgrade

Upgrade Datadog Browser SDK to v6

Systematic migration guide from v5 to v6. Follow steps 1-6 in order. Each step includes a search pattern to find affected code.

Step 1: Update SDK version

CDN setup — update script src URLs:

v5 patternv6 replacement
datadoghq-browser-agent.com/us1/v5/datadog-rum.jsdatadoghq-browser-agent.com/us1/v6/datadog-rum.js
datadoghq-browser-agent.com/us1/v5/datadog-logs.jsdatadoghq-browser-agent.com/us1/v6/datadog-logs.js
datadoghq-browser-agent.com/us1/v5/datadog-rum-slim.jsdatadoghq-browser-agent.com/us1/v6/datadog-rum-slim.js

Replace us1 with your site: eu1, us3, us5, ap1, ap2. For US1-FED, the pattern is flat with no site prefix: datadog-rum-v6.js, datadog-logs-v6.js, datadog-rum-slim-v6.js.

Search: grep -r "datadoghq-browser-agent.com.*v5" --include="*.html" --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx"

npm setup — update package.json dependencies:

"@datadog/browser-rum": "^6.0.0"
"@datadog/browser-logs": "^6.0.0"
"@datadog/browser-rum-slim": "^6.0.0"

Then run your package manager (npm install, yarn install, etc.) and rebuild.

Also upgrade framework integrations to v6 if used: @datadog/browser-rum-react.

Search: grep -r "@datadog/browser-" --include="package.json" .

Step 2: Remove deprecated options

Removed from Core (affects both RUM and Logs)
OptionAction
useCrossSiteSessionCookieReplace with usePartitionedCrossSiteSessionCookie.
Removed from Logs
OptionAction
sendLogsAfterSessionExpirationDelete. In v6, logs are always sent after session expiration (without a session ID). The option is no longer needed.

Search: grep -rn 'useCrossSiteSessionCookie\|sendLogsAfterSessionExpiration' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" --include="*.vue" --include="*.svelte"

Step 3: Update changed defaults

v6 changes several default behaviors. Review each and adjust if needed:

3a. trackUserInteractions, trackResources, and trackLongTasks default to true

In v5, these were false by default. In v6, they are enabled out of the box. This does not impact billing.

To preserve v5 behavior, explicitly disable only the options that were not already enabled in v5. If an option was already true in v5, leave it unchanged:

js
DD_RUM.init({
  trackUserInteractions: false, // only if not already true in v5
  trackResources: false, // only if not already true in v5
  trackLongTasks: false, // only if not already true in v5
})
3b. traceContextInjection defaults to "sampled"

In v5, trace context was injected for all requests. In v6, it's only injected for sampled traces. If your traceSampleRate is 100% (the default), this has no impact.

To preserve v5 behavior:

js
DD_RUM.init({
  traceContextInjection: 'all',
})
3c. tracestate header added with tracecontext propagator

The tracecontext propagator now sends an additional tracestate header. Your server must accept it. Add it to your existing Access-Control-Allow-Headers — do not replace the full list:

# Add tracestate alongside your existing headers
Access-Control-Allow-Headers: <existing-headers>, traceparent, tracestate
3d. site parameter is strongly typed

The site option has a stricter TypeScript type. If you pass a non-standard value, you get a type error. Use proxy for non-standard intake URLs instead.

Search: grep -rn 'trackUserInteractions\|trackResources\|trackLongTasks\|traceContextInjection\|tracestate\|allowedTracingUrls\|propagatorTypes' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" --include="*.vue" --include="*.svelte"

Also search for all RUM init calls to catch projects that omit these options and relied on the v5 false defaults: grep -rn 'DD_RUM\.init\|datadogRum\.init' --include="*.js" --include="*.ts" --include="*.tsx" --include="*.jsx" --include="*.html" --include="*.vue" --include="*.svelte". For each init call, check whether trackUserInteractions, trackResources, and trackLongTasks are explicitly set — if omitted, they now default to true in v6.

Step 4: Handle Session Replay lazy loading

Session Replay is now lazy-loaded using dynamic imports. The module loads only for sessions sampled for replay, reducing bundle size for others.

npm setup

Ensure your bundler supports dynamic imports (code splitting). Most modern bundlers do:

CDN setup

No code changes needed. The SDK dynamically loads an additional chunk when recording (e.g., datadogRecorder-<hash>-datadog-rum.js). Update CSP script-src rules if needed to allow the chunk.

Show full SKILL.md (340 more words)Show less

Step 5: Review behavioral changes (no code required, but may need attention)

ChangeImpactAction if needed
IE11 support droppedSDK built with ES2018 target. Polyfills removed.Keep using v5 if IE11 support is required.
Long Animation Frames replace Long TasksOn supported browsers, Long Animation Frames are collected instead of Long Tasks. Event type is still long_task.Review if you inspect long task event details.
Session cookie expiration extended to 1 yearSupports anonymous user tracking.Set trackAnonymousUser: false to opt out.
RegExp and Event objects sanitizedThese are no longer serialized as-is in context/attributes.Use string representations if you were passing RegExp or Event objects.
Webpack ChunkLoadError no longer collectedReduces noise from SDK chunk loading failures.No action needed.

Step 6: Update infrastructure

  • Browser support: ES2018 baseline. IE11 is no longer supported.
  • CORS: Add tracestate to your existing Access-Control-Allow-Headers if using the tracecontext propagator (do not replace the full list): Access-Control-Allow-Headers: <existing-headers>, traceparent, tracestate
  • CSP: Allow the dynamically loaded Session Replay chunk (e.g., datadogRecorder-*-datadog-rum.js) in script-src rules.
  • Bundler config: Ensure your bundler supports dynamic imports for Session Replay lazy loading.

Common Mistakes

MistakeWhat goes wrongFix
Defensively disabling trackUserInteractions, trackResources, trackLongTasksDisables features the project needs — these now default to true, which is usually the desired behaviorOnly set these to false if the project explicitly did not want them; leave them unset to accept the new defaults
Missing tracestate in Access-Control-Allow-HeadersThe tracecontext propagator now sends a tracestate header — cross-origin requests are blocked by CORSAdd tracestate alongside traceparent in your server's Access-Control-Allow-Headers
Not updating CSP script-src for the lazy-loaded Session Replay chunkRecording silently fails on CSP-restricted pages — the dynamic chunk is blockedAllow datadogRecorder-*-datadog-rum.js in script-src

Verification checklist

After upgrading, confirm:

  • SDK loads without console errors
  • No references to removed options (useCrossSiteSessionCookie, sendLogsAfterSessionExpiration)
  • Session Replay recordings working (if used)
  • Distributed tracing working (no CORS errors from tracestate header)
  • Bundle size decreased (IE11 polyfills removed)
  • Long tasks still collected (now as Long Animation Frames on supported browsers)
  • No TypeScript errors from site parameter typing

© 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

Just SKILL.md in dd-browser-sdk/upgrade-v6 of datadog-labs/agent-skills.

Open the folder on GitHubat commit d2411cc

Compare with similar skills

Upgrade Browser SDK V6 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.

Upgrade Browser SDK V6 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Upgrade Browser SDK V6 this skilldatadog-labs/agent-skills177—~2.7kAutomated safety check: PassMIT
Browser Useopenvetta/open-vetta290—~1.6kAutomated safety check: PassApache-2.0
Chrome CDP Browser Controlzenstory-ai/oh-story-claudecode7.4k2 repos~1.2kAutomated safety check: PassMIT
OpenCLI Usage Mapjackwener/OpenCLI30k1 repos~2.3kAutomated safety check: PassApache-2.0
Agent Browser Automationwithkynam/vibecode-pro-max-kit1.1k—~2.6kAutomated safety check: PassApache-2.0
Still2rig Psdshinshin86/still2rig-psd130—~1.4kAutomated safety check: PassMIT

Similar skills

  • Browser Use

    openvetta/open-vetta

    Install and operate the agent-browser CLI for interactive pages, forms, dashboards, and multi-account media workflows.

    290 GitHub stars~1.6k tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Chrome CDP Browser Control

    zenstory-ai/oh-story-claudecode

    Drives a Chrome window over the DevTools Protocol with the agent-browser CLI, so the agent can reuse your logged-in sessions, read pages and pull tokens.

    7.4k GitHub starsUsed in 2 repos~1.2k tokens
    Productivity & AutomationAuto-check passed
  • OpenCLI Usage Map

    jackwener/OpenCLI

    Orients an agent on OpenCLI, which turns websites and Electron apps into opencli site-command calls, covering adapters, strategies, install and which skill to load next.

    30k GitHub starsUsed in 1 repo~2.3k tokens
    Productivity & AutomationAuto-check passed
  • Agent Browser Automation

    withkynam/vibecode-pro-max-kit

    Drives a browser through the agent-browser CLI, using compact snapshots with element refs to keep context small in long sessions, plus video recording and cloud browsers.

    1.1k GitHub stars~2.6k tokensUpdated 3 mo ago
    Productivity & AutomationAuto-check passed
  • Still2rig Psd

    shinshin86/still2rig-psd

    Convert a user-provided static anime character image into a verified rig-ready PSD by coordinating the Still2Rig PSD local job CLI with a user-approved Google Colab session through Colab MCP Go.

    130 GitHub stars~1.4k tokensUpdated 11 days ago
    Productivity & AutomationAuto-check passed
  • Test the Electron app interactively using Chrome DevTools Protocol.

    495 GitHub stars~2.4k tokensUpdated 1 mo ago
    Productivity & AutomationAuto-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 yesterday
    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 yesterday
    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 yesterday
    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 yesterday
    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 yesterday
    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 yesterday
    Auto-check: notes

Works with

Questions about Upgrade Browser SDK V6

What does Upgrade Browser SDK V6 do?

Upgrade Datadog Browser SDK from v5 to v6. An agent skill from datadog-labs/agent-skills. Upgrade Browser SDK V6 is an agent skill from datadog-labs/agent-skills. Upgrade Datadog Browser SDK from v5 to v6.

When should I use Upgrade Browser SDK V6?

Upgrade Browser SDK V6 fits situations like: encountering removed options like useCrossSiteSessionCookie; sendLogsAfterSessionExpiration; dropping IE11 support; A project references datadoghq-browser-agent.com CDN with /v5/ paths.

How do I install Upgrade Browser SDK V6 in Claude Code?

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

How do I install Upgrade Browser SDK V6 in Codex?

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

Can I use Upgrade Browser SDK V6 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 upgrade-browser-sdk-v6 -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/upgrade-browser-sdk-v6, .gemini/skills/upgrade-browser-sdk-v6, .github/skills/upgrade-browser-sdk-v6 and .opencode/skills/upgrade-browser-sdk-v6 in your project.

What does Upgrade Browser SDK V6 need to run?

Going by SKILL.md and its folder, Upgrade Browser SDK V6 needs the command-line tools its instructions call (npm and yarn). Our summary lists: Node.js.

Does Upgrade Browser SDK V6 access the network?

SKILL.md names 4 domains. As links in the text: webpack.js.org, esbuild.github.io, rollupjs.org and parceljs.org. This is read from the text; nothing was executed.

Is Upgrade Browser SDK V6 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 Upgrade Browser SDK V6 use?

Upgrade Browser SDK V6 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 Upgrade Browser SDK V6 use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Upgrade Browser SDK V6?

Skills that share tags, products or a category with Upgrade Browser SDK V6: Browser Use (openvetta/open-vetta, 290 stars), Chrome CDP Browser Control (zenstory-ai/oh-story-claudecode, 7.4k stars), OpenCLI Usage Map (jackwener/OpenCLI, 30k stars) and Agent Browser Automation (withkynam/vibecode-pro-max-kit, 1.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Upgrade Browser SDK V6?

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.