agentleFS
MicrosoftKnown publishermicrosoft/moc/.github/copilot-instructions.md

moc

Copilot instructions53 starsChanged 10 months agoApache-2.0View on GitHub

When creating or working on a pull request, you MUST ensure all of the following conditions are met before marking the PR as ready for review: Before marking a PR as ready for review, use GitHub CLI or API to verify: Or check the PR page on GitHub to ensure: - All status checks show green checkmarks (✓) - No red X marks or orange/yellow pending indicators - The "All checks have passed" message is displayed If any checks fail:…

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, 18 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈18

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    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:

    When creating or working on a pull request, you MUST ensure all of the following conditions are met before marking the PR as ready for …

    line 7
  2. Distinctive:

    Before marking a PR as ready for review, use GitHub CLI or API to verify:

    line 40
  3. Distinctive:

    All status checks show green checkmarks (✓)

    line 51
  4. Distinctive:

    No red X marks or orange/yellow pending indicators

    line 52
  5. Distinctive:

    If any checks fail:

    line 57
  6. Distinctive:

    Wait for all checks to re-run and pass

    line 60
  7. Distinctive:

    Only then mark the PR as ready for review

    line 61
  8. Distinctive:

    If a check failure is unrelated to your changes:

    line 63
  9. Distinctive:

    Document the pre-existing failure in the PR description

    line 64
  10. Distinctive:

    Ensure your changes don't make it worse

    line 65
  11. Distinctive:

    Consider fixing the pre-existing issue if feasible

    line 66
  12. Distinctive:

    Use draft PRs for work-in-progress changes

    line 71
  13. Distinctive:

    Keep PR in draft status until all checks pass

    line 72
  14. Distinctive:

    Always run local builds and tests before pushing

    line 88
  15. Distinctive:

    Ensure changes are minimal and focused

    line 89
  16. Distinctive:

    Keep PR descriptions clear and informative

    line 90
  17. Distinctive:

    Update documentation if behavior changes

    line 91
  18. Distinctive:

    Follow existing code patterns and conventions

    line 92

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

Pull Request Workflow

Before Marking PR as Ready for Review

When creating or working on a pull request, you MUST ensure all of the following conditions are met before marking the PR as ready for review:

1. Build Status Checks

  • ✅ All build jobs must pass successfully
  • ✅ Azure Pipelines build jobs must complete without errors:
    • Build job (includes protobuf generation, compilation, and unit tests)
    • Lint job (GolangCI-Lint must pass)
  • ✅ GitHub Actions workflows must complete successfully:
    • CodeQL analysis must complete without blocking issues

2. Test Status Checks

  • ✅ All unit tests must pass (make unittest)
  • ✅ No test failures or regressions introduced by the changes
  • ✅ Test coverage should be maintained or improved

3. Code Quality Checks

  • ✅ Linting must pass without errors (make golangci-lint)
  • ✅ No new linting violations introduced by the changes
  • ✅ Code follows the existing style and conventions of the repository

4. CI/CD Pipeline Status

  • ✅ All Azure Pipelines jobs must show green/passing status
  • ✅ All GitHub Actions workflows must show green/passing status
  • ✅ No pending or failing status checks on the PR

5. Build Verification

  • ✅ The code must build successfully:
    • make pipeline completes without errors (protobuf generation for pipeline)
    • make all completes without errors (format code and run tests)
  • ✅ No compilation errors or warnings that would block the build

How to Verify Status

Before marking a PR as ready for review, use GitHub CLI or API to verify:

# Check PR status checks
gh pr checks <pr-number>

# Verify all checks are passing
gh pr view <pr-number> --json statusCheckRollup

Or check the PR page on GitHub to ensure:

  • All status checks show green checkmarks (✓)
  • No red X marks or orange/yellow pending indicators
  • The "All checks have passed" message is displayed

Exception Handling

If any checks fail:

  1. DO NOT mark the PR as ready for review
  2. Investigate and fix the failing checks first
  3. Wait for all checks to re-run and pass
  4. Only then mark the PR as ready for review

If a check failure is unrelated to your changes:

  1. Document the pre-existing failure in the PR description
  2. Ensure your changes don't make it worse
  3. Consider fixing the pre-existing issue if feasible
  4. Communicate with maintainers about the unrelated failure

Draft PR Usage

  • Use draft PRs for work-in-progress changes
  • Keep PR in draft status until all checks pass
  • Convert to ready for review only after all status checks are green

Build Commands Reference

  • make generate - Generate protobuf files (calls ./gen.sh)
  • make pipeline - Generate protobuf for pipeline (calls ./gen.sh -c)
  • make all - Format code and run tests
  • make format - Format code with gofmt
  • make test - Run all tests (calls unittest)
  • make unittest - Run unit tests
  • make golangci-lint - Run linting checks
  • make tidy - Tidy go modules

Additional Guidelines

  • Always run local builds and tests before pushing
  • Ensure changes are minimal and focused
  • Keep PR descriptions clear and informative
  • Update documentation if behavior changes
  • Follow existing code patterns and conventions

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.