AI rules for AI-assisted development
By default, LLM's knowledge of Uniform will be limited to what was indexed by LLM using public internet and subject to the cutoff date. To enhance your prompting with the latest knowledge of Uniform, it is highly recommended to feed Uniform-specific AI rules into your LLM context.
AI rules library#
That's why we are maintaining the library of Uniform-specific rules to help your LLM tools work with better accuracy. Feeding these rules to your LLM will help it understand the context of the project and the specific requirements of Uniform.
You can find the library of rules here.
Must-have rules#
rules/uniform.mdc
- describes the core principles and concepts of Uniformrules/uniform-sdk.mdc
- describes the Uniform SDK and its capabilities
Framework-specific rules#
rules/uniform-next-page-router.mdc
- for Next.js Page Routerrules/uniform-next-app-router.mdc
- for Next.js App Router
Optional rules#
The rules files under rules/optional-personal-preferences
contain non-essential rules that contain alternative defaults, highly recommended to review those and adjust to your liking.
How to use AI rules#
To use AI rules, you need to add them to your LLM context. This varies per AI tool.
Setup with Cursor#
Download the rules from the GitHub repository and place them in the
.cursor
folder in your project root.Open a new chat window and add the desired rules into your context when working with Uniform.

Claude Code and other tools#
Point Claude Code to the folder with the rules to augment its understanding of Uniform specifics.