roslyn-source-generators

Community

Speed up C# dev with incremental codegen.

Authorkeithdv
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill introduces compile-time code generation using Roslyn Incremental Generators to reduce boilerplate, improve build times, and enable safer, more maintainable code.

Core Features & Use Cases

  • Incremental Pipeline: Build reliable generators that cache and reuse results for faster builds.
  • Semantic Analysis: Leverage Roslyn's semantic model without runtime overhead.
  • Marker Attributes & DI: Create marker attributes and dependency-injection-friendly patterns for generators.
  • Diagnostics & Troubleshooting: Emit diagnostics and diagnose performance issues in generators.

Quick Start

  1. Create a generator project implementing IIncrementalGenerator and hook into ForAttributeWithMetadataName.
  2. Define a marker attribute, then generate code for annotated types.
  3. Consume the generated code in a consumer project and build.

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: roslyn-source-generators
Download link: https://github.com/keithdv/ClaudeSkills/archive/main.zip#roslyn-source-generators

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.