create-sdk-feature

Generate C# code for SDK package features with XML documentation.

Updated Nov 13, 2025
One-click install
npx skills add https://github.com/changjian-wang/dawning --skill create-sdk-feature
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-sdk-feature
Source: https://github.com/changjian-wang/dawning/tree/main/.github/skills/create-sdk-feature
Command: npx skills add https://github.com/changjian-wang/dawning --skill create-sdk-feature

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of adding new features to SDK packages, ensuring consistency, quality, and adherence to established conventions.

Core Features & Use Cases

  • Feature Generation: Creates extension methods, service interfaces with implementations, or middleware classes.
  • Convention Enforcement: Guides users to follow best practices for SDK development, including XML documentation and DI registration.
  • Use Case: You need to add a new method to the Dawning.Extensions package to handle string manipulation. This Skill will generate the necessary C# code, including documentation and DI setup.

Quick Start

Use the create-sdk-feature skill to add a new extension method for string manipulation to the Dawning.Extensions package.

Frequently Asked Questions about create-sdk-feature

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate C# extension methods for an SDK package?

To generate C# extension methods for an SDK package, this Skill automatically produces the required code structure while enforcing file-scoped namespaces and XML documentation. It creates the necessary service interfaces and DI setup for packages like Dawning.Extensions.

What is the best way to add a new feature to a C# service interface?

The best way to add a new feature to a C# service interface is using a code generation Skill that outputs the implementation alongside standardized XML documentation. It ensures your new feature adheres to established SDK development conventions automatically.

How do I create middleware with proper null parameter handling in C#?

To create middleware with proper null parameter handling in C#, this Skill generates the middleware classes while strictly enforcing null checks. It outputs middleware code that aligns with your SDK's file-scoped namespace conventions.

Does this code generation approach support DI registration for Dawning SDK packages?

Yes, this code generation approach fully supports DI registration for Dawning SDK packages. It guides you through dependency injection setup while generating service interfaces and implementations for packages like Dawning.Core, Dawning.Identity, and Dawning.Caching.

How do I ensure my SDK code generation targets over 80% unit test coverage?

To ensure your SDK code generation targets over 80% unit test coverage, this Skill bakes the coverage target directly into its code generation workflow. It outputs extension methods and service implementations structured to meet this testing threshold.

What are the limitations of using create-sdk-feature for middleware development?

The main limitation of using create-sdk-feature for middleware development is its specific focus on the Dawning package ecosystem, such as Dawning.Logging and Dawning.Resilience. It is not a general-purpose middleware generator for unrelated C# frameworks.