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
Thanks, here are your samples
Download the zip (6 rule files)View on GitHub
To use them in Cursor, copy the files from the rules folder into your project's .cursor/rules/ folder. The files are MIT licensed. We will send occasional updates about the rules packs to the address you entered. To unsubscribe, email [email protected].
What is in the sample
| File | Covers |
|---|---|
fastapi-database.mdc | SQLAlchemy 2.0 async models, sessions, repositories and Alembic migrations |
fastapi-routers-schemas.mdc | FastAPI routers, dependencies and Pydantic v2 schemas |
nextjs-routing-components.mdc | App Router files, Server/Client Components and data fetching (TypeScript) |
nextjs-server-actions-errors.mdc | Server Actions, Route Handlers, validation and error handling |
spring-boot-errors.mdc | Spring Boot 3+ error handling with ProblemDetail (RFC 9457) |
spring-boot-persistence.mdc | JPA 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.