agentleFS
Microsoft AzureKnown publisherAzure/azure-messaging-ai-context/.github/copilot-instructions.md

azure-messaging-ai-context

Copilot instructions0 starsChanged 21 days agoMITView on GitHub

Skills location: #file:./.github/skills When you need to run PowerShell in the terminal, ALWAYS emit a single line in this shape: Rules: - Use ; between statements; never use backticks for continuation. - Prefer single quotes inside the script block; escape only when necessary. - If CLI args contain special characters, use --% immediately after the command name. ALL terminal commands MUST be single-line. Multi-line commands cause the terminal to hang waiting for input.

  • Where files are headingNew Copilot instructions files have more rules about branches and pull requests, and fewer about code style.

    Of the Copilot instructions files we read, the 2,349 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository6 other files it gives its agents.

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, 10 are distinctive, and 6 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.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    IMPORTANT: All code changes must follow the comprehensive coding standards defined in #file:./general_coding_instructions.md This includes:

    line 4
  2. Distinctive:

    MUST: Use brief, concise commit descriptions (one line, under 72 characters when possible)

    line 21
  3. Distinctive:

    NEVER use multi-line commit messages: - always use a single-line description with no body text

    line 22
  4. Distinctive:

    Default branch: Always create PRs targeting master (not main)

    line 27
  5. Distinctive:

    Keep PR descriptions brief and to the point

    line 30
  6. Very specific:

    Azure DevOps cross-references: Use ! prefix to link PRs (e.g., !14810235), not # which links to work items

    line 33
  7. Very specific:

    Trigger builds: After creating a PR, add a comment with /azp run <pipeline-name> to start the CI build

    line 36
  8. Distinctive:

    Azure DevOps Repos: Use the ADO MCP (Model Context Protocol) tools when available for repository operations (creating branches, PRs, …

    line 42
  9. Very specific:

    GitHub Repos: Use GitHub CLI (gh) for repository operations (creating PRs, managing issues, etc.)

    line 43
  10. Distinctive:

    When you need to run PowerShell in the terminal, ALWAYS emit a single line in this shape:

    line 47
  11. Very specific:

    Use ; between statements; never use backticks for continuation.

    line 54
  12. Distinctive:

    Prefer single quotes inside the script block.

    line 55
  13. Very specific:

    If CLI args contain special characters, use --% immediately after the command name.

    line 56
  14. Very specific:

    Test mentally: If the command would show a >> continuation prompt, rewrite it as single-line

    line 65
  15. Distinctive:

    Stuck Terminal Detection: If git operations (commit, push, pull) appear to not succeed or produce no/partial output, the terminal may be …

    line 68
  16. Distinctive:

    Reset Stuck Terminals: When a terminal appears stuck, reset it and retry the operation

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 3,779 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

Azure Messaging AI Coding Instructions

General Coding Standards

IMPORTANT: All code changes must follow the comprehensive coding standards defined in #file:./general_coding_instructions.md This includes:

  • Function naming conventions (snake_case, module prefixes, internal function patterns)
  • Parameter validation rules and error handling patterns
  • Variable naming and result variable conventions
  • Header inclusion order and memory management requirements
  • Requirements traceability system (SRS/Codes_SRS/Tests_SRS patterns)
  • Async callback patterns and goto usage rules
  • Indentation, formatting, and code structure guidelines

Agent Skills

Agent Skills are available in this repository at .github/skills/. When relevant tasks are requested, load and follow the instructions from the appropriate SKILL.md file. Each subdirectory contains a skill with its own SKILL.md describing when and how to use it.

Skills location: #file:./.github/skills

Git and Source Control Guidelines

Commit Messages

  • MUST: Use brief, concise commit descriptions (one line, under 72 characters when possible)
  • NEVER use multi-line commit messages - always use a single-line description with no body text
  • Focus on what changed, not how it changed
  • Example: Fix null pointer crash in block_storage_append_async

Target Branch

  • Default branch: Always create PRs targeting master (not main)

Pull Request Descriptions

  • Keep PR descriptions brief and to the point
  • Summarize the change in 1-2 sentences
  • Include relevant work item or issue references if applicable
  • Azure DevOps cross-references: Use ! prefix to link PRs (e.g., !14810235), not # which links to work items

Starting Builds on GitHub PRs

  • Trigger builds: After creating a PR, add a comment with /azp run <pipeline-name> to start the CI build
    • For c-build-tools repo: /azp run Azure-C-Build-Tools-Gate
    • For other repos: Check the repo's pipeline configuration or ask a team member for the correct pipeline name
  • Builds do not start automatically; the comment is required

Repository-Specific Tooling

  • Azure DevOps Repos: Use the ADO MCP (Model Context Protocol) tools when available for repository operations (creating branches, PRs, managing work items)
  • GitHub Repos: Use GitHub CLI (gh) for repository operations (creating PRs, managing issues, etc.)

PowerShell Terminal Commands

When you need to run PowerShell in the terminal, ALWAYS emit a single line in this shape:

pwsh -NoLogo -NoProfile -NonInteractive -InputFormat None -ExecutionPolicy Bypass -Command "& { $ErrorActionPreference='Stop'; <STATEMENT1>; <STATEMENT2>; <STATEMENT3>; }"

Rules:

  • Use ; between statements; never use backticks for continuation.
  • Prefer single quotes inside the script block; escape only when necessary.
  • If CLI args contain special characters, use --% immediately after the command name.

General Terminal Command Rules

ALL terminal commands MUST be single-line. Multi-line commands cause the terminal to hang waiting for input.

  • Never embed literal newlines in command arguments (e.g., --body or --message flags)
  • Use semicolons to chain multiple commands: cmd1; cmd2; cmd3
  • For long strings, keep them on one line or use variables/files instead of inline content
  • Test mentally: If the command would show a >> continuation prompt, rewrite it as single-line

Terminal Troubleshooting

  • Stuck Terminal Detection: If git operations (commit, push, pull) appear to not succeed or produce no/partial output, the terminal may be stuck waiting for input
  • Reset Stuck Terminals: When a terminal appears stuck, reset it and retry the operation
  • Common Causes: Multi-line strings in commit messages, interactive prompts (credentials, merge conflicts), or commands waiting for stdin

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.