# Cursor + Windsurf Settings to 5x AI's Output Quality (Works with VS Code too)
<!--
ref: @content/youtube/yifan-bth/cursor-windsurf-settings-to-5x-ais-output-quality-works-with-vs-code-too
tags: [AI coding assistants, rules files, Cursor, Windsurf, VS Code Copilot, project context, commit conventions, maintenance]
version: 2
updated_at: 2026-11-24T07:20:45.265Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=aG-utUqVrb0)**

# Cursor + Windsurf Settings to 5x AI's Output Quality (Works with VS Code too)

*Synthesized from Yifan on Beyond the Hype, 2024-12-16.*

Yifan is the only speaker; the transcript names no host or guest. The video is a screen-recorded tutorial on writing AI rules files for code editors.

## Core Thesis
Yifan argues that AI coding output becomes reliable when the editor gets concrete, concise project context in a rules file that every chat, composer and agent session reads automatically, rather than from better prompts or stronger models. He shows the same approach across VS Code Copilot instructions, the Cursor rules file and the Windsurf rules file, and advises adding rules only where the AI keeps getting things wrong.

## Key Insights
- **Where the rules live.** VS Code keeps them in Copilot instructions, Cursor uses a rules file at the repository root, and Windsurf has its own rules file. The contents are included in each prompt without being asked for.
- **Verifying the rules work.** He tests with a trivial rule (start every output with "ho ho ho") and asks the AI to name each rule it applies, using a one-word label, so he can check adherence in the output.
- **Contents of the file.** Start with a short project purpose (the goal, not the implementation), then the repository layout (his is a monorepo with server, React front end, a Chrome extension folder and a shared package), then the tech stack with custom details, then style preferences.
- **Effect on generation.** With the rules in place, the AI placed a requested utility in the existing shared utils folder and updated the index file without being told to look at the directory.
- **Stack and style rules.** Specify non-default stacks in detail, for example Chrome extension manifest V3 with typed internal messaging and the most restricted permissions; add preferences such as explicit return types, pure functions, doc comments and named exports.
- **A single-line fix.** The AI kept generating a deprecated component-add command, so he added a rule to use the shadcn@latest form instead.
- **Commits and docs.** He defines commit categories and message framing for a clean history, which a one-click commit button reads. A rule can also require README updates after significant library changes, and limit code comments to complex logic and performance-critical sections.
- **Keep it short and current.** He says a long file causes confusion and conflicting or outdated rules, so the file should hold only what the AI keeps getting wrong, and be edited as new mistakes appear. Because it lives in the repo, changes can ride along in pull requests.
- **One file for many editors.** He symlinks a single Cursor rules file to the Copilot and Windsurf locations.
- **Wishes.** He would like conditional context files per task type (database, math or UI work) and a memory-like feature that proposes rule additions from repeated corrections.

## Actionable Takeaways
1. Create the rules file for each editor you use (Copilot instructions, Cursor rules, Windsurf rules), starting with a rule that makes the AI name each rule it applies.
2. Describe the project purpose, the repository layout and the non-default tech stack, including custom specifics such as Chrome manifest V3 permission handling.
3. Add a rule only after the AI makes the same mistake repeatedly, and remove outdated rules.
4. Symlink one canonical rules file into each editor's expected location.
5. Put commit-message categories and README update triggers in the same file.

## Notable Quotes
> "the secret is not about better prompts or more powerful models it's about concrete context" — Yifan

> "the more concise the better" — Yifan

---

*Related: `@content/youtube/yifan-bth/how-to-prompt-cursor-windsurf-copilot-to-get-reliable-output` · `@content/youtube/yifan-bth/getting-cursor-ai-to-review-its-own-code` · `@content/youtube/yifan-bth/unlocking-cursor-ai-top-8-hidden-features` · `@content/youtube/yifan-bth/how-i-use-ai-git-to-code-3x-faster-real-dev-workflow-with-cursor` · `@content/youtube/yifan-bth/5x-your-cursor-ai-coding-quality-with-these-pro-tips`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*