agentleFS
Microsoft AzureKnown publisherAzure/AzureLocal-Supportability/.github/copilot-instructions.md

AzureLocal-Supportability

Copilot instructions78 starsChanged 2 years agoMITView on GitHub

This is a public repository for all of Azure Local Troubleshooting guides (TSGs), known issues and reporting feedback - this repo is intended to provide a central location for community driven supportability content. This is the material that is referenced by Customer Support Services when a ticket is created, by Azure Local engineering responding to an incident, and by users when self discovering resolutions to active system issues. Use the administrator-surface states consistently:

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, 15 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use concise, actionable language in comments

    line 18
  2. Distinctive:

    When reviewing any document, prioritize checking these elements (in order of importance):

    line 25
  3. Distinctive:

    Use the administrator-surface states consistently:

    line 76
  4. Very specific:

    Every article template carries one hidden JSON marker with schema azure-local-supportability/tsg-metadata/v1.

    line 102
  5. Distinctive:

    Document type and applicable products

    line 107
  6. Distinctive:

    Do not place customer names, cluster names, subscription IDs, IP addresses, credentials, or other environment-specific identifiers in this …

    line 115
  7. Distinctive:

    Use these fidelity values consistently:

    line 118
  8. Distinctive:

    When reviewing or suggesting language improvements (in order of importance):

    line 157
  9. Distinctive:

    When reviewing or suggesting PowerShell code in documentation:

    line 165
  10. Distinctive:

    Verify code is safe for production environments.

    line 169
  11. Distinctive:

    Ensure commands don't disrupt workloads.

    line 172
  12. Distinctive:

    Check for proper error handling.

    line 173
  13. Distinctive:

    Use placeholders like <hostname> instead of hardcoded values.

    line 174
  14. Distinctive:

    Use [READ-ONLY] as the action type, not as a risk label.

    line 176
  15. Distinctive:

    Check for broken internal links and references

    line 196
  16. Distinctive:

    Place images in an images/ subfolder within the relevant component

    line 206

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

Project Overview

This is a public repository for all of Azure Local Troubleshooting guides (TSGs), known issues and reporting feedback - this repo is intended to provide a central location for community driven supportability content. This is the material that is referenced by Customer Support Services when a ticket is created, by Azure Local engineering responding to an incident, and by users when self discovering resolutions to active system issues.

Table of contents

  • PR review guidelines and checklists
  • Applicability and automation metadata
  • Language assistance guidelines
  • PowerShell code guidelines
  • Link guidelines
  • New file guidelines

PR Review Guidelines and Checklists

Review Process Guidance

  • Focus on consistency with existing documentation and templates
  • Limit comments to substantive issues (3-5 max per PR)
  • Use concise, actionable language in comments
  • Link to relevant templates or examples when possible
  • Adapt review depth based on PR size:
    • For large PRs (5+ files): Focus only on critical issues and structure
    • For small PRs (1-2 files): Provide more comprehensive feedback

Priority Review Areas

When reviewing any document, prioritize checking these elements (in order of importance):

  1. Safety issues (potentially harmful code)
  2. Technical inaccuracies
  3. Missing critical information
  4. Structural improvements
  5. Style and formatting issues (only if significantly impacting readability)

Review Comment Structure

Format each review comment with:

  • What: Identify the specific issue
  • Why: Briefly explain the impact or importance
  • How: Suggest a specific, actionable improvement

Document-Specific Checklists

Common Elements (All Documents)

  • Technical Accuracy
    • Commands use appropriate parameters and syntax
    • PowerShell examples include proper error handling
    • Version-specific information is clearly indicated
    • Prerequisites are accurate and complete
    • Applicable Azure Local products, deployment modes, and supported versions are explicit
    • Claims identify their evidence source and validation status
  • Formatting and Structure
    • Follows consistent markdown formatting for commands vs. outputs
    • Uses appropriate callouts (note/warning/important)
    • Employs logical headings and subheadings
    • Contains Table of Contents for documents exceeding 3 sections
    • Code examples use consistent formatting and indentation
    • Customer-facing prose contains no emoji
  • User Experience
    • Instructions are complete without assumptions of prior knowledge
    • Examples include realistic scenarios relevant to Azure Local
    • Links follow the guidelines (no version references in URLs)
    • Images are properly placed in an images/ subfolder
    • Every action states the expected result and a stop condition for unexpected output
    • The azure-local-supportability/tsg-metadata/v1 marker is present and current

Troubleshooting Guide (TSG) Checklist

  • Clear symptoms description at the beginning
  • Problem statement defines impact and scope
  • Every administrator detection surface is shown or explicitly marked not evident
  • Diagnostic steps are in logical sequence
  • Resolution steps are distinct from diagnostic steps
  • State-changing steps carry a [LOW RISK], [MEDIUM RISK], or [HIGH RISK] label
  • Preconditions, workload impact, rollback, and escalation criteria are explicit
  • Verification steps confirm issue resolution
  • PowerShell code follows safety guidelines
  • Causal claims are framed as evidence-backed contributing factors

Use the administrator-surface states consistently:

  • shown: the article names the exact signal and where to find it.
  • not-evident: an authoritative check with a stated scope, time window, or freshness basis shows that this surface does not carry the issue.
  • absent: the author has not characterized the surface. This is a documentation gap and is not publish-ready evidence that the issue does not appear there.

How-To Guide Checklist

  • Clear prerequisites section
  • Numbered step-by-step instructions
  • Each step has a single, clear action
  • Each state-changing step includes risk, impact, expected result, and rollback
  • Verification steps follow configuration changes
  • Expected outcomes are clearly documented
  • Alternative approaches mentioned where applicable

Reference Document Checklist

  • Information organized in logical categories
  • Tables used for parameter/setting references
  • Examples provided for complex configurations
  • Default values clearly indicated
  • Supported values, constraints, applicability, and validation methods are explicit

Applicability and automation metadata

Every article template carries one hidden JSON marker with schema azure-local-supportability/tsg-metadata/v1. Preserve it when creating an article and replace its placeholders. The authoritative allowed values are in tsg-metadata.schema.json. The marker records:

  • Document type and applicable products
  • Detector type and signal
  • Validation fidelity level
  • Technical grade, or null until TSG-FORGE produces one
  • Reproduction substrate
  • Automation status
  • Last validation date and internal specification reference

Do not place customer names, cluster names, subscription IDs, IP addresses, credentials, or other environment-specific identifiers in this marker.

Use these fidelity values consistently:

LevelEvidence required
L0Static structure, safety, and persona review only
L1Every diagnostic command exercised read-only
L2The real detector and remediation direction exercised with a safe proxy
L3The real failure and remediation exercised on an isolated scratch object
L4Full baseline, inject, detect, mitigate, and revalidate loop exercised live

Technical grade records the TSG outcome, not the cluster outcome:

GradeMeaning
nullNo TSG-FORGE technical grade has been established
AThe article is complete for its type, safety gates are present, metadata is valid, links resolve, and lint is clean
BUsable, but non-blocking gaps remain, such as missing optional evidence or a documented false-positive warning
CIncomplete validation, fallback-only validation, missing required routing metadata, or unclear automation readiness
FA structural, safety, metadata, or command defect that must block publishing

Validation depth (static-only through a full live inject-detect-mitigate loop) is recorded separately in fidelity_level (L0 to L4), not in the grade.

Automation status is separate from execution surface:

StatusMeaning
not-assessedNo automation assessment has been completed
scaffoldMetadata exists, but executable automation is incomplete
readyAutomation is implemented and awaiting a qualifying live run
provenAutomation completed its declared validation loop
blockedA named safety, access, or substrate requirement prevents the run
manualThe verification surface requires an operator

Execution surface describes where steps run. Use on-device, mixed, cloud-diagnostic, cloud-control, or thin. manual is an automation status, not an execution surface. Do not store execution-surface values in validation.automation_status.

Language Assistance Guidelines

When reviewing or suggesting language improvements (in order of importance):

  1. Focus on clarity rather than perfect English
  2. Prioritize technical accuracy over language perfection
  3. Suggest corrections for spelling

Frame language suggestions as "improvements" rather than "corrections"

PowerShell Code Guidelines

When reviewing or suggesting PowerShell code in documentation:

  • Pay special attention to commands that change environment state (e.g., restart, stop, remove, set, write).
  • For state-changing commands:
    • Assign one canonical risk label: [LOW RISK], [MEDIUM RISK], or [HIGH RISK].
    • Verify code is safe for production environments.
    • Implement defensive coding techniques (check conditions before taking action). But avoid excessive complexity.
    • Include a pre-check, expected output, stop condition, rollback, and verification.
    • Ensure commands don't disrupt workloads. If they do, provide clear warnings.
    • Check for proper error handling.
    • Use placeholders like <hostname> instead of hardcoded values.
  • For read-only commands:
    • Use [READ-ONLY] as the action type, not as a risk label.
    • Record the risk label as not applicable because the command does not change state.

Example:

# DANGEROUS EXAMPLE - Could cause an unexpected state
Restart-Service -Name "CriticalService" -Force

# SAFER ALTERNATIVE - Don't use force
Restart-Service -Name "CriticalService"

Example:

# Explicitly set ErrorActionPreference
$ErrorActionPreference = "Stop"
Get-Service -Name "NonExistentService"

Link Guidelines

New File Guidelines

  • Most new MD files should follow naming convention: <Type>-<Topic>-<Specifics>.md
  • Most new MD files should use one of the templates provided
  • The component README.md inventory must be updated with the article type, applicable products, owner, validation grade, automation readiness, and last validation date
  • Place images in an images/ subfolder within the relevant component

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.