Explain what a specific piece of code actually does for a given input by producing a step-by-step execution trace (interprocedural, with name resolution and type transitions). Trigger when the user is confused about behavior or asks why code produces X instead of Y — "walk me through this", "trace through X with input Y", "why does this return X", "what does yield-from do here", "explain the execution path". SCOPE HARD RULE: a specific function + a specific input scenario. If the user wants to find bugs without a scenario in mind, use logic-review; two-version comparison uses logic-diff; concrete failures use logic-locate; codebase-wide audit uses logic-health. Do NOT trigger for: finding bugs without a behavioral question, style or design discussion, or concept explanations not tied to specific code.
$npx -y skills add hyhmrright/logic-lens --skill logic-explainInstalls into the current project.
Run `npx skills use "https://github.com/hyhmrright/logic-lens" --skill "hyhmrright/logic-lens/logic-explain"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/hyhmrright/logic-lens" that are relevant to the current task. Run `npx skills add "https://github.com/hyhmrright/logic-lens"` and select the relevant skills, then follow their instructions.