> For the complete documentation index, see [llms.txt](https://docs.powerops.app/powerops/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.powerops.app/powerops/best-practices/data-model-rules/edit-rules/create-new-rule.md).

# Create New Rule

Clicking on the “+Add Rule” button prompts a pop-up window with the following fields:

* "Rule Id" is managed internally, alleviating user concerns.
* "Name": For modifying the rule's name.
* "Severity": Adjusts the severity level of the rule, defaulted to "Low."
* "Category": Modifies the rule's category, initially set to the current one.
* "Description": Allows alteration of the rule's description.
* "Scope": Permits the addition or removal of the rule's scope.
* "Rule Expression Editor": Modifies the dynamic LINQ expression for the best practice rule.

<figure><img src="https://2181169139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIZ1QNzp28aI8y60mWhbR%2Fuploads%2F1wl1VQyignyaIGxfhjMF%2Fimage.png?alt=media&amp;token=c9bdb2ff-36b2-45f6-9e84-76a339df69bf" alt=""><figcaption></figcaption></figure>

Completing all these fields is mandatory to define a rule; leaving any blank isn't allowed.

Furthermore, a "Validate Expression" button checks the validity of the rule expressed in the "Rule Expression Window." This validation ensures the expression conforms to dynamic LINQ standards.

<figure><img src="https://2181169139-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIZ1QNzp28aI8y60mWhbR%2Fuploads%2Fm3vizL6e8RzHrdhW6fZ9%2Fimage.png?alt=media&amp;token=d4231025-e29d-4f26-b5cf-b7f561f0b89e" alt=""><figcaption></figcaption></figure>

Invalid dynamic LINQ expressions prevent the addition of the rule.
