agentleFS
MicrosoftKnown publishermicrosoft/wssd-sdk-for-go/.github/copilot-instructions.md

wssd-sdk-for-go

Copilot instructions9 starsChanged 10 months agoMITView on GitHub

When working on pull requests in this repository, DO NOT mark the PR as ready for review until ALL of the following conditions are met: Before marking a PR ready for review, you MUST verify that all local checks pass: You MUST verify that all continuous integration checks are passing: Use the GitHub MCP tools to verify status: For reference, here are the key commands for this repository: Remember: Green status across ALL checks is mandatory before marking any PR…

The file

Show its rules and text

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

18 rules. About 0 are common, 13 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When working on pull requests in this repository, DO NOT mark the PR as ready for review until ALL of the following conditions are met:

    line 5
  2. Distinctive:

    Before marking a PR ready for review, you MUST verify that all local checks pass:

    line 9
  3. Very specific:

    Build: Run make build and ensure it completes successfully with no errors

    line 11
  4. Very specific:

    Unit Tests: Run make unittest and ensure all tests pass

    line 12
  5. Very specific:

    Linting: Run make golangci-lint and ensure no linting errors are reported

    line 13
  6. Very specific:

    Formatting: Run make format to ensure code is properly formatted

    line 14
  7. Distinctive:

    Azure Pipelines: Check that all pipeline jobs have completed successfully

    line 20
  8. Distinctive:

    GitHub Actions: Check that all GitHub Actions workflows are passing

    line 26
  9. Distinctive:

    Use the GitHub MCP tools to verify status:

    line 33
  10. Very specific:

    Check specific run status: get_workflow_run

    line 36
  11. Distinctive:

    Wait for all checks: Do not mark the PR as ready until all automated checks show green/passing status

    line 42
  12. Distinctive:

    Fix failures: If any check fails, investigate the logs, fix the issues, commit changes, and wait for checks to run again

    line 43
  13. Distinctive:

    Verify build quality: Ensure no warnings or errors in build output that could indicate issues

    line 44
  14. Distinctive:

    Security checks: Ensure all security scanning tools (CredScan, PoliCheck, GoSec, CodeQL) pass

    line 45
  15. Distinctive:

    Always run local validation before pushing to reduce CI failures

    line 49
  16. Distinctive:

    If a check fails repeatedly, investigate root cause rather than repeatedly pushing

    line 50
  17. Distinctive:

    Document any known issues or limitations in the PR description

    line 51
  18. Distinctive:

    Ensure your changes don't break existing tests or introduce new security vulnerabilities

    line 52

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

GitHub Copilot Instructions for wssd-sdk-for-go

PR Readiness Requirements

When working on pull requests in this repository, DO NOT mark the PR as ready for review until ALL of the following conditions are met:

1. Local Build and Test Verification

Before marking a PR ready for review, you MUST verify that all local checks pass:

  • Build: Run make build and ensure it completes successfully with no errors
  • Unit Tests: Run make unittest and ensure all tests pass
  • Linting: Run make golangci-lint and ensure no linting errors are reported
  • Formatting: Run make format to ensure code is properly formatted

2. CI/CD Pipeline Status

You MUST verify that all continuous integration checks are passing:

  • Azure Pipelines: Check that all pipeline jobs have completed successfully
    • Build job (includes make all)
    • Unit Tests job
    • Lint job (runs golangci-lint)
    • Static Analysis job (security scans)
  • GitHub Actions: Check that all GitHub Actions workflows are passing
    • CodeQL analysis
    • Dependency review
    • Any other configured workflows

3. How to Check CI Status

Use the GitHub MCP tools to verify status:

  1. List recent workflow runs: list_workflow_runs
  2. Check specific run status: get_workflow_run
  3. Review job logs if failures occur: get_job_logs
  4. For Azure Pipelines, check the PR page for pipeline status

4. Required Actions Before Marking Ready

  1. Wait for all checks: Do not mark the PR as ready until all automated checks show green/passing status
  2. Fix failures: If any check fails, investigate the logs, fix the issues, commit changes, and wait for checks to run again
  3. Verify build quality: Ensure no warnings or errors in build output that could indicate issues
  4. Security checks: Ensure all security scanning tools (CredScan, PoliCheck, GoSec, CodeQL) pass

5. General Guidelines

  • Always run local validation before pushing to reduce CI failures
  • If a check fails repeatedly, investigate root cause rather than repeatedly pushing
  • Document any known issues or limitations in the PR description
  • Ensure your changes don't break existing tests or introduce new security vulnerabilities

Build and Test Commands

For reference, here are the key commands for this repository:

# Format code
make format

# Build the project
make build

# Run unit tests
make unittest

# Run linting
make golangci-lint

# Run all checks (format, build, test)
make all

# Clean build artifacts
make clean

Important Notes

  • This repository uses Go 1.25 (as specified in Azure Pipelines)
  • Module mode is enabled (GO111MODULE=on)
  • Private repo workaround is configured for Microsoft GitHub repos
  • The default branch is master
  • PRs must pass security analysis including CredScan, PoliCheck, GoSec, and CodeQL

Remember: Green status across ALL checks is mandatory before marking any PR as ready for review. This ensures code quality, security, and prevents breaking changes from being merged.

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.