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

  1. Write the steps of your function as comments (verbs).
  2. Convert comments into function calls (even if they don't exist yet).
  3. Implement the sub-functions recursively using the same method.

Examples

Installs
2
First Seen
Apr 5, 2026
keep-functions-short-by-top-down-decomposition — mew-ton/coding-guidelines