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

A pattern is a small, opinionated bundle of memories, rules and skills for a single topic — server components scoped to your app folder, a migration convention at the database layer, a review checklist at the root. The mix is composed from the subject, so a security pattern leans on strict rules and an architecture pattern leans on conventions worth remembering.

Everything here is free and Apache-2.0. Import a pattern with its token and each piece lands at the path it belongs to; remove it the same way. It is a starting point that becomes your own context, not a dependency you are locked into.

43 patterns

Astro

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

3 Rules • 3 Memories • 1 Skill

Expo (React Native)

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

3 Rules • 3 Memories • 1 Skill

Flutter

Build Flutter apps that stay fast and leak-free with disciplined widgets and clear state boundaries.

2 Rules • 3 Memories • 1 Skill

Next.js App Router

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

4 Rules • 2 Memories • 1 Skill

Nuxt

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

5 Rules • 2 Memories • 1 Skill

React Router 7

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

3 Rules • 2 Memories • 1 Skill

SvelteKit

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

2 Rules • 4 Memories • 1 Skill

Forms with React Hook Form + Zod

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

3 Rules • 1 Memory • 1 Skill

React + TypeScript

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

2 Rules • 3 Memories • 1 Skill

TypeScript Strict

Make the compiler do the work: no any, no escape hatches, types that model reality.

4 Rules • 1 Memory • 1 Skill

shadcn/ui

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

2 Rules • 3 Memories • 1 Skill

Tailwind CSS

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

2 Rules • 3 Memories • 1 Skill

TanStack Query

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

2 Rules • 3 Memories • 1 Skill

Web Accessibility

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

3 Rules • 2 Memories • 1 Skill

Auth (Sessions, JWT, OAuth)

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

4 Rules • 1 Memory • 1 Skill

Background Jobs & Queues

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

2 Rules • 3 Memories • 1 Skill

Drizzle ORM

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

2 Rules • 3 Memories • 1 Skill

Node + TypeScript API (Hono)

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

3 Rules • 3 Memories • 1 Skill

PostgreSQL Schema & Migrations

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

3 Rules • 2 Memories • 1 Skill

REST / HTTP API Design

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

2 Rules • 3 Memories • 1 Skill

Supabase + RLS

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

3 Rules • 3 Memories • 1 Skill

FastAPI (Python)

Build type-safe async Python APIs with Pydantic validation and dependency injection.

4 Rules • 2 Memories • 1 Skill

Go API (Gin / Echo)

Build idiomatic Go HTTP services with honest errors, context propagation, and validated input.

3 Rules • 2 Memories • 1 Skill

Redis Caching

Cache with Redis so reads get faster without serving stale or inconsistent data.

2 Rules • 3 Memories • 1 Skill

Stripe Billing

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

4 Rules • 4 Memories • 1 Skill

Subscriptions & Usage Billing

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

3 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.

3 Rules • 1 Memory • 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.

3 Rules • 2 Memories • 1 Skill

Terraform / IaC

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

3 Rules • 3 Memories • 1 Skill

Vercel Deployment

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

2 Rules • 3 Memories • 1 Skill

Code Review

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

3 Rules • 1 Memory • 1 Skill

Git & Conventional Commits

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

2 Rules • 1 Memory • 1 Skill

Monorepo (pnpm + Turborepo)

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

3 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.

3 Rules • 2 Memories • 1 Skill

Modern Python Tooling (uv + Ruff)

Set up Python projects the 2026 way: one fast tool for envs and deps, one for lint and format.

2 Rules • 2 Memories • 1 Skill

AI SDK (Vercel AI SDK)

Build streaming, tool-calling LLM features with one typed API across every provider.

3 Rules • 2 Memories • 1 Skill

RAG & Embeddings

Ground LLM answers in your own data with retrieval that returns the right chunks, not just similar ones.

2 Rules • 3 Memories • 1 Skill

MCP Server Authoring

Build Model Context Protocol servers whose tools an LLM can actually call correctly and safely.

3 Rules • 1 Memory • 1 Skill

LLM Evaluations & Testing

Catch hallucinations and quality regressions before users do, with evals on every prompt change.

1 Rule • 2 Memories • 2 Skills

Software Supply Chain Security

Stop a poisoned dependency from running in your build, CI, and production.

4 Rules • 1 Memory • 1 Skill

Web Security (OWASP)

Build web apps that deny by default, distrust every input, and ship secure headers.

3 Rules • 2 Memories • 1 Skill