reuse-first
Installation
SKILL.md
Reuse First
Search for an existing helper before writing a new one. Prefer import, then extract, then write. Less code wins.
This skill owns the reuse decision and the helper’s home. It does not implement the rest of the feature. It does not load the next skill in a pipeline.
When To Use
Load when the agent is about to add:
- a helper or util
- a type guard
- a mapper
- a small generic function
- an extract of repeated inline logic (
if (object.isCancelled || object.isRefunded)in two functions)
Skip UI copy, comments, and one-off JSX that is not a helper.