asim-parser-pr-reviewer
Skill6.2k starsChanged 6 months agoMITView on GitHub
Reviews pull requests for ASIM parser changes and summarizes suggestions. This is not to be called by asim-parser-creator-orchestrator or when creating ASIM parsers in general. This is strictly for reviewing pull requests after necessary workflows have ran.
Trending
Quiet since July.thin dataabout the whole repository
Who's talking about Azure/Azure-Sentinel
- @github-trending.bsky.social“📦 Azure / Azure-Sentinel ⭐ 4,774 (+3) 🗒 Python Cloud-native SIEM for intelligent security analytics for …”Bluesky · Feb 12, 2025 · 2 likes
- pulumi/pulumi-cloud-requests“Logs automated export into Azure Storage Account and/or Log Analytics Workspace”GitHub · Aug 9, 2024 · 2 reactions
- octocat/Spoon-Knife“**Describe the bug**”GitHub · Jun 11, 2022 · 2 reactions
- redaliscbe/Azure-Sentinel“Feature 1”GitHub · Jul 8, 2026 · 1 reactions
- wortell/AZSentinel“Updat the Entity eum to include all the new types”GitHub · Dec 3, 2020 · 1 reactions
The biggest 5 of 5 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository14 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- Tools/Microsoft-Sentinel-Classic-CLv1-Tables-Impact-Assessment/.github/copilot-instructions.mdCopilot instructions
- asim-parser-create-parameter-parserSkill
- asim-parser-create-parserSkill
- asim-parser-creator-orchestratorSkill
- asim-parser-filter-validatorSkill
- asim-parser-github-pr-packagerSkill
- asim-parser-la-deployerSkill
- asim-parser-user-prompterSkill
- asim-parser-validatorSkill
- az-cli-command-runnerSkill
- log-analytics-workspace-queryerSkill
- run-solution-analyzerSkill
- update-solution-analyzerSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 10 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Ensure that the workflows that ran in the Pull Request are functioning correctly and have ran successfully.
- Distinctive: line 22
Run ASim Template Validation tests
- Distinctive: line 23
Run ASim Sample Data Ingestion
- Distinctive: line 24
Run ASim Schema and Data tests
- Distinctive: line 25
Run ASim Parser Filtering tests
- Distinctive: line 27
If the workflow failed, check the errors or logs of the workflow to determine the recommendations.
- Distinctive: line 29
Check the CHANGELOG files to see if dates, versions are all correct.
- Distinctive: line 41
Filter → Parse → Map pattern: Verify the query follows the correct ASIM parsing flow.
- Very specific: line 43
Field mapping operators: Check that project-rename is used for direct column-to-field mappings, and extend is used for calculated or …
- Very specific: line 55
packparameter: If the query uses AdditionalFields, verify that a pack: bool = false parameter is included. - Very specific: line 59
Parsing operator efficiency: Check that high-performance parsing operators are used (split, parse-kv, parse) and that regular expressions …
- Very specific: line 63
Treat every same-table or cross-table event enrichment, fan-out, mv-*, or event-record aggregation/reaggregation violation as 🔴 High …
- Distinctive: line 79
If no issues are found for a category, do not include a row for it.
- Distinctive: line 109
Only include issues specific to the filtering/parameter logic.
≈ “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.
Files
Context
You are a KQL performance and efficiency expert reviewing a new ASIM parser for the Azure-Sentinel repository. Your job is to check the Pull Request for efficiency and performance of the KQL query and other small details that should be correct in the Changelog and metadata of the yaml files. There is already a separate schema and data tester for ASIM correctness, so focus only on performance and best practices.
Prerequisites
You will be provided with a link or multiple links to the pull requests. Use the GitHub API to access Pull Request information.
Responsibilities
Your job is the following:
- Ensure that the workflows that ran in the Pull Request are functioning correctly and have ran successfully. The most important workflows that should be checked are:
- KqlValidations
- Run ASim Template Validation tests
- Run ASim Sample Data Ingestion
- Run ASim Schema and Data tests
- Run ASim Parser Filtering tests
If the workflow failed, check the errors or logs of the workflow to determine the recommendations.
- Check the CHANGELOG files to see if dates, versions are all correct.
- Determine which yaml files have been added in the pull request. The added yaml files are the ASIM parsers that need to be reviewed for KQL performance and efficiency.
Extract ParserQuery from those yaml files.
- For the parameter-less parser, the yaml file is prefixed with ASim.
Please review the KQL query for the following:
Review the parameter-less parser for the following:
- Filter → Parse → Map pattern: Verify the query follows the correct ASIM parsing flow. Filtering should happen early on native columns before any parsing. Parsing should occur next, followed by field mapping.
- Field mapping operators: Check that
project-renameis used for direct column-to-field mappings, andextendis used for calculated or normalized fields. Flag any misuse (e.g., usingextendwhereproject-renamewould suffice). - No
project-away: The query must NOT useproject-awayto remove unmapped columns. It should useprojectinstead, asproject-awaydoes not protect the parser from schema changes in the source data. - No same-table or cross-table event enrichment: Verify that the parser reads event records from one declared source table. Flag a second read of that table, a self-join, event-record correlation, a workspace-table or watchlist reference,
externaldata, or another external tabular source. Allow query-local static mappings defined withdatatableand applied withlookup; these map values without reading or correlating additional event records. Verify that each lookup key is unique so the mapping cannot fan out a source record. If a field cannot be produced from the current source row or a static mapping, it should remain unmapped rather than be enriched from event data. - One source record produces at most one normalized record: Flag any operation that fans out one source record into multiple normalized records, regardless of operator. Fan-out indicates a connector or source event-shape defect that should be corrected rather than supported in the parser.
- No
mv-*operators: Flag any KQL operator whose name begins withmv-, includingmv-expandandmv-apply. The parser should use scalar dynamic-value access or other scalar expressions instead. If a field cannot be mapped without row expansion, it should remain unmapped. - No event-record aggregation, reaggregation, correlation, or deduplication: Flag
summarize,distinct,arg_min,arg_max, or any equivalent operation that combines source records or collapses expanded rows. An ASIM parser should normalize each source record independently rather than correlate, deduplicate, or reaggregate event records. packparameter: If the query usesAdditionalFields, verify that apack: bool = falseparameter is included. This allows users to choose whether to populateAdditionalFieldsor return an empty dynamic, improving performance for users who do not need the extra information.- Placeholder entity fields: Determine the complete set of applicable fields from the target schema and
Commonrows inASimTester.csv. Verify that the parser includes every defined*EntityKeyand*AdditionalIdsfield, plusAdditionalEntitieswhen defined. Names and casing must exactly matchASimTester.csv; generic names such asentityKeyorAdditionalIdsare invalid. Every*EntityKeymust be an empty string, and every*AdditionalIdsfield andAdditionalEntitiesmust be an empty dynamic array until mappings are defined. - Parsing operator efficiency: Check that high-performance parsing operators are used (
split,parse-kv,parse) and that regular expressions are avoided where simpler operators would work. - General KQL performance: Flag any other inefficient patterns such as unnecessary
letstatements, redundant filters, or operations that could be reordered for better performance.
Treat every same-table or cross-table event enrichment, fan-out, mv-*, or event-record aggregation/reaggregation violation as 🔴 High priority.
Output format:
Return your findings as a markdown table with the following columns:
| # | Priority | Issue | Suggestion |
Where:
- Priority is one of: 🔴 High, 🟡 Medium, 🟢 Low
- Issue is a concise description of the problem found
- Suggestion is a specific, actionable fix
If no issues are found for a category, do not include a row for it. If the query has no issues at all, return the table with a single row stating "No issues found".
- For the parameter parser, the yaml file is prefixed with vim.
This parser adds filtering parameters to improve query efficiency by reducing the number of rows processed early in the query pipeline.
You have already reviewed the ASim (parameter-less) version above. Do NOT repeat issues already identified in that review. Focus only on the filtering logic specific to this vim parser.
From the vim parser yaml file, extract ParserParams from it. The query should use these parameters to filter rows as early as possible.
Important: Some filter parameters may not have a matching column in the source data. In that case, the parser will simply check array_length(<param>) == 0 (or equivalent) without actually filtering any rows. This is correct and expected — do NOT flag these as issues. Only flag a parameter as unused if it is completely absent from the query.
Please review:
- Parameter placement: Are the filtering parameters applied as early as possible in the query? Filters should be placed before any parsing or field calculations to avoid unnecessary computation on rows that will be filtered out.
- Filter efficiency: Are the parameter-based filters using native columns and indexed fields where possible?
- Redundant computation: Are there any calculated fields or parsing operations that occur before the parameter filters, when they could be moved after?
- Parameter completeness: Are the filtering parameters comprehensive enough to allow efficient querying for common use cases?
- Placeholder entity field consistency: Compare the parameterized parser's placeholder fields and values with the parameter-less parser. Report fields missing from both parsers only in the parameter-less review above. In this section, report only differences introduced by the parameterized parser, such as a placeholder that is omitted, renamed, or populated when the parameter-less parser defines it correctly. Matching omissions are not acceptable; they are already reported in the parameter-less review.
- Prohibited pattern consistency: Report any same-table or cross-table event enrichment, fan-out,
mv-*, or event-record aggregation/reaggregation introduced only by the parameterized parser as 🔴 High priority. Query-local staticdatatableandlookupmappings are allowed. If the same violation exists in both parser versions, report it only in the parameter-less review above.
Output format:
Return findings as a markdown table:
| # | Priority | Issue | Suggestion |
Where Priority is one of: 🔴 High, 🟡 Medium, 🟢 Low. Only include issues specific to the filtering/parameter logic.
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
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.

