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
Not recommended
51/ 100 5-point scale 2.6 / 5
Trust15 / 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.

Reliability7 / 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.

Adaptability10 / 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.

Convention9 / 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.

Effectiveness6 / 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.

Verifiability4 / 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 it does & when to 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.

Pros & cons

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 to install

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 to use

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

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 Event Hubs Java Skill

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

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 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.

Dev & Engineering ✓ Microsoft · Official

Azure Cloud Architect

Guides coding agents through production-grade Azure architecture design and review using Azure Architecture Center practices.

Dev & Engineering ✓ Microsoft · Official

Azure AI Text Analytics for Python

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

Automation & Ops ✓ Microsoft · Official

Azure Resource Architecture Visualizer

Analyze Azure resource groups and turn their dependencies into detailed Mermaid architecture diagrams.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

Build .NET location features for search, routing, maps, geolocation, and weather.

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis

Guides Python coding agents in implementing Azure AI Vision image understanding.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Python

Guides secure, production-minded Blob Storage operations in Python.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Python

Gives coding agents reliable Python patterns for secure Azure Queue Storage messaging and asynchronous task processing.

Automation & Ops ✓ Microsoft · Official

Azure AI Gateway Governance

Use Azure API Management to govern traffic across AI models, MCP tools, and agents.

Automation & Ops ✓ Microsoft · Official

AKS Automatic Readiness

Assess Kubernetes workloads for AKS Automatic compatibility and identify migration blockers before you switch.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB ARM for .NET

Provision and manage Azure Cosmos DB resources from .NET through ARM.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Workspace Manager

Provision and manage Microsoft Playwright Testing workspaces with .NET and Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB for Python

A practical guide for building reliable Python applications on Azure Cosmos DB’s NoSQL API.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault SDK for Python

Gives Python coding agents practical guidance for securely managing Azure Key Vault secrets, keys, and certificates.

Dev & Engineering ✓ Microsoft · Official

Azure API Management for Python

Gives coding agents practical Python SDK patterns for managing Azure API Management services, APIs, products, subscriptions, and policies.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Python

Generate Python code for querying Azure Monitor logs and metrics.

Related skills