Ck get method source

From Fredrik-C/ContextKing · View interactive version

Ck get method source is an AI agent skill from the GitHub repository Fredrik-C/ContextKing. Extract a single C#, TypeScript, Kotlin, or Python method/property body with exact source spans. Use after ck signatures identifies the target member.

How to use this skill

Skill file

ck get-method-source — Reference

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

| Mode | Returns |

|---|---|

| signature_plus_body | Full member (default) |

| signature_only | Signature line only |

| body_only | Body block only |

| body_without_comments | Body 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

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.