This directory contains AI assistant rules for developing Zoho Finance widgets. These rules ensure consistent code generation, proper SDK usage, and adherence to Zoho's widget development standards.
Compatible with: Cursor, GitHub Copilot, ChatGPT, Gemini, and other AI coding assistants that support rule files.
If you're cloning this repository:
git clone https://github.com/zoho/zoho-finance-ai-widget-rules.git
cd zoho-finance-ai-widget-rules-
Open Cursor Settings
- Press
Cmd + ,(macOS) orCtrl + ,(Windows/Linux) - Or navigate:
Cursor > Settingsβ Search for "Rules and Commands"
- Press
-
Go to Project Rules
- Click on "Rules and Commands" in the left sidebar
- Select the "Project Rules" tab
-
Copy Rules to .cursor/rules Folder
- In your project root, create:
.cursor/rules/folder - Copy all
.mdcfiles from this repo'sai-rules/folder - Paste them into
.cursor/rules/folder
- In your project root, create:
-
Add Rules in Settings UI
-
In
Settings β Rules and Commands β Project Rules -
Click "+" or "Add Rule" button
-
Example for SDK Rules:
- Open
ai-rules/rules/sdk.mdcfile - Copy all content
- Paste into the new rule editor
- Name it: "Zoho Finance SDK Rules"
- Click Save
- Open
-
Example for Location Rules:
- Click "Add Rule" again
- Open
ai-rules/rules/location.mdcfile - Copy all content
- Paste into the new rule editor
- Name it: "Zoho Finance Widget Locations"
- Click Save
-
Example for Additional Rules:
- Click "Add Rule" again
- Open
ai-rules/ai-rule-.mdcfile - Copy all content
- Paste into the new rule editor
- Name it: "Zoho Finance Additional Rules"
- Click Save
-
-
Verify Rules Are Active
- You should see all three rules in the Project Rules list
- Ensure toggle switches are ON (enabled)
- Rules are now active! Start coding and Cursor AI will follow these rules.
The folder structure is:
ai-rules/
βββ ai-rule-.mdc
βββ rules/
βββ location.mdc
βββ sdk.mdc
ai-rules/rules/sdk.mdc- Zoho Finance SDK rules: Proper initialization, API calls, event handlingai-rules/rules/location.mdc- Widget Locations: All available widget placement locations and module data structuresai-rules/ai-rule-.mdc- Additional AI rules