[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C1VEVFXWY34H7635XZWBGX":3,"skill-same:01M7C1VEVFXWY34H7635XZWBGX":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7C1VEVFXWY34H7635XZWBGX","dt-obs-hosts",null,"Host and process metrics including CPU, memory, disk, network, containers, and process-level telemetry. Use when analyzing infrastructure health, resource utilization, process consumption, or host discovery. Also use when building timeseries queries for host metrics that feed into analytical workflows like anomaly detection, forecasting, or seasonality analysis. Trigger: \"show hosts\", \"CPU usage\", \"memory utilization\", \"disk space\", \"high CPU\", \"host with most free disk\", \"top hosts by CPU\", \"top processes by memory\", \"Linux hosts in AWS\", \"what databases are running\", \"infrastructure costs by cost center\", \"hosts running EOL Java\", \"container monitoring\", \"listening ports\", \"process resource consumption\", \"CPU forecast\", \"memory anomaly\", \"host seasonality\". Do NOT use for explaining existing queries, product documentation questions, Kubernetes pod\u002Fworkload queries (use dt-obs-kubernetes), AWS cloud resource inventory (use dt-obs-aws), or service-level metrics (use dt-obs-services).","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fdynatrace-dynatrace-for-ai\u002Fdt-obs-hosts\u002FSkill.md",[],[],"2026-11-15 14:19:17",false,"---\nname: dt-obs-hosts\ndescription: >-\n  Host and process metrics including CPU, memory, disk, network, containers, and process-level\n  telemetry. Use when analyzing infrastructure health, resource utilization, process consumption,\n  or host discovery. Also use when building timeseries queries for host metrics that feed into\n  analytical workflows like anomaly detection, forecasting, or seasonality analysis.\n  Trigger: \"show hosts\", \"CPU usage\", \"memory utilization\", \"disk space\", \"high CPU\",\n  \"host with most free disk\", \"top hosts by CPU\", \"top processes by memory\",\n  \"Linux hosts in AWS\", \"what databases are running\", \"infrastructure costs by cost center\",\n  \"hosts running EOL Java\", \"container monitoring\", \"listening ports\",\n  \"process resource consumption\", \"CPU forecast\", \"memory anomaly\", \"host seasonality\".\n  Do NOT use for explaining existing queries, product documentation questions,\n  Kubernetes pod\u002Fworkload queries (use dt-obs-kubernetes), AWS cloud resource inventory\n  (use dt-obs-aws), or service-level metrics (use dt-obs-services).\nlicense: Apache-2.0\n---\n\n# Infrastructure Hosts Skill\n\nMonitor and manage host and process infrastructure including CPU, memory, disk, network, and technology inventory.\n\n## When to Use This Skill\n\nUse this skill when the user needs to:\n\n- **Inventory:** \"Show me all Linux hosts in AWS us-east-1\"\n- **Monitor:** \"What hosts have high CPU usage?\"\n- **Troubleshoot:** \"Which processes are consuming the most memory?\"\n- **Discover:** \"What databases are running in production?\"\n- **Plan:** \"Track Kubernetes version distribution for upgrade planning\"\n- **Cost:** \"Calculate infrastructure costs by cost center\"\n- **Security:** \"Find all processes listening on port 22\"\n- **Compliance:** \"Identify hosts running EOL Java versions\"\n- **Quality:** \"Check data completeness for AWS hosts\"\n- **Optimize:** \"Find rightsizing candidates based on utilization\"\n\n---\n> **Cross-source join required:** If the query must combine host data with logs or other\n> telemetry sources (e.g. \"show logs from Linux hosts with their IP addresses\") → also read\n> `dt-dql-essentials\u002Freferences\u002Fsmartscape-topology-navigation.md` before writing the query.\n---\n\n## Core Concepts\n\n### Entities\n- **HOST** - Physical or virtual machines (cloud or on-premise)\n- **PROCESS** - Running processes and process groups\n- **CONTAINER** - Kubernetes containers\n- **NETWORK_INTERFACE** - Host network interfaces\n- **DISK** - Host disk volumes\n\n### Metrics Categories\n1. **Host Metrics** - `dt.host.cpu.*`, `dt.host.memory.*`, `dt.host.disk.*`, `dt.host.net.*`\n2. **Process Metrics** - `dt.process.cpu.*`, `dt.process.memory.*`, `dt.process.io.*`, `dt.process.network.*`\n3. **Inventory** - OS type, cloud provider, technology stack, versions\n4. **Cost** - `dt.cost.costcenter`, `dt.cost.product`\n5. **Quality** - Metadata completeness, version compliance\n\n### Alert Thresholds\n- **CPU\u002FMemory\u002FDisk:** 80% warning, 90% critical\n- **Network:** >70% high, >85% saturated\n- **Disk Latency:** >20ms bottleneck\n- **Network Errors:** Drop rate >1%, error rate >0.1%\n- **Swap:** >30% warning, >50% critical\n\n---\n\n## Key Workflows\n\n### 1. Host Discovery and Classification\n\nDiscover hosts, classify by OS\u002Fcloud, inventory resources.\n\n```dql\nsmartscapeNodes \"HOST\"\n| fieldsAdd os.type, cloud.provider, host.logical.cpu.cores, host.physical.memory\n| summarize host_count = count(), by: {os.type, cloud.provider}\n| sort host_count desc\n```\n\n**OS Types:** `LINUX`, `WINDOWS`, `AIX`, `SOLARIS`, `ZOS`\n\n→ For cloud-specific attributes, see [references\u002Finventory-discovery.md](#cloud-specific-attributes)\n\n### 2. Resource Utilization Monitoring\n\nMonitor CPU, memory, disk, network across hosts.\n\n```dql\ntimeseries {\n  cpu = avg(dt.host.cpu.usage),\n  memory = avg(dt.host.memory.usage),\n  disk = avg(dt.host.disk.used.percent)\n}, by: {dt.smartscape.host}\n| fieldsAdd host_name = getNodeName(dt.smartscape.host)\n| filter arrayAvg(cpu) > 80 or arrayAvg(memory) > 80\n| sort arrayAvg(cpu) desc\n```\n\n**High utilization threshold:** 80% warning, 90% critical\n\n**Key CPU Metrics:**\n- `dt.host.cpu.usage` — Total CPU utilization (0-100%)\n- `dt.host.cpu.idle` — CPU idle time (inverse of usage; useful for anomaly detection)\n- `dt.host.cpu.user` — CPU time in user mode\n- `dt.host.cpu.system` — CPU time in kernel mode\n- `dt.host.cpu.iowait` — CPU waiting for I\u002FO (Linux only)\n\n→ For detailed CPU analysis, see [references\u002Fhost-metrics.md](references\u002Fhost-metrics.md#cpu-monitoring)  \n→ For memory breakdown, see [references\u002Fhost-metrics.md](references\u002Fhost-metrics.md#memory-monitoring)\n\n#### Disk Free Space — Find Hosts with Most\u002FLeast Free Disk\n\n```dql\ntimeseries disk_used_pct = avg(dt.host.disk.used.percent), by: {dt.smartscape.host}\n| fieldsAdd host_name = getNodeName(dt.smartscape.host)\n| fieldsAdd avg_disk_used = arrayAvg(disk_used_pct),\n    free_pct = 100 - arrayAvg(disk_used_pct)\n| sort free_pct desc\n| limit 10\n```\n\n### 3. Process Resource Analysis\n\nIdentify top resource consumers at process level.\n\n```dql\ntimeseries {\n  cpu = avg(dt.process.cpu.usage),\n  memory = avg(dt.process.memory.usage)\n}, by: {dt.smartscape.process}\n| fieldsAdd process_name = getNodeName(dt.smartscape.process)\n| filter arrayAvg(cpu) > 50\n| sort arrayAvg(cpu) desc\n| limit 20\n```\n\n→ For process I\u002FO analysis, see [references\u002Fprocess-monitoring.md](references\u002Fprocess-monitoring.md#process-io)  \n→ For process network metrics, see [references\u002Fprocess-monitoring.md](references\u002Fprocess-monitoring.md#process-network)\n\n### 4. Technology Stack Inventory\n\nDiscover and track software technologies and versions.\n\n```dql\nsmartscapeNodes \"PROCESS\"\n| fieldsAdd process.software_technologies\n| expand tech = process.software_technologies\n| fieldsAdd tech_type = tech[type], tech_version = tech[version]\n| summarize process_count = count(), by: {tech_type, tech_version}\n| sort process_count desc\n```\n\n**Common Technologies:** Java, Node.js, Python, .NET, databases, web servers, messaging systems\n\n→ For version compliance checks, see [references\u002Finventory-discovery.md](references\u002Finventory-discovery.md#technology-inventory)\n\n### 5. Service Discovery via Ports\n\nMap listening ports to services for security and inventory.\n\n```dql\nsmartscapeNodes \"PROCESS\"\n| fieldsAdd process.listen_ports, dt.process_group.detected_name\n| filter isNotNull(process.listen_ports) and arraySize(process.listen_ports) > 0\n| expand listen_port = process.listen_ports\n| summarize process_count = count(), by: {listen_port, dt.process_group.detected_name}\n| sort toLong(listen_port) asc\n| limit 50\n```\n\n**Well-known ports:** 80 (HTTP), 443 (HTTPS), 22 (SSH), 3306 (MySQL), 5432 (PostgreSQL)\n\n→ For comprehensive port mapping, see [references\u002Finventory-discovery.md](references\u002Finventory-discovery.md#port-discovery)\n\n### 6. Container and Kubernetes Monitoring\n\nTrack container distribution and K8s workload types.\n\n```dql\nsmartscapeNodes \"CONTAINER\"\n| fieldsAdd k8s.cluster.name, k8s.namespace.name, k8s.workload.kind\n| summarize container_count = count(), by: {k8s.cluster.name, k8s.workload.kind}\n| sort k8s.cluster.name, container_count desc\n```\n\n**Workload Types:** `deployment`, `daemonset`, `statefulset`, `job`, `cronjob`\n\n**Note:** Container image names\u002Fversions NOT available in smartscape.\n\n→ For K8s version tracking, see [references\u002Fcontainer-monitoring.md](references\u002Fcontainer-monitoring.md#kubernetes-versions)  \n→ For container lifecycle, see [references\u002Fcontainer-monitoring.md](references\u002Fcontainer-monitoring.md#container-inventory)\n\n### 7. Cost Attribution and Chargeback\n\nCalculate infrastructure costs by cost center.\n\n```dql\nsmartscapeNodes \"HOST\"\n| fieldsAdd dt.cost.costcenter, host.logical.cpu.cores, host.physical.memory\n| filter isNotNull(dt.cost.costcenter)\n| fieldsAdd memory_gb = toDouble(host.physical.memory) \u002F 1024 \u002F 1024 \u002F 1024\n| summarize \n    host_count = count(),\n    total_cores = sum(toLong(host.logical.cpu.cores)),\n    total_memory_gb = sum(memory_gb),\n    by: {dt.cost.costcenter}\n| sort total_cores desc\n```\n\n→ For product-level cost tracking, see [references\u002Finventory-discovery.md](references\u002Finventory-discovery.md#cost-attribution)\n\n### 8. Infrastructure Health Correlation\n\nCorrelate host and process metrics for cross-layer analysis.\n\n```dql\ntimeseries {\n  host_cpu = avg(dt.host.cpu.usage),\n  host_memory = avg(dt.host.memory.usage),\n  process_cpu = avg(dt.process.cpu.usage)\n}, by: {dt.smartscape.host, dt.smartscape.process}\n| fieldsAdd\n    host_name = getNodeName(dt.smartscape.host),\n    process_name = getNodeName(dt.smartscape.process)\n| filter arrayAvg(host_cpu) > 70\n| sort arrayAvg(host_cpu) desc\n```\n\n**Health scoring:** Critical if any resource >90%, warning if >80%\n\n→ For multi-resource saturation detection, see [references\u002Fhost-metrics.md](references\u002Fhost-metrics.md#resource-saturation)\n\n---\n\n## Response Construction\n\nWhen the user asks for data retrieval or a DQL query (e.g., \"show me top hosts by\nCPU\"), **include the DQL query in the response** alongside the results. Users want to\nsee and reuse the query — it is the deliverable, not just a means to get results.\n\nWhen the user asks for analysis (anomaly detection, forecasting, seasonality), the\nanalysis results are the deliverable. Focus on presenting findings clearly:\n- **Prioritize metric-level findings** over data collection artifacts. If an analysis\n  tool reports data gaps alongside actual anomalies, lead with the metric behavior\n  the user asked about and mention gaps only as supplementary context.\n- **Include host names** (not just IDs) using `getNodeName(dt.smartscape.host)` or the\n  `get-entity-name` tool.\n- **State the timeframe** analyzed and the tools\u002Fparameters used.\n\n---\n\n## Analytical Workflows\n\nHost metric queries often serve as inputs to analytical tools (anomaly detection,\nforecasting, seasonality analysis). This skill helps construct the right DQL query;\nthe actual analysis is performed by dedicated tools.\n\n### Anomaly Detection and Pattern Analysis\n\nWhen users ask about \"unusual behavior\", \"anomalies\", \"spikes\", or \"sudden changes\"\nin host metrics, the workflow is:\n\n1. **Construct the timeseries query** using this skill's patterns\n2. **Pass it to the appropriate analysis tool** (anomaly detector, novelty detection)\n\n**Choosing between detectors:**\n- **`adaptive-anomaly-detector`** — use when the user asks about *magnitude*: \"spikes\",\n  \"abrupt changes\", \"values that went above normal\", \"sudden jumps\". It answers \"did this\n  metric cross an unexpected threshold?\" and reports alert durations and peak values.\n- **`timeseries-novelty-detection`** — use when the user asks about *behavioral change*:\n  \"unusual patterns\", \"something changed\", \"trends\", \"new behavior\". It answers \"did the\n  shape of the signal change?\" without implying a specific threshold was crossed.\n\n**Response format for anomaly results:** Include both the host **name** (resolved via\n`getNodeName(dt.smartscape.host)` or `get-entity-name`) and the host **entity ID** alongside timestamps and values.\nEntity IDs alone are opaque to users; names alone prevent follow-up queries.\n\n**Novelty type selection rule:** When using novelty detection, set\n`analysisNoveltyType` to only `[SPIKE, CHANGE_IN_VALUES, TREND_IN_VALUES]` by default.\n**EXCLUDE** `GAP_WITH_MISSING_VALUES` and `CHANGE_IN_MISSING_VALUES` unless the user\nexplicitly asks about data gaps or monitoring coverage. Data gaps are infrastructure\nissues, not metric behavior anomalies — reporting them when the user asks about CPU\nor memory patterns is incorrect.\n\nQueries for analysis tools should use simple `timeseries` format with a single\naggregated metric and appropriate time range:\n\n```dql\ntimeseries avg(dt.host.cpu.idle), by: {dt.smartscape.host}\n```\n\n```dql\ntimeseries avg(dt.host.memory.usage), by: {dt.smartscape.host}\n```\n\nAvoid adding filters or field transformations that reduce the data — the analysis\ntools work best with complete timeseries data.\n\n\n### Forecasting\n\nWhen users ask to \"predict\", \"forecast\", or \"estimate future\" host metrics:\n\n1. **Construct the timeseries query** with sufficient historical data (e.g., 7d for\n   short-term, 30d for longer predictions)\n2. **Pass to the forecasting tool** with the desired forecast horizon\n\nThe **forecast horizon** (how far ahead to predict) and the **historical window** (how much\npast data the model trains on) are independent. A request like \"forecast the next 2 hours\"\nsets the horizon to 2h — it says nothing about the lookback. Always use at least 7 days of\nhistorical data regardless of how short the forecast horizon is. Too few training data points\ncause the forecast model to fail and fall back to raw historical values.\n\n```dql\ntimeseries avg(dt.host.cpu.usage), by: {dt.smartscape.host}\n```\n\n### Seasonality Detection\n\nWhen users ask about \"seasonality\", \"weekly patterns\", or \"recurring behavior\":\n\n1. **Use a longer time range** (at least 14d for weekly, 30d+ for monthly)\n2. **Pass to the seasonal baseline anomaly detector**\n\n**Response format for seasonal analysis:** When presenting results, include:\n- Whether seasonal anomalies were detected (yes\u002Fno)\n- The analysis timeframe and parameters used\n- For each affected host: host name (not just ID), timestamps of violations, violation\n  counts, baseline values vs actual values, and upper\u002Flower bounds\n- Organize results by host if multiple hosts are involved\n\n### Scope Boundary — Service-Level vs Host-Level Metrics\n\nThis skill covers **host and process infrastructure metrics only**. If the user asks\nabout service-level metrics (request rate, response time, error rate, service calls per\nminute, throughput), use `dt-obs-services` instead — even when the question involves\nforecasting or anomaly detection of those metrics.\n\n**Redirect these to `dt-obs-services`:** \"service calls per minute\", \"request rate\",\n\"response time by service\", \"error rate by endpoint\", \"service throughput forecast\".\n\n---\n\n## Common Query Patterns\n\n### Pattern 1: Smartscape Discovery\nUse `smartscapeNodes` to discover and classify entities.\n```dql-template\nsmartscapeNodes \"HOST\"\n| fieldsAdd \u003Cattributes>\n| filter \u003Cconditions>\n| summarize \u003Caggregations>\n```\n\n### Pattern 2: Timeseries Performance\nUse `timeseries` to analyze metrics over time.\n```dql-template\ntimeseries metric = avg(dt.host.\u003Cmetric>), by: {dt.smartscape.host}\n| fieldsAdd \u003Ccalculations>\n| filter \u003Cthresholds>\n```\n\n### Pattern 3: Cross-Layer Correlation\nCorrelate host and process metrics.\n```dql\ntimeseries {\n  host_cpu = avg(dt.host.cpu.usage),\n  process_cpu = avg(dt.process.cpu.usage)\n}, by: {dt.smartscape.host, dt.smartscape.process}\n```\n\n### Pattern 4: Entity Enrichment with Lookup\nEnrich data with entity attributes. After `lookup`, reference fields with `lookup.` prefix.\n```dql\ntimeseries cpu = avg(dt.host.cpu.usage), by: {dt.smartscape.host}\n| lookup [\n    smartscapeNodes HOST\n    | fields id, cpuCores, memoryTotal\n  ], sourceField:dt.smartscape.host, lookupField:id\n| fieldsAdd cores = lookup.cpuCores, mem_gb = lookup.memoryTotal \u002F 1024 \u002F 1024 \u002F 1024\n```\n\n---\n\n## Tags and Metadata\n\n### Important Notes\n- Generic `tags` field is NOT populated in smartscape queries\n- Use specific tag fields: `tags:azure[*]`, `tags:environment`\n- Use custom metadata: `host.custom.metadata[*]`\n\n### Available Tags\n- **Azure Tags:** `tags:azure[dt_owner_team]`, `tags:azure[dt_cloudcost_capability]`\n- **Environment:** `tags:environment`\n- **Custom Metadata:** `host.custom.metadata[OperatorVersion]`, `host.custom.metadata[Cluster]`\n- **Cost:** `dt.cost.costcenter`, `dt.cost.product`\n\n→ For complete tag reference, see [references\u002Finventory-discovery.md](#tags-and-metadata)\n\n---\n\n## Cloud-Specific Attributes\n\n### AWS\n- `cloud.provider == \"aws\"`\n- `aws.region`, `aws.availability_zone`, `aws.account.id`\n- `aws.resource.id`, `aws.resource.name`\n- `aws.state` (running, stopped, terminated)\n\n### Azure\n- `cloud.provider == \"azure\"`\n- `azure.location`, `azure.subscription`, `azure.resource.group`\n- `azure.status`, `azure.provisioning_state`\n- `azure.resource.sku.name` (VM size)\n\n### Kubernetes\n- `k8s.cluster.name`, `k8s.cluster.uid`\n- `k8s.namespace.name`, `k8s.node.name`, `k8s.pod.name`\n- `k8s.workload.name`, `k8s.workload.kind`\n\n→ For multi-cloud analysis, see [references\u002Finventory-discovery.md](references\u002Finventory-discovery.md#multi-cloud-hosts)\n\n---\n\n## Best Practices\n\n1. Use percentiles (p95, p99) for latency; `max()` for limits; `avg()` for trends\n2. Set multi-level thresholds (warning 80%, critical 90%)\n3. Filter early in the pipeline; limit results with `| limit N`\n4. Aggregate before enrichment (lookup)\n5. Use `getNodeName(dt.smartscape.host)` for human-readable host names; `getNodeName(dt.smartscape.process)` for processes\n6. Convert bytes to GB: `\u002F 1024 \u002F 1024 \u002F 1024`; round with `round(value, decimals: 1)`\n\n**Time windows:** Real-time: 5-15 min | Trends: 1-7 days | Capacity planning: 30-90 days\n\n### Limitations\n- `dt.host.cpu.iowait` available on Linux only\n- Generic `tags` field NOT populated in smartscape (use specific tag namespaces)\n- Container image names NOT available in smartscape\n\n---\n\n## Troubleshooting\n\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| No hosts returned from `smartscapeNodes \"HOST\"` | Missing time range or OneAgent not deployed | Verify OneAgent is installed; add a time range to the query |\n| `tags` field always empty | Generic `tags` not populated in smartscape | Use specific tag namespaces: `tags:azure[*]`, `tags:environment`, `dt.cost.costcenter` |\n| Memory values in bytes are unreadable | Raw metric unit is bytes | Divide by `1024 \u002F 1024 \u002F 1024` and use `round(value, decimals: 1)` |\n| `dt.host.cpu.iowait` returns no data | Metric is Linux-only | Check `os.type`; iowait is unavailable on Windows, AIX, Solaris |\n| Container image names missing | Not available in smartscape | Use `k8s.object` parsing for image details; see dt-obs-kubernetes skill |\n| `process.software_technologies` is empty | Process not monitored by deep injection | Verify OneAgent deep monitoring is enabled for the process group |\n\n---\n\n## When to Load References\n\nThis skill uses **progressive disclosure**. Start here for 80% of use cases. Load reference files for detailed specifications when needed.\n\n### Load host-metrics.md when:\n- Analyzing CPU component breakdown (user, system, iowait, steal)\n- Investigating memory pressure and swap usage\n- Troubleshooting disk I\u002FO latency\n- Diagnosing network packet drops or errors\n\n### Load process-monitoring.md when:\n- Analyzing process-level I\u002FO patterns\n- Investigating TCP connection quality\n- Detecting resource exhaustion (file descriptors, threads)\n- Tracking GC suspension time\n\n### Load container-monitoring.md when:\n- Analyzing container lifecycle and churn\n- Tracking Kubernetes version distribution\n- Managing OneAgent operator versions\n- Planning K8s cluster upgrades\n\n### Load inventory-discovery.md when:\n- Performing security audits via port discovery\n- Implementing cost attribution and chargeback\n- Validating data quality and metadata completeness\n- Managing multi-cloud infrastructure\n\n---\n\n## References\n\n- [host-metrics.md](references\u002Fhost-metrics.md) - Detailed host CPU, memory, disk, and network monitoring\n- [process-monitoring.md](references\u002Fprocess-monitoring.md) - Process-level CPU, memory, I\u002FO, and network analysis\n- [container-monitoring.md](references\u002Fcontainer-monitoring.md) - Container inventory, Kubernetes versions, and operator management\n- [inventory-discovery.md](references\u002Finventory-discovery.md) - Host\u002Fprocess discovery, technology inventory, cost attribution, and data quality\n\n---\n","# Infrastructure Hosts Skill\n\nMonitor and manage host and process infrastructure including CPU, memory, disk, network, and technology inventory.\n\n## When to Use This Skill\n\nUse this skill when the user needs to:\n\n- **Inventory:** \"Show me all Linux hosts in AWS us-east-1\"\n- **Monitor:** \"What hosts have high CPU usage?\"\n- **Troubleshoot:** \"Which processes are consuming the most memory?\"\n- **Discover:** \"What databases are running in production?\"\n- **Plan:** \"Track Kubernetes version distribution for upgrade planning\"\n- **Cost:** \"Calculate infrastructure costs by cost center\"\n- **Security:** \"Find all processes listening on port 22\"\n- **Compliance:** \"Identify hosts running EOL Java versions\"\n- **Quality:** \"Check data completeness for AWS hosts\"\n- **Optimize:** \"Find rightsizing candidates based on utilization\"\n\n---\n> **Cross-source join required:** If the query must combine host data with logs or other\n> telemetry sources (e.g. \"show logs from Linux hosts with their IP addresses\") → also read\n> `dt-dql-essentials\u002Freferences\u002Fsmartscape-topology-navigation.md` before writing the query.\n---\n\n## Core Concepts\n\n### Entities\n- **HOST** - Physical or virtual machines (cloud or on-premise)\n- **PROCESS** - Running processes and process groups\n- **CONTAINER** - Kubernetes containers\n- **NETWORK_INTERFACE** - Host network interfaces\n- **DISK** - Host disk volumes\n\n### Metrics Categories\n1. **Host Metrics** - `dt.host.cpu.*`, `dt.host.memory.*`, `dt.host.disk.*`, `dt.host.net.*`\n2. **Process Metrics** - `dt.process.cpu.*`, `dt.process.memory.*`, `dt.process.io.*`, `dt.process.network.*`\n3. **Inventory** - OS type, cloud provider, technology stack, versions\n4. **Cost** - `dt.cost.costcenter`, `dt.cost.product`\n5. **Quality** - Metadata completeness, version compliance\n\n### Alert Thresholds\n- **CPU\u002FMemory\u002FDisk:** 80% warning, 90% critical\n- **Network:** >70% high, >85% saturated\n- **Disk Latency:** >20ms bottleneck\n- **Network Errors:** Drop rate >1%, error rate >0.1%\n- **Swap:** >30% warning, >50% critical\n\n---\n\n## Key Workflows\n\n### 1. Host Discovery and Classification\n\nDiscover hosts, classify by OS\u002Fcloud, inventory resources.\n\n```dql\nsmartscapeNodes \"HOST\"\n| fieldsAdd os.type, cloud.provider, host.logical.cpu.cores, host.physical.memory\n| summarize host_count = count(), by: {os.type, cloud.provider}\n| sort host_count desc\n```\n\n**OS Types:** `LINUX`, `WINDOWS`, `AIX`, `SOLARIS`, `ZOS`\n\n→ For cloud-specific attributes, see [references\u002Finventory-discovery.md](#cloud-specific-attributes)\n\n### 2. Resource Utilization Monitoring\n\nMonitor CPU, memory, disk, network across hosts.\n\n```dql\ntimeseries {\n  cpu = avg(dt.host.cpu.usage),\n  memory = avg(dt.host.memory.usage),\n  disk = avg(dt.host.disk.used.percent)\n}, by: {dt.smartscape.host}\n| fieldsAdd host_name = getNodeName(dt.smartscape.host)\n| filter arrayAvg(cpu) > 80 or arrayAvg(memory) > 80\n| sort arrayAvg(cpu) desc\n```\n\n**High utilization threshold:** 80% warning, 90% critical\n\n**Key CPU Metrics:**\n- `dt.host.cpu.usage` — Total CPU utilization (0-100%)\n- `dt.host.cpu.idle` — CPU idle time (inverse of usage; useful for anomaly detection)\n- `dt.host.cpu.user` — CPU time in user mode\n- `dt.host.cpu.system` — CPU time in kernel mode\n- `dt.host.cpu.iowait` — CPU waiting for I\u002FO (Linux only)\n\n→ For detailed CPU analysis, see [references\u002Fhost-metrics.md](references\u002Fhost-metrics.md#cpu-monitoring)  \n→ For memory breakdown, see [references\u002Fhost-metrics.md](references\u002Fhost-metrics.md#memory-monitoring)\n\n#### Disk Free Space — Find Hosts with Most\u002FLeast Free Disk\n\n```dql\ntimeseries disk_used_pct = avg(dt.host.disk.used.percent), by: {dt.smartscape.host}\n| fieldsAdd host_name = getNodeName(dt.smartscape.host)\n| fieldsAdd avg_disk_used = arrayAvg(disk_used_pct),\n    free_pct = 100 - arrayAvg(disk_used_pct)\n| sort free_pct desc\n| limit 10\n```\n\n### 3. Process Resource Analysis\n\nIdentify top resource consumers at process level.\n\n```dql\ntimeseries {\n  cpu = avg(dt.process.cpu.usage),\n  memory = avg(dt.process.memory.usage)\n}, by: {dt.smartscape.process}\n| fieldsAdd process_name = getNodeName(dt.smartscape.process)\n| filter arrayAvg(cpu) > 50\n| sort arrayAvg(cpu) desc\n| limit 20\n```\n\n→ For process I\u002FO analysis, see [references\u002Fprocess-monitoring.md](references\u002Fprocess-monitoring.md#process-io)  \n→ For process network metrics, see [references\u002Fprocess-monitoring.md](references\u002Fprocess-monitoring.md#process-network)\n\n### 4. Technology Stack Inventory\n\nDiscover and track software technologies and versions.\n\n```dql\nsmartscapeNodes \"PROCESS\"\n| fieldsAdd process.software_technologies\n| expand tech = process.software_technologies\n| fieldsAdd tech_type = tech[type], tech_version = tech[version]\n| summarize process_count = count(), by: {tech_type, tech_version}\n| sort process_count desc\n```\n\n**Common Technologies:** Java, Node.js, Python, .NET, databases, web servers, messaging systems\n\n→ For version compliance checks, see [references\u002Finventory-discovery.md](references\u002Finventory-discovery.md#technology-inventory)\n\n### 5. Service Discovery via Ports\n\nMap listening ports to services for security and inventory.\n\n```dql\nsmartscapeNodes \"PROCESS\"\n| fieldsAdd process.listen_ports, dt.process_group.detected_name\n| filter isNotNull(process.listen_ports) and arraySize(process.listen_ports) > 0\n| expand listen_port = process.listen_ports\n| summarize process_count = count(), by: {listen_port, dt.process_group.detected_name}\n| sort toLong(listen_port) asc\n| limit 50\n```\n\n**Well-known ports:** 80 (HTTP), 443 (HTTPS), 22 (SSH), 3306 (MySQL), 5432 (PostgreSQL)\n\n→ For comprehensive port mapping, see [references\u002Finventory-discovery.md](references\u002Finventory-discovery.md#port-discovery)\n\n### 6. Container and Kubernetes Monitoring\n\nTrack container distribution and K8s workload types.\n\n```dql\nsmartscapeNodes \"CONTAINER\"\n| fieldsAdd k8s.cluster.name, k8s.namespace.name, k8s.workload.kind\n| summarize container_count = count(), by: {k8s.cluster.name, k8s.workload.kind}\n| sort k8s.cluster.name, container_count desc\n```\n\n**Workload Types:** `deployment`, `daemonset`, `statefulset`, `job`, `cronjob`\n\n**Note:** Container image names\u002Fversions NOT available in smartscape.\n\n→ For K8s version tracking, see [references\u002Fcontainer-monitoring.md](references\u002Fcontainer-monitoring.md#kubernetes-versions)  \n→ For container lifecycle, see [references\u002Fcontainer-monitoring.md](references\u002Fcontainer-monitoring.md#container-inventory)\n\n### 7. Cost Attribution and Chargeback\n\nCalculate infrastructure costs by cost center.\n\n```dql\nsmartscapeNodes \"HOST\"\n| fieldsAdd dt.cost.costcenter, host.logical.cpu.cores, host.physical.memory\n| filter isNotNull(dt.cost.costcenter)\n| fieldsAdd memory_gb = toDouble(host.physical.memory) \u002F 1024 \u002F 1024 \u002F 1024\n| summarize \n    host_count = count(),\n    total_cores = sum(toLong(host.logical.cpu.cores)),\n    total_memory_gb = sum(memory_gb),\n    by: {dt.cost.costcenter}\n| sort total_cores desc\n```\n\n→ For product-level cost tracking, see [references\u002Finventory-discovery.md](references\u002Finventory-discovery.md#cost-attribution)\n\n### 8. Infrastructure Health Correlation\n\nCorrelate host and process metrics for cross-layer analysis.\n\n```dql\ntimeseries {\n  host_cpu = avg(dt.host.cpu.usage),\n  host_memory = avg(dt.host.memory.usage),\n  process_cpu = avg(dt.process.cpu.usage)\n}, by: {dt.smartscape.host, dt.smartscape.process}\n| fieldsAdd\n    host_name = getNodeName(dt.smartscape.host),\n    process_name = getNodeName(dt.smartscape.process)\n| filter arrayAvg(host_cpu) > 70\n| sort arrayAvg(host_cpu) desc\n```\n\n**Health scoring:** Critical if any resource >90%, warning if >80%\n\n→ For multi-resource saturation detection, see [references\u002Fhost-metrics.md](references\u002Fhost-metrics.md#resource-saturation)\n\n---\n\n## Response Construction\n\nWhen the user asks for data retrieval or a DQL query (e.g., \"show me top hosts by\nCPU\"), **include the DQL query in the response** alongside the results. Users want to\nsee and reuse the query — it is the deliverable, not just a means to get results.\n\nWhen the user asks for analysis (anomaly detection, forecasting, seasonality), the\nanalysis results are the deliverable. Focus on presenting findings clearly:\n- **Prioritize metric-level findings** over data collection artifacts. If an analysis\n  tool reports data gaps alongside actual anomalies, lead with the metric behavior\n  the user asked about and mention gaps only as supplementary context.\n- **Include host names** (not just IDs) using `getNodeName(dt.smartscape.host)` or the\n  `get-entity-name` tool.\n- **State the timeframe** analyzed and the tools\u002Fparameters used.\n\n---\n\n## Analytical Workflows\n\nHost metric queries often serve as inputs to analytical tools (anomaly detection,\nforecasting, seasonality analysis). This skill helps construct the right DQL query;\nthe actual analysis is performed by dedicated tools.\n\n### Anomaly Detection and Pattern Analysis\n\nWhen users ask about \"unusual behavior\", \"anomalies\", \"spikes\", or \"sudden changes\"\nin host metrics, the workflow is:\n\n1. **Construct the timeseries query** using this skill's patterns\n2. **Pass it to the appropriate analysis tool** (anomaly detector, novelty detection)\n\n**Choosing between detectors:**\n- **`adaptive-anomaly-detector`** — use when the user asks about *magnitude*: \"spikes\",\n  \"abrupt changes\", \"values that went above normal\", \"sudden jumps\". It answers \"did this\n  metric cross an unexpected threshold?\" and reports alert durations and peak values.\n- **`timeseries-novelty-detection`** — use when the user asks about *behavioral change*:\n  \"unusual patterns\", \"something changed\", \"trends\", \"new behavior\". It answers \"did the\n  shape of the signal change?\" without implying a specific threshold was crossed.\n\n**Response format for anomaly results:** Include both the host **name** (resolved via\n`getNodeName(dt.smartscape.host)` or `get-entity-name`) and the host **entity ID** alongside timestamps and values.\nEntity IDs alone are opaque to users; names alone prevent follow-up queries.\n\n**Novelty type selection rule:** When using novelty detection, set\n`analysisNoveltyType` to only `[SPIKE, CHANGE_IN_VALUES, TREND_IN_VALUES]` by default.\n**EXCLUDE** `GAP_WITH_MISSING_VALUES` and `CHANGE_IN_MISSING_VALUES` unless the user\nexplicitly asks about data gaps or monitoring coverage. Data gaps are infrastructure\nissues, not metric behavior anomalies — reporting them when the user asks about CPU\nor memory patterns is incorrect.\n\nQueries for analysis tools should use simple `timeseries` format with a single\naggregated metric and appropriate time range:\n\n```dql\ntimeseries avg(dt.host.cpu.idle), by: {dt.smartscape.host}\n```\n\n```dql\ntimeseries avg(dt.host.memory.usage), by: {dt.smartscape.host}\n```\n\nAvoid adding filters or field transformations that reduce the data — the analysis\ntools work best with complete timeseries data.\n\n\n### Forecasting\n\nWhen users ask to \"predict\", \"forecast\", or \"estimate future\" host metrics:\n\n1. **Construct the timeseries query** with sufficient historical data (e.g., 7d for\n   short-term, 30d for longer predictions)\n2. **Pass to the forecasting tool** with the desired forecast horizon\n\nThe **forecast horizon** (how far ahead to predict) and the **historical window** (how much\npast data the model trains on) are independent. A request like \"forecast the next 2 hours\"\nsets the horizon to 2h — it says nothing about the lookback. Always use at least 7 days of\nhistorical data regardless of how short the forecast horizon is. Too few training data points\ncause the forecast model to fail and fall back to raw historical values.\n\n```dql\ntimeseries avg(dt.host.cpu.usage), by: {dt.smartscape.host}\n```\n\n### Seasonality Detection\n\nWhen users ask about \"seasonality\", \"weekly patterns\", or \"recurring behavior\":\n\n1. **Use a longer time range** (at least 14d for weekly, 30d+ for monthly)\n2. **Pass to the seasonal baseline anomaly detector**\n\n**Response format for seasonal analysis:** When presenting results, include:\n- Whether seasonal anomalies were detected (yes\u002Fno)\n- The analysis timeframe and parameters used\n- For each affected host: host name (not just ID), timestamps of violations, violation\n  counts, baseline values vs actual values, and upper\u002Flower bounds\n- Organize results by host if multiple hosts are involved\n\n### Scope Boundary — Service-Level vs Host-Level Metrics\n\nThis skill covers **host and process infrastructure metrics only**. If the user asks\nabout service-level metrics (request rate, response time, error rate, service calls per\nminute, throughput), use `dt-obs-services` instead — even when the question involves\nforecasting or anomaly detection of those metrics.\n\n**Redirect these to `dt-obs-services`:** \"service calls per minute\", \"request rate\",\n\"response time by service\", \"error rate by endpoint\", \"service throughput forecast\".\n\n---\n\n## Common Query Patterns\n\n### Pattern 1: Smartscape Discovery\nUse `smartscapeNodes` to discover and classify entities.\n```dql-template\nsmartscapeNodes \"HOST\"\n| fieldsAdd \u003Cattributes>\n| filter \u003Cconditions>\n| summarize \u003Caggregations>\n```\n\n### Pattern 2: Timeseries Performance\nUse `timeseries` to analyze metrics over time.\n```dql-template\ntimeseries metric = avg(dt.host.\u003Cmetric>), by: {dt.smartscape.host}\n| fieldsAdd \u003Ccalculations>\n| filter \u003Cthresholds>\n```\n\n### Pattern 3: Cross-Layer Correlation\nCorrelate host and process metrics.\n```dql\ntimeseries {\n  host_cpu = avg(dt.host.cpu.usage),\n  process_cpu = avg(dt.process.cpu.usage)\n}, by: {dt.smartscape.host, dt.smartscape.process}\n```\n\n### Pattern 4: Entity Enrichment with Lookup\nEnrich data with entity attributes. After `lookup`, reference fields with `lookup.` prefix.\n```dql\ntimeseries cpu = avg(dt.host.cpu.usage), by: {dt.smartscape.host}\n| lookup [\n    smartscapeNodes HOST\n    | fields id, cpuCores, memoryTotal\n  ], sourceField:dt.smartscape.host, lookupField:id\n| fieldsAdd cores = lookup.cpuCores, mem_gb = lookup.memoryTotal \u002F 1024 \u002F 1024 \u002F 1024\n```\n\n---\n\n## Tags and Metadata\n\n### Important Notes\n- Generic `tags` field is NOT populated in smartscape queries\n- Use specific tag fields: `tags:azure[*]`, `tags:environment`\n- Use custom metadata: `host.custom.metadata[*]`\n\n### Available Tags\n- **Azure Tags:** `tags:azure[dt_owner_team]`, `tags:azure[dt_cloudcost_capability]`\n- **Environment:** `tags:environment`\n- **Custom Metadata:** `host.custom.metadata[OperatorVersion]`, `host.custom.metadata[Cluster]`\n- **Cost:** `dt.cost.costcenter`, `dt.cost.product`\n\n→ For complete tag reference, see [references\u002Finventory-discovery.md](#tags-and-metadata)\n\n---\n\n## Cloud-Specific Attributes\n\n### AWS\n- `cloud.provider == \"aws\"`\n- `aws.region`, `aws.availability_zone`, `aws.account.id`\n- `aws.resource.id`, `aws.resource.name`\n- `aws.state` (running, stopped, terminated)\n\n### Azure\n- `cloud.provider == \"azure\"`\n- `azure.location`, `azure.subscription`, `azure.resource.group`\n- `azure.status`, `azure.provisioning_state`\n- `azure.resource.sku.name` (VM size)\n\n### Kubernetes\n- `k8s.cluster.name`, `k8s.cluster.uid`\n- `k8s.namespace.name`, `k8s.node.name`, `k8s.pod.name`\n- `k8s.workload.name`, `k8s.workload.kind`\n\n→ For multi-cloud analysis, see [references\u002Finventory-discovery.md](references\u002Finventory-discovery.md#multi-cloud-hosts)\n\n---\n\n## Best Practices\n\n1. Use percentiles (p95, p99) for latency; `max()` for limits; `avg()` for trends\n2. Set multi-level thresholds (warning 80%, critical 90%)\n3. Filter early in the pipeline; limit results with `| limit N`\n4. Aggregate before enrichment (lookup)\n5. Use `getNodeName(dt.smartscape.host)` for human-readable host names; `getNodeName(dt.smartscape.process)` for processes\n6. Convert bytes to GB: `\u002F 1024 \u002F 1024 \u002F 1024`; round with `round(value, decimals: 1)`\n\n**Time windows:** Real-time: 5-15 min | Trends: 1-7 days | Capacity planning: 30-90 days\n\n### Limitations\n- `dt.host.cpu.iowait` available on Linux only\n- Generic `tags` field NOT populated in smartscape (use specific tag namespaces)\n- Container image names NOT available in smartscape\n\n---\n\n## Troubleshooting\n\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| No hosts returned from `smartscapeNodes \"HOST\"` | Missing time range or OneAgent not deployed | Verify OneAgent is installed; add a time range to the query |\n| `tags` field always empty | Generic `tags` not populated in smartscape | Use specific tag namespaces: `tags:azure[*]`, `tags:environment`, `dt.cost.costcenter` |\n| Memory values in bytes are unreadable | Raw metric unit is bytes | Divide by `1024 \u002F 1024 \u002F 1024` and use `round(value, decimals: 1)` |\n| `dt.host.cpu.iowait` returns no data | Metric is Linux-only | Check `os.type`; iowait is unavailable on Windows, AIX, Solaris |\n| Container image names missing | Not available in smartscape | Use `k8s.object` parsing for image details; see dt-obs-kubernetes skill |\n| `process.software_technologies` is empty | Process not monitored by deep injection | Verify OneAgent deep monitoring is enabled for the process group |\n\n---\n\n## When to Load References\n\nThis skill uses **progressive disclosure**. Start here for 80% of use cases. Load reference files for detailed specifications when needed.\n\n### Load host-metrics.md when:\n- Analyzing CPU component breakdown (user, system, iowait, steal)\n- Investigating memory pressure and swap usage\n- Troubleshooting disk I\u002FO latency\n- Diagnosing network packet drops or errors\n\n### Load process-monitoring.md when:\n- Analyzing process-level I\u002FO patterns\n- Investigating TCP connection quality\n- Detecting resource exhaustion (file descriptors, threads)\n- Tracking GC suspension time\n\n### Load container-monitoring.md when:\n- Analyzing container lifecycle and churn\n- Tracking Kubernetes version distribution\n- Managing OneAgent operator versions\n- Planning K8s cluster upgrades\n\n### Load inventory-discovery.md when:\n- Performing security audits via port discovery\n- Implementing cost attribution and chargeback\n- Validating data quality and metadata completeness\n- Managing multi-cloud infrastructure\n\n---\n\n## References\n\n- [host-metrics.md](references\u002Fhost-metrics.md) - Detailed host CPU, memory, disk, and network monitoring\n- [process-monitoring.md](references\u002Fprocess-monitoring.md) - Process-level CPU, memory, I\u002FO, and network analysis\n- [container-monitoring.md](references\u002Fcontainer-monitoring.md) - Container inventory, Kubernetes versions, and operator management\n- [inventory-discovery.md](references\u002Finventory-discovery.md) - Host\u002Fprocess discovery, technology inventory, cost attribution, and data quality\n\n---\n",{"name":5,"license":15,"description":7},"main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fdynatrace-dynatrace-for-ai\u002Fdt-obs-hosts",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill dt-obs-hosts",{"tool":38,"command":39},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill dt-obs-hosts",{"tool":41,"command":42},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill dt-obs-hosts","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fdynatrace-dynatrace-for-ai\u002Fdt-obs-hosts\u002FSkill.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"metadata.json","REFERENCE","参考文档",463,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fdynatrace-dynatrace-for-ai\u002Fdt-obs-hosts\u002Fmetadata.json",[53,61,66,73,78,85],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":57,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":62,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":57,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":57,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":74,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":57,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":57,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":86,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":57,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]