Free sample rules for Cursor and Claude Code

Six real rule files taken from the CodebaseRules packs, free to use in your own projects.

Get the free sample rules

What is in the sample

FileCovers
fastapi-database.mdcSQLAlchemy 2.0 async models, sessions, repositories and Alembic migrations
fastapi-routers-schemas.mdcFastAPI routers, dependencies and Pydantic v2 schemas
nextjs-routing-components.mdcApp Router files, Server/Client Components and data fetching (TypeScript)
nextjs-server-actions-errors.mdcServer Actions, Route Handlers, validation and error handling
spring-boot-errors.mdcSpring Boot 3+ error handling with ProblemDetail (RFC 9457)
spring-boot-persistence.mdcJPA entities, repositories, transactions and Flyway migrations

The same files live in the public GitHub repository under the MIT license. The full packs add the remaining rule files and a ready made CLAUDE.md for each stack.