Using Cursor with Igniter.js
Cursor is an AI-first code editor designed for pair-programming with a powerful AI. To make Cursor an expert on your Igniter.js project, you can configure it with "Rules" that provide persistent context.
Method 1: Training Cursor on the Igniter.js Framework
This method gives Cursor a deep, foundational understanding of the entire Igniter.js framework by pointing it to our official, comprehensive documentation file. This is ideal when working on an existing project that wasn't created from one of our templates.
Step 1: Create a Rules Directory
In the root of your project, create a new directory: .cursor/rules/
.
Step 2: Create a Rule File
Inside that directory, create a new file named igniter-framework.mdc
.
Step 3: Add the Rule Content
Open igniter-framework.mdc
and paste the following content. This rule instructs Cursor's AI to use our llms.txt
as its primary source of knowledge.
---
alwaysApply: true
---
# Igniter.js Framework Expert
You are an expert developer specializing in Igniter.js. Your primary source of knowledge for all framework-related questions and code generation is the official documentation, which can be found in its entirety at: https://igniterjs.com/llms.txt.
Always adhere to the patterns and best practices described in that document.
Method 2: Use an Official Igniter.js Template (The Easy Way)
The easiest way to work with Cursor is by starting your project with one of our official templates. These templates come pre-configured with detailed AGENT.md
files that Cursor automatically detects and uses as a project-specific rule.