You are viewing a single comment's thread from:

RE: LeoThread 2025-01-21 12:52

in LeoFinance β€’ yesterday

Introduction to Rules Files

  • πŸ“ A rules file provides context to AI coding assistants, making them more reliable development partners.
  • πŸ€– The file is used by popular code editors, including VS Code, Cursor, and Wind Surf, to generate higher-quality code.
  • πŸ“ The location of the rules file varies by editor: VS Code uses GitHub Code Pilot instructions, Cursor uses a Cursor rules file, and Wind Surf uses a Wind Surf rules file.

Creating and Maintaining Rules Files

  • πŸ“„ The rules file should include project context, such as a brief description of the project's purpose and high-level goals.
  • πŸ—‚οΈ Outlining the rough structure of the codebase helps AI understand the project's organization.
  • πŸ“Š Specifying the tech stack used in the project ensures AI generates code consistent with the project's requirements.
  • πŸ“ The file should be concise, only including rules that address consistent mistakes made by the AI.