agentleFS
Microsoft AzureKnown publisherAzure/azure-functions-host/.github/copilot-instructions.md

azure-functions-host

Copilot instructions2k starsChanged 3 months agoMITView on GitHub

Trending

Quiet this year.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: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the Azure/azure-functions-host repository that our weekly crawl found: only 10 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about Azure/azure-functions-host

The biggest 5 of 10 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 10

Talked about on GitHub (10 times).

On GitHub · 10

5 more on GitHub

The file

Show its rules and text

We split this copilot-instructions.md into the rules it gives an agent

16 rules. About 0 are common, 7 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always use the latest version of C#, currently C# 13 features.

    line 4
  2. Very specific:

    Never change global.json unless explicitly asked to.

    line 5
  3. Very specific:

    Never change package.json or package-lock.json files unless explicitly asked to.

    line 6
  4. Distinctive:

    Never change NuGet.config files unless explicitly asked to.

    line 7
  5. Distinctive:

    Prefer file-scoped namespace declarations and single-line using directives.

    line 13
  6. Distinctive:

    Ensure that the final return statement of a method is on its own line.

    line 15
  7. Distinctive:

    Use pattern matching and switch expressions wherever possible.

    line 16
  8. Very specific:

    Use nameof instead of string literals when referring to member names.

    line 17
  9. Very specific:

    Ensure that XML doc comments are created for any public APIs.

    line 18
  10. Very specific:

    Always use is null or is not null instead of == null or != null.

    line 23
  11. Distinctive:

    Do not emit "Act", "Arrange" or "Assert" comments.

    line 28
  12. Distinctive:

    Use Moq for mocking in tests.

    line 29
  13. Very specific:

    Do not use private reflection (e.g., BindingFlags.NonPublic, GetField, GetProperty with non-public flags) to access internal state in tests.

    line 31
  14. Very specific:

    Prefer System.Text.Json over Newtonsoft.Json for new code.

    line 35
  15. Very specific:

    Do not use event-based communication (IScriptEventManager pub/sub) for new component coordination.

    line 37
  16. Very specific:

    When the user reports that Verify_DepsJsonChanges failed, or asks to update / refresh the WebHost deps.json baseline, follow the workflow …

    line 41

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

General

  • Make only high-confidence suggestions when reviewing code changes.
  • Always use the latest version of C#, currently C# 13 features.
  • Never change global.json unless explicitly asked to.
  • Never change package.json or package-lock.json files unless explicitly asked to.
  • Never change NuGet.config files unless explicitly asked to.
  • For C# string comparisons, always use string.Equals with an appropriate, explicit, StringComparison.

Formatting

  • Apply code-formatting style defined in .editorconfig.
  • Prefer file-scoped namespace declarations and single-line using directives.
  • Insert a newline before the opening curly brace of any code block (e.g., after if, for, while, foreach, using, try, etc.).
  • Ensure that the final return statement of a method is on its own line.
  • Use pattern matching and switch expressions wherever possible.
  • Use nameof instead of string literals when referring to member names.
  • Ensure that XML doc comments are created for any public APIs. When applicable, include <example> and <code> documentation in the comments.

Nullable Reference Types

  • Declare variables non-nullable, and check for null at entry points.
  • Always use is null or is not null instead of == null or != null.
  • Trust the C# null annotations and don't add null checks when the type system says a value cannot be null.

Testing

  • Do not emit "Act", "Arrange" or "Assert" comments.
  • Use Moq for mocking in tests.
  • Copy existing style in nearby files for test method names and capitalization.
  • Do not use private reflection (e.g., BindingFlags.NonPublic, GetField, GetProperty with non-public flags) to access internal state in tests. If something needs to be tested, make it accessible through public or internal APIs, test-specific seams, or refactor the design to be testable without reflection.

Dependencies & Patterns

  • Prefer System.Text.Json over Newtonsoft.Json for new code. Only use Newtonsoft when interfacing with existing APIs that require it (e.g., JObject-based shared helpers).
  • In this repository, Microsoft.Azure.WebJobs.Script.IEnvironment is our internal interface for accessing process environment data (for example, environment variables and related flags). Do not introduce new usage of IEnvironment for reading configuration; prefer the standard Microsoft.Extensions.Configuration.IConfiguration abstraction instead. Existing IEnvironment usage in legacy code is acceptable but should not be extended beyond its current scope.
  • Do not use event-based communication (IScriptEventManager pub/sub) for new component coordination. Prefer direct method calls or await-based flows.

Prompts & Workflows

  • When the user reports that Verify_DepsJsonChanges failed, or asks to update / refresh the WebHost deps.json baseline, follow the workflow in .github/prompts/update-deps-json.prompt.md.

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.