Ck get constructors

From Fredrik-C/ContextKing · View interactive version

Ck get constructors is an AI agent skill from the GitHub repository Fredrik-C/ContextKing. 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.

How to use this skill

Skill file

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.