Azure-Sentinel
Copilot instructions6.2k starsChanged 6 months agoMITView on GitHub
When reviewing pull requests, follow these rules strictly. Before reviewing any file, CHECK if it matches these patterns:
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.
- 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-pr-reviewerSkill
- 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 copilot-instructions.md into the rules it gives an agent
31 rules. About 0 are common, 23 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈23
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
When reviewing pull requests, follow these rules strictly.
- Distinctive: line 14
Check all validation rules, required fields, and review focus areas from that custom instruction file
- Distinctive: line 15
Do NOT use general instructions for these files - only use the solution-metadata custom instructions
- Distinctive: line 21
Do NOT use general instructions for these files - only use the solution-data custom instructions
- Distinctive: line 26
If this is the only changed file in the PR, still run full Release Notes validation and add findings
- Distinctive: line 27
Do NOT use generic fallback comments for these files
- Distinctive: line 32
Check all field requirements, MITRE ATT&CK mappings, KQL syntax, and formatting guidelines from that custom instruction file
- Distinctive: line 34
Do NOT use general instructions for these files - only use the detections custom instructions
- Distinctive: line 39
Verify all required fields are present and properly formatted
- Distinctive: line 40
Do NOT use general instructions for these files - only use the huntingqueries custom instructions
- Distinctive: line 46
Check all required sections in README.md and ARM template metadata
- Distinctive: line 47
Do NOT use general instructions for these files - only use the playbooks custom instructions
- Distinctive: line 53
Check all required top-level fields and item structure validation
- Distinctive: line 54
Do NOT use general instructions for these files - only use the workbook custom instructions
- Distinctive: line 60
Do NOT use general instructions for these files - only use the parsers custom instructions
- Distinctive: line 63
When the user asks to build, package, validate, or run validations on a solution:
- Distinctive: line 68
The script takes 3-10 minutes: NEVER tell the user to "check the terminal."
- Distinctive: line 77
Do NOT review or add comments for changes in the following paths:
- Distinctive: line 82
If files from these paths appear in the PR, completely skip them and do not generate comments.
- Very specific: line 86
When working with the Solutions Analyzer tools in Tools/Solutions Analyzer/, follow the dedicated skills under .github/skills/:
- Distinctive: line 100
Only use this when specifically requested to "publish CSVs to the output branch"
- Distinctive: line 112
Generate docs only in the sentinelninja repo: when asked or needed
- Very specific: line 114
Always use --output-dir flag when running generate_connector_docs.py
- Very specific: line 124
Note: Do NOT truncate or filter the output (e.g., do not pipe through Select-Object).
- Very specific: line 131
IMPORTANT: Never run without --output-dir flag.
- Very specific: line 133
IMPORTANT: Do NOT truncate or filter the output (e.g., do not pipe through Select-Object).
- Very specific: line 135
IMPORTANT: Always use --skip-input-generation unless you specifically need to regenerate the input CSVs (mapper + collect_table_info).
- Distinctive: line 137
IMPORTANT: Run the mapper script before generating docs if:
- Very specific: line 150
Use --force-refresh with these types when modifying analysis logic:
- Very specific: line 160
Before updating a script: Always review the relevant script documentation in Tools/Solutions Analyzer/docs/ first.
- Distinctive: line 166
Update the primary readme.md if needed and add the change to the change log.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
GitHub Copilot Instructions for Azure-Sentinel Repository
Copilot Pull Request Review Guidelines
When reviewing pull requests, follow these rules strictly.
IMPORTANT: Load Custom Instructions Based on File Type
Before reviewing any file, CHECK if it matches these patterns:
For Solution Metadata Files (Solutions/**/SolutionMetadata.json)
- LOAD and USE:
.github/instructions/solution-metadata.instructions.md - Apply ALL guidelines from that file
- Check all validation rules, required fields, and review focus areas from that custom instruction file
- Do NOT use general instructions for these files - only use the solution-metadata custom instructions
For Solution Data Files (Solutions/**/Data/Solution_*.json)
- LOAD and USE:
.github/instructions/solution-data.instructions.md - Apply ALL guidelines from that file
- Check all validation rules, required fields, and review focus areas from that custom instruction file
- Do NOT use general instructions for these files - only use the solution-data custom instructions
For Release Notes Files (Solutions/**/ReleaseNotes.md)
- LOAD and USE:
.github/instructions/releasenotes.instructions.md - Apply ALL validation rules from that file (path, table structure, version format/order, DD-MM-YYYY date format)
- If this is the only changed file in the PR, still run full Release Notes validation and add findings
- Do NOT use generic fallback comments for these files
For Analytic Rules Files (Detections/**/*.yaml, Detections/**/*.yml, Solutions/**/Analytic Rules/*.yaml, Solutions/**/Analytic Rules/*.yml)
- LOAD and USE:
.github/instructions/detections.instructions.md - Apply ALL validation rules from that file
- Check all field requirements, MITRE ATT&CK mappings, KQL syntax, and formatting guidelines from that custom instruction file
- Validate GUID format, rule names, descriptions, severity levels, and other field-based validation rules
- Do NOT use general instructions for these files - only use the detections custom instructions
For Hunting Queries Files (Hunting Queries/**/*.yaml, Solutions/**/Hunting Queries/*.yaml)
- LOAD and USE:
.github/instructions/huntingqueries.instructions.md - Apply ALL guidelines from that file
- Verify all required fields are present and properly formatted
- Do NOT use general instructions for these files - only use the huntingqueries custom instructions
For Playbooks Files (Playbooks/**/*.json, Playbooks/**/README.md, Solutions/**/Playbooks/**/*.json, Solutions/**/Playbooks/**/README.md)
- LOAD and USE:
.github/instructions/playbooks.instructions.md - Apply ALL guidelines from that file
- Validate ARM template structure, metadata fields, parameters, and README requirements from that custom instruction file
- Check all required sections in README.md and ARM template metadata
- Do NOT use general instructions for these files - only use the playbooks custom instructions
For Workbooks Files (Workbooks/*.json, Solutions/**/Workbooks/*.json)
- LOAD and USE:
.github/instructions/workbook.instructions.md - Apply ALL guidelines from that file
- Validate workbook JSON structure, required fields, items array, and metadata requirements from that custom instruction file
- Check all required top-level fields and item structure validation
- Do NOT use general instructions for these files - only use the workbook custom instructions
For Parser Files (Parsers/**/*.yaml, Parsers/**/*.yml, Solutions/**/Parsers/**/*.yaml, Solutions/**/Parsers/**/*.yml)
- LOAD and USE:
.github/instructions/parsers.instructions.md - Apply ALL guidelines from that file
- Validate parser syntax, KQL accuracy, YAML structure, and all required fields from that custom instruction file
- Do NOT use general instructions for these files - only use the parsers custom instructions
For Building, Packaging, or Validating Solutions
When the user asks to build, package, validate, or run validations on a solution:
- LOAD and USE:
.github/instructions/packaging.instructions.md - Apply ALL guidelines from that file — it contains the script path, parameters, fuzzy matching behavior, and report display rules
- Always use the build script at
.script/local-validation/build-and-validate.ps1— do NOT run validators manually or write your own validation logic - BEFORE running the script, tell the user: "🔄 Running full build & validation suite for {SolutionName}. This typically takes 3-5 minutes — I'll present the complete report when it finishes." This message MUST appear in chat before the script executes so the user knows work is happening.
- The script takes 3-10 minutes. NEVER tell the user to "check the terminal."
- Present the full report — the text between
[REPORT_START]and[REPORT_END]— in your chat response - This applies to ALL solutions, including newly created ones that may not have a Package/ folder yet
Trigger phrases: "build solution", "package solution", "validate solution", "run validations", "run CI checks", "check if solution passes", "create V3 package"
Files and folders to ignore
Do NOT review or add comments for changes in the following paths:
- Solutions//Data Connectors/
- Solutions//Package/
If files from these paths appear in the PR, completely skip them and do not generate comments.
Solutions Analyzer Tools
When working with the Solutions Analyzer tools in Tools/Solutions Analyzer/, follow the dedicated skills under .github/skills/:
run-solution-analyzer— running the mapper, doc generator, ASIM browser, andupload_to_kusto; output locations; force-refresh and caching.update-solution-analyzer— modifying scripts, updatingscript-docs/, README changelog rules, CSV output sync withupload_to_kusto.py, and static/interactive index plus markdown/HTML entity page synchronization.
MANDATORY: Before editing ANY file under Tools/Solutions Analyzer/ — including small fixes such as renames, regex/pattern tweaks, escaping changes, override additions, or one-line behavior changes — first load .github/skills/update-solution-analyzer/SKILL.md and follow it. A ## Version History changelog entry in Tools/Solutions Analyzer/README.md is required for feature additions and behavior changes (new features, changed analysis logic, new/renamed/removed CSV columns, parameter changes); pure bug fixes — such as typo corrections, crash fixes, escape/regex tweaks, or one-line fixes that restore intended behavior — may be logged at your discretion but are not required.
There are THREE different output scenarios - never confuse them:
- Default (development): CSVs are written to
Tools/Solutions Analyzer/in the current branch- This is the normal case when developing/testing
- Never generate documentation here
- Output worktree (publishing CSVs):
C:\Users\ofshezaf\GitHub\Azure-Sentinel-solution-analyzer-output\Tools\Solutions Analyzer- Only use this when specifically requested to "publish CSVs to the output branch"
- This is a separate git worktree for the CSV output branch
- Only CSVs go here, never documentation
- Documentation output:
C:\Users\ofshezaf\GitHub\sentinelninja\Solutions Docs- This is where generated markdown documentation goes
- This is in a separate repository (sentinelninja)
- Empty the target folder before generating new docs
Key Rules
- Never generate docs locally in the Azure-Sentinel repository
- Generate docs only in the sentinelninja repo when asked or needed
- For official CSV releases, generate CSVs only in the solution analyzer output worktree
- Always use
--output-dirflag when runninggenerate_connector_docs.py
Running Scripts
Mapper Script
cd "Tools/Solutions Analyzer"
python map_solutions_connectors_tables.pyNote: Do NOT truncate or filter the output (e.g., do not pipe through Select-Object). The script prints timestamped progress messages to the console that the user needs to see. Run with isBackground: false and timeout: 0 so the full output is visible.
Documentation Generator
python generate_connector_docs.py --output-dir "C:\Users\ofshezaf\GitHub\sentinelninja\Solutions Docs" --skip-input-generationIMPORTANT: Never run without --output-dir flag.
IMPORTANT: Do NOT truncate or filter the output (e.g., do not pipe through Select-Object). Run with isBackground: false and timeout: 0 so the full output is visible to the user.
IMPORTANT: Always use --skip-input-generation unless you specifically need to regenerate the input CSVs (mapper + collect_table_info). Without this flag, the doc generator will re-run those scripts automatically, which is slow and unnecessary if the CSVs are already up-to-date.
IMPORTANT: Run the mapper script before generating docs if:
- The mapper script itself was modified, OR
- Any override YAML file in the
overrides/folder was modified (including adding, editing, or removingadditional_connectorsentries), OR - You specifically need to refresh the CSV data, OR
- You are explicitly asked to run the mapper
Caching and Logging
- Cache:
.cache/folder for analysis caching - Logs:
.logs/folder for log files
Log file: Tools/Solutions Analyzer/.logs/map_solutions_connectors_tables.log
Use --force-refresh with these types when modifying analysis logic:
asim- ASIM parser analysisparsers- Non-ASIM parser analysissolutions- Solution content analysisstandalone- Standalone content item analysismarketplace- Marketplace availability check (requires network)tables- Table reference info (requires network)
Script Documentation
Before updating a script: Always review the relevant script documentation in Tools/Solutions Analyzer/docs/ first.
When updating a script, update the corresponding script doc to reflect:
- Any script parameters added or changed
- Any output file changes, including changes to CSV files (new columns, renamed columns, removed columns)
- Any changes to analysis methods or logic
- Update the primary readme.md if needed and add the change to the change log. Do not add a version if the previous version as manifested by the changelog, was not committed yet.
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.

