/dynatrace:dt-js-runtimefrom dynatrace
Reference for the Dynatrace server-side JS runtime: function contract, runtime limits, Web APIs, Node.js modules, fetch with credential vault, and @dynatrace-sdk/* packages. Includes dtctl exec function usage.
Ships in dynatrace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The Dynatrace JS runtime is a server-side AppEngine sandbox that executes JavaScript/TypeScript.
Every entry point must export a default async function:
export default async function () {
// ...
return result;
}
ES module syntax required. TypeScript accepted (type annotations, interfaces, generics). No other export shape is supported.
Start here, then load only the file you need.
| File | When to load |
|---|---|
| references/limits-and-restrictions.md | Timeout / memory / I/O quotas; what's forbidden (eval, WebSocket, sockets, filesystem) |
| references/apis-and-modules.md | Which Web APIs and Node.js compat modules are available (fetch, crypto, streams, buffer, …) |
| references/fetch.md | Calling internal /platform/... APIs or external URLs, credential vault, outbound allowlist |
| references/sdk.md | Any @dynatrace-sdk/* package — the index routes you to the right per-SDK file |
Use dtctl exec function to run JS runtime code without deploying an app.
# Run inline code
dtctl exec function --code 'export default async function() { return "hello" }'
# Run from file
dtctl exec function -f script.js
# Pass JSON input — the parsed object is the function's argument
dtctl exec function -f script.js --payload '{"key":"value"}'
The function may accept an optional parameter. --payload is parsed and passed
as that argument directly — it is not wrapped in an event.payload field:
export default async function(payload) {
// with --payload '{"key":"value"}', payload is {"key": "value"}
return payload.key;
}
Load the dynatrace-control skill for authentication setup, context switching, and the full exec function reference.
references/apis-and-modules.md (opens in a new tab)references/fetch.md (opens in a new tab)references/limits-and-restrictions.md (opens in a new tab)references/sdk.md (opens in a new tab)references/sdks/app-engine-registry/README.md (opens in a new tab)references/sdks/app-engine-registry/appEngineRegistryAppsClient.md (opens in a new tab)references/sdks/app-engine-registry/appEngineRegistrySchemaManifestClient.md (opens in a new tab)references/sdks/app-engine-registry/types.md (opens in a new tab)references/sdks/app-environment/README.md (opens in a new tab)references/sdks/app-environment/functions.md (opens in a new tab)references/sdks/app-environment/types.md (opens in a new tab)references/sdks/app-settings-v1/README.md (opens in a new tab)references/sdks/app-settings-v1/appSettingsObjectsClient.md (opens in a new tab)references/sdks/app-settings-v1/types.md (opens in a new tab)references/sdks/app-settings-v2/README.md (opens in a new tab)references/sdks/app-settings-v2/appSettingsObjectsClient.md (opens in a new tab)references/sdks/app-settings-v2/types.md (opens in a new tab)references/sdks/app-utils/README.md (opens in a new tab)references/sdks/automation-utils/README.md (opens in a new tab)references/sdks/automation-utils/constants.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
38 skills in this plugin
/dt-alertingEnd-to-end Dynatrace alerting lifecycle — anomaly detector setup and model selection (static threshold, adaptive baseline, seasonal baseline), alert event storage in Grail, problem grouping and denoising by root cause analysis, and workflow-based notification routing (email, Slack, ServiceNow, webhook). Use when configuring alerting, choosing between detector types, querying alert event history, understanding why alerts merged into a problem, or setting up problem-triggered notifications./dt-app-dashboardsWork with Dynatrace dashboards - create, modify, query, and analyze dashboard JSON including tiles, layouts, DQL queries, variables, and visualizations./dt-app-notebooksWork with Dynatrace notebooks - create, modify, query, and analyze notebook JSON including sections, DQL queries, and visualizations./dt-dql-essentialsCore DQL syntax, pitfalls, query patterns, and query optimization. Load to write, build, fix, or OPTIMIZE a DQL query — prevents syntax errors and makes queries faster, more efficient, and cheaper (less data scanned = lower query consumption/cost per run). Covers fetch commands, data models, field namespaces, time alignment, entity/smartscape patterns, metric discovery, and performance/cost optimization (filter early, bucket filters, short time ranges, field selection, sampling, cardinality). Trigger: "write/build/fix a DQL query", "DQL syntax", "query logs/spans/metrics", "create a timeseries", "optimize my DQL", "make my query faster/cheaper", "reduce DQL cost/consumption/scanned data", "keep DQL cost under control". Do NOT use to explain an existing query or answer product questions. For MONITORING a tenant's ACTUAL query consumption/billing (how much queries cost, who scanned most, cost trends) use dt-platform-costs — this tunes the query text, not billing data./dt-migrationMigrate Dynatrace classic and Gen2 entity-based DQL to Smartscape equivalents. Covers three scenarios. (1) mass data queries filtered by classic entity conditions — migrate to direct dimension filters first, Smartscape only as fallback; (2) mass data queries using entity subqueries for filtering — same dimension-first strategy; (3) pure entity list queries — migrate fetch dt.entity.* to smartscapeNodes. Also handles entityName, entityAttr, classicEntitySelector, and classic relationship patterns./dt-obs-analyticsAnalyze dashboards and notebooks using Davis analyzers — anomaly detection, novelty scoring, and correlation. Use when the user references a specific Dynatrace dashboard or notebook (by URL, UUID, or name) and asks what it shows, which DQL queries it runs, whether a tile looks off, or wants to find anomalies, score novelty, or correlate its metrics. The trigger is a dashboard or notebook as the data source, not a general DQL question. This skill extracts timeseries queries efficiently without reading the full raw document JSON, then optionally runs Davis analyzers on the extracted metrics. Trigger phrases: "what's wrong on this dashboard", "analyze this notebook", "find anomalies", "novelty score", "correlate metrics", "extract DQL from dashboard", "dashboard URL", "tile", "run-analyzer", "timeseries extraction", "Davis analyzer".npx claudepluginhub dynatrace/dynatrace-for-ai --plugin dynatraceOther plugins' skills for the same job