بنقرة واحدة
nuget-package-skills-builder
// Build AI coding skills for NuGet packages by researching their documentation, issues, and best practices. Use when asked to create or author a skill for a package.
// Build AI coding skills for NuGet packages by researching their documentation, issues, and best practices. Use when asked to create or author a skill for a package.
| name | nuget-package-skills-builder |
| description | Build AI coding skills for NuGet packages by researching their documentation, issues, and best practices. Use when asked to create or author a skill for a package. |
Use this guide when asked to create a skill for a NuGet package.
All nuget-skills commands below are shell commands — run them in the terminal, NOT as skill invocations.
Use the Bash tool to run:
nuget-skills info <package-name>
This gives you the repository URL, description, and whether a skill already exists.
Using the repository URL from the info output:
Focus on what an AI coding agent needs to know to use the package correctly, not general documentation.
Create a file with this structure:
---
name: <package-name-lowercase>
description: <one-line summary of what guidance this skill provides>
packages: <optional — comma-separated glob patterns to restrict which packages this skill applies to>
---
# <Package Name>
<Brief context on what the package does and when to use it>
## Configuration
<Common setup patterns, recommended defaults>
## Best Practices
<Do this, not that — concrete patterns with code examples>
## Common Pitfalls
<Mistakes that are easy to make, with corrections>
## Examples
<Short, practical code examples for the most common use cases>
If a repository produces multiple NuGet packages but a skill only applies to some of them, use the packages frontmatter field:
packages: Contoso.Http*, Contoso.Core
Each entry is a glob pattern (* wildcard) matched case-insensitively against package IDs. Omitting the field means the skill applies to all packages from the repository.
A package can ship multiple skill files in the skills/ directory:
skills/
SKILL.md # Main skill (always loaded first)
CONFIGURATION.md # Configuration-specific guidance
MIGRATION.md # Version migration guide
All .md files in the skills/ directory are discovered and can be loaded.
Offer the user these options:
Save to the package source and configure shipping (recommended):
skills/SKILL.md in the package's source repository.csproj, .fsproj, or .vbproj) so the skill ships with the NuGet package:
<ItemGroup>
<None Include="skills/**" Pack="true" PackagePath="skills/" />
</ItemGroup>
.nupkg buildSave to NuGet cache (immediate local use, not permanent):
Save the file to ~/.nuget/packages/<package-id-lowercase>/<version>/skills/SKILL.md
This makes it immediately available via nuget-skills scan and nuget-skills load,
but will be lost if the package cache is cleared or the package is reinstalled.
Output to stdout — just print it so the user can decide what to do with it.