Rules gallery
Example rules files for common stacks and agents (CLAUDE.md, AGENTS.md, Cursor, Copilot, Gemini, Windsurf), scored by the same linter as the lint page. All of them are public domain (CC0): copy one into your repo and edit it. To combine stacks, use the rules packs.
Written for this site, CC0, scored by this linter, not tested against any agent.
-
ASP.NET Core Razor Pages + EF Core
Server-rendered .NET 10 web app with Razor Pages, EF Core on SQL Server, and xUnit page tests.
-
ASP.NET Core Web API
Minimal-API service on .NET 10 with PostgreSQL, typed results, problem details, and policy-based authorization.
-
ASP.NET Core Web API, Copilot instructions
The ASP.NET Core Web API rules as GitHub Copilot repository instructions: same content.
-
WinForms + DevExpress desktop app
Windows desktop app on .NET 10 with DevExpress controls, a UI-free core library, and fixture-based CSV export tests.
-
Minimal starter
A short, stack-neutral template: stack, commands, six working rules, and a definition of done.
-
Minimal starter, .windsurfrules
The stack-neutral starter as a Windsurf workspace rules file: same content.
-
Monorepo root
Root AGENTS.md for a pnpm and Turborepo workspace: commands, package boundaries, scope limits, and Changesets.
-
Go HTTP service
Standard-library HTTP service with method-pattern routing, pgx and sqlc, slog logging, and table-driven tests.
-
Go HTTP service, GEMINI.md
The Go HTTP service rules as a Gemini CLI context file: same content.
-
Next.js app (TypeScript)
App Router app with Server Components by default, Server Actions, Zod validation, Vitest, and Playwright.
-
Next.js app (TypeScript), Cursor rule
The Next.js rules as a Cursor .mdc rule: same content, with frontmatter that applies it to every request.
-
Python FastAPI service
Async FastAPI service with SQLAlchemy 2.0, Alembic migrations, strict typing, and money stored in minor units.
-
Python FastAPI service, .cursorrules
The FastAPI service rules as a legacy Cursor .cursorrules file: same content.