SmartSkills.MSBuild
0.1.0-preview2
dotnet add package SmartSkills.MSBuild --version 0.1.0-preview2
NuGet\Install-Package SmartSkills.MSBuild -Version 0.1.0-preview2
<PackageReference Include="SmartSkills.MSBuild" Version="0.1.0-preview2"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="SmartSkills.MSBuild" Version="0.1.0-preview2" />
<PackageReference Include="SmartSkills.MSBuild"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add SmartSkills.MSBuild --version 0.1.0-preview2
#r "nuget: SmartSkills.MSBuild, 0.1.0-preview2"
#:package SmartSkills.MSBuild@0.1.0-preview2
#addin nuget:?package=SmartSkills.MSBuild&version=0.1.0-preview2&prerelease
#tool nuget:?package=SmartSkills.MSBuild&version=0.1.0-preview2&prerelease
SmartSkills.MSBuild
MSBuild integration for SmartSkills — automatically resolve and install agent skills during build based on your project's package references.
Installation
dotnet add package SmartSkills.MSBuild
Since this is a build-only dependency, it should be marked with PrivateAssets="all" so it doesn't flow to consumers:
<PackageReference Include="SmartSkills.MSBuild" PrivateAssets="all" />
How It Works
When you build your project, SmartSkills.MSBuild runs two targets automatically:
- ResolveSmartSkills (before build) — scans your project's package references and matches them against the skill registry
- InstallSmartSkills (after resolve) — downloads and installs matched skills to
.agents/skills
Both targets are gated by the SmartSkillsEnabled property and are safe for multi-targeting projects (runs only once per build).
Skills are installed transitively — adding the package to any project in a dependency chain enables skill resolution.
Configuration
| MSBuild Property | Default | Description |
|---|---|---|
SmartSkillsEnabled |
true |
Enable or disable skill acquisition |
SmartSkillsOutputDirectory |
$(MSBuildProjectDirectory)\.agents\skills |
Directory where skills are installed |
Disabling for Specific Configurations
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<SmartSkillsEnabled>false</SmartSkillsEnabled>
</PropertyGroup>
Custom Output Directory
<PropertyGroup>
<SmartSkillsOutputDirectory>$(SolutionDir).agents\skills</SmartSkillsOutputDirectory>
</PropertyGroup>
Disabling via Command Line
dotnet build -p:SmartSkillsEnabled=false
Example
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SmartSkills.MSBuild" PrivateAssets="all" />
<PackageReference Include="Azure.Identity" />
<PackageReference Include="StackExchange.Redis" />
</ItemGroup>
</Project>
Building this project automatically installs the azure-identity-dotnet and redis-development skills into .agents/skills/.
Further Reading
- SmartSkills repository — full documentation, SDK, and CLI tool
- Agent Skills specification
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview2 | 51 | 2/14/2026 |
| 0.1.0-preview | 53 | 2/12/2026 |