same-import-upgrade-path
Installation
SKILL.md
Rule
Before writing the minimal version, look at the shape of the real implementation you're deferring — its client API, not its internals — and copy that shape for the minimal version's public interface, even though the minimal version's actual guts (an array, an in-memory map, a single process) look nothing like the real thing.
// The minimal version's public surface: enqueue + a typed job registry,
// deliberately shaped like BullMQ's API even though there's no Redis yet.
export async function enqueue<K extends keyof JobPayloadMap>(
name: K,
data: JobPayloadMap[K],
): Promise<string> { /* pushes onto an in-process array */ }