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.
- address-pr-commentsSkill
- apply-change-to-repo-hierarchySkill
- create-new-taskSkill
- extract-learningsSkill
- run-coverageSkill
- watch-multiple-pr-statusSkill
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
- Distinctive: line 4
IMPORTANT: All code changes must follow the comprehensive coding standards defined in #file:./general_coding_instructions.md This includes:
- Distinctive: line 21
MUST: Use brief, concise commit descriptions (one line, under 72 characters when possible)
- Distinctive: line 22
NEVER use multi-line commit messages: - always use a single-line description with no body text
- Distinctive: line 27
Default branch: Always create PRs targeting master (not main)
- Distinctive: line 30
Keep PR descriptions brief and to the point
- Very specific: line 33
Azure DevOps cross-references: Use ! prefix to link PRs (e.g., !14810235), not # which links to work items
- Very specific: line 36
Trigger builds: After creating a PR, add a comment with /azp run <pipeline-name> to start the CI build
- Distinctive: line 42
Azure DevOps Repos: Use the ADO MCP (Model Context Protocol) tools when available for repository operations (creating branches, PRs, …
- Very specific: line 43
GitHub Repos: Use GitHub CLI (gh) for repository operations (creating PRs, managing issues, etc.)
- Distinctive: line 47
When you need to run PowerShell in the terminal, ALWAYS emit a single line in this shape:
- Very specific: line 54
Use ; between statements; never use backticks for continuation.
- Distinctive: line 55
Prefer single quotes inside the script block.
- Very specific: line 56
If CLI args contain special characters, use --% immediately after the command name.
- Very specific: line 65
Test mentally: If the command would show a >> continuation prompt, rewrite it as single-line
- Distinctive: line 68
Stuck Terminal Detection: If git operations (commit, push, pull) appear to not succeed or produce no/partial output, the terminal may be …
- Distinctive: line 69
Reset Stuck Terminals: When a terminal appears stuck, reset it and retry the operation
≈ “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.
Files
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(notmain)
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
- For c-build-tools repo:
- 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.,
--bodyor--messageflags) - 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
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.

