azure-messaging-ai-context
Copilot instructions0 starsChanged 8 months 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.
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
17 rules. About 0 are common, 10 are distinctive, and 7 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.
7
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)
- Very specific: line 30
AI-Generated PRs: When creating a pull request, prepend [MrBot] to the title (e.g., [MrBot] Fix null pointer crash in storage module)
- Distinctive: line 33
Keep PR descriptions brief and to the point
- Very specific: line 36
Azure DevOps cross-references: Use ! prefix to link PRs (e.g., !14810235), not # which links to work items
- Very specific: line 39
Trigger builds: After creating a PR, add a comment with /azp run <pipeline-name> to start the CI build
- Distinctive: line 45
Azure DevOps Repos: Use the ADO MCP (Model Context Protocol) tools when available for repository operations (creating branches, PRs, …
- Very specific: line 46
GitHub Repos: Use GitHub CLI (gh) for repository operations (creating PRs, managing issues, etc.)
- Distinctive: line 50
When you need to run PowerShell in the terminal, ALWAYS emit a single line in this shape:
- Very specific: line 57
Use ; between statements; never use backticks for continuation.
- Distinctive: line 58
Prefer single quotes inside the script block.
- Very specific: line 59
If CLI args contain special characters, use --% immediately after the command name.
- Very specific: line 68
Test mentally: If the command would show a >> continuation prompt, rewrite it as single-line
- Distinctive: line 71
Stuck Terminal Detection: If git operations (commit, push, pull) appear to not succeed or produce no/partial output, the terminal may be …
- Distinctive: line 72
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 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
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 Titles
- AI-Generated PRs: When creating a pull request, prepend
[MrBot]to the title (e.g.,[MrBot] Fix null pointer crash in storage module)
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.

