Factory Function Composition This skill helps you apply factory function patterns for clean dependency injection and function composition in TypeScript. Related Skills : See for when to move helpers into the return object. See for caller counting and inlining single-use extractions. When to Apply This Skill Use this pattern when you see: - A function that takes a client/resource as its first argument - Options from different layers (client, service, method) mixed together - Client creation happening inside functions that shouldn't own it - Functions that are hard to test because they create t…