Skip to content

Ship agent skills inside the NuGet packages #291

Open

Description

@milten89

Ship agent skills inside the OpenUrzednik packages, so a consumer's coding agent knows how to use the libraries from the start.

The format comes from the .NET blog post Delivering Skills in NuGet packages (03.11.2026):

  • A package carries skills/<skill-name>/SKILL.md at its root, in the agentskills.io format (YAML front matter with name and description).
  • Restore lists those files in project.assets.json, transitive packages included.
  • Readers today: dotnet-inspect lists them, and dotnet-package-skills install copies them into .agents/skills/. The NuGet MCP server will read them later; no IDE agent reads them directly yet.
  • Treat them like a build/ targets file: consumers run what the skill tells their agent to do, so keep the content reviewed and short.

Scope

  • ADR first (/adr): every package starts shipping agent instructions, so record the decision. Cover what goes in, how skills are named (prefix with the package id, e.g. openurzednik-nbp), how they stay true to the code, and that they follow the package's major (a skill describes the public API, ADR-0011).
  • Skills:
    • OpenUrzednik.Core: results (OpenUrzednikResult<T>), EnsureSuccess(), error types and codes, metadata, when exceptions are thrown (ADR-0002).
    • OpenUrzednik.Nbp: clients, options, API limits (date ranges, top count, publication schedule), DateOnly extensions.
    • OpenUrzednik.Nbp.DependencyInjection: AddOpenUrzednikNbp, keyed clients, chaining AddStandardResilienceHandler().
    • OpenUrzednik.Extensions.Logging and OpenUrzednik.Diagnostics: one short skill each, or a section in Core's.
    • OpenUrzednik.MF.WhiteList: add its skill in MF White List: ship it (packaging and docs) #264 (shipping the provider) or as a follow-up.
  • Packing: one item in src/Directory.Build.props, e.g. <None Include="skills/**" Pack="true" PackagePath="skills/" Visible="false" />. Check with dotnet pack and a listing of the .nupkg that the folder layout survives. The files are under src/, so version.json's pathFilters already cover them.
  • Keep them correct: add the skills to the /new-endpoint and /new-provider checklists and to the reviewer agent, so a public API change updates them.
  • Docs: mention the skills in each package README (English only, ADR-0009) and in CONTRIBUTING.md.

Out of scope until there is a documented consumer: tooling that installs the skills for users.

Activity

  1. added
    enhancement
    area:release
    on Nov 13, 2026
  2. moved this from Triage to Ready in OpenUrzednik.NETon Nov 13, 2026
  3. moved this from Ready to Backlog in OpenUrzednik.NETon Nov 20, 2026
  4. milten89 commented on Nov 20, 2026

    @milten89
    OwnerAuthor

    Status, 20.11.2026: waiting for official documentation.

    Microsoft Learn has nothing yet on skills inside NuGet packages; the NuGet MCP server page doesn't mention them. The sources are still the .NET blog post of 03.11.2026 and a beta tool.

    Settled enough to build on:

    • A skill is skills/<skill-name>/SKILL.md in the package, one skill per subfolder, in the Agent Skills format. Learn documents that format for other products (Agent Framework skills): name lowercase with hyphens, at most 64 characters, matching the folder; description at most 1,024 characters.
    • The package-id prefix (skills/openurzednik-nbp/…) is a convention against name collisions, not a rule: dotnet-package-skills recommends it and doesn't enforce it.

    Still preview or unknown:

    • Restore listing skills in project.assets.json is shown in the blog without an SDK or NuGet version, and isn't documented.
    • Readers: dotnet-package-skills is a Microsoft-owned beta (0.1.0-beta.26530.1, 30.10.2026) that copies skills into .agents/skills/ and scans direct packages only, so a skill in OpenUrzednik.Core reaches an app only if the app references Core directly. dotnet-inspect lists them. The NuGet MCP server "hasn't yet been updated for skills"; no IDE reads them.
    • The follow-up post the blog promised hasn't appeared.
    • Microsoft's advice: treat a package's skills like a new dependency and review them.

    Start when Learn documents the package layout and restore behaviour, or when a stable consumer (the NuGet MCP server or an IDE) reads them. Re-check how transitive packages are handled then, because it decides whether Core's skill should be folded into the provider packages' skills.

    🤖 Researched by Claude Code

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:releaseenhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions