ck get-constructors — Reference

SkillFiles & storage

Extract all constructors from a C#, TypeScript, Kotlin, or Python file with exact source spans. Use when you need to see constructor signatures or injected dependencies without knowing the class name.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the ck get-constructors — Reference skill

What this skill tells your AI

The instructions your AI receives, as published by fredrik-c/contextking in skills/ck-get-constructors/SKILL.md and read by ahel’s review.

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

OptionDescription
--type ClassNameFilter 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_name equals the class name — this is expected Roslyn behaviour.
  • In TypeScript, member_name is always "constructor".
  • No index required — always reads live from disk.

Signals

GitHub stars
22
Forks
3
Last commit
Aug 2026
Advanced
Catalog kind
skill
Gateway key
ck-get-constructors
Source
github.com/fredrik-c/contextking