Rule Writing

Master the art of writing CLAUDE.md, .cursorrules, and other AI assistant configuration files.

AI Coding Rules for Zig Teams

AI generates C-style Zig with hidden allocations and ignored error unions. Rules for explicit allocators, error unions, comptime, and Zig's no-hidden-behavior philosophy.

7 min read·Mar 5, 2026

AI Rules for WebAssembly Projects

AI generates Wasm code that leaks memory, has expensive JS-Wasm boundary crossings, and ignores the component model. Rules for safe, performant WebAssembly.

7 min read·Feb 27, 2026

CLAUDE.md for Vercel Deployments

AI generates Docker and PM2 patterns for Vercel. Rules for serverless function limits, Edge vs Node runtime, env vars, preview deployments, and Vercel-optimized Next.js.

7 min read·Feb 18, 2026

AI Coding Rules for Lua Teams

AI generates over-engineered Lua by applying patterns from larger languages. Rules for tables, metatables, coroutines, module patterns, and game scripting conventions.

7 min read·Feb 12, 2026

CLAUDE.md for Ionic Projects

AI generates pure web or pure native patterns in Ionic. Rules for Capacitor plugins, Ionic UI components, adaptive styling, platform detection, and hybrid app architecture.

7 min read·Feb 4, 2026

CLAUDE.md for Redux and Zustand

AI generates legacy Redux or misuses Zustand as Redux. Rules for Redux Toolkit slices, Zustand minimal stores, server state with TanStack Query, and when to use each.

7 min read·Jan 30, 2026

CLAUDE.md for Jupyter Notebooks

AI generates notebooks with hidden state, non-linear execution, and unreproducible outputs. Rules for cell ordering, parameterization, and notebook-to-production patterns.

7 min read·Dec 22, 2025

CLAUDE.md for Expo Projects

AI generates bare React Native patterns in Expo. Rules for Expo Router (file-based), EAS Build/Submit, Expo SDK modules, config plugins, and the managed workflow.

7 min read·Dec 15, 2025

CLAUDE.md for Actix Web (Rust)

AI fights Actix Web's ownership model. Rules for web::Data shared state, typed extractors, guard-based routing, custom error responders, and middleware patterns.

7 min read·Dec 8, 2025

AI Coding Rules for Elixir Teams

AI generates OOP-style Elixir instead of idiomatic functional patterns. Rules for GenServers, pattern matching, pipe operators, Phoenix conventions, and OTP design.

8 min read·Dec 3, 2025

AI Rules for Perl and Legacy Code

AI generates ancient Perl patterns and makes legacy code harder to maintain. Rules for use strict/warnings, modern Perl, safe legacy changes, and incremental modernization.

7 min read·Nov 27, 2025

AI Coding Rules for PHP Teams

AI generates legacy PHP patterns from the PHP 5 era. Rules for modern PHP 8.3: enums, readonly classes, match expressions, typed properties, and Laravel conventions.

8 min read·Nov 21, 2025

CLAUDE.md for GraphQL and Apollo

AI generates REST-shaped GraphQL with one query per page. Rules for proper schema design, DataLoader resolvers, codegen for types, Apollo Client cache policies, and fragments.

8 min read·Nov 20, 2025

AI Rules for Ansible Playbooks

AI generates Ansible with raw shell commands instead of modules and ignores idempotency. Rules for proper modules, vault secrets, roles, and idempotent patterns.

7 min read·Nov 13, 2025

CLAUDE.md for Bun Projects

AI generates Node.js patterns in Bun, missing its built-in bundler, test runner, and SQLite. Rules for Bun.serve, bun:test, Bun.build, native SQLite, and bun install.

7 min read·Nov 10, 2025

CLAUDE.md for TypeORM

AI mixes TypeORM's Active Record and Data Mapper patterns randomly. Rules for choosing one pattern, repository usage, QueryBuilder, migrations, and eager/lazy relations.

7 min read·Oct 30, 2025

CLAUDE.md for React Native

AI generates web React in React Native — div, className, CSS media queries. Rules for View/Text primitives, StyleSheet, React Navigation, and platform-specific code.

8 min read·Oct 22, 2025

CLAUDE.md for Auth0 and NextAuth.js

AI builds custom JWT auth when Auth0 and NextAuth.js handle everything. Rules for provider configuration, session callbacks, middleware route protection, and adapter patterns.

7 min read·Oct 9, 2025

AI Coding Rules for Ruby Teams

AI generates Ruby that works but ignores Rails conventions and Ruby idioms. Rules for ActiveRecord patterns, service objects, testing with RSpec, and Rubocop alignment.

8 min read·Oct 8, 2025

CLAUDE.md for Qwik Projects

AI generates hydration patterns in Qwik, defeating resumability. Rules for $ lazy boundaries, useSignal, routeLoader$, actions, and Qwik City conventions.

7 min read·Oct 1, 2025

AI Rules for AWS CloudFormation

AI generates CloudFormation without DeletionPolicy, with overly permissive IAM, and hardcoded values. Rules for parameters, conditions, nested stacks, and safe updates.

7 min read·Sep 29, 2025

CLAUDE.md for .NET and ASP.NET

AI generates .NET Framework MVC in modern .NET 8 projects. Rules for minimal APIs vs controllers, EF Core, DI, middleware pipeline, and top-level statements.

8 min read·Sep 24, 2025

CLAUDE.md for tRPC Projects

AI generates REST endpoints in tRPC projects — defeating end-to-end type safety. Rules for procedures, routers, Zod input validation, React Query hooks, and the type-safe client.

7 min read·Sep 10, 2025

AI Rules for PowerShell Scripts

AI generates PowerShell with Bash patterns instead of object pipelines. Rules for cmdlet naming, error handling, pipeline usage, module structure, and PSScriptAnalyzer.

7 min read·Sep 8, 2025

CLAUDE.md for Deno Projects

AI generates Node.js patterns in Deno — require(), npm packages, no permissions. Rules for permission flags, JSR/URL imports, Deno.serve, std library, and deno.json config.

7 min read·Sep 1, 2025

CLAUDE.md for SQLAlchemy

AI generates SQLAlchemy 1.x patterns in 2.0 projects — session.query(), legacy Column, no async. Rules for select(), Mapped types, AsyncSession, and Alembic.

7 min read·Aug 28, 2025

AI Coding Rules for Clojure Teams

AI generates OOP-style Clojure instead of data-oriented patterns. Rules for immutable maps, threading macros, REPL-driven development, and schema validation.

7 min read·Aug 27, 2025

CLAUDE.md for Tauri Apps

AI generates Electron patterns in Tauri — wrong process model, wrong IPC, wrong security. Rules for Tauri commands, capability-based permissions, events, and the Rust backend.

7 min read·Aug 18, 2025

AI Coding Rules for C# Teams

AI generates C# with outdated patterns. Rules for modern C# 12+: records, nullable references, minimal APIs, primary constructors, and proper async patterns.

8 min read·Aug 14, 2025

CLAUDE.md for SolidJS Projects

AI generates React patterns in SolidJS — destructuring props kills reactivity, components re-run, and hooks don't exist. Rules for signals, Show/For, stores, and SolidStart.

7 min read·Aug 11, 2025

CLAUDE.md for Lerna Monorepos

AI generates Lerna 4 patterns that are deprecated. Rules for Lerna 8 with Nx integration, versioning strategies, publishing workflow, changelog generation, and CI configuration.

7 min read·Aug 7, 2025

CLAUDE.md for Stripe Integration

AI handles Stripe payments client-side — a security disaster. Rules for server-side checkout sessions, webhook signature verification, idempotency keys, and PCI-compliant patterns.

8 min read·Aug 4, 2025

CLAUDE.md for C and C++ Projects

AI generates C/C++ with buffer overflows, dangling pointers, and undefined behavior. Rules for smart pointers, RAII, modern C++23, sanitizers, and CMake conventions.

8 min read·Aug 1, 2025

AI Coding Rules for Kotlin Teams

AI generates Java-style Kotlin instead of idiomatic Kotlin. Rules for data classes, sealed hierarchies, coroutines, extension functions, and Jetpack Compose.

8 min read·Jul 22, 2025

CLAUDE.md for Spring Boot

AI manually configures what Spring Boot auto-configures. Rules for letting auto-config work, Spring Data JPA, Spring Security, @ConfigurationProperties, and actuator.

8 min read·Jul 14, 2025

CLAUDE.md for AWS Amplify

AI generates Amplify Gen 1 CLI patterns in Gen 2 projects. Rules for TypeScript backend definitions, data models, auth configuration, storage rules, and Lambda functions.

7 min read·Jul 1, 2025

CLAUDE.md for Hono Projects

AI generates Node.js-specific Hono instead of Web Standard patterns. Rules for multi-runtime compatibility, Request/Response API, Zod OpenAPI, and middleware patterns.

7 min read·Jun 27, 2025

CLAUDE.md for Cloudflare Workers

AI uses Node.js APIs in Cloudflare Workers — they don't exist. Rules for Web Standard APIs, KV for cache, D1 for SQL, R2 for storage, Durable Objects, and wrangler dev.

8 min read·Jun 23, 2025

AI Rules for MATLAB and Simulink

AI generates slow, unvectorized MATLAB with growing arrays and outdated syntax. Rules for vectorization, preallocation, modern MATLAB features, and Simulink conventions.

7 min read·Jun 19, 2025

CLAUDE.md for Drizzle ORM

AI generates Prisma or raw SQL patterns in Drizzle projects. Rules for schema-as-code in TypeScript, the query builder, relational queries, drizzle-kit, and type inference.

7 min read·Jun 17, 2025

AI Coding Rules for Java Teams

AI generates Java that compiles but uses outdated patterns. Rules for modern Java: records, sealed classes, pattern matching, and proper Stream API usage.

8 min read·Jun 12, 2025

CLAUDE.md for Electron Apps

AI treats Electron like a web app — ignoring the main/renderer process split and security model. Rules for IPC, contextBridge, nodeIntegration: false, and process isolation.

7 min read·Jun 5, 2025

CLAUDE.md for pnpm Workspaces

AI generates npm patterns in pnpm workspaces — phantom dependencies and flat node_modules. Rules for workspace: protocol, strict isolation, catalog, filtering, and lockfile.

7 min read·May 29, 2025

CLAUDE.md for Remix Projects

AI generates React SPA patterns in Remix. Rules for loaders and actions, nested routing, web-standard forms, progressive enhancement, and error boundaries.

7 min read·May 22, 2025

AI Coding Rules for Haskell Teams

AI generates imperative-style Haskell that ignores purity, monads, and algebraic types. Rules for pure functions, IO isolation, type classes, and idiomatic error handling.

8 min read·May 18, 2025

CLAUDE.md for Laravel Projects

AI generates raw PHP patterns in Laravel, ignoring Eloquent, Blade, and artisan. Rules for Eloquent relationships, Form Requests, Livewire, queues, and Laravel conventions.

8 min read·May 8, 2025

AI Coding Rules for Swift Teams

AI generates Swift that compiles but uses class-heavy OOP instead of protocol-oriented patterns. Rules for SwiftUI, value types, async/await, and Apple's API design guidelines.

8 min read·Apr 30, 2025

CLAUDE.md for Firebase Projects

AI treats Firebase as a plain database — no security rules, relational data model. Rules for Firestore document design, security rules, Cloud Functions, Auth, and hosting.

8 min read·Apr 24, 2025

AI Rules for Kubernetes Manifests

AI generates Kubernetes YAML without resource limits, security contexts, or health probes. Rules for production-ready manifests, Helm charts, and K8s security.

8 min read·Apr 23, 2025

CLAUDE.md for Prisma ORM

AI ignores Prisma's type-safe client. Rules for schema.prisma design, relation queries, select for field filtering, transactions, seeding, and migration workflow.

7 min read·Apr 17, 2025

AI Coding Rules for TypeScript Teams

AI assistants generate TypeScript that compiles but uses `any`, skips generics, and ignores your patterns. Rules for strict types, Zod validation, and framework conventions.

8 min read·Apr 16, 2025

CLAUDE.md for AWS Lambda Functions

AI generates Express servers inside Lambda. Rules for event-driven handlers, cold start minimization, connection reuse outside the handler, Lambda layers, and least-privilege IAM.

7 min read·Apr 7, 2025

CLAUDE.md for Ruby on Rails

AI ignores Rails conventions: fat controllers, bypassed ActiveRecord, manual auth. Rules for the Rails Way: skinny controllers, concerns, Turbo, Stimulus, and Hotwire.

8 min read·Apr 3, 2025

CLAUDE.md for Astro Projects

AI generates React SPA patterns in Astro projects, shipping unnecessary JS. Rules for islands architecture, content collections, zero-JS defaults, and Astro integrations.

7 min read·Mar 28, 2025

AI Coding Rules for Rust Teams

AI assistants generate Rust that compiles but fights the borrow checker. Rules for ownership patterns, error handling with thiserror/anyhow, and idiomatic traits.

8 min read·Mar 25, 2025

CLAUDE.md for Nx Monorepos

AI generates manual monorepo patterns in Nx. Rules for Nx generators, affected commands, project graph, task caching, module boundaries, and Nx Cloud for remote cache.

7 min read·Mar 20, 2025

CLAUDE.md for Jest and Vitest

AI generates snapshot-heavy, over-mocked Jest tests. Rules for behavior testing, testing-library patterns, mock boundaries, test naming, and Jest vs Vitest configuration.

8 min read·Mar 6, 2025

CLAUDE.md for Supabase Projects

AI builds custom auth, custom storage, and custom realtime on Supabase. Rules for using Supabase Auth, RLS policies, Storage buckets, Realtime subscriptions, and Edge Functions.

8 min read·Feb 21, 2025

CLAUDE.md for Flask Projects

AI generates monolithic Flask apps with everything in one file. Rules for blueprints, application factory pattern, Flask-SQLAlchemy, WTForms, and config management.

7 min read·Feb 13, 2025

CLAUDE.md for Svelte and SvelteKit

AI generates Svelte 4 reactive declarations in Svelte 5 projects. Rules for runes ($state, $derived, $effect), SvelteKit load functions, form actions, and server routes.

8 min read·Feb 6, 2025

AI Coding Rules for Go Teams

Go's conventions are strong but AI assistants still deviate. Rules for error wrapping, interface design, context propagation, and table-driven tests.

8 min read·Jan 30, 2025

CLAUDE.md for Playwright Testing

AI mixes Cypress patterns into Playwright — explicit waits, wrong selectors, no route mocking. Rules for locators, auto-waiting, page object model, route(), and fixtures.

7 min read·Jan 23, 2025

CLAUDE.md for Fastify Projects

AI generates Express patterns in Fastify — missing schema validation, serialization, and the plugin system. Rules for JSON Schema, encapsulation, hooks, and TypeProvider.

7 min read·Jan 16, 2025

CLAUDE.md for Turborepo Monorepos

AI ignores Turborepo's pipeline, caching, and workspace model. Rules for turbo.json task config, internal packages, remote caching, workspace dependencies, and CI optimization.

7 min read·Jan 7, 2025

CLAUDE.md for Angular Projects

AI generates module-based Angular in standalone projects and ignores signals. Rules for standalone components, signals, typed forms, RxJS patterns, and Angular CLI.

8 min read·Jan 3, 2025

CLAUDE.md for Mongoose and MongoDB

AI applies relational patterns to MongoDB — normalizing everything. Rules for document design, embedding vs referencing, Mongoose schemas, indexes, and aggregation pipelines.

8 min read·Dec 23, 2024

CLAUDE.md for FastAPI Projects

AI generates Flask-style FastAPI without Pydantic models or type hints. Rules for typed endpoints, dependency injection, async patterns, SQLAlchemy integration, and OpenAPI.

8 min read·Dec 12, 2024

AI Coding Rules for Python Teams

AI assistants generate Python that works but lacks type hints, uses bare exceptions, and ignores your framework patterns. These rules fix the most common issues.

8 min read·Dec 4, 2024

CLAUDE.md for Vue and Nuxt Projects

AI generates Options API and Vue 2 patterns in Vue 3 projects. Rules for Composition API, script setup, composables, Pinia state management, and Nuxt 3 conventions.

8 min read·Nov 25, 2024

CLAUDE.md for Cypress Testing

AI generates fragile Cypress tests. Rules for data-testid selectors, custom commands, cy.intercept for API mocking, page objects, retry-ability, and CI configuration.

7 min read·Nov 14, 2024

CLAUDE.md for Django Projects

AI reinvents Django patterns that already exist — raw SQL instead of ORM, manual auth instead of django.contrib.auth. Rules for models, views, DRF, templates, and testing.

8 min read·Oct 30, 2024

CLAUDE.md for Storybook Projects

AI generates Storybook stories without args or controls. Rules for CSF3 format, args-based stories, play functions for interaction testing, decorators, and autodocs.

7 min read·Oct 3, 2024

CLAUDE.md for NestJS Projects

AI generates Express patterns in NestJS, bypassing modules, DI, and decorators. Rules for NestJS providers, guards, pipes, interceptors, and proper module organization.

8 min read·Sep 18, 2024

CLAUDE.md for GitHub Actions Workflows

AI generates slow, sequential GitHub Actions. Rules for job parallelism, dependency caching, matrix strategies, reusable workflows, concurrency groups, and proper secret handling.

8 min read·Sep 12, 2024

CLAUDE.md for React with Vite

AI mixes Next.js server patterns into React + Vite SPAs. Rules for client-side React: React Router, state management, Vite config, environment variables, and build optimization.

7 min read·Aug 14, 2024

CLAUDE.md for shadcn/ui Projects

AI treats shadcn/ui as a library dependency. It's copied source code you own. Rules for component customization, cn() utility, cva variants, Radix primitives, and theming.

7 min read·Aug 7, 2024

CLAUDE.md for Express.js and Node

Express gives you freedom — AI fills it with inconsistent patterns. Rules for middleware ordering, centralized error handling, Zod validation, and security hardening.

8 min read·Jul 25, 2024

CLAUDE.md for Next.js App Router

AI generates Pages Router Next.js in App Router projects. Rules for React Server Components, server actions, metadata API, streaming, and layout conventions.

8 min read·Jun 20, 2024

CLAUDE.md for Tailwind CSS Projects

AI mixes Tailwind with custom CSS and uses arbitrary values. Rules for utility-first discipline, design scale, responsive prefixes, dark mode, and component extraction patterns.

7 min read·Jun 3, 2024

CLAUDE.md for Next.js Pages Router

Not every Next.js app has migrated to App Router. Rules for Pages Router: getServerSideProps, getStaticProps, ISR, API routes in pages/api/, and _app/_document patterns.

7 min read·May 9, 2024