Skip to content

AI Skills Library (ConnectSoft.AISkillsLibraryTemplate)

The AI Skills Library template scaffolds a multi-targeted .NET class library for building reusable AI skills: agents, AI functions/tools, vector embeddings, and Model Context Protocol (MCP) clients. It integrates the Microsoft Agent Framework and ConnectSoft compliance/observability conventions.

It is the only non-Blazor template in this group - a plain Microsoft.NET.Sdk library (template type project), not derived from ConnectSoft.BaseTemplate, and with no Blazor/UI assets.

dotnet new

dotnet new install <installer-package-or-path>
dotnet new connectsoft-aiskills-library -n MyCompany.MyArea.MyCapability.Skills
  • Identity: ConnectSoft.AISkillsLibrary
  • Short name: connectsoft-aiskills-library
  • Default name convention: Company.Area.Capability.Skills

Always confirm symbols against .template.config/template.json.

What you get

  • A LibraryTemplateAgent wrapping AIAgent + IChatClient, with example AI functions in LibraryTemplateAITools.
  • DI extensions (AddAISkillsLibraryTemplateServices, ...Agent, ...Embeddings, ...McpTools).
  • An embedding pipeline (IEmbeddingPipeline / LibraryTemplateEmbeddingPipeline).
  • An MCP client (MicrosoftLearnMcpClient) with docs/code-sample search.
  • Telemetry, metrics, options, and redaction wiring.

Scaffolding, not a finished service

The shipped AI functions (GenerateLibraryAsync, ValidateTemplateAsync, etc.) are example stubs to be replaced with your domain's real skill logic.

See also