explain-function
Installation
SKILL.md
Explain a function
- Call
current_view(eleven) to see which function the user is on, unless they named one. - Read it with
procedure_pseudo_code, andprocedure_assemblywhen the pseudocode looks wrong or too clever. - Look at
procedure_callersandprocedure_calleesto place it in the program. - Work out the parameters and the return value from how callers use them.
Then:
rename_function(eleven) it, and any FUN_ callees you understood, to plain C names.add_noteone sentence on what it does.open_functionthe most important callee when the story continues there.
Answer with: what it does, how it does it in three to six steps, and anything surprising (error paths, magic numbers, side effects). Quote at most a few lines of code.