Skip to content

Add AI code review customization files#1460

Draft
makubacki wants to merge 2 commits intoOpenDevicePartnership:mainfrom
makubacki:add_ai_review_files
Draft

Add AI code review customization files#1460
makubacki wants to merge 2 commits intoOpenDevicePartnership:mainfrom
makubacki:add_ai_review_files

Conversation

@makubacki
Copy link
Copy Markdown
Collaborator

Description

Closes #1453

Adds project-level AI customization files to support AI-assisted code review.

These files encode Patina's domain-specific conventions so that AI reviewers can flag violations locally, prior to human review.

The files are layered:

  1. Always-on instructions (.github/copilot-instructions.md): Covers global conventions across the codebase.

  2. File-based instructions (.github/instructions/): Currently, provides component-specific instructions in components.instructions.md(applyTo: components/**) to supplement the global instructions. These load only when editing matching files to minimize token cost.

  3. Review prompt file (.github/prompts/review.prompt.md): A reusable /review slash command that defines a structured review checklist. This is to provide a convenient way to reliably perform the same set of review steps. Delegates convention details to the always-on instructions to avoid duplication.

  4. Reviewer agent (.github/agents/reviewer.agent.md): A read-only review persona restricted to search and read tool sets (no edit or execute tools). Includes a handoff to the default agent for implementing fixes after review.

References:

How This Was Tested

  • Use the "Patina Code Reviewer" locally

Integration Instructions

  • N/A

This PR is in draft as it serves as a starting open to changes from others before publishing for broader review.

Adds project-level AI customization files to support AI-assisted code
review.

These files encode Patina's domain-specific conventions so that AI
reviewers can flag violations locally, prior to human review.

The files are layered:

1. Always-on instructions (.github/copilot-instructions.md): Covers
   global conventions across the codebase.

2. File-based instructions (.github/instructions/): Currently,
   provides component-specific instructions in
   components.instructions.md(applyTo: components/**) to supplement
   the global instructions. These load only when editing matching
   files to minimize token cost.

3. Review prompt file (.github/prompts/review.prompt.md): A reusable
   /review slash command that defines a structured review checklist.
   This is to provide a convenient way to reliably perform the same
   set of review steps. Delegates convention details to the always-on
   instructions to avoid duplication.

4. Reviewer agent (.github/agents/reviewer.agent.md): A read-only
   review persona restricted to `search` and `read` tool sets (no edit
   or execute tools). Includes a handoff to the default agent for
   implementing fixes after review.

References:

- VS Code Customization Overview:
  https://code.visualstudio.com/docs/copilot/concepts/customization
- Custom Instructions:
  https://code.visualstudio.com/docs/copilot/customization/custom-instructions
- Prompt Files:
  https://code.visualstudio.com/docs/copilot/customization/prompt-files
- Custom Agents:
  https://code.visualstudio.com/docs/copilot/customization/custom-agents

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
@patina-automation
Copy link
Copy Markdown
Contributor

patina-automation bot commented Apr 8, 2026

✅ QEMU Validation Passed

All QEMU validation jobs completed successfully.

Note: Q35 is only built on Windows hosts (QEMU boot is disabled due to a QEMU vfat issue).

Workflow run: https://github.com/OpenDevicePartnership/patina/actions/runs/24208819731

Boot Time to EFI Shell

Platform Elapsed
Q35 (Linux Host) 28.6s
SBSA (Linux Host) 1m 3s

Dependencies

Repository Ref
patina 0560dd5
patina-dxe-core-qemu 8a232bb
patina-fw-patcher b08d6ff
patina-qemu firmware v3.0.0
patina-qemu build script efe1fb2

This comment was automatically generated by the Patina QEMU PR Validation Post workflow.

@github-actions github-actions bot added the impact:non-functional Does not have a functional impact label Apr 8, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:non-functional Does not have a functional impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task] Add AI Review Skill

2 participants