Skip to content

Comments

Introduce an ApiChief skill to streamline updating API baselines#7281

Merged
jeffhandley merged 7 commits intodotnet:mainfrom
jeffhandley:jeffhandley/apichief-skill
Feb 21, 2026
Merged

Introduce an ApiChief skill to streamline updating API baselines#7281
jeffhandley merged 7 commits intodotnet:mainfrom
jeffhandley:jeffhandley/apichief-skill

Conversation

@jeffhandley
Copy link
Member

@jeffhandley jeffhandley commented Feb 10, 2026

Each time I've needed to update API baselines using ApiChief, I've needed to do manual massaging of the output, which is part of why this cannot yet be fully automated. This Copilot skill streamlines running it though, and sets us up for delegating the task to Copilot.

Microsoft Reviewers: Open in CodeFlow

@jeffhandley jeffhandley self-assigned this Feb 10, 2026
@jeffhandley jeffhandley requested a review from a team as a code owner February 10, 2026 09:56
Copilot AI review requested due to automatic review settings February 10, 2026 09:56
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

Adds a new GitHub Copilot skill (“run-apichief”) to streamline running the repo’s ApiChief tool and post-processing the generated API baseline files, with documented alias expansion and cleanup/review guidance.

Changes:

  • Introduces a SKILL.md entrypoint describing the skill’s intent and linking to detailed references.
  • Adds a shorthand alias/expansion reference for mapping user patterns to src/Libraries/*.
  • Adds a step-by-step execution guide for building/running ApiChief and reviewing baseline output.

Reviewed changes

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

File Description
.github/skills/run-apichief/SKILL.md Skill front-matter + high-level instructions and links to references.
.github/skills/run-apichief/references/apichief-aliases.md Defines shorthand aliases and expansion/matching rules for library selection.
.github/skills/run-apichief/references/apichief-steps.md Details the command selection, build/run steps, and baseline cleanup/review workflow.

@stephentoub
Copy link
Member

@jeffhandley could we switch over to using our standard tooling for .NET API backcompat instead of this bespoke mechanism?

jeffhandley and others added 5 commits February 14, 2026 13:10
ApiChief baselines are serialized as JSON (System.Text.Json), not YAML.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The build example was Windows-only; include ./build.sh for Linux/macOS.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The *.OpenAI.* pattern won't match names ending with OpenAI (e.g.
Microsoft.Extensions.AI.OpenAI). Cover both middle and trailing segments.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Without wildcards, bare expansions like 'Microsoft.Extensions' won't
match any folder names via glob. Add trailing .* for consistency.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
MED*/DataIngestion example was misleading since DataIngestion doesn't
share a prefix with Diagnostics. Use accurate examples: MEAI*/MEAI.Eval*
and MA*/MAD*.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Member

@joperezr joperezr left a comment

Choose a reason for hiding this comment

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

Minor NITs but this LGTM. Thanks Jeff.

…rrides

- Remove the shorthand alias system and subset exclusion rules
- Note that users may provide shorthand library references
- Auto-select highest net* TFM per library instead of hardcoding net10.0
- Report selected TFM and available targets before running
- Allow per-library or blanket TFM overrides

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jeffhandley jeffhandley merged commit ae349bc into dotnet:main Feb 21, 2026
2 checks passed
@jeffhandley jeffhandley deleted the jeffhandley/apichief-skill branch February 21, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants