Prefer Named Functions

Prefer named functions over anonymous functions across any technology stack. Use when an agent needs to define, refactor, or review functions, methods, callbacks, handlers, lambdas, arrow functions, or function expressions. Choose a named function unless the language, framework, idiomatic style, or local readability genuinely favors an anonymous form.

code-sherpas c90b00b 9.1 KB Updated

File contents

code-sherpas/agent-skills/tree/main/skills/prefer-named-functions commit c90b00be4e

Frequently asked questions

npx skillmds@latest add code-sherpas/prefer-named-functions