Pattern Registry

Reusable design patterns for codebase governance. Install patterns into your project and let your AI tools enforce them.

A General-Purpose Async Loading Component for React Query

One way to centralise loading, error, and retry UI for React Query without leaking query state into every component.

v1 by Torben Sko

AI-Managed Documentation That Lives in Your Codebase

Embedding markdown documentation directly in your app and letting Claude maintain it produces docs that stay accurate, include real diagrams, and don't rot.

v1 by Torben Sko

API Mocking Pattern for React and Storybook

A clean pattern for swapping between real and mock APIs without polluting your components with mocking logic.

v1 by Torben Sko

Data Model handling in TypeScript

A pattern for shared, runtime-validated data models that catch issues early and keep frontend and backend in sync.

v1 by Torben Sko

Demo Driven Development

Building components in isolation with comprehensive demos catches edge cases that unit tests miss and ensures your UI handles failure gracefully.

v1 by Torben Sko

E2E Testing with Playwright and Storybook

A testing strategy that mirrors how you build UIs — composable, isolated, and resilient to change.

v1 by Torben Sko

Environment Configuration Best Practices

Fail fast with explicit values. No defaults, no fallbacks, no computed configuration.

v1 by Torben Sko

Fixing Tailwind Culling in Monorepos

A practical pattern for preventing Tailwind v4 from culling classes in shared monorepo components.

v1 by Torben Sko

Lambda Tips

Tips for making lambdas easier to debug and maintain.

v1 by Torben Sko

Managing the LocalStack Lifecycle

Treat LocalStack as disposable infrastructure. Destroy the container on every deploy and avoid partial teardowns.

v1 by Torben Sko

Null vs Undefined

null and undefined are not interchangeable. Treating them as such blurs intent, weakens APIs, and forces defensive code everywhere.

v1 by Torben Sko

Organising Environment Files

As the number of apps, services and environments grow over time, these tips keep your environment configurations files more manageable

v1 by Torben Sko

Service Events: Rolling Your Own Event Logging

A lightweight event tracking system built on DynamoDB that provides visibility across your services without the cost or complexity of third-party logging platforms.

v1 by Torben Sko