Widen Return Type

widen return type

zaxbysauce e680ac9 2 files · 1023 B Updated

File contents

widen return type

Trigger

  • widen return type
  • opt-in tool map
  • feature flag gating
  • tool registration

Required Procedure

  • use TypeScript overloads to preserve narrow return types when widening a function's return type for extensibility
  • mirror existing opt-in pattern: separate tool map constant, conditional merge in agents/index.ts, gating tests verifying disabled and enabled states

Forbidden Shortcuts

  • invent new tool-gating mechanisms for opt-in feature flags

Delegation Template

When delegating a task affected by this skill, include:

SKILLS: file:.opencode/skills/generated/widen-return-type/SKILL.md

Reviewer Checks

  • Verify each required action above appears in the diff.

zaxbysauce/opencode-swarm/tree/main/.opencode/skills/generated/widen-return-type commit e680ac97f7

Frequently asked questions

npx skillmds@latest add zaxbysauce/widen-return-type