
If you want to submit a new rule that does not already exist in the Directories, follow these steps:
undefinedLocate the Rule Index:
Add your new rule in the packages/data/rules/index.ts file. For example:
import { cRules } from "./rules/c";
undefinedCreate a Rule File:
Create a new file in the packages/data/rules/ directory with the appropriate name. For example, if you’re adding a rule for Next.js, name the file nextjs.ts.
undefinedDefine the Rule:
Add your prompts inside the newly created file. Refer to the existing rules for formatting guidance. Make sure your prompts are accurate, clear, and helpful to developers.
Your prompts should:
If you want to add new prompts to an existing rule, follow these steps:
undefinedFind the Existing Rule:
Navigate to the packages/data/rules/ directory and open the relevant file for the rule you want to update. For example, if you’re adding prompts for Next.js, open nextjs.ts.
undefinedAdd Your New Prompts:
Add your new prompts below the existing ones. Ensure that your additions are tested.
When creating or updating rules, be sure to include the following parameters for consistency and clarity:
undefinedtags: Add language-specific tags to categorize the rule.
tags: ["JavaScript", "Next.js"]
undefinedtitle: Provide an appropriate title that describes the rule.
  title: "Next.js Best Practices"
undefinedslug: Create a unique slug that reflects the purpose of the rule.
  slug: "nextjs-best-practices"
undefinedcontent: Write the content of your prompt here. Make sure it is clear, actionable, and helpful to developers. Be concise, but provide enough detail to assist cursor ai in completing tasks effectively…
  content: `your amazing prompt`
undefinedauthor: Include details about yourself as the contributor. This helps others recognize your contributions and allows them to reach out if needed.
First, run the development server:
npm install
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.