ck get-constructors — Reference
Syntax
.claude/skills/ck/ck get-constructors <file> [--type <TypeName>] [--mode <mode>]
Use this instead of ck get-method-source when you want constructor(s) — avoids needing to know that in C# the constructor name equals the class name.
Options
| Option | Description |
|---|---|
| --type ClassName | Filter to a specific class (when file has multiple) |
| --mode <mode> | signature_plus_body (default), signature_only, body_only, body_without_comments |
Output (JSON)
[{
"file": "src/Payment/AdyenGateway.cs",
"member_name": "AdyenGateway",
"containing_type": "AdyenGateway",
"signature": "public AdyenGateway(ILogger<AdyenGateway> logger, IAdyenClient client)",
"start_line": 18, "end_line": 28,
"content": "..."
}]
Notes
- In C#,
member_nameequals the class name — this is expected Roslyn behaviour. - In TypeScript,
member_nameis always"constructor". - No index required — always reads live from disk.