Data & Analysis ✓ Microsoft · Official kqlkustoazure-data-explorerlog-analyticstime-seriesregexdata-exploration

KQL Query Mastery

Helps coding agents write efficient, reliable Kusto queries with fewer costly errors.

FollowSkills review · FSRS-2.0
Use with care
51/ 100 5-point scale 2.6 / 5
1 2 3 4 5 6
1Trust15 / 25 · 3.0/5

The material is primarily query guidance, with no malware, credential theft, or covert exfiltration identified. However, it includes .create, .set, .drop, external-data, and managed-identity connection examples without execution confirmation, least-privilege guidance, sensitive-data handling, data-flow disclosure, or rollback instructions, so points are deducted. The MIT license and Microsoft provenance provide limited attribution evidence but do not substitute for safety controls.

2Reliability7 / 20 · 1.8/5

The skill covers syntax, performance, error recovery, and many examples, and its error mappings are generally diagnosable. Static material does not prove key paths run, some recommendations are overly absolute, and there are possible inconsistencies, such as examples placing serialize after a window function is used and coarse join-cardinality rules. The score is therefore reduced within the static ceiling.

3Adaptability10 / 15 · 3.3/5

The audience, KQL/ADX/Fabric/Log Analytics scenarios, and trigger terms are clearly stated, covering query writing, debugging, and review. However, non-fit boundaries, version differences, permission prerequisites, and environment limits are under-specified; triggering is overly broad, and Chinese-language support is absent. Dependence on the public help cluster mainly affects example verification rather than core use, so no full environment deduction is applied.

4Convention9 / 15 · 3.0/5

Information architecture is strong, with a main guide plus advanced patterns, discovery queries, error recovery, and reusable templates; installation context is supplied by the repository README. The skill lacks an independent version, changelog, explicit maintenance owner or update path, FAQ, and dependency/permission notes, and the repository is described as actively evolving, so points are deducted. Licensing is clear.

5Effectiveness6 / 15 · 2.0/5

The skill offers directly adaptable templates for common KQL errors, resource control, joins, dynamic types, time series, and schema discovery, giving it clear core-task value. Static review cannot verify example correctness or cross-engine applicability; several advanced examples require specific clusters, tables, or features, so users still need schema and version review.

6Verifiability4 / 10 · 2.0/5

The files identify a public help cluster, Samples database, and purported real error examples, giving limited reproducibility. There is no committed test suite covering the skill's key paths and no CI evidence specifically validating it; supporting claims rely mainly on embedded documentation and author statements, so the static score remains limited.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • Before running management commands, external-data reads, or external-table connections, explicitly confirm targets, permissions, data scope, and reversibility.
  • Do not assume the help cluster, Samples tables, or engine-specific behavior exists in every KQL environment; check the actual schema, version, plugins, and permissions first.
  • The window-function, join-cardinality, and advanced graph/vector examples should be corrected and tested, with versioning, limitations, maintenance, and Chinese-use guidance added.
Review evidence [1][2][3][4][5][6][7][8]
See the full review method →

What does this skill do, and when should you use it?

This skill provides focused expertise for Kusto Query Language across Azure Data Explorer, Microsoft Fabric Real-Time Intelligence, Azure Monitor Log Analytics, Microsoft Sentinel, and related Microsoft data services. It covers pipe-forward syntax, dynamic type casting, join constraints, regular expressions, serialization, memory safety, result-size control, datetime handling, and advanced functions. An error-to-fix lookup table supports targeted query repair instead of unnecessary strategy changes. It is a strong fit for developers and analysts who regularly write, debug, or review KQL.

Guides agents in writing, debugging, and reviewing KQL; distinguishes query and management planes; checks explicit casts for dynamic fields used in grouping, ordering, and joins; designs equality joins, pre-binning, and join-cardinality checks; fixes regex capture-group, serialization, and datetime-literal issues; and provides patterns for memory-safe queries, bounded results, vector-column projection, geospatial operations, vector similarity, graph queries, and time-series analysis. The examples can be tested against the public Kusto help cluster.

  1. An Azure Data Explorer user needs filtered, aggregated queries over a large table.
  2. A Log Analytics or Sentinel user needs to diagnose dynamic-type, datetime, or computed-string errors.
  3. A data engineer needs to design joins while avoiding range-join limitations and cardinality explosions.
  4. An analyst needs KQL patterns for regex extraction, anomaly detection, geospatial calculations, vectors, or graphs.
  5. A coding agent must review a KQL query for scan volume, memory usage, join safety, and result size.

What are this skill's strengths and limitations?

Pros
  • Targets concrete KQL pitfalls that can cause retries, excessive scans, and runaway queries.
  • Includes incorrect and corrected examples plus an error-recovery lookup table.
  • Covers fundamentals, performance safety, regex, datetime handling, and advanced geo, vector, graph, and time-series functions.
  • Uses a plain SKILL.md format with name and description frontmatter.
Limitations
  • Its scope is KQL query work, not Azure resource provisioning or SDK development.
  • Testing some examples requires network access to the public help cluster.
  • The source provides no skill-specific test coverage or acceptance results for kql.
  • The repository is marked as work in progress and remains under active development.

How do you install this skill?

In Copilot CLI or a compatible skills installation flow, run:

npx skills add microsoft/skills

Select kql in the wizard. The README states that skills are installed in the selected agent directory, such as .github/skills/ for GitHub Copilot; this skill is located at .github/skills/kql/SKILL.md. The source does not document a standalone command for installing only kql.

How do you use this skill?

Invoke it when writing, debugging, or reviewing KQL, or when the task mentions Kusto, ADX, Azure Data Explorer, Log Analytics, Sentinel, Fabric Real-Time Intelligence, or relevant query operators. Example prompt: "Review this KQL query for dynamic-type issues, join cardinality, datetime filtering, and result-size risks." To run the examples, use the public help cluster at https://help.kusto.windows.net with the Samples database; the source does not specify a client-specific trigger command.

FAQ

Does this skill require an Azure account or paid service?
The source only states that examples can use a public help cluster; it does not state that an Azure account or paid subscription is required. Permissions and costs for private production clusters are outside the supplied material.
Does it execute KQL queries by itself?
No such execution capability is documented. The skill supplies query-writing and debugging guidance; an external KQL environment is needed to run queries.
What failures does it focus on?
It specifically addresses dynamic-type errors, non-equality joins, missing regex capture groups, unserialized window functions, invalid datetime literals, low-memory conditions, runaway queries, and related syntax issues.

More skills from this repository

All from microsoft/agent-skills

Data & Analysis ✓ Microsoft · Official

Azure Data Explorer Kusto Analytics

Query, aggregate, and analyze Azure Data Explorer logs, telemetry, and time-series data with KQL.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Python

Generate Python code for querying Azure Monitor logs and metrics.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Custom Log Ingestion

Guides Python agents to send custom logs to Log Analytics through the Logs Ingestion API.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Java

Query Azure Monitor logs and resource metrics from Java applications.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Log Ingestion for Java

Guides Java applications in sending structured custom logs to Azure Monitor through DCRs.

Automation & Ops ✓ Microsoft · Official

Azure Resource Lookup

Inventory, filter, and discover Azure resources across subscriptions.

Dev & Engineering ✓ Microsoft · Official

Azure AI Anomaly Detector for Java

A practical Java skill for building univariate and multivariate time-series anomaly detection with Azure AI Anomaly Detector.

Dev & Engineering ✓ Microsoft · Official

Azure AI Text Analytics for Python

Guides Python developers through Azure-powered text analysis and NLP workflows.

Dev & Engineering ✓ Microsoft · Official

Azure Data Lake Gen2 for Python

Guides Python developers through hierarchical file-system and large-file operations on Azure Data Lake Storage Gen2.

Dev & Engineering ✓ Microsoft · Official

Azure Machine Learning Python Skill

Guides coding agents through Azure ML resource management and Python training workflows.

Dev & Engineering ✓ Microsoft · Official

Azure Storage Skill

Gives coding agents practical guidance and operations for Azure objects, files, queues, tables, and data lakes.

Dev & Engineering ✓ Microsoft · Official

Azure Web PubSub for Python

Build Azure WebSocket messaging and publish-subscribe workflows for Python applications.

Dev & Engineering ✓ Microsoft · Official

Azure Web PubSub Real-Time Messaging

Build TypeScript WebSocket messaging, group communication, and live notification features with Azure Web PubSub.

Dev & Engineering ✓ Microsoft · Official

Azure Web PubSub for Java

A practical Java SDK guide for Azure Web PubSub messaging, groups, permissions, and real-time client access.

Dev & Engineering ✓ Microsoft · Official

Azure Communication Chat for Java

A practical Java SDK guide for building Azure real-time chat threads, messaging, and participant workflows.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for Python

A practical skill for securing Python Azure applications with Microsoft Entra ID credentials.

Dev & Engineering ✓ Microsoft · Official

Azure Tables for Python

A practical guide to building authenticated Azure Tables applications with Python entity CRUD, queries, and partition-scoped batch operations.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs Java Skill

Build production-oriented Java event streaming applications on Azure Event Hubs.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

Configure secure, flexible Microsoft Entra ID authentication for TypeScript Azure applications.

Automation & Ops ✓ Microsoft · Official

Azure Reliability Advisor

Assess and improve reliability for Azure Functions and App Service.

Related skills