ask
Installation
SKILL.md
Ask Skill
Answer questions about AI-written code by finding the original prompts and conversations that produced it, then embodying the author agent's perspective to answer.
Main Agent's Job (you)
You do the prep work, then hand off to a fast, tightly scoped subagent:
-
Resolve the file path and line range — check these sources in order:
a) Editor selection context (most common). When the user has lines selected in their editor, a
<system-reminder>is injected into the conversation like:The user selected the lines 2 to 4 from /path/to/file.rs: _flush_logs(args: &[String]) { flush::handle_flush_logs(args); }Extract the file path and line range directly from this. This is the primary way users will invoke
/ask— they select code, then type something like "/ask why is this like that" without naming the file or lines.
Related skills