dt-migration

dt-migration is a skill for Claude Code from Dynatrace/dynatrace-for-ai. It costs 104 tokens per session (2,138 once invoked), scanned A, original, Apache-2.0.

A guide for replacing older Dynatrace entity-based DQL queries with queries based on Smartscape, Dynatrace’s map of infrastructure entities and their relationships. DQL is Dynatrace Query Language.

In plain words
What is it for?
Use it to update filters, subqueries, joins, and asset-level entity workflows when migrating classic or Gen2 Dynatrace queries.
Why use it?
It helps preserve query results while moving away from older entity filters and choosing the right direct-dimension or Smartscape approach.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dynatrace plugin — 33 skills, 1 MCP server shipped together

Good fit Use it to update filters, subqueries, joins, and asset-level entity workflows when migrating classic or Gen2 Dynatrace queries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dynatrace/dynatrace-for-ai/dt-migration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Dynatrace/dynatrace-for-ai --skill dt-migration
Clone the repo
git clone --depth 1 https://github.com/Dynatrace/dynatrace-for-ai

Made for: Claude Code.

Or install dynatrace, the plugin that ships this one along with the rest of its 33 skills, 1 MCP server.

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 dt-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/dynatrace/dynatrace-for-ai/dt-migration/github.svg)](https://agentmods.dev/skills/dynatrace/dynatrace-for-ai/dt-migration)
Your own site
<a href="https://agentmods.dev/skills/dynatrace/dynatrace-for-ai/dt-migration"><img src="https://agentmods.dev/badge/skills/dynatrace/dynatrace-for-ai/dt-migration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dt-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/dynatrace/dynatrace-for-ai/dt-migration"><img src="https://agentmods.dev/badge/skills/dynatrace/dynatrace-for-ai/dt-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,138 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
  • Socket pass 11 May 2026
  • Snyk pass 11 May 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00104 $0.02138
Opus 5 $0.00052 $0.01069
Sonnet 5 $0.00021 $0.00428
Haiku 4.5 $0.00010 $0.00214

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

Security

Grade A, and why

dt-migration 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 11d 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.

skills/dt-migration/SKILL.md · 137 lines

How it starts

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

Smartscape Migration Skill

This skill migrates Dynatrace classic and Gen2 entity-based DQL queries and query patterns to Smartscape-based equivalents.

Load the dt-dql-essentials skill before writing final DQL so the translated query also follows current DQL syntax rules.

This skill focuses on Smartscape-oriented DQL migration only. It does not cover asset-level migration workflows.

Query Purpose Classification

Start here. The correct migration strategy depends on what the query is actually trying to do — not just which classic constructs it uses.

There are three distinct situations:

# Situation Classic anti-pattern Migration strategy
1 Mass data query filtered by entity conditions classicEntitySelector(...) inline in filter: of a timeseries, logs, or metrics query Resolve entity conditions to raw data dimensions first. Smartscape is a fallback, not the default.
2 Mass data query using entity subquery for filtering fetch dt.entity.* inside in [...], lookup [...], or join [...] to filter the outer mass data query Same dimension-first strategy. Rewrite as raw dimension filter or in [smartscapeNodes ...] subquery.
3 Pure entity list query fetch dt.entity.* used standalone or as the primary result source smartscapeNodes is the only valid path. No raw dimension alternative exists.

Decision:

  • Situations 1 or 2 — load references/mass-data-filtering-strategy.md and complete all steps including field discovery (Step 2) and equivalence verification (Step 4). Do not skip the fieldsSnapshot gates — they determine which approach is viable. Only fall back to the Migration Workflow below when the entity-type mapping or relationship traversal is needed to complete a Smartscape subquery.
  • Situation 3 — continue with the Migration Workflow and entity mapping table below.

Note: Situation 3 has a sub-case where classicEntitySelector is used to filter the entities returned by fetch dt.entity.*. This is rare and follows the same smartscapeNodes path — resolve the selector conditions using references/mass-data-filtering-strategy.md Step 1B, then apply them as node filters in smartscapeNodes.

Read the full file on GitHub · 137 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. 11d ago First seen · 137 lines · 104 tokens per session scan A aa4e35028fbd

Subscribe to this mod's changes

dt-migration is a skill published in the GitHub repository Dynatrace/dynatrace-for-ai (137 stars, last pushed today), licensed Apache-2.0. It adds 104 tokens to every session and 2,138 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

dtctl

Investigate incidents, debug performance issues, analyze logs, and manage observability resources in Dynatrace using the dtctl CLI. Use this skill whenever the user asks about error rates, latency spikes, service health, crash-looping pods, web vitals, SLO status, open problems, root cause analysis, log patterns…

dynatrace-oss/dtctl · 114 tokens

netdata-migration

Use when migrating observability from Datadog, New Relic, Dynatrace, or Prometheus to Netdata. Covers SDK replacement, exporter reconfiguration, Prometheus endpoint passthrough, and dashboard parity expectations.

netdata/skills · 50 tokens

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

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens