shiny-di

Official

Effortless .NET DI with source generators

Authorshinyorg
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill simplifies and automates the process of registering dependency injection services in .NET applications, reducing boilerplate code and improving maintainability through attribute-driven configuration and source generation.

Core Features & Use Cases

  • Attribute-Driven Registration: Define service lifetimes (Singleton, Scoped, Transient) and registration options directly on your service classes using attributes.
  • Source Generation: Automatically generates DI registration code, eliminating manual setup and potential errors.
  • Advanced Configuration: Supports keyed services, categories for conditional registration, and multi-interface registration.
  • Use Case: Quickly set up a complex service architecture in a new .NET project by marking services with attributes and letting the source generator handle the IServiceCollection configuration.

Quick Start

Configure your .NET application to use Shiny DI by adding the AddShinyServiceRegistry() method to your service collection setup.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: shiny-di
Download link: https://github.com/shinyorg/skills/archive/main.zip#shiny-di

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.