script-best-practices

Installation
SKILL.md

Script Best Practices

Guidelines for bundling executable scripts in skills.

When to Bundle Scripts

Bundle scripts when:

  • Same code would be rewritten repeatedly
  • Deterministic reliability needed
  • Complex validation required
  • Token cost of generation exceeds execution cost

Error Handling

Always handle errors explicitly rather than punting to Claude:

# Good: Handle errors explicitly
def process(path):
Related skills
Installs
1
GitHub Stars
4
First Seen
Mar 29, 2026