skills/explain-func/SKILL.md
Add why-focused documentation to complex functions or code blocks. Use when the user asks to document dense logic, explain invariants, or add comments that help maintainers understand design intent.
npx skillsauth add li3p/skills explain-funcInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Document the target function or code block: $ARGUMENTS
Write comments that explain why the code is shaped this way, not what each line does.
Document:
Avoid comments that simply restate code behavior.
Add an appropriate docstring or documentation header with:
Add inline comments only at points where a maintainer would otherwise need to reverse-engineer the reason for the implementation. Keep comments short and close to the code they clarify.
Do not change runtime logic.
documentation
Search Notion for pages or databases by query using marknotion. Use when the user references a Notion page by name rather than URL, when locating a page to publish to or pull from, or when discovering what trackers and docs exist in the connected workspace.
documentation
Export a Notion page to local Markdown using marknotion. Use when the user wants to pull a spec, design doc, meeting notes, or any Notion page into the repository as a Markdown file, or wants to read Notion content as context for a task.
documentation
Publish a local Markdown file to a Notion page using marknotion. Use when the user wants to push README, docs, changelogs, or any Markdown content to Notion, either updating an existing page or creating a new one under a parent page.
testing
Generate tests that match an existing project's testing style. Use when adding coverage for a target file, function, bug fix, or edge case while preserving local conventions.