Skip to content

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

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

eiriktsarpalis merged 2 commits into
dotnet:mainfrom
eiriktsarpalis:skill/api-proposal-format-fix

Conversation

@eiriktsarpalis

Copy link
Copy Markdown
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 <[email protected]>
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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread .github/skills/api-proposal/SKILL.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-skills Agent Skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants