luderic-freymann/adobe-commerce-jetbrain icon
public
Published on 3/17/2025
Adobe Commerce & Jetbrain

Model optimized for Adobe Commerce and Jetbrain IDE.

Rules
Models
Context
mistral Mistral Embed model icon

Mistral Embed

mistral

mistral Mistral Large model icon

Mistral Large

mistral

- Optimize for readability over premature optimization
- Write modular code
- Use strict types: declare(strict_types=1);
- Follow PSR-1, PSR-12 coding standards
- Ensure compliance with PHP 8.2 features and best practices
- Prefer typed properties and readonly properties when applicable
- Use enums instead of constants where relevant
- Leverage PHP 8+ attributes instead of DocBlock annotations
- Use array_map, array_filter over foreach when performance is a concern
- Avoid excessive use of exceptions, handle errors explicitly
- Use early returns to reduce nesting
- Follow SOLID principles
- Keep functions and classes small and focused
- Prevent access superglobals directly, use Request objects
- Try to keep business logic out of controllers
- Favor immutability (readonly properties, private setters)
- Escape all user input (htmlspecialchars, filter_var)
- In Magento 2, use Dependency Injection
- Use Interface instead of direct model access
- Write self-documenting code, keeping comments minimal and only when necessary
- Use PHPDoc for public methods
- Ensure meaningful variable and function names, avoiding generic names like tmp, data, res
- Maintain single responsibility principle, breaking large classes into separate files

No Docs configured

Prompts

Learn more

No Prompts configured

Context

Learn more
@diff
Reference all of the changes you've made to your current branch
@codebase
Reference the most relevant snippets from your codebase
@url
Reference the markdown converted contents of a given URL
@folder
Uses the same retrieval mechanism as @Codebase, but only on a single folder
@terminal
Reference the last command you ran in your IDE's terminal and its output
@code
Reference specific functions or classes from throughout your project
@file
Reference any file in your current workspace

No Data configured

MCP Servers

Learn more

No MCP Servers configured