Skip to content

Move and split code-review agent guidance into focused files under .github/agents/#2160

Merged
mazhelez merged 2 commits intometa/copilot-and-code-review-agentfrom
copilot/sub-pr-2156
Mar 9, 2026
Merged

Move and split code-review agent guidance into focused files under .github/agents/#2160
mazhelez merged 2 commits intometa/copilot-and-code-review-agentfrom
copilot/sub-pr-2156

Conversation

Copy link
Contributor

Copilot AI commented Mar 9, 2026

Addresses feedback from #2156 to split the monolithic code-review agent file and relocate it from .github/.agents/ to .github/agents/.

Changes

  • Moved .github/.agents/code-review.agent.md.github/agents/code-review.agent.md
  • Split rules into three focused files:
    • Security.md — Critical rules: error handling header, secret leakage, path traversal, ConvertTo-HashTable -recurse, deprecated settings
    • Style.md — Style/quality rules: tests, cross-platform, encoding, YAML permissions, naming conventions
    • Documentation.md — Documentation rules: RELEASENOTES, settings docs, function docs, workflow/scenario docs
  • Main code-review.agent.md now serves as the entry point, referencing the three rule files while retaining the expertise, how-to-review, and repository knowledge sections

✅ Checklist

  • Add tests (E2E, unit tests)
  • Update RELEASENOTES.md
  • Update documentation (e.g. for new settings or scenarios)
  • Add telemetry

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…cumentation files

Co-authored-by: mazhelez <43066499+mazhelez@users.noreply.github.com>
Copilot AI changed the title [WIP] WIP address feedback on Copilot instructions Move and split code-review agent guidance into focused files under .github/agents/ Mar 9, 2026
@mazhelez mazhelez marked this pull request as ready for review March 9, 2026 18:03
@mazhelez mazhelez requested a review from a team as a code owner March 9, 2026 18:03
@mazhelez mazhelez merged commit f372821 into meta/copilot-and-code-review-agent Mar 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants