keyed-service

Installation
SKILL.md

modul-connect/naming-conventions/keyed-service

C# Keyed Service Naming Convention

Rule Definition

When generating or refactoring C# constructors using the [FromKeyedServices] attribute, the parameter name must be derived from the Key Argument rather than the Interface Type.

Logic & Transformation

  1. Source of Truth: Use the value inside [FromKeyedServices(...)] (e.g., ModulConnect.Queries.Postgres.Backoffice).
  2. Identifier Extraction: Take the last segment of the Key (e.g., Backoffice).
  3. Contextual Suffixing: - If the namespace contains .Queries., append Query.
    • If the namespace contains .Commands., append Command.
  4. Casing: Convert the result to camelCase for the parameter and _camelCase for the private field.

Examples

Installs
2
First Seen
Sep 24, 2026