ck get-type-source — Reference

SkillFiles & storage

Extract a single C#, TypeScript, Kotlin, or Python type declaration with exact source span. Use when you need one class/interface/record/enum/type alias without reading the full file.

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-type-source — Reference skill

What this skill tells your AI

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

Syntax

.claude/skills/ck/ck get-type-source <file> <TypeName> [--kind <class|interface|struct|record|enum|type_alias>]

Output (JSON)

[
  {
    "file": "src/Domain/PaymentRequest.cs",
    "type_name": "PaymentRequest",
    "kind": "record",
    "start_line": 12,
    "end_line": 30,
    "start_char": 234,
    "end_char": 1034,
    "content": "..."
  }
]

Tips

  • Prefer this over ck read-full-file when you only need one declaration.
  • Works for C#, TypeScript, Kotlin, and Python/TSX files.
  • Use --kind to disambiguate names shared across declaration kinds.

Signals

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