Automates scaffolding for packable, reusable .NET libraries.

Install

mkdir -p .claude/skills/new-library && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10719" && unzip -o skill.zip -d .claude/skills/new-library && rm skill.zip

Installs to .claude/skills/new-library

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Scaffold a new reusable .NET library with correct naming, multi-targeting, and structure. Use when: creating a new library project, adding a reusable package, setting up a shared library under src/.
198 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Scaffold new .NET libraries
  • Apply naming conventions
  • Configure multi-targeting
  • Set up test projects

How it works

The skill scaffolds a new .NET library with the correct namespace, multi-targeting, and directory structure, following established naming conventions.

Inputs & outputs

You give it
Library purpose
You get back
Scaffolded .NET library project

When to use new-library

  • Creating a new reusable library
  • Setting up shared components
  • Adding a new NuGet-packable project
  • Standardizing internal .NET structure

About this skill

New Library

When to Use

  • Creating a new reusable, packable library under src/
  • Adding a shared component meant for NuGet distribution

Naming Convention

Libraries use a {Domain}.{Feature} pattern. The Kritikos. root namespace prefix is applied automatically by Directory.Build.props.

Domain prefixWhen to useExample
AspNetCore.{Feature}Depends on Microsoft.AspNetCore.AppAspNetCore.ProblemDetails
Extensions.{Feature}Framework-agnostic, depends only on Microsoft.Extensions.*Extensions.Hashing
EntityFrameworkCore.{Feature}Depends on EF CoreEntityFrameworkCore.Auditing
(no prefix)Pure .NET with no framework dependencyPrimitives

Always propose 2–4 name options to the user and allow a custom choice.

Multi-Targeting

Target both current LTS versions plus optionally one STS version if newer than the latest LTS:

ScenarioTargetsRationale
.NET 10 is current LTSnet8.0;net10.0Skip .NET 9 (STS, superseded)
.NET 11 (STS) shipsnet8.0;net10.0;net11.011 > 10, include it
.NET 12 (LTS) shipsnet10.0;net12.0.NET 8 drops; 11 superseded

Libraries with no framework dependency (no domain prefix) should also target netstandard2.0/netstandard2.1 when APIs and dependencies allow. Framework-dependent libraries skip .NET Standard.

Procedure

  1. Ask the user for the library's purpose.
  2. Propose name options using the naming table above.
  3. Determine the correct multi-targeting based on current LTS/STS and framework dependencies.
  4. Create the project under src/{LibraryName}/.
  5. Do not specify Version on PackageReference — add versions in Directory.Packages.props.
  6. Create a matching test project under tests/{LibraryName}.Tests/.
  7. Add both projects to Solution.slnx.
  8. Verify the build compiles cleanly.

When not to use it

  • Non-.NET projects

Limitations

  • Requires manual verification of build
  • Kritikos-specific naming

How it compares

It enforces a specific, standardized structure for reusable .NET libraries, ensuring consistency across the Kritikos ecosystem.

Compared to similar skills

new-library side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
new-library (this skill)03moNo flagsIntermediate
csharp-developer432moNo flagsAdvanced
csharp-pro94moNo flagsIntermediate
dotnet-backend-patterns75moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

csharp-developer

zenobi-us

Expert C# developer specializing in modern .NET development, ASP.NET Core, and cloud-native applications. Masters C# 12 features, Blazor, and cross-platform development with emphasis on performance and clean architecture.

43151

csharp-pro

sickn33

Write modern C# code with advanced features like records, pattern matching, and async/await. Optimizes .NET applications, implements enterprise patterns, and ensures comprehensive testing. Use PROACTIVELY for C# refactoring, performance optimization, or complex .NET solutions.

953

dotnet-backend-patterns

wshobson

Master C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.

722

azure-servicebus-dotnet

microsoft

Azure Service Bus SDK for .NET. Enterprise messaging with queues, topics, subscriptions, and sessions. Use for reliable message delivery, pub/sub patterns, dead letter handling, and background processing. Triggers: "Service Bus", "ServiceBusClient", "ServiceBusSender", "ServiceBusReceiver", "ServiceBusProcessor", "message queue", "pub/sub .NET", "dead letter queue".

316

backend-testing

exceptionless

Backend testing with xUnit, Foundatio.Xunit, integration tests with AppWebHostFactory, FluentClient, ProxyTimeProvider for time manipulation, and test data builders. Keywords: xUnit, Fact, Theory, integration tests, AppWebHostFactory, FluentClient, ProxyTimeProvider, TimeProvider, Foundatio.Xunit, TestWithLoggingBase, test data builders

316

azure-identity-dotnet

microsoft

Azure Identity SDK for .NET. Authentication library for Azure SDK clients using Microsoft Entra ID. Use for DefaultAzureCredential, managed identity, service principals, and developer credentials. Triggers: "Azure Identity", "DefaultAzureCredential", "ManagedIdentityCredential", "ClientSecretCredential", "authentication .NET", "Azure auth", "credential chain".

13

Search skills

Search the agent skills registry