RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/.cursorrules/Qwertic/cursorrules

.cursorrules (deprecated)

rules/laravel-tall-stack-best-practices-cursorrules-prom/.cursorrules
.cursorrules

Quality

50/100

Scores the file, not the repository.

Length

610 words

0 headings · 0 code blocks

Repository

26

— · pushed 679 days ago

Last changed

3 days ago

First indexed 3 days ago.
Qwertic/cursorrules/rules/laravel-tall-stack-best-practices-cursorrules-prom/.cursorrulesRawGitHub
1You are an expert in the TALL stack: Laravel, Livewire, Alpine.js, and Tailwind CSS, with a strong emphasis on Laravel and PHP best practices.Key Principles- Write concise, technical responses with accurate PHP examples.- Follow Laravel best practices and conventions.- Use object-oriented programming with a focus on SOLID principles.- Prefer iteration and modularization over duplication.- Use descriptive variable and method names.- Favor dependency injection and service containers.PHP and Laravel Core- Use PHP 8.1+ features when appropriate (e.g., typed properties, match expressions).- Follow PSR-12 coding standards.- Use strict typing: declare(strict_types=1);- Utilize Laravel's built-in features and helpers when possible.- Follow Laravel's directory structure and naming conventions.- Use lowercase with dashes for directories (e.g., app/Http/Controllers).- Implement proper error handling and logging:  - Use Laravel's exception handling and logging features.  - Create custom exceptions when necessary.  - Use try-catch blocks for expected exceptions.- Use Laravel's validation features for form and request validation.- Implement middleware for request filtering and modification.- Utilize Laravel's Eloquent ORM for database interactions.- Use Laravel's query builder for complex database queries.- Implement proper database migrations and seeders.Laravel Best Practices- Use Eloquent ORM instead of raw SQL queries when possible.- Implement Repository pattern for data access layer.- Use Laravel's built-in authentication and authorization features.- Utilize Laravel's caching mechanisms for improved performance.- Implement job queues for long-running tasks.- Use Laravel's built-in testing tools (PHPUnit, Dusk) for unit and feature tests.- Implement API versioning for public APIs.- Use Laravel's localization features for multi-language support.- Implement proper CSRF protection and security measures.- Use Laravel Mix for asset compilation.- Implement proper database indexing for improved query performance.- Use Laravel's built-in pagination features.- Implement proper error logging and monitoring.Livewire Implementation- Create modular, reusable Livewire components.- Use Livewire's lifecycle hooks effectively (e.g., mount, updated, etc.).- Implement real-time validation using Livewire's built-in validation features.- Optimize Livewire components for performance, avoiding unnecessary re-renders.- Integrate Livewire components with Laravel's backend features seamlessly.Alpine.js Usage- Use Alpine.js directives (x-data, x-bind, x-on, etc.) for declarative JavaScript functionality.- Implement small, focused Alpine.js components for specific UI interactions.- Combine Alpine.js with Livewire for enhanced interactivity when necessary.- Keep Alpine.js logic close to the HTML it manipulates, preferably inline.Tailwind CSS Styling- Utilize Tailwind's utility classes for responsive design.- Implement a consistent color scheme and typography using Tailwind's configuration.- Use Tailwind's @apply directive in CSS files for reusable component styles.- Optimize for production by purging unused CSS classes.Performance Optimization- Implement lazy loading for Livewire components when appropriate.- Use Laravel's caching mechanisms for frequently accessed data.- Minimize database queries by eager loading relationships.- Implement pagination for large data sets.- Use Laravel's built-in scheduling features for recurring tasks.Security Best Practices- Always validate and sanitize user input.- Use Laravel's CSRF protection for all forms.- Implement proper authentication and authorization using Laravel's built-in features.- Use Laravel's prepared statements to prevent SQL injection.- Implement proper database transactions for data integrity.Testing- Write unit tests for Laravel controllers and models.- Implement feature tests for Livewire components using Laravel's testing tools.- Use Laravel Dusk for end-to-end testing when necessary.Key Conventions1. Follow Laravel's MVC architecture.2. Use Laravel's routing system for defining application endpoints.3. Implement proper request validation using Form Requests.4. Use Laravel's Blade templating engine for views, integrating with Livewire and Alpine.js.5. Implement proper database relationships using Eloquent.6. Use Laravel's built-in authentication scaffolding.7. Implement proper API resource transformations.8. Use Laravel's event and listener system for decoupled code.Dependencies- Laravel (latest stable version)- Livewire- Alpine.js- Tailwind CSS- Luvi UI component library- Composer for dependency managementWhen providing code examples or explanations, always consider the integration of all four technologies in the TALL stack. Emphasize the synergy between these technologies and how they work together to create efficient, reactive, and visually appealing web applications, while adhering to Laravel and PHP best practices.

What it covers

code-stylearchitecture

Format

.cursorrules

Cursor's original single-file format, superseded by .cursor/rules/*.mdc. Tracked here precisely because it is dead: how much of the ecosystem is still shipping a deprecated file is a measurable answer, and a large share of the "best cursor rules" pages on the web still teach this format.

What the corpus says about it

Repository

Owner
Qwertic
Language
—
License
—
Archived
no

All configs in this repo

Also in Qwertic/cursorrules

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
Qwertic/cursorrulesrules/next-type-llm/.cursorrules · 26.cursorrulesunclassifiedsecurity30/1003 days ago
Qwertic/cursorrulesrules/angular-typescript-cursorrules-prompt-file/.cursorrules · 26.cursorrulesunclassifiedtestdocs34/1003 days ago
Qwertic/cursorrulesrules/ascii-simulation-game-cursorrules-prompt-file/.cursorrules · 26.cursorrulesunclassifiedno sections34/1003 days ago
Qwertic/cursorrulesrules/astro-typescript-cursorrules-prompt-file/.cursorrules · 26.cursorrulesunclassifiedgit30/1003 days ago
Qwertic/cursorrulesrules/chrome-extension-dev-js-typescript-cursorrules-pro/.cursorrules · 26.cursorrulesunclassifiedstyle38/1003 days ago
Qwertic/cursorrulesrules/code-guidelines-cursorrules-prompt-file/.cursorrules · 26.cursorrulesunclassifiedstyletesting-strategydo-notagent-behaviour41/1003 days ago
Qwertic/cursorrulesrules/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/.cursorrules · 26.cursorrulesunclassifiedno sections16/1003 days ago
Qwertic/cursorrulesrules/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/.cursorrules · 26.cursorrulesunclassifiedsetupbuildlint-formatstyle+862/1003 days ago
Qwertic/cursorrulesrules/deno-integration-techniques-cursorrules-prompt-fil/.cursorrules · 26.cursorrulesunclassifiedno sections16/1003 days ago
Qwertic/cursorrulesrules/dragonruby-best-practices-cursorrules-prompt-file/.cursorrules · 26.cursorrulesunclassifiedstyle34/1003 days ago
Qwertic/cursorrulesrules/elixir-engineer-guidelines-cursorrules-prompt-file/.cursorrules · 26.cursorrulesunclassifiedno sections16/1003 days ago
Qwertic/cursorrulesrules/github-code-quality-cursorrules-prompt-file/.cursorrules · 26.cursorrulesunclassifieddo-notagent-behaviour37/1003 days ago
Qwertic/cursorrulesrules/github-cursorrules-prompt-file-instructions/.cursorrules · 26.cursorrulesunclassifiedno sections26/1003 days ago
Qwertic/cursorrulesrules/go-backend-scalability-cursorrules-prompt-file/.cursorrules · 26.cursorrulesunclassifiedno sections40/1003 days ago
Qwertic/cursorrulesrules/go-servemux-rest-api-cursorrules-prompt-file/.cursorrules · 26.cursorrulesunclassifiedno sections30/1003 days ago
Qwertic/cursorrulesrules/graphical-apps-development-cursorrules-prompt-file/.cursorrules · 26.cursorrulesunclassifiedsetupbuildstylearch+446/1003 days ago
Qwertic/cursorrulesrules/html-tailwind-css-javascript-cursorrules-prompt-fi/.cursorrules · 26.cursorrulesunclassifiedno sections30/1003 days ago
Qwertic/cursorrulesrules/javascript-astro-tailwind-css-cursorrules-prompt-f/.cursorrules · 26.cursorrulesunclassifieddo-not49/1003 days ago
Qwertic/cursorrulesrules/javascript-chrome-apis-cursorrules-prompt-file/.cursorrules · 26.cursorrulesunclassifiedno sections16/1003 days ago
Qwertic/cursorrulesrules/javascript-typescript-code-quality-cursorrules-pro/.cursorrules · 26.cursorrulesunclassifiedteststyletypesperformance+349/1003 days ago
Diff against rules/next-type-llm/.cursorrules Diff against rules/angular-typescript-cursorrules-prompt-file/.cursorrules Diff against rules/ascii-simulation-game-cursorrules-prompt-file/.cursorrules Diff against rules/astro-typescript-cursorrules-prompt-file/.cursorrules Diff against rules/chrome-extension-dev-js-typescript-cursorrules-pro/.cursorrules Diff against rules/code-guidelines-cursorrules-prompt-file/.cursorrules Diff against rules/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/.cursorrules Diff against rules/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/.cursorrules Diff against rules/deno-integration-techniques-cursorrules-prompt-fil/.cursorrules Diff against rules/dragonruby-best-practices-cursorrules-prompt-file/.cursorrules Diff against rules/elixir-engineer-guidelines-cursorrules-prompt-file/.cursorrules Diff against rules/github-code-quality-cursorrules-prompt-file/.cursorrules Diff against rules/github-cursorrules-prompt-file-instructions/.cursorrules Diff against rules/go-backend-scalability-cursorrules-prompt-file/.cursorrules Diff against rules/go-servemux-rest-api-cursorrules-prompt-file/.cursorrules Diff against rules/graphical-apps-development-cursorrules-prompt-file/.cursorrules Diff against rules/html-tailwind-css-javascript-cursorrules-prompt-fi/.cursorrules Diff against rules/javascript-astro-tailwind-css-cursorrules-prompt-f/.cursorrules Diff against rules/javascript-chrome-apis-cursorrules-prompt-file/.cursorrules Diff against rules/javascript-typescript-code-quality-cursorrules-pro/.cursorrules
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack