agentleFS
Microsoft AzureKnown publisherAzure/Azure-Sentinel/.github/copilot-instructions.md

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

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

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
  1. Distinctive:

    When reviewing pull requests, follow these rules strictly.

    line 5
  2. Distinctive:

    Check all validation rules, required fields, and review focus areas from that custom instruction file

    line 14
  3. Distinctive:

    Do NOT use general instructions for these files - only use the solution-metadata custom instructions

    line 15
  4. Distinctive:

    Do NOT use general instructions for these files - only use the solution-data custom instructions

    line 21
  5. Distinctive:

    If this is the only changed file in the PR, still run full Release Notes validation and add findings

    line 26
  6. Distinctive:

    Do NOT use generic fallback comments for these files

    line 27
  7. Distinctive:

    Check all field requirements, MITRE ATT&CK mappings, KQL syntax, and formatting guidelines from that custom instruction file

    line 32
  8. Distinctive:

    Do NOT use general instructions for these files - only use the detections custom instructions

    line 34
  9. Distinctive:

    Verify all required fields are present and properly formatted

    line 39
  10. Distinctive:

    Do NOT use general instructions for these files - only use the huntingqueries custom instructions

    line 40
  11. Distinctive:

    Check all required sections in README.md and ARM template metadata

    line 46
  12. Distinctive:

    Do NOT use general instructions for these files - only use the playbooks custom instructions

    line 47
  13. Distinctive:

    Check all required top-level fields and item structure validation

    line 53
  14. Distinctive:

    Do NOT use general instructions for these files - only use the workbook custom instructions

    line 54
  15. Distinctive:

    Do NOT use general instructions for these files - only use the parsers custom instructions

    line 60
  16. Distinctive:

    When the user asks to build, package, validate, or run validations on a solution:

    line 63
  17. Distinctive:

    The script takes 3-10 minutes: NEVER tell the user to "check the terminal."

    line 68
  18. Distinctive:

    Do NOT review or add comments for changes in the following paths:

    line 77
  19. Distinctive:

    If files from these paths appear in the PR, completely skip them and do not generate comments.

    line 82
  20. Very specific:

    When working with the Solutions Analyzer tools in Tools/Solutions Analyzer/, follow the dedicated skills under .github/skills/:

    line 86
  21. Distinctive:

    Only use this when specifically requested to "publish CSVs to the output branch"

    line 100
  22. Distinctive:

    Generate docs only in the sentinelninja repo: when asked or needed

    line 112
  23. Very specific:

    Always use --output-dir flag when running generate_connector_docs.py

    line 114
  24. Very specific:

    Note: Do NOT truncate or filter the output (e.g., do not pipe through Select-Object).

    line 124
  25. Very specific:

    IMPORTANT: Never run without --output-dir flag.

    line 131
  26. Very specific:

    IMPORTANT: Do NOT truncate or filter the output (e.g., do not pipe through Select-Object).

    line 133
  27. Very specific:

    IMPORTANT: Always use --skip-input-generation unless you specifically need to regenerate the input CSVs (mapper + collect_table_info).

    line 135
  28. Distinctive:

    IMPORTANT: Run the mapper script before generating docs if:

    line 137
  29. Very specific:

    Use --force-refresh with these types when modifying analysis logic:

    line 150
  30. Very specific:

    Before updating a script: Always review the relevant script documentation in Tools/Solutions Analyzer/docs/ first.

    line 160
  31. Distinctive:

    Update the primary readme.md if needed and add the change to the change log.

    line 166

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

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

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)

  1. LOAD and USE: .github/instructions/solution-metadata.instructions.md
  2. Apply ALL guidelines from that file
  3. Check all validation rules, required fields, and review focus areas from that custom instruction file
  4. Do NOT use general instructions for these files - only use the solution-metadata custom instructions

For Solution Data Files (Solutions/**/Data/Solution_*.json)

  1. LOAD and USE: .github/instructions/solution-data.instructions.md
  2. Apply ALL guidelines from that file
  3. Check all validation rules, required fields, and review focus areas from that custom instruction file
  4. Do NOT use general instructions for these files - only use the solution-data custom instructions

For Release Notes Files (Solutions/**/ReleaseNotes.md)

  1. LOAD and USE: .github/instructions/releasenotes.instructions.md
  2. Apply ALL validation rules from that file (path, table structure, version format/order, DD-MM-YYYY date format)
  3. If this is the only changed file in the PR, still run full Release Notes validation and add findings
  4. 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)

  1. LOAD and USE: .github/instructions/detections.instructions.md
  2. Apply ALL validation rules from that file
  3. Check all field requirements, MITRE ATT&CK mappings, KQL syntax, and formatting guidelines from that custom instruction file
  4. Validate GUID format, rule names, descriptions, severity levels, and other field-based validation rules
  5. 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)

  1. LOAD and USE: .github/instructions/huntingqueries.instructions.md
  2. Apply ALL guidelines from that file
  3. Verify all required fields are present and properly formatted
  4. 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)

  1. LOAD and USE: .github/instructions/playbooks.instructions.md
  2. Apply ALL guidelines from that file
  3. Validate ARM template structure, metadata fields, parameters, and README requirements from that custom instruction file
  4. Check all required sections in README.md and ARM template metadata
  5. Do NOT use general instructions for these files - only use the playbooks custom instructions

For Workbooks Files (Workbooks/*.json, Solutions/**/Workbooks/*.json)

  1. LOAD and USE: .github/instructions/workbook.instructions.md
  2. Apply ALL guidelines from that file
  3. Validate workbook JSON structure, required fields, items array, and metadata requirements from that custom instruction file
  4. Check all required top-level fields and item structure validation
  5. 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)

  1. LOAD and USE: .github/instructions/parsers.instructions.md
  2. Apply ALL guidelines from that file
  3. Validate parser syntax, KQL accuracy, YAML structure, and all required fields from that custom instruction file
  4. 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:

  1. LOAD and USE: .github/instructions/packaging.instructions.md
  2. Apply ALL guidelines from that file — it contains the script path, parameters, fuzzy matching behavior, and report display rules
  3. Always use the build script at .script/local-validation/build-and-validate.ps1 — do NOT run validators manually or write your own validation logic
  4. 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.
  5. The script takes 3-10 minutes. NEVER tell the user to "check the terminal."
  6. Present the full report — the text between [REPORT_START] and [REPORT_END] — in your chat response
  7. 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, and upload_to_kusto; output locations; force-refresh and caching.
  • update-solution-analyzer — modifying scripts, updating script-docs/, README changelog rules, CSV output sync with upload_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:

  1. 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
  2. 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
  3. 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-dir flag when running generate_connector_docs.py

Running Scripts

Mapper Script

cd "Tools/Solutions Analyzer"
python map_solutions_connectors_tables.py

Note: 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-generation

IMPORTANT: 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 removing additional_connectors entries), 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 analysis
  • parsers - Non-ASIM parser analysis
  • solutions - Solution content analysis
  • standalone - Standalone content item analysis
  • marketplace - 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.

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.