Skip to content

Add query-distro-packages skill for distro install lookups - #10590

Open
mpatsoskon wants to merge 1 commit into
dotnet:mainfrom
mpatsoskon:mpatsoskon-10333
Open

mpatsoskon wants to merge 1 commit into
dotnet:mainfrom
mpatsoskon:mpatsoskon-10333

Conversation

@mpatsoskon

Copy link
Copy Markdown

Summary

  • Adds .github/skills/query-distro-packages/SKILL.md, the consumer counterpart to update-distro-packages — reads the existing release-notes/{version}/distros/ JSON to answer "what do I need to install .NET on {distro}?" questions.
  • No new CLI/tool dependency — pure read of already-published JSON. The motivating scenario (an agent helping someone install .NET) can't assume .NET or a dotnet global tool is already present.
  • Scoped to distro package/dependency lookup only, matching the issue title. Broader release-note queries (EOL, CVEs, supported-os) are explicitly deferred to later skills per the issue.

Validation

Query Result
Ubuntu 24.04 + .NET 10 Resolves the builtin feed, correct install command
"Fedora" (no release given) Lists the 3 available releases (44/43/42) and asks, instead of guessing
Ubuntu 22.04 + .NET 10 Correctly surfaces the backports PPA case, with feed-registration command included
Version defaulting support-phase scan correctly picks 10.0 (active) over 11.0 (go-live/RC)

Worked examples in references/example-queries.md.

Fixes #10333

Consumer counterpart to update-distro-packages: reads the existing
release-notes/{version}/distros/ JSON to answer "what do I need to
install .NET on {distro}?" questions, without editing that data or
depending on any external tool.

Fixes dotnet#10333
@mpatsoskon

Copy link
Copy Markdown
Author

@dotnet-policy-service agree

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.

🟡 Changes recommended

Package-selection and alternative-feed instructions can generate incorrect commands, and Ubuntu examples omit required elevation.

3 open findings
What changed in this PR

Adds a read-only skill for resolving distro-specific .NET installation packages and commands from published release metadata.

Changes:

  • Defines version, distro, release, and package resolution.
  • Adds worked Ubuntu and Fedora examples.
File Description
.github/​skills/​query-distro-packages/​SKILL.md Defines lookup and response behavior.
.github/​skills/​query-distro-packages/​references/​example-queries.md Demonstrates representative queries.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.


- **Dependencies** — the `dependencies[]` list; each `name` is the real package to install. See `../update-distro-packages/SKILL.md` for the full field reference.
- **.NET packages**:
- `dotnet_packages` present → these come from the distro's built-in feed. Use the top-level `install_command`, with `{packages}` substituted by the dependency + .NET package names, as-is.
- **Dependencies** — the `dependencies[]` list; each `name` is the real package to install. See `../update-distro-packages/SKILL.md` for the full field reference.
- **.NET packages**:
- `dotnet_packages` present → these come from the distro's built-in feed. Use the top-level `install_command`, with `{packages}` substituted by the dependency + .NET package names, as-is.
- Only `dotnet_packages_other` present → .NET isn't in the builtin feed. Show that feed's own `install_command` first (it registers the feed), then the normal install command for the packages it lists. Say plainly this is a non-default feed.
Version and release are both given, so steps 1 and 3 are trivial. `ubuntu.json` → release `24.04` has a builtin `dotnet_packages` entry, so the answer uses the plain install command:

```bash
apt-get install -y ca-certificates libgssapi-krb5-2 libc6 libgcc-s1 libicu74 libstdc++6 libssl3t64 tzdata dotnet-sdk-10.0

@nagilson nagilson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for your interest in contributing to dotnet!

I think we'd want to scope this out a bit better first... @richlander Are skills in dotnet/core accessible or consumed by users in some way? I recognize this is similar to what the install tool already has as a consumed skill in VS Code today.

This probably belongs in another repo, and the feedback from copilot should be addressed, though I'm unsure what the full motivation of putting it in would be. I think we're prioritizing efforts in other areas atm, FWIW.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add external-facing skill for distro package and dependency discovery

4 participants