Pathrule

Pathrule

Verified

Build products with AI agents that know your product.

Official, path-scoped patterns from the Pathrule team: ready-to-use memories, rules and skills for Claude Code, Codex, Grok, Kimi, Antigravity and OpenCode. Free and Apache-2.0.

Patterns by Pathrule

150

Android with Jetpack Compose

Model Android UI state, effects, navigation, persistence, and background work across real lifecycles.

2 Rules • 3 Memories • 1 Skill

Angular

Write signal-first, zoneless Angular with standalone components and no manual subscriptions.

4 Rules • 2 Memories

ASP.NET Core

Build ASP.NET Core services with ordered middleware, validated options, safe lifetimes, and clear boundaries.

3 Rules • 4 Memories • 1 Skill

Astro

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

3 Rules • 3 Memories • 1 Skill

Django

Write Django apps with a query-efficient ORM, safe settings, and async views that do not block.

3 Rules • 3 Memories • 1 Skill

Electron Desktop Applications

Harden Electron process boundaries, IPC contracts, navigation, permissions, updates, and local data.

3 Rules • 2 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

Express.js Production APIs

Make middleware order, proxy trust, asynchronous failures, and shutdown behavior explicit.

3 Rules • 2 Memories • 1 Skill

Firebase and Firestore Production

Design Firestore rules, indexes, offline writes, and server authority as one data contract.

3 Rules • 2 Memories • 1 Skill

Flask Production Applications

Keep Flask application state, request context, extensions, and deployment boundaries explicit.

2 Rules • 2 Memories

Flutter

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

2 Rules • 3 Memories • 1 Skill

Laravel

Build Laravel apps with lean Eloquent queries, validated requests, and queued work that retries safely.

3 Rules • 2 Memories • 1 Skill

NestJS Production Architecture

Control provider scope, module ownership, validation, and transport-independent application logic.

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

Ruby on Rails

Work with Rails 8 as it ships today: the Solid stack, Hotwire views, and queries that do not multiply.

2 Rules • 5 Memories

Spring Boot

Keep controllers thin, configuration typed, transactions explicit, and tests aligned with application slices.

2 Rules • 3 Memories • 1 Skill

SvelteKit

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

2 Rules • 4 Memories • 1 Skill

SwiftUI

Build SwiftUI apps that compile under Swift 6 strict concurrency and keep state in one owner.

4 Rules • 2 Memories • 1 Skill

Unity Game Development

Control frame-loop work, object lifetimes, physics timing, asset loading, and saved game state.

2 Rules • 2 Memories • 1 Skill

Vue 3 Production Patterns

Keep Vue reactivity explicit, composables bounded, and server-rendered output deterministic.

2 Rules • 3 Memories • 1 Skill

WordPress Plugin and Theme Development

Keep WordPress hooks, capabilities, data access, rendering, and updates safe across releases.

3 Rules • 2 Memories • 2 Skills

Browser Storage and IndexedDB

Own browser persistence schemas, quotas, migrations, cross-tab coordination, privacy, and recovery.

3 Rules • 2 Memories

Client State Management

Give URL, form, local, shared, and server state one owner each and derive everything else.

1 Rule • 2 Memories

Core Web Vitals

Hit LCP under 2.5 seconds, INP under 200 milliseconds, and CLS under 0.1 on real traffic.

2 Rules • 2 Memories • 2 Skills

Data Tables and Grids

Keep query state, row identity, virtualization, selection, editing, and keyboard semantics coherent.

3 Rules • 1 Memory • 1 Skill

Dates, Time Zones, and Calendars

Model instants, local dates, wall-clock schedules, zones, and calendar rules as distinct types.

2 Rules • 3 Memories • 1 Skill

Design Systems with Storybook

Turn component contracts into documented states, interaction evidence, accessibility checks, and releases.

1 Rule • 1 Memory • 2 Skills

Forms with React Hook Form + Zod

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

3 Rules • 1 Memory • 1 Skill

Internationalization and Localization

Make locale, messages, formatting, direction, routes, and layout behavior explicit product contracts.

2 Rules • 2 Memories • 1 Skill

PWA and Offline-First Service Workers

Control service-worker updates, cache versions, offline mutations, navigation, and recovery.

2 Rules • 2 Memories • 1 Skill

React + TypeScript

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

2 Rules • 3 Memories • 1 Skill

Real-Time UI with WebSockets

Design WebSocket identity, ordering, reconnect, backpressure, presence, and resynchronization.

3 Rules • 2 Memories • 1 Skill

Responsive CSS Layouts

Build intrinsic layouts that survive narrow containers, long content, zoom, and localization.

2 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

SSR Hydration and Server-Client Consistency

Keep server HTML, initial client state, identifiers, and browser-only behavior deterministic.

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

Technical SEO and Structured Data

Make crawlability, canonical identity, metadata, structured data, and rendering testable per page.

2 Rules • 2 Memories

TypeScript Strict

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

4 Rules • 1 Memory • 1 Skill

Web Accessibility

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

3 Rules • 2 Memories • 1 Skill

Web Animation and Motion

Use motion to explain state change while keeping interaction interruptible, accessible, and fast.

2 Rules • 2 Memories

Apache Airflow Data Workflows

Design Airflow DAGs around data intervals, idempotent tasks, backfills, retries, and observable datasets.

2 Rules • 2 Memories • 2 Skills

Apache Spark Data Processing

Control Spark partitioning, shuffles, skew, schemas, retries, and output commits at data scale.

2 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

Database Connections, Pooling, and Capacity

Budget database connections across replicas, workers, transactions, queues, and failure recovery.

3 Rules • 2 Memories • 1 Skill

Database Transactions, Deadlocks, and Concurrency

Protect database invariants with explicit isolation, locking order, retries, idempotency, and evidence.

4 Rules • 2 Memories • 1 Skill

Drizzle ORM

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

2 Rules • 3 Memories • 1 Skill

Elasticsearch and OpenSearch

Design mappings, analyzers, queries, shards, aliases, and reindexing around search behavior.

3 Rules • 3 Memories • 1 Skill

Email Delivery and SMTP

Treat email as an authenticated, asynchronous delivery system with feedback and privacy boundaries.

3 Rules • 2 Memories • 2 Skills

FastAPI (Python)

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

4 Rules • 2 Memories • 1 Skill

File Uploads and Object Storage

Treat uploads as untrusted objects with bounded transfer, quarantine, validation, and authorized delivery.

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

GraphQL API

Ship a GraphQL API that batches its queries, authorizes per field, and cannot be walked by a stranger.

4 Rules • 1 Memory • 1 Skill

gRPC and Protocol Buffers

Evolve Protobuf contracts with deadlines, status semantics, streaming backpressure, and compatibility.

3 Rules • 3 Memories • 1 Skill

Kafka Event-Driven Services

Produce and consume Kafka events with keys that preserve order and handlers that survive redelivery.

3 Rules • 2 Memories • 2 Skills

MongoDB + Mongoose

Model MongoDB documents around the queries you run, then keep those queries indexed and lean.

2 Rules • 3 Memories • 1 Skill

Multi-Tenant SaaS

Make cross-tenant data leaks structurally impossible instead of relying on every query being careful.

4 Rules • 2 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

Pandas and DataFrame Pipelines

Make DataFrame schemas, missing values, joins, mutation, memory, and reproducibility explicit.

2 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

Prisma ORM

Use Prisma 7 as it actually ships: generated client, driver adapters, and one instance per process.

3 Rules • 1 Memory • 1 Skill

RabbitMQ Messaging

Design RabbitMQ routing, acknowledgements, publisher confirms, retries, dead letters, and flow control.

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

REST / HTTP API Design

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

2 Rules • 3 Memories • 1 Skill

SQL Query Performance and Indexing

Tune SQL from measured plans, realistic data, deliberate indexes, and bounded result shapes.

3 Rules • 2 Memories • 1 Skill

SQLite in Production

Operate SQLite with explicit transactions, WAL behavior, connection ownership, migrations, and backups.

3 Rules • 2 Memories

Supabase + RLS

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

3 Rules • 3 Memories • 1 Skill

B2B Billing and Net Terms

Connect purchase orders, approvals, due dates, partial payments, and collections in one receivable flow.

2 Rules • 2 Memories • 1 Skill

Dunning and Churn Recovery

Recover failed payments with stateful retries, clear customer action, and safe access transitions.

1 Rule • 1 Memory • 2 Skills

E-commerce Cart and Checkout

Keep catalog, cart, price, inventory, order, payment, and fulfillment state consistent.

4 Rules • 2 Memories • 1 Skill

Invoicing and Tax

Keep invoice facts immutable, tax evidence traceable, and corrections auditable across providers.

2 Rules • 1 Memory • 1 Skill

Marketplace Payments and Payouts

Keep charges, fees, seller balances, refunds, disputes, and payouts in one auditable ledger.

3 Rules • 2 Memories • 1 Skill

Multi-Currency Payments

Keep presentment, settlement, ledger, and reporting currencies explicit through every money movement.

2 Rules • 2 Memories

Paddle Billing

Treat Paddle transactions and webhooks as evidence while your application owns access state.

3 Rules • 2 Memories • 1 Skill

Payment Authentication with 3DS and SCA

Model payment authentication as a resumable server-owned state machine, not a browser callback.

4 Rules • 2 Memories • 1 Skill

Payment Reconciliation Ledger

Close the gap between internal orders, provider balances, bank payouts, fees, refunds, and disputes.

2 Rules • 3 Memories • 2 Skills

Pricing and Plan Modeling

Model products, prices, entitlements, and commercial terms without scattering plan-name checks.

1 Rule • 2 Memories

Refunds, Chargebacks, and Disputes

Model every payment reversal as an auditable state transition with deadlines, evidence, and ledger impact.

3 Rules • 3 Memories • 2 Skills

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

AWS ECS and Fargate

Operate ECS services with bounded tasks, IAM roles, networking, health, deployment, and Fargate capacity.

2 Rules • 3 Memories • 1 Skill

AWS Lambda

Write Lambda handlers that reuse their init work, retry safely, and do not exhaust the database.

3 Rules • 2 Memories • 1 Skill

Azure Functions Production Patterns

Design Azure Functions around trigger semantics, bindings, idempotency, configuration, and scaling.

2 Rules • 2 Memories

Backup and Disaster Recovery

Define recovery objectives, isolate backups, prove restores, and rehearse service recovery under pressure.

3 Rules • 1 Memory • 2 Skills

CDN and Edge Caching

Define cache keys, freshness, validation, privacy, invalidation, and origin protection as one contract.

2 Rules • 2 Memories • 1 Skill

Cloudflare Workers

Write Workers that use bindings, respect the isolate model, and stay inside the CPU budget.

2 Rules • 2 Memories • 1 Skill

DNS and Domain Management

Manage zones, delegation, DNSSEC, records, TTLs, and cutovers as reviewed production infrastructure.

3 Rules • 2 Memories

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

GitOps with Argo CD

Operate Argo CD through desired-state ownership, reconciliation, sync waves, health, drift, and rollback.

2 Rules • 3 Memories • 1 Skill

Google Cloud Run

Design Cloud Run around container concurrency, request lifetime, identity, scaling, and revisions.

2 Rules • 2 Memories • 1 Skill

Kubernetes + Helm

Ship workloads that Kubernetes can schedule, restart, drain, and scale without dropping requests.

5 Rules • 2 Memories • 1 Skill

Linux Services with systemd

Run Linux services with explicit users, dependencies, restart policy, signals, logs, limits, and hardening.

3 Rules • 2 Memories • 1 Skill

Nginx and Reverse Proxy Operations

Operate Nginx with explicit upstream, header, timeout, buffering, reload, and trust contracts.

3 Rules • 2 Memories • 1 Skill

Observability

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

2 Rules • 2 Memories • 1 Skill

Prometheus and Grafana Operations

Operate metrics with bounded cardinality, durable rules, actionable alerts, and trustworthy dashboards.

2 Rules • 3 Memories • 2 Skills

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

TLS Certificates and HTTPS Operations

Operate certificate identity, issuance, renewal, trust chains, protocol policy, and key rotation.

4 Rules • 2 Memories • 1 Skill

Vercel Deployment

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

2 Rules • 3 Memories • 1 Skill

Bash and Shell Automation

Write shell automation with safe quoting, strict inputs, deterministic cleanup, and portable failure.

3 Rules • 2 Memories • 1 Skill

Code Review

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

3 Rules • 1 Memory • 1 Skill

Debugging and Root Cause Analysis

Turn vague failures into reproducible evidence, competing hypotheses, controlled tests, and verified causes.

1 Rule • 2 Memories • 2 Skills

Dependency Upgrades and Breaking Changes

Upgrade dependencies through contract inventory, small steps, codemods, compatibility tests, and rollback.

2 Rules • 2 Memories • 2 Skills

Developer Onboarding

Turn a new contributor's first setup and change into a repeatable test of the engineering system.

2 Rules • 4 Memories • 2 Skills

Documentation Engineering

Treat operational and developer documentation as owned, testable interfaces that change with the system.

1 Rule • 2 Memories

Feature Flags and Progressive Delivery

Separate deployment from exposure with typed flags, deterministic targeting, rollback, and retirement.

2 Rules • 2 Memories • 1 Skill

Flaky Test Management

Detect, quarantine, diagnose, own, and eliminate nondeterministic tests without normalizing retries.

1 Rule • 2 Memories • 2 Skills

Git & Conventional Commits

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

2 Rules • 1 Memory • 1 Skill

Git Branching, Rebase, and Merge Conflicts

Keep Git history integration reviewable, recoverable, conflict-aware, and free of accidental data loss.

2 Rules • 2 Memories

Incident Response and Postmortems

Coordinate incidents with clear authority, durable timelines, safe mitigation, and owned learning.

1 Rule • 1 Memory • 3 Skills

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

Monorepo (pnpm + Turborepo)

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

3 Rules • 2 Memories • 1 Skill

OpenAPI and Swagger Contract Workflow

Keep OpenAPI contracts authoritative, compatible, generated, and aligned with runtime behavior.

2 Rules • 2 Memories • 1 Skill

Release Management

Promote immutable artifacts with compatibility evidence, explicit approval, rollback, and release notes.

2 Rules • 1 Memory • 2 Skills

Technical Debt Management

Turn costly shortcuts into owned, evidence-backed decisions with triggers and a credible payoff path.

1 Rule • 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

Agent Memory

Store durable agent memory with provenance, tenant isolation, retrieval policy, and deliberate forgetting.

1 Rule • 3 Memories • 1 Skill

AI Agents in Production

Run agent loops with hard budgets, small tool surfaces, and approval gates on anything irreversible.

4 Rules • 2 Memories • 1 Skill

AI Safety Guardrails

Classify risk, isolate untrusted content, authorize tools, validate output, and escalate safely.

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

AI-Generated Code Verification

Verify AI-authored changes through scope control, contracts, tests, security, runtime evidence, and rollback.

2 Rules • 2 Memories • 2 Skills

LLM Evaluations & Testing

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

1 Rule • 2 Memories • 2 Skills

LLM Fine-Tuning and Dataset Curation

Fine-tune models through licensed datasets, leakage control, reproducible training, evaluations, and rollback.

2 Rules • 3 Memories • 2 Skills

LLM Observability and Tracing

Trace model, retrieval, tool, safety, token, cost, and user outcomes without leaking prompt content.

2 Rules • 4 Memories • 1 Skill

LLM Streaming UX

Design typed stream events, resumable state, cancellation, and honest partial-output interactions.

1 Rule • 2 Memories • 2 Skills

LLM Structured Outputs

Treat model output as untrusted data that must satisfy a versioned schema before use.

2 Rules • 1 Memory • 1 Skill

Local LLM Inference with Ollama and vLLM

Operate local inference with explicit model identity, memory budgets, batching, quantization, and limits.

2 Rules • 3 Memories • 1 Skill

MCP Client and Tool Integration

Build MCP clients with explicit capabilities, consent, auth, transport, schemas, and result handling.

3 Rules • 2 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

Model Routing and Cost Control

Route AI work by capability, risk, latency, reliability, and budget with observable fallbacks.

3 Rules • 2 Memories • 1 Skill

Prompt Versioning and Management

Ship prompts as immutable, reviewable artifacts with typed inputs, eval evidence, rollout, and rollback.

2 Rules • 2 Memories • 2 Skills

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

Account Takeover and MFA

Protect sign-in, recovery, factor changes, and sensitive actions as one abuse-resistant system.

3 Rules • 1 Memory • 1 Skill

API Keys and Service-to-Service Authentication

Issue machine credentials with scopes, prefixes, hashing, rotation, audit, expiration, and leak response.

3 Rules • 1 Memory

API Rate Limiting and Abuse

Bound request frequency, concurrency, payload cost, and expensive business actions.

3 Rules • 1 Memory

Application Encryption and Key Management

Design encryption around threat models, authenticated modes, envelope keys, rotation, access, and recovery.

4 Rules • 2 Memories • 1 Skill

Authorization with RBAC and ReBAC

Authorize every action against the real resource, relationship, tenant, and current policy state.

4 Rules • 2 Memories • 1 Skill

Container and Image Security

Build traceable images, minimize contents, verify provenance, and constrain runtime power.

2 Rules • 1 Memory • 2 Skills

Enterprise SSO with SAML and OIDC

Operate enterprise SSO with tenant-bound issuers, signed responses, secure linking, JIT, SCIM, and rotation.

4 Rules • 2 Memories • 1 Skill

IAM and Least Privilege

Keep human and workload access temporary, scoped, reviewable, and deny-first.

3 Rules • 1 Memory • 1 Skill

PII and Data Privacy

Minimize personal data, preserve purpose, enforce access, and make deletion real.

3 Rules • 2 Memories

Security Audit Logging

Record security-relevant actions as trustworthy evidence without turning logs into a secret database.

3 Rules • 2 Memories

Software Supply Chain Security

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

4 Rules • 1 Memory • 1 Skill

SSRF and Egress Security

Treat server-side URL fetching as a privileged network capability with validation at every hop.

5 Rules • 1 Memory • 1 Skill

Threat Modeling

Model trust boundaries, rank realistic abuse paths, and turn threats into tested requirements.

1 Rule • 1 Memory • 2 Skills

Web Security (OWASP)

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

3 Rules • 2 Memories • 1 Skill