Skip to content

Prefer partial declarations with commented-out existing APIs in api-proposal skill#125104

Merged
eiriktsarpalis merged 2 commits intodotnet:mainfrom
eiriktsarpalis:skill/api-proposal-format-fix
Mar 3, 2026
Merged

Prefer partial declarations with commented-out existing APIs in api-proposal skill#125104
eiriktsarpalis merged 2 commits intodotnet:mainfrom
eiriktsarpalis:skill/api-proposal-format-fix

Conversation

@eiriktsarpalis
Copy link
Member

Addresses @bartonjs late review feedback from #124808.

Changes the api-proposal skill to prefer partial class declarations with commented-out existing members over diff blocks when showing additions to existing types. This makes it easy for the meeting chair to delete existing API context when posting final approval notes.

Changes

  • SKILL.md: Remove diff block example; update the // EXISTING / // NEW example to comment out existing members and drop the // NEW marker
  • api-proposal-checklist.md: Replace \diff\ block recommendation with \partial\ + commented-out \// EXISTING\ member guidance

… format

Address @bartonjs review feedback from dotnet#124808: prefer partial class
declarations with commented-out existing members over diff blocks for
API proposals. This makes it easy for the meeting chair to delete
existing API context when posting final approval notes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 3, 2026 08:42
@github-actions github-actions bot added the area-skills Agent Skills label Mar 3, 2026
Copy link
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

Updates the api-proposal Copilot skill guidance to prefer partial type declarations where existing members are commented out (under a // EXISTING marker) instead of using diff blocks, making it easier to trim context when posting final API review notes.

Changes:

  • Replaces the diff-block recommendation in the checklist with partial + commented-out existing members guidance.
  • Removes the diff example from the skill and updates the // EXISTING example to comment out existing members (and drop // NEW).

Reviewed changes

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

File Description
.github/skills/api-proposal/references/api-proposal-checklist.md Updates the checklist item to recommend partial + commented-out existing members for context.
.github/skills/api-proposal/SKILL.md Removes the diff example and documents the new “comment out existing members” pattern with an updated example.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
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

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

@eiriktsarpalis eiriktsarpalis merged commit d8aa6be into dotnet:main Mar 3, 2026
22 checks passed
@eiriktsarpalis eiriktsarpalis deleted the skill/api-proposal-format-fix branch March 3, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-skills Agent Skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants