40-05-ts-singleton-patterns

TS: When something has one instance, use a module-level ref. Not a factory. Not a class. Not a closure. Prevents over-engineering and hidden coupling.

by Cygnusfear· Repository·other
Also installable via skills CLI
npx skills add Cygnusfear/agent-skills/skills/obsidian-plan-wiki/playbook/40-architecture/40-05-ts-singleton-patterns

Source

Path:skills/obsidian-plan-wiki/playbook/40-architecture/40-05-ts-singleton-patterns/SKILL.md(main)

Related in other

40-05-ts-singleton-patterns | AgentArea Skills