Patterns

Ready-to-use knowledge for your codebase.

Curated packages of memories, rules and skills, pre-scoped to the paths they belong to. Add one and your AI assistant applies it where it matters, then it evolves with your project.

Free, Apache-2.0Published byPathrule

31 patterns

Astro

Ship content-first sites that send almost no JavaScript by default.

2 Rules • 2 Memories • 1 Skill

Expo (React Native)

Ship Expo apps with file-based routing, EAS Build, and safe OTA updates.

2 Rules • 2 Memories • 1 Skill

Next.js App Router

Battle-tested conventions for a Next.js App Router codebase, scoped to the paths they belong to.

2 Rules • 2 Memories • 1 Skill

Nuxt

Ship Nuxt 4 apps with correct data fetching, server routes, and SSR-safe code.

2 Rules • 2 Memories • 1 Skill

React Router 7

Build full-stack React apps with framework mode loaders, actions, and generated route types.

2 Rules • 2 Memories • 1 Skill

SvelteKit

Keep server secrets, load data, and mutations correct across SvelteKit 2 and Svelte 5.

2 Rules • 2 Memories • 1 Skill

Forms with React Hook Form + Zod

Schema-first, type-safe forms with shared client and server validation.

2 Rules • 2 Memories • 1 Skill

React + TypeScript

Pragmatic React and TypeScript conventions: typed props, accessible UI, and predictable hooks.

2 Rules • 2 Memories • 1 Skill

shadcn/ui

Own your component code and theme it with CSS variables instead of installing a black-box UI library.

2 Rules • 2 Memories • 1 Skill

Tailwind CSS

Keep Tailwind v4 utility code clean, token-driven, and free of arbitrary-value sprawl.

2 Rules • 2 Memories • 1 Skill

TanStack Query

Treat the server as the source of truth and let the cache do the work.

2 Rules • 2 Memories • 1 Skill

Web Accessibility

Ship interfaces that work for keyboard, screen reader, and low-vision users by default.

2 Rules • 2 Memories • 1 Skill

Auth (Sessions, JWT, OAuth)

Build authentication that resists XSS, CSRF, and token replay by default.

3 Rules • 2 Memories • 1 Skill

Background Jobs & Queues

Make every queued job safe to run twice so retries heal instead of corrupt.

2 Rules • 2 Memories • 1 Skill

Drizzle ORM

Keep your TypeScript schema, migrations, and typed queries honest with Drizzle.

2 Rules • 2 Memories • 1 Skill

Node + TypeScript API (Hono)

Build type-safe Hono APIs with chained routes, schema validation, and a typed RPC client.

2 Rules • 2 Memories • 1 Skill

PostgreSQL Schema & Migrations

Design normalized PostgreSQL schemas and ship lock-safe, forward-only migrations.

2 Rules • 2 Memories • 1 Skill

REST / HTTP API Design

Design HTTP APIs that stay predictable, safe to retry, and easy to evolve.

2 Rules • 2 Memories • 1 Skill

Supabase + RLS

Row Level Security done right: deny by default, user JWT only, and a clean migration workflow.

2 Rules • 2 Memories • 1 Skill

Stripe Billing

Safe Stripe integration: verified webhooks, idempotent handlers, and the right API for the job.

2 Rules • 2 Memories • 1 Skill

Subscriptions & Usage Billing

Ship metered subscriptions on Stripe Billing without dropping usage or double-charging customers.

2 Rules • 2 Memories • 1 Skill

Docker & Containers

Ship small, secure, cache-friendly container images by default.

2 Rules • 2 Memories • 1 Skill

GitHub Actions CI/CD

Build hardened, fast, OIDC-deployed GitHub Actions pipelines that AI agents keep secure by default.

2 Rules • 2 Memories • 1 Skill

Observability

Emit correlated logs, metrics, and traces that make incidents debuggable.

2 Rules • 2 Memories • 1 Skill

Secrets & Environment Management

Keep secrets out of git, inject them at runtime, and rotate them automatically.

2 Rules • 2 Memories • 1 Skill

Terraform / IaC

Ship Terraform with locked remote state, pinned versions, and a plan-gated CI pipeline.

2 Rules • 2 Memories • 1 Skill

Vercel Deployment

Ship to Vercel with safe previews, scoped env vars, and instant rollbacks.

2 Rules • 2 Memories • 1 Skill

Code Review

Ship small pull requests that reviewers can approve fast with confidence.

2 Rules • 2 Memories • 1 Skill

Git & Conventional Commits

Keep history readable and releases automatic with small commits and Conventional Commits.

2 Rules • 2 Memories • 1 Skill

Monorepo (pnpm + Turborepo)

Keep a pnpm and Turborepo monorepo fast, cacheable, and boundary-clean.

2 Rules • 2 Memories • 1 Skill

Testing (Vitest + Playwright)

Unit test behavior with Vitest, drive real user flows with Playwright, and keep both green in CI.

2 Rules • 2 Memories • 1 Skill