---
title: "AWS CloudWatch Insights Query Builder"
description: "Builds CloudWatch Logs Insights queries and metric alarms using AWS SDK v3 (@aws-sdk/client-cloudwatch-logs, @aws-sdk/client-cloudwatch). Generates cross-account observability dashboards with CloudWatch Metrics Insights."
verification: "security_reviewed"
source: "https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html"
author: "Amazon Web Services"
category:
  - "Monitoring & Alerts"
framework:
  - "Codex"
  - "Multi-Framework"
---

# AWS CloudWatch Insights Query Builder

Builds CloudWatch Logs Insights queries and metric alarms using AWS SDK v3 (@aws-sdk/client-cloudwatch-logs, @aws-sdk/client-cloudwatch). Generates cross-account observability dashboards with CloudWatch Metrics Insights.

## Prerequisites

Amazon CloudWatch Logs Insights, AWS SDK for JavaScript v3 (@aws-sdk/client-cloudwatch-logs, @aws-sdk/client-cloudwatch)

## Installation

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
npm install @aws-sdk/client-cloudwatch-logs @aws-sdk/client-cloudwatch
```

## Documentation

- https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/aws-cloudwatch-insights-query-builder/)
