enforcing-record-constructor-initialization
CommunityEnforce immutability in record construction with positional constructor and named arguments.
Authorchristian289
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps ensure strong immutability in C# record types by enforcing the use of positional constructor with named arguments instead of property initializer syntax.
Core Features & Use Cases
- Immutability Enforcement: Enforces the use of positional constructor with named arguments in record type instantiation, enhancing code clarity and maintainability.
- Code Clarity: Enhances readability by using named arguments, making it clear which arguments correspond to which properties.
- Use Case: It can be used to enforce best practices in C# development for creating immutable record types, ensuring that all records are created with all necessary properties initialized.
Quick Start
Instantiate a record using positional constructor and named arguments, like: var record = new Record(Prop1: value1, Prop2: value2);
Dependency Matrix
Required Modules
None requiredComponents
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: enforcing-record-constructor-initialization Download link: https://github.com/christian289/task_20260212/archive/main.zip#enforcing-record-constructor-initialization Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.