Skip to content

Add address-review and code-review skills#806

Open
jerrysxie wants to merge 1 commit intoOpenDevicePartnership:mainfrom
jerrysxie:add-review-skills
Open

Add address-review and code-review skills#806
jerrysxie wants to merge 1 commit intoOpenDevicePartnership:mainfrom
jerrysxie:add-review-skills

Conversation

@jerrysxie
Copy link
Copy Markdown
Contributor

Add two Copilot skills for PR workflows:

  • address-review: evaluates review comments for validity before applying fixes, with a table-based workflow for developer confirmation
  • code-review: produces structured PR reviews with summary, step-by-step guide, and potential issues table for human reviewers

Both skills are adapted for the embedded-services repository with no_std constraints, Embassy async patterns, and the Service trait.

Add two Copilot skills for PR workflows:

- address-review: evaluates review comments for validity before
  applying fixes, with a table-based workflow for developer confirmation
- code-review: produces structured PR reviews with summary, step-by-step
  guide, and potential issues table for human reviewers

Both skills are adapted for the embedded-services repository with
no_std constraints, Embassy async patterns, and the Service trait.
@jerrysxie jerrysxie self-assigned this Apr 17, 2026
@jerrysxie jerrysxie added the enhancement New feature or request label Apr 17, 2026
@jerrysxie jerrysxie requested a review from a team as a code owner April 17, 2026 22:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds two GitHub Copilot “skills” intended to standardize PR workflows in this repository: one for generating structured PR code reviews, and another for validating review comments before applying fixes (with a confirmation step).

Changes:

  • Introduce a code-review skill that outputs a summary, guided review steps, and a potential-issues table tailored to embedded-services constraints.
  • Introduce an address-review skill that evaluates review comments for validity via a table-driven workflow, requests developer confirmation, then applies confirmed fixes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/skills/code-review/SKILL.md Adds instructions for producing a structured, architecture-focused PR review output.
.github/skills/address-review/SKILL.md Adds a workflow for validating review comments before making code changes, with explicit confirmation.


## Review rules

- Do NOT flag formatting, style, or compilation errors — `cargo fmt`, `cargo clippy`, and CI handle those.
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rule "Do NOT flag ... compilation errors" is likely counterproductive/inconsistent with the rest of this skill: compilation failures (especially from incorrect #[cfg(...)] gating or cross-target builds) are important for reviewers to surface even if CI will eventually catch them. Consider narrowing this to formatting/style only, or explicitly allowing compile/build failures that affect targets/features used in this repo (thumb + host, feature combos).

Suggested change
- Do NOT flag formatting, style, or compilation errors — `cargo fmt`, `cargo clippy`, and CI handle those.
- Do NOT flag formatting or style issues, and do not spend review comments on purely mechanical compiler diagnostics that `cargo fmt`, `cargo clippy`, or CI will report directly.
- DO flag compilation/build failures when they indicate a meaningful review issue, especially incorrect `#[cfg(...)]` gating, broken host or `thumbv8m.main-none-eabihf` builds, invalid feature combinations, or `no_std` violations.

Copilot uses AI. Check for mistakes.
- Consider the crate's `no_std` context, strict clippy policy, and feature-gated code when evaluating suggestions.
- If a reviewer suggests using `unwrap()`, `panic!()`, or direct indexing, flag it as invalid — these are denied by clippy config.
- If a comment is about style or formatting, mark it as invalid — CI enforces these automatically.
- Create new fixup commits for each change — do NOT amend existing commits. The author will squash them before merge.
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This guideline mandates a specific git workflow ("Create new fixup commits... The author will squash them") but the repo's CONTRIBUTING.md does not specify fixup-commit or squash requirements. To avoid encoding an unconfirmed process, consider removing this line or rephrasing it as optional / "follow the project's or PR author's preferred workflow".

Suggested change
- Create new fixup commits for each change — do NOT amend existing commits. The author will squash them before merge.
- Follow the project's documented git workflow, or the PR author's preferred workflow, when preparing commits for confirmed changes.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

@kurtjd kurtjd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants