Loading video...
Video Failed to Load
The most underrated feature in AI coding tools isn't what you think. One simple rules file - supported by Visual Studio Code, Cursor and @windsurf - can massively increase the quality and reliability of your AI assistant Here's the secret sauce...
69,498 views • 1 year ago •via X (Twitter)
11 Comments

1/10 🎥 Full video on YouTube → Want the TL;DR? Keep reading this thread for the core insights! 🚀

2/10 Every major code editor has a special file for AI instructions: VSCode: .github/copilot-instructions.md Cursor: .cursorrules Windsurf: .windsurfrules One file to make your AI assistant significantly more reliable.

3/10 The key to a good rules file? Start with project context. Give AI a clear understanding of your project's purpose and structure. For instance, if you're working with a monorepo, explicitly outline how your code is organized.

4/10 Tech stack specification is crucial, especially for larger projects. Don’t let AI introduce random dependencies. List your preferred libraries, ORMs, and any specific implementation details you want consistently followed.

5/10 Less is more. The secret isn’t cramming in every possible rule - it’s about concise, meaningful context. Only add rules where AI consistently makes mistakes. Too much context can confuse the model and create maintenance headaches.

6/10 Make your rules file dynamic. As your project evolves and you spot patterns where AI makes mistakes, update your rules. Since it lives in your repo, these updates can be part of your normal PR process.

7/10 Want consistent commit messages? Add git conventions to your rules file. I use this to maintain a clean git history with properly categorized commits. One-click commit message generation that actually follows your standards! 💯

8/10 Using multiple AI coding assistants? Pro tip: Symbolically link your rules file across different editors. One file to rule them all - maintaining consistency whether you’re using Copilot, Cursor, or Windsurf.

9/10 Looking ahead: I’m excited about potential improvements like conditional context inclusion and automatic rule suggestions based on your coding patterns. Imagine your AI assistant learning your preferences over time!

10/10 Want to get the most out of your AI tools? Whether it’s mastering context files or optimizing your workflow, I share weekly tips to help you level up your coding game. 🚀 Subscribe to my YouTube Channel for more:

Coral AI is the most powerful AI for documents. See the difference yourself:

