agentleFS
Microsoft AzureKnown publisherAzure/Azure-Sentinel/.github/skills/asim-parser-validator/SKILL.md

asim-parser-validator

Skill6.2k starsChanged 6 months agoMITView on GitHub

This skill will validate an ASIM by checking the schema output of the parser and also checking the data that the parser represents in the columns. Use this skill after you have created or updated an ASIM parser to validate that the parser is correctly mapping the source data to the ASIM schema.

Trending

Quiet since July.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the Azure/Azure-Sentinel repository that our weekly crawl found: only 5 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

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

    All queries in this skill must be executed using the log-analytics-workspace-queryer skill.

    line 29
  2. Very specific:

    Before fetching the YAML files, check if ASimSchemaTester and ASimDataTester are already available as saved searches in the workspace.

    line 33
  3. Very specific:

    Look for entries with values ASimSchemaTester and ASimDataTester in the results.

    line 39
  4. Very specific:

    Use the az-cli-command-runner skill to deploy each template:

    line 47
  5. Distinctive:

    After successful deployment, the functions are available in the workspace.

    line 53
  6. Distinctive:

    Run the schema validation query:

    line 57
  7. Very specific:

    Run the data validation query.

    line 77
  8. Distinctive:

    After making fixes based on the validation results, run the modified parser KQL query by itself to confirm it executes without syntax …

    line 90
  9. Distinctive:

    If the query fails with a syntax error, fix the issue before returning results to the calling skill.

    line 96

≈ “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

Validation functions

There are two validations that will need to be run against the ASIM parser:

  1. Schema validation: Checks that the output of the ASIM parser has the correct columns and data types matching the ASIM schema.
  2. Data validation: Checks that the values in the columns are correctly mapped and transformed — including enumerations, data type formatting (e.g., IP addresses), and value normalization.

Inputs

This skill requires the following:

  • ASIM parser KQL — the full KQL query of the parser (or the file path to the .kql file).
  • ASIM schema name — the target schema (e.g., NetworkSession, Authentication).
  • Workspace ID — the Log Analytics workspace GUID where the parser will be tested.
  • Resource group and workspace name — needed to check for existing saved searches. If not already known, use the az-cli-command-runner skill to find them:
az monitor log-analytics workspace list --query "[?customerId=='<workspaceId>'].{name:name, resourceGroup:resourceGroup}" -o json

All queries in this skill must be executed using the log-analytics-workspace-queryer skill.

Step 0: Check if ASIM testers are already deployed

Before fetching the YAML files, check if ASimSchemaTester and ASimDataTester are already available as saved searches in the workspace. Use the az-cli-command-runner skill to run:

az monitor log-analytics workspace saved-search list --resource-group <rg> --workspace-name <name> --query "[].{functionAlias:functionAlias}" -o table

Look for entries with values ASimSchemaTester and ASimDataTester in the results.

Step 1: Schema validation (ASimSchemaTester)

Run the schema validation query:

<ASIM parser KQL> | getschema | invoke ASimSchemaTester("<name of the ASIM schema>")

Interpreting schema validation results

Results fall into 3 severity levels:

  • (0) Error — Must be fixed before proceeding. These indicate missing mandatory fields, type mismatches, or missing aliases.
  • (1) Warning — Missing recommended fields. Attempt to fix, but do not brute-force a fix if the source data does not contain the information.
  • (2) Info — Two sub-categories:
    • "extra unnormalized column" — The parser output contains columns not defined in the ASIM schema. Fix these by removing the extra columns from the parser output using project.
    • All other Info messages (e.g., missing optional fields/aliases) — Can be safely ignored.

Address all errors before proceeding to Step 2.

Step 2: Data validation (ASimDataTester)

Run the data validation query. The | limit 1000 restricts the number of rows inspected because the data tester evaluates individual row values, which is more expensive than schema-level checks.

<ASIM parser KQL> | limit 1000 | invoke ASimDataTester("<name of the ASIM schema>")

Interpreting data validation results

  • Fix errors related to enumerated fields — these indicate the parser is producing values that are not in the allowed set for that column.
  • Fix errors related to data type formatting — these indicate values do not match the expected format (e.g., an IP address column contains non-IP values).

Step 3: Verify the parser runs without syntax errors

After making fixes based on the validation results, run the modified parser KQL query by itself to confirm it executes without syntax errors:

<ASIM parser KQL>

If the query fails with a syntax error, fix the issue before returning results to the calling skill.

Outputs

This skill returns the following to the calling skill or orchestrator:

  • Schema validation results — the list of Error, Warning, and Info messages from ASimSchemaTester.
  • Data validation results — the list of Error, Warning, and Info messages from ASimDataTester.
  • Summary — whether any Error-level (0) results remain after both validations.

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.