Verify each required action above appears in the diff.
1---2name: widen-return-type3description: widen return type4---56<!-- generated by opencode-swarm skill-generator. Do not edit by hand; edits will be preserved on regeneration only with controlled update mode. -->78# widen return type910## Trigger1112- widen return type13- opt-in tool map14- feature flag gating15- tool registration1617## Required Procedure1819- use TypeScript overloads to preserve narrow return types when widening a function's return type for extensibility20- mirror existing opt-in pattern: separate tool map constant, conditional merge in agents/index.ts, gating tests verifying disabled and enabled states2122## Forbidden Shortcuts2324- invent new tool-gating mechanisms for opt-in feature flags2526## Delegation Template2728When delegating a task affected by this skill, include:2930```31SKILLS: file:.opencode/skills/generated/widen-return-type/SKILL.md32```3334## Reviewer Checks3536- Verify each required action above appears in the diff.</item>
Run npx skillmds@latest add zaxbysauce/widen-return-type in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
widen return type It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
zaxbysauce (@zaxbysauce) published this skill. Their other Agent Skills are listed on their SkillMD profile.