ck get-method-source — Reference

SkillDev tools

Extract a single C#, TypeScript, Kotlin, or Python method/property body with exact source spans. Use after ck signatures identifies the target member.

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

What this skill tells your AI

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

Syntax

.claude/skills/ck/ck get-method-source <file> <ExactMemberName> [--type <TypeName>] [--mode <mode>]

<ExactMemberName> must match exactly — copy it from ck signatures output. Refund will NOT match RefundPaymentAsync.

Modes

ModeReturns
signature_plus_bodyFull member (default)
signature_onlySignature line only
body_onlyBody block only
body_without_commentsBody with comments stripped

Output (JSON)

[{
  "file": "src/Payment/Processor.cs",
  "member_name": "ProcessPayment",
  "containing_type": "PaymentProcessor",
  "signature": "public async Task<Result> ProcessPayment(PaymentRequest req)",
  "start_line": 42, "end_line": 87,
  "content": "..."
}]

Tips

  • Add --type ClassName to disambiguate overloads across types.
  • After you reach this step, continue with targeted file/member reads in the same area; do not bounce back to expand-folder for that folder unless you intentionally reset direction with a new find-files query.
  • For files <50 lines, use ck read-full-file <file> directly.
  • 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-method-source
Source
github.com/fredrik-c/contextking