Agent skill · dynatrace
dt-setup-ios
Set up the Dynatrace iOS SDK (OneAgent) in an iOS project using Swift Package Manager. Automates adding the SPM dependency, creating a Dynatrace.plist configuration file, adding the import statement, adding privacy opt-in code, and building the project. Use this skill when the user wants to integrate, install, add, or set up Dynatrace monitoring in their iOS app. Keywords: Dynatrace, iOS, SDK, OneAgent, setup, install, integrate, SPM, Swift Package Manager, Info.plist, DTXApplicationID, DTXBeaconURL, mobile monitoring, RUM.
What it needs
About 7k tokens when loaded.
What this skill does
Dynatrace iOS SDK Setup This skill sets up the Dynatrace iOS SDK (OneAgent) in the user's iOS project — from zero to first event. It follows the official setup flow from the Dynatrace documentation. When to use this skill The user wants to add Dynatrace monitoring to their iOS app The user asks to integrate, install, or set up the Dynatrace iOS SDK The user wants to instrument their iOS app with Dynatrace The user pastes a setup prompt copied from the Experience Vitals wizard Pre-filled values When invoked from the Experience Vitals wizard, the user's message will contain pre-filled configuration values in a fenced block labeled dynatrace-ios-setup-config. Example: dynatrace-ios-setup-config DTXApplicationID: ABC-123 DTXBeaconURL: https://example.dynatrace.com/mbeacon Product: DynatraceSessionReplay DTXUserOptIn: true When these values are present: Skip step 2 (Collect application identification keys) — use the provided DTXApplicationID and DTXBeaconURL. Skip the product question in step 3 — use the provided Product value (Dynatrace or DynatraceSessionReplay). Use DTXUserOptIn to determine whether to add the privacy opt-in code in step 5. If true, add the opt-in code. If false, skip step 5. All other steps (prerequisites, SPM dependency, plist creation, import, build, verify) proceed as normal. Procedure 1. Check prerequisites Actively verify each prerequisite before proceeding. If any check fails, inform the user and stop. a) Xcode MCP server is available This is a hard requirement. The skill uses the Xcode MCP server to interact with the Xcode project (adding SPM dependencies, building, etc.). Verify that Xcode MCP tools are accessible (e.g., mcpxcodeXcodeListWindows). If not available, tell the user to install and enable the Xcode MCP server before proceeding. b) iOS deployment target >= 12.0 The .pbxproj file is not accessible through the Xcode MCP server (it's project metadata, not a navigator file). …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills dynatrace/dt-setup-ios