dt-app-notebooks — Claude Code skill: what it does, how to install
Creates, modifies, queries, and analyzes Dynatrace notebook JSON documents containing Markdown narrative and DQL query sections.
npx skills add Dynatrace/dynatrace-for-ai --skill dt-app-notebooks -a claude-codeWhat dt-app-notebooks does
Dynatrace notebooks are JSON documents stored in the Document Store. Each file contains an ordered array of sections, mixing Markdown text with DQL query blocks and visual settings. Sections render top-to-bottom.
Do not build JSON from scratch when updating an existing document. Fetch the current state using dtctl get notebook <id> -o json, edit notebook.json, and deploy the result with dtctl apply. Manually injecting an identifier or recreating the document overwrites edits made in the Dynatrace user interface.
Before adding queries to sections, validate all DQL syntax. The skill recommends keeping autoSelectVisualization: true unless you need a specific chart type. Supported views include time-series charts, tables, gauges, histograms, and geographic maps.
What it helps with
- create and deploy Dynatrace notebooks using
dtctl apply - fetch and inspect notebook JSON structure via
dtctl - configure DQL sections with appropriate chart visualizations
- safely update existing notebooks without overwriting UI changes
Example prompts for the agent
- Fetch Dynatrace notebook <id> using dtctl and inspect its sections.
- Create a Dynatrace notebook with a markdown summary and a DQL log query section.
- Update notebook <id> to add a categorical bar chart section.
How to install dt-app-notebooks
1Skills CLI (Vercel)
npx skills add Dynatrace/dynatrace-for-ai --skill dt-app-notebooks -a claude-code2Manually: put the files in place
~/.claude/skills/dt-app-notebooks/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/dt-app-notebooks/
1Skills CLI (Vercel)
npx skills add Dynatrace/dynatrace-for-ai --skill dt-app-notebooks -a codex2Manually: put the files in place
.agents/skills/dt-app-notebooks/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Dynatrace/dynatrace-for-ai --skill dt-app-notebooks -a cursor2Manually: put the files in place
.cursor/skills/dt-app-notebooks/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Dynatrace/dynatrace-for-ai dt-app-notebooks2Manually: put the files in place
.github/skills/dt-app-notebooks/SKILL.md1Skills CLI (Vercel)
npx skills add Dynatrace/dynatrace-for-ai --skill dt-app-notebooks -a gemini-cli2Platform CLI
gemini skills install https://github.com/Dynatrace/dynatrace-for-ai --path skills/dt-app-notebooksManually: put the files in place
.devin/skills/dt-app-notebooks/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Dynatrace/dynatrace-for-ai --skill dt-app-notebooks -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about dt-app-notebooks
How do I install dt-app-notebooks in Claude Code?
Run npx skills add Dynatrace/dynatrace-for-ai --skill dt-app-notebooks -a claude-code.
What does dt-app-notebooks do?
It provides the workflow and schema rules for generating, modifying, and analyzing Dynatrace notebook JSON files containing Markdown narrative and DQL query sections.
How should existing Dynatrace notebooks be updated?
Always read the current document first using dtctl get notebook <id> -o json, modify that file, and deploy changes with dtctl apply so interface edits are preserved.
Source text
SKILL.md · Apache-2.0
---
name: dt-app-notebooks
description: Work with Dynatrace notebooks - create, modify, query, and analyze notebook JSON including sections, DQL queries, and visualizations.
license: Apache-2.0
---
# Dynatrace Notebook Skill
## Overview
Dynatrace notebooks are JSON documents stored in the Document Store containing an ordered array of **sections** — markdown blocks for narrative and `dql` blocks for DQL queries with visualizations. Sections render top-to-bottom in array order.
**When to use:** Creating, modifying, querying, or analyzing notebooks.
## Notebook JSON Structure
```json
{
"name": "My Notebook",
"type": "notebook",
"content": {
"version": "7",
"defaultTimeframe": { "from": "now()-2h", "to": "now()" },
"sections": [
{ "id": "1", "type": "markdown", "markdown": "# Title" },
{
"id": "2", "type": "dql", "title": "Query Section", "showInput": true,
"state": {
"input": { "value": "fetch logs | summarize count()" },
"visualization": "table",
"visualizationSettings": { "autoSelectVisualization": true, "chartSettings": {} },
"querySettings": {
"maxResultRecords": 1000, "defaultScanLimitGbytes": 500,
"maxResultMegaBytes": 1, "defaultSamplingRatio": 10, "enableSampling": false
}
}
}
]
}
}
```
- Sections render in array order.
- Section types: `markdown`, `dql`. (`function` exists but is rare.)
- Use string-int IDs (`"1"`, `"2"`, …); UUIDs are also accepted.
- `content.defaultTimeframe` sets the default timeframe; each section can override via `section.state.input.timeframe`. Hardcoded time filters in DQL are allowed.
**Optional content properties:** `defaultSegments`.
## Reading & Analyzing
Fetch full content with `dtctl get notebook <id> -o json` (`describe` returns metadata only), then inspect the JSON to discover its available properties. Carefully read [references/analyzing.md](references/analyzing.md) before analyzing.
## Create/Update Workflow (Mandatory Order)
Carefully follow the workflow described in [references/create-update.md](references/create-update.md).
**Key rules:**
- Load domain skills BEFORE generating queries — do not invent DQL.
- Validate ALL section queries before adding to the notebook.
- Set `name` before deploying.
- **Prefer `autoSelectVisualization: true`** in `visualizationSettings` unless the user requested a specific visualization type — when `false`, `state.visualization` must be set explicitly.
- **Updating — ALWAYS read the current state first:** `dtctl get notebook <id> -o json`, save it as `notebook.json`, modify that file, then deploy it. Never reconstruct JSON from scratch or inject an `id` manually — both silently overwrite UI edits the user made since last deployment.
- **Deploy with `dtctl apply`** — validation runs automatically. If it fails, fix **all** reported errors before re-applying.
## Visualization Types
Notebooks support a subset of Dynatrace visualizations:
- **Time-series** (require `timeseries`/`makeTimeseries`): `lineChart`, `areaChart`, `barChart`, `bandChart`
- **Categorical** (`summarize ... by:{field}`): `categoricalBarChart`, `pieChart`, `donutChart`
- **Single value / gauge / meter**: `singleValue`, `meterBar`, `gauge`
- **Tabular** (any data shape): `table`, `raw`, `recordView`
- **Distribution/status**: `histogram`, `honeycomb`
- **Geographic maps**: `choropleth`, `dotMap`, `connectionMap`, `bubbleMap`
- **Matrix/correlation**: `heatmap`, `scatterplot`
Required field types per visualization: [references/sections.md](references/sections.md).
## References
| File | When to Load |
|------|-------------|
| [create-update.md](references/create-update.md) | Creating/updating notebooks |
| [sections.md](references/sections.md) | Section types, visualization field requirements, settings |
| [analyzing.md](references/analyzing.md) | Reading notebooks, extracting queries, purpose identification |
© Dynatrace · Apache-2.0 · Dynatrace/dynatrace-for-ai