Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pontusab/cursor.directory
Find the best cursor rules for your framework and language
https://github.com/pontusab/cursor.directory
Last synced: 27 days ago
JSON representation
Find the best cursor rules for your framework and language
- Host: GitHub
- URL: https://github.com/pontusab/cursor.directory
- Owner: pontusab
- Created: 2024-08-24T12:44:44.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-01T11:20:44.000Z (about 1 month ago)
- Last Synced: 2024-10-02T00:42:37.862Z (about 1 month ago)
- Language: TypeScript
- Homepage: https://cursor.directory
- Size: 2.49 MB
- Stars: 1,367
- Watchers: 9
- Forks: 174
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![hero](image.png)
## Recognition
# How to Contribute to Cursor AI
### This guide will help you understand how to add new rules or prompts to the Cursor AI directory.
#### 1. Fork the Repo
#### 2. Adding a New Rule
If you want to submit a **new rule** that does not already exist in the Cursor directory, follow these steps:
1. **Locate the Rule Index**:
Add your new rule in the `src/data/index.ts` file. For example:
```typescript
import { cRules } from "./rules/c";2. **Create a Rule File**:
Create a new file in the `src/data/rules/` directory with the appropriate name. For example, if you're adding a rule for Next.js, name the file `nextjs.ts`.3. **Define 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:
- Be accurate and related to the rule.
- Be clearly worded to help developers understand and use them easily.
- Be actionable, providing steps or insights to solve common problems or optimize workflows.
- Test your prompts: Before submitting, ensure that your prompts have been tested and work as expected in the relevant development environment. This ensures that other developers can rely your contributions :) .#### 3. Adding New Prompts/Content to Existing Rules
If you want to add new prompts to an existing rule, follow these steps:
1. **Find the Existing Rule**:
Navigate to the `src/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`.
2. **Add Your New Prompts**:
Add your new prompts below the existing ones. Ensure that your additions are tested.
#### 4. Important Parameters in Rule Files
When creating or updating rules, be sure to include the following parameters for consistency and clarity:
1. **tags**: Add language-specific tags to categorize the rule.
```
tags: ["JavaScript", "Next.js"]2. **title**: Provide an appropriate title that describes the rule.
```
title: "Next.js Best Practices"3. **slug**: Create a unique slug that reflects the purpose of the rule.
```
slug: "nextjs-best-practices"4. **content**: 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`5. **author**: Include details about yourself as the contributor. This helps others recognize your contributions and allows them to reach out if needed.
- **name**: Your full name or GitHub username.
- **URL**: A link to your GitHub, Twitter, website, or any other profile you want to share. This is optional but recommended.
- **avatar**: The URL path to an image or avatar that represents you. You can use a photo from a service like Gravatar or any image hosting service.
### 5. Create a PR## Getting Started
First, run the development server:
```bash
npm installnpm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.