skills/smithery.ai/apply-decorator-wrap

apply-decorator-wrap

Installation
SKILL.md

apply-decorator-wrap

When to Use

  • Adding caching/memoization
  • Timing function execution
  • Logging function calls
  • Input validation
  • Retry logic
  • Any cross-cutting concern

When NOT to Use

  • Behavior is specific to one function
  • Would obscure function's purpose
  • Simple inline code is clearer

The Pattern

Decorators wrap functions to add behavior before, after, or around the original.

Installs
1
First Seen
Mar 28, 2026
apply-decorator-wrap from smithery.ai