agentleFS
Microsoft AzureKnown publisherAzure/FederalAVD/.github/skills/avd-alert-kql-validation/SKILL.md

avd-alert-kql-validation

Skill18 starsChanged 3 months agoMITView on GitHub

Create and review KQL for the FederalAVD AVD Alerts add-on. Use when adding or changing scheduled query alerts, comparing alert logic with Microsoft AVD Insights workbooks, investigating query failures, or documenting intentional workbook deviations.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this workflow for log-based alerts under deployments/add-ons/avdAlerts/.

    line 9
  2. Very specific:

    Read deployments/add-ons/avdAlerts/README.md, especially Query Design and Validation, and locate the corresponding operator response in …

    line 13
  3. Very specific:

    Verify overrideQueryTimeRange is at least windowSize multiplied by numberOfEvaluationPeriods and that persistent-event behavior matches …

    line 30
  4. Distinctive:

    Document every intentional deviation in the add-on README.

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

AVD Alert KQL Validation

Use this workflow for log-based alerts under deployments/add-ons/avdAlerts/.

Procedure

  1. Read deployments/add-ons/avdAlerts/README.md, especially Query Design and Validation, and locate the corresponding operator response in ALERT-RESPONSE.md.
  2. Identify the authoritative AVD Insights workbook for the condition. Use the official Microsoft workbook sources listed in workbook sources.
  3. Extract and structurally validate the repository queries:

    & .github/skills/avd-alert-kql-validation/scripts/Test-AvdAlertQueries.ps1 `
      -ModulePath deployments/add-ons/avdAlerts/modules
  4. To inspect standalone KQL, add -OutputDirectory <temporary-folder>. Do not commit generated extraction output.
  5. Compare table selection, joins, event names or IDs, status filters, casts, deduplication, and aggregation with the workbook query covering the same condition.
  6. Adapt interactive workbook queries for alert semantics: remove render, return rows suitable for the configured aggregation and threshold, and use a bounded time window.
  7. Verify overrideQueryTimeRange is at least windowSize multiplied by numberOfEvaluationPeriods and that persistent-event behavior matches autoMitigate.
  8. Preserve cloud compatibility. Do not introduce workspace-specific functions or preview-only KQL without confirming support in every target cloud.
  9. Document every intentional deviation in the add-on README. The reason must describe alert semantics, noise suppression, cloud compatibility, or source-data behavior.
  10. Build the affected Bicep entry template and update ALERT-RESPONSE.md when operator action, thresholds, or dimensions change.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.