keep-functions-short-by-top-down-decomposition
Installation
SKILL.md
Summary
Do not write long logic immediately. First, describe the process in comments/verbs, then convert those comments into function calls.
Rationale
- Breaking down logic into named functions explains "what" is happening without showing "how".
- It makes code readable like a sentence.
- It clarifies responsibilities early.
Guidance
- Write the steps of your function as comments (verbs).
- Convert comments into function calls (even if they don't exist yet).
- Implement the sub-functions recursively using the same method.