This repository stores community-submitted rules for ai-stack.dev.
Below are the official contribution guidelines (similar to Cursor Directory).
Click Fork on GitHub to create your copy.
All rules are organized by tool in the following structure:
rules/
├── cursor/
│ ├── rule-name-1.json
│ ├── rule-name-2.json
│ └── ...
├── claude/
│ ├── rule-name-1.json
│ └── ...
├── github-copilot/
│ └── ...
├── windsurf/
│ └── ...
├── replit/
│ └── ...
└── general/
└── ...
Each rule should be a JSON file with a descriptive name (e.g., typescript-senior-developer.json, python-best-practices.json).
Current Rules Distribution:
- Claude: 10 rules
- Cursor: 50 rules
- GitHub Copilot: 5 rules
- Replit: 5 rules
- Windsurf: 5 rules
Create a new JSON file in the appropriate tool directory (rules/{tool-slug}/) with the following structure:
{
"title": "Your Rule Title",
"category": "TypeScript",
"tags": ["typescript", "react", "nextjs"],
"content": "Your rule content here...",
"is_official": false,
"is_popular": false,
"tool_slug": "cursor"
}Note: The tool_slug field should match the folder name where the file is located (e.g., cursor, claude, github-copilot, windsurf, replit).
If you want to improve or update an existing rule:
- Find the rule file in the
rules/directory - Make your changes
- Update the file with your improvements
- Create a Pull Request describing your changes
Your rule content should:
- ✅ Be accurate and related to the category
- ✅ Be clearly worded to help developers understand and use them easily
- ✅ Be actionable, providing steps or insights to solve common problems
- ✅ Be tested - ensure your rule has been tested and works as expected
- ✅ Follow best practices for the technology/framework
- ✅ Be concise but provide enough detail to be helpful
- Use lowercase letters
- Separate words with hyphens (
-) - Be descriptive (e.g.,
typescript-senior-developer.json, notrule1.json) - Match the category when possible (e.g.,
python-django.json,react-native-expo.json)
After creating or updating a rule:
- Commit your changes to your forked repository
- Push your changes to your fork
- Create a Pull Request from your fork to the main repository
- Provide a clear description of your rule in the PR:
- What category does it belong to?
- What problem does it solve?
- How have you tested it?
- All PRs will be reviewed by maintainers
- Your rule will be tested before merging
- Feedback may be provided if changes are needed
- Once approved, your rule will be merged and appear on ai-stack.dev
- Be respectful and professional
- Provide helpful, constructive feedback
- Follow the existing code style and format
- Test your rules before submitting
If you have questions about contributing, please:
- Open an issue on GitHub
- Check existing issues for similar questions
- Review the documentation on ai-stack.dev
By contributing to this repository, you agree that your contributions will be licensed under the same license as the repository.
Thank you for contributing to the AI Stack community! Your rules help developers worldwide work more efficiently with AI-powered development tools.