HyperPrompt's Rules Library contains 328+ configuration files for Cursor, Windsurf, Claude, Gemini, Kiro, GitHub Copilot, and other AI coding assistants. AI coding rules are project instructions in a tool-supported format, such as .mdc, CLAUDE.md, or AGENTS.md, that customize how an AI assistant generates and refactors code for your tech stack and coding standards. Free to browse and copy.
Browse 328+ rules for Cursor, Gemini, Kiro, Claude, Windsurf, and more.
Add performance monitoring and analytics
Implement effective logging in Node.js
Create nominal types with branding
Generate exceptional TypeScript code with Claude
Generate music-reactive visualizations
Generate web scraping code safely
Master built-in TypeScript utility types
Organize TypeScript modules: explicit public entry points, type-only imports and exports, path aliases that match the runtime, and no circular dependencies.
Optimize application performance
Write code that helps Copilot suggest better
Organize Tailwind CSS in large projects
Generate procedural content
Generate Angular components and services
Optimize Node.js application performance
Generate file upload components and handlers
Implement authentication flows securely
Generate Supabase client and queries
Optimize TypeScript compilation
Use middleware for authentication and redirects
Decide where React state lives, keep server data out of component state, and model complex UI states so impossible combinations cannot occur.
Design efficient database schemas
Rules provide project conventions and context to a coding assistant. Use the format and activation scope documented for your tool. Cursor supports .cursor/rules/*.mdc, Claude uses CLAUDE.md and scoped rule files, and other clients have their own formats. Rules guide a model; they do not guarantee that generated code follows every instruction.
Rule loading is controlled by the coding tool, and the model's response still needs review. Use the format and scope documented for your tool and verify that it loads the rule before testing the output.
Many tools support multiple scoped rule files. Keep instructions focused and check precedence. The Rules Generator creates a Cursor .mdc rule or an AGENTS.md starting point.
Start with a rule from this library and customize it. Or use the Cursor Rules Generator to create one from scratch based on your tech stack. Read our guide to writing Cursor rules for detailed instructions.
You can browse and copy the public entries. Check the original source and license for reuse requirements, and review instructions before applying them to your project.