Rule submissions are handled via Pull Requests to this repository. Follow these steps to submit your rule:
Create your rule following the template format below. Make sure your rule is clear, concise, and focused on solving a specific problem.
Fork this repository to your GitHub account so you can make changes.
Create a new file in lib/data/rules/
and update lib/data/rules/index.ts
. Use the template format below and name your file descriptively.
Create a pull request from your fork to our repository. We'll review your submission and provide feedback if needed.
Use this template as a starting point for your rule submission:
{
title: "Your Rule Title",
tags: ["Category1", "Category2", "Framework"],
slug: "your-rule-title-in-kebab-case",
content: `Your rule content goes here. This should be the complete prompt/rule text that users will copy and paste.
This can be multiple paragraphs and include code examples.
Example format:
\`\`\`jsx
// Your code example
const example = () => {
return <div>Example</div>;
};
\`\`\`
`,
author: {
name: "Your Name", // Optional
url: "https://your-website.com", // Optional
avatar: null, // Optional
}
}
- Rules should be clear, concise, and focused on solving a specific problem
- Include detailed descriptions and examples to help users understand how to use your rule
- Test your rule thoroughly before submitting
- Ensure your rule doesn't contain sensitive information or violate any licenses
- Be open to feedback and willing to make changes if requested
- Node.js (Version specified in
.nvmrc
if available, otherwise latest LTS recommended) - pnpm
- Clone the repository:
git clone https://github.com/xfq/rules.git cd rules
- Install dependencies:
pnpm install
- Run the development server:
The application should now be running on http://localhost:3000.
pnpm dev
- Build for production:
pnpm build
- Start production server:
pnpm start
- Lint code:
pnpm lint
- Internationalization (i18n), starting with Simplified Chinese.
- User accounts (GitHub/Google/Email login).
- Advanced search and filtering options.
- Rule rating/liking system.
- Comments/discussion section for rules.
- Rule versioning.
- "How-to" guides on writing effective rules.