neverthrow-return-types

Installation
SKILL.md

Neverthrow Return Types

Goal

Model every compatible function and method with neverthrow return types.

This skill governs return signatures only. If the task also changes how thrown exceptions or rejected promises are captured, use neverthrow-wrap-exceptions alongside this skill.

Apply this rule to:

  • standalone functions
  • exported module functions
  • class methods
  • object literal methods
  • factory-returned methods
  • service, repository, and domain APIs

Do not treat nesting as an exception. A method inside a class or object follows the same rule as a top-level function.

Related skills

More from code-sherpas/agent-skills

Installs
19
First Seen
Mar 20, 2026