obviousworks/vibe-coding-ai-rules

The Ultimate Agentic Vibe Coding Guide for AI IDEs like Windsurf, Claude Code, Cursor, Codex etc. – AI-optimized rules, best practices, and configuration files for efficient and controlled AI-powered coding.

Shell

92

17 commits

updated Jun 11, 2026

See the code

See what people are saying

SourceMessageScoreDate

https://github.com/obviousworks/vibe-coding-ai-rules/blob/ma...

on Ask HN: Resources for best practices in software development with AI?

0

Oct 12, 2026

README

Vibe Coding AI Rules

The Ultimate AI Coding Ruleset for Windsurf, Cursor, GitHub Copilot, Claude Code, Cline, Codex, Zed AI, Gemini CLI & more

"Context is King. AI agents are only as good as the rules you give them."

License: MIT PRs Welcome

Production-ready rules, templates, and best practices for AI-assisted development. One repository, all major AI IDEs covered.


Quick Start: Pick Your IDE

AI IDEWhat to CopyConfig FormatSetup Guide
Cursoride-specific/cursor/.cursor/rules/*.mdcSetup
Windsurfide-specific/windsurf/.windsurfrules + global_rules.mdSetup
GitHub Copilotide-specific/github-copilot/.github/copilot-instructions.mdSetup
Claude Codeide-specific/claude-code/CLAUDE.md + .claude/rules/Setup
Clineide-specific/cline/.clinerules or .clinerules/Setup
Codexide-specific/codex/AGENTS.mdSetup
Zed AIide-specific/zed/.rulesSetup
Gemini CLIide-specific/gemini-cli/GEMINI.mdSetup
Aideride-specific/aider/conventions.md + .aider.conf.ymlSetup
Continue.devide-specific/continue/.continue/rules/*.mdSetup
UniversalAGENTS.mdWorks everywhereSetup

Fastest approach: Copy AGENTS.md to your project root and run ./scripts/symlink-setup.sh to create symlinks for all IDEs at once.

Universal: The AGENTS.md Standard

AGENTS.md is the emerging universal standard for AI coding assistant configuration, backed by OpenAI, Google, Anthropic, Cursor, and Sourcegraph.

One file, all IDEs:

# Copy the template
cp templates/agent-template.md AGENTS.md
# Customize for your project, then:
./scripts/symlink-setup.sh
# Creates: .windsurfrules, .cursorrules, CLAUDE.md, .clinerules, GEMINI.md, .github/copilot-instructions.md
# Codex, Zed AI read AGENTS.md natively — no symlink needed

IDEs that read AGENTS.md natively: Cursor, GitHub Copilot, Cline, Codex, Zed AI, Gemini CLI, Aider.

What's Inside

vibe-coding-ai-rules/
├── README.md                          # You are here
├── AGENTS.md                          # Universal standard (copy to your project)
├── LICENSE                            # MIT License
├── CONTRIBUTING.md                    # How to contribute
│
├── docs/                              # Knowledge base
│   ├── best-practices.md             # Comprehensive agentic coding guide
│   ├── security-rules.md             # Security patterns for AI-generated code
│   ├── performance-rules.md          # Performance optimization patterns
│   ├── testing-rules.md              # Testing standards and patterns
│   ├── error-handling.md             # Error handling patterns and standards
│   ├── logging-rules.md             # Logging standards and best practices
│   ├── api-design.md                # API design conventions (REST, RFC 7807)
│   ├── migration-guide.md            # Migrate between IDE configurations
│   ├── vibe-coding-overview.md       # Quick reference cheat sheet
│   └── ide-comparison.md             # Feature comparison of all 10 IDEs
│
├── templates/                         # Universal templates (tool-agnostic)
│   ├── AGENTS.md                     # Universal template
│   ├── agent-template.md             # Customizable template with placeholders
│   └── agent-example.md              # Real-world "FocusFlow" example
│
├── ide-specific/                      # One folder per IDE
│   ├── windsurf/                     # Windsurf config + examples
│   ├── cursor/                       # Cursor .mdc rules + examples
│   ├── github-copilot/               # Copilot instructions + examples
│   ├── claude-code/                  # CLAUDE.md + .claude/rules/ + examples
│   ├── cline/                        # .clinerules single + multi-file + examples
│   ├── codex/                        # AGENTS.md + examples
│   ├── zed/                          # .rules + examples
│   ├── gemini-cli/                   # GEMINI.md + examples
│   ├── aider/                        # conventions.md + .aider.conf.yml
│   └── continue/                     # .continue/rules/*.md
│
├── prompts/                           # AI prompts for customization
│   ├── adapt-rules-prompt.txt        # Generate rules for ANY IDE from project info
│   └── project-analyzer-prompt.txt   # Analyze codebase and auto-generate rules
│
└── scripts/
    └── symlink-setup.sh              # Create IDE symlinks from AGENTS.md

Deep Dives

TopicDescription
Best PracticesContext management, prompting, workflows, team collaboration
Security RulesInput validation, injection prevention, auth, secrets management
Performance RulesFrontend, backend, database, caching optimization patterns
Testing RulesTest pyramid, patterns, mocking, coverage requirements
IDE ComparisonFeature matrix, cross-IDE compatibility, recommendations
Migration GuideStep-by-step migration between any two IDEs
Error HandlingError types, propagation, retry patterns, error boundaries
Logging RulesLog levels, structured logging, correlation IDs, PII protection
API DesignREST conventions, pagination, error responses (RFC 7807), rate limiting
Vibe Coding OverviewOne-page cheat sheet of core principles

Core Principles

These principles are embedded in all IDE-specific rule files:

PrincipleDescription
Clarify Before CodingUnderstand requirements before writing code. Ask questions when intent is unclear. No code without clear goals.
Simplicity FirstChoose the simplest viable solution. Complex patterns need explicit justification. Readable code over clever code.
Security By DefaultValidate all inputs. No secrets in code. Defense in depth. Least privilege principle.
Test-Driven ThinkingDesign all code to be testable from inception. Write tests alongside code. Verify before committing.

Customization

Two ways to generate rules for your project:

  1. AI Adaptation Prompt: Fill in your project details and let AI generate IDE-specific configs

    Use: prompts/adapt-rules-prompt.txt
    
  2. Project Analyzer: Point AI at your existing codebase to auto-generate rules

    Use: prompts/project-analyzer-prompt.txt
    

IDE Support Matrix

ToolConfig FileAGENTS.mdMulti-FileGlob Patterns
Cursor.cursor/rules/*.mdcNativeYesYes (YAML)
Windsurf.windsurfrulesManualNoNo
GitHub Copilot.github/copilot-instructions.mdNativeYesYes (applyTo)
Claude CodeCLAUDE.md + .claude/rules/ManualYesNo (dir-based)
Cline.clinerules or .clinerules/NativeYesYes (YAML)
CodexAGENTS.mdNativeYes (dir-based)No
Zed AI.rulesNativeNoNo
Gemini CLIGEMINI.mdNativeYes (dir-based)No
Aiderconventions.mdNativeNoNo
Continue.dev.continue/rules/*.mdNoYesYes (YAML globs)

Coming from the old Windsurf Global Rules?

If you've been using our original global_rules.md and .windsurfrules — they're still here, now as part of a much bigger toolkit. You'll find the original Windsurf rules as a ready-to-use example in ide-specific/windsurf/examples/, alongside new templates that work across all 10 IDEs.

For the thinking behind this approach, check out these articles:

Origin

This repository merges and supersedes content from two sources:

The result: one comprehensive resource covering all major AI coding assistants.

Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

Ways to contribute:

  • Share production-ready rule examples
  • Add support for new IDEs or frameworks
  • Improve existing templates with real-world learnings
  • Report issues or suggest enhancements

License

MIT — Use freely in personal and commercial projects.


Built by Obviousworks

This repo is maintained by Obviousworks — we help dev teams ship better software with AI.

Everything in this repository reflects what we teach and implement with real teams: effective agent harness structures, production-grade rule systems, and development processes designed around AI from the ground up.

In our AI Developer Bootcamp we work hands-on with teams to build exactly this — from writing quality AI coding rules to setting up a complete agentic development workflow that actually scales. And in the Agentic Coding Hackathon you get to put it all into practice: build real projects with AI agents in one intensive day, guided by our engineering team.

If your team writes code with AI and wants to do it properly:

agentic-coding
agentic-coding-rules
agent-rules
ai-agents
vibe-coding
vibe-coding-rules

obviousworks/vibe-coding-ai-rules

The Ultimate Agentic Vibe Coding Guide for AI IDEs like Windsurf, Claude Code, Cursor, Codex etc. – AI-optimized rules, best practices, and configuration files for efficient and controlled AI-powered coding.

Shell

92

17 commits

updated Jun 11, 2026

See the code

See what people are saying

SourceMessageScoreDate

https://github.com/obviousworks/vibe-coding-ai-rules/blob/ma...

on Ask HN: Resources for best practices in software development with AI?

0

Oct 12, 2026

README

Vibe Coding AI Rules

The Ultimate AI Coding Ruleset for Windsurf, Cursor, GitHub Copilot, Claude Code, Cline, Codex, Zed AI, Gemini CLI & more

"Context is King. AI agents are only as good as the rules you give them."

License: MIT PRs Welcome

Production-ready rules, templates, and best practices for AI-assisted development. One repository, all major AI IDEs covered.


Quick Start: Pick Your IDE

AI IDEWhat to CopyConfig FormatSetup Guide
Cursoride-specific/cursor/.cursor/rules/*.mdcSetup
Windsurfide-specific/windsurf/.windsurfrules + global_rules.mdSetup
GitHub Copilotide-specific/github-copilot/.github/copilot-instructions.mdSetup
Claude Codeide-specific/claude-code/CLAUDE.md + .claude/rules/Setup
Clineide-specific/cline/.clinerules or .clinerules/Setup
Codexide-specific/codex/AGENTS.mdSetup
Zed AIide-specific/zed/.rulesSetup
Gemini CLIide-specific/gemini-cli/GEMINI.mdSetup
Aideride-specific/aider/conventions.md + .aider.conf.ymlSetup
Continue.devide-specific/continue/.continue/rules/*.mdSetup
UniversalAGENTS.mdWorks everywhereSetup

Fastest approach: Copy AGENTS.md to your project root and run ./scripts/symlink-setup.sh to create symlinks for all IDEs at once.

Universal: The AGENTS.md Standard

AGENTS.md is the emerging universal standard for AI coding assistant configuration, backed by OpenAI, Google, Anthropic, Cursor, and Sourcegraph.

One file, all IDEs:

# Copy the template
cp templates/agent-template.md AGENTS.md
# Customize for your project, then:
./scripts/symlink-setup.sh
# Creates: .windsurfrules, .cursorrules, CLAUDE.md, .clinerules, GEMINI.md, .github/copilot-instructions.md
# Codex, Zed AI read AGENTS.md natively — no symlink needed

IDEs that read AGENTS.md natively: Cursor, GitHub Copilot, Cline, Codex, Zed AI, Gemini CLI, Aider.

What's Inside

vibe-coding-ai-rules/
├── README.md                          # You are here
├── AGENTS.md                          # Universal standard (copy to your project)
├── LICENSE                            # MIT License
├── CONTRIBUTING.md                    # How to contribute
│
├── docs/                              # Knowledge base
│   ├── best-practices.md             # Comprehensive agentic coding guide
│   ├── security-rules.md             # Security patterns for AI-generated code
│   ├── performance-rules.md          # Performance optimization patterns
│   ├── testing-rules.md              # Testing standards and patterns
│   ├── error-handling.md             # Error handling patterns and standards
│   ├── logging-rules.md             # Logging standards and best practices
│   ├── api-design.md                # API design conventions (REST, RFC 7807)
│   ├── migration-guide.md            # Migrate between IDE configurations
│   ├── vibe-coding-overview.md       # Quick reference cheat sheet
│   └── ide-comparison.md             # Feature comparison of all 10 IDEs
│
├── templates/                         # Universal templates (tool-agnostic)
│   ├── AGENTS.md                     # Universal template
│   ├── agent-template.md             # Customizable template with placeholders
│   └── agent-example.md              # Real-world "FocusFlow" example
│
├── ide-specific/                      # One folder per IDE
│   ├── windsurf/                     # Windsurf config + examples
│   ├── cursor/                       # Cursor .mdc rules + examples
│   ├── github-copilot/               # Copilot instructions + examples
│   ├── claude-code/                  # CLAUDE.md + .claude/rules/ + examples
│   ├── cline/                        # .clinerules single + multi-file + examples
│   ├── codex/                        # AGENTS.md + examples
│   ├── zed/                          # .rules + examples
│   ├── gemini-cli/                   # GEMINI.md + examples
│   ├── aider/                        # conventions.md + .aider.conf.yml
│   └── continue/                     # .continue/rules/*.md
│
├── prompts/                           # AI prompts for customization
│   ├── adapt-rules-prompt.txt        # Generate rules for ANY IDE from project info
│   └── project-analyzer-prompt.txt   # Analyze codebase and auto-generate rules
│
└── scripts/
    └── symlink-setup.sh              # Create IDE symlinks from AGENTS.md

Deep Dives

TopicDescription
Best PracticesContext management, prompting, workflows, team collaboration
Security RulesInput validation, injection prevention, auth, secrets management
Performance RulesFrontend, backend, database, caching optimization patterns
Testing RulesTest pyramid, patterns, mocking, coverage requirements
IDE ComparisonFeature matrix, cross-IDE compatibility, recommendations
Migration GuideStep-by-step migration between any two IDEs
Error HandlingError types, propagation, retry patterns, error boundaries
Logging RulesLog levels, structured logging, correlation IDs, PII protection
API DesignREST conventions, pagination, error responses (RFC 7807), rate limiting
Vibe Coding OverviewOne-page cheat sheet of core principles

Core Principles

These principles are embedded in all IDE-specific rule files:

PrincipleDescription
Clarify Before CodingUnderstand requirements before writing code. Ask questions when intent is unclear. No code without clear goals.
Simplicity FirstChoose the simplest viable solution. Complex patterns need explicit justification. Readable code over clever code.
Security By DefaultValidate all inputs. No secrets in code. Defense in depth. Least privilege principle.
Test-Driven ThinkingDesign all code to be testable from inception. Write tests alongside code. Verify before committing.

Customization

Two ways to generate rules for your project:

  1. AI Adaptation Prompt: Fill in your project details and let AI generate IDE-specific configs

    Use: prompts/adapt-rules-prompt.txt
    
  2. Project Analyzer: Point AI at your existing codebase to auto-generate rules

    Use: prompts/project-analyzer-prompt.txt
    

IDE Support Matrix

ToolConfig FileAGENTS.mdMulti-FileGlob Patterns
Cursor.cursor/rules/*.mdcNativeYesYes (YAML)
Windsurf.windsurfrulesManualNoNo
GitHub Copilot.github/copilot-instructions.mdNativeYesYes (applyTo)
Claude CodeCLAUDE.md + .claude/rules/ManualYesNo (dir-based)
Cline.clinerules or .clinerules/NativeYesYes (YAML)
CodexAGENTS.mdNativeYes (dir-based)No
Zed AI.rulesNativeNoNo
Gemini CLIGEMINI.mdNativeYes (dir-based)No
Aiderconventions.mdNativeNoNo
Continue.dev.continue/rules/*.mdNoYesYes (YAML globs)

Coming from the old Windsurf Global Rules?

If you've been using our original global_rules.md and .windsurfrules — they're still here, now as part of a much bigger toolkit. You'll find the original Windsurf rules as a ready-to-use example in ide-specific/windsurf/examples/, alongside new templates that work across all 10 IDEs.

For the thinking behind this approach, check out these articles:

Origin

This repository merges and supersedes content from two sources:

The result: one comprehensive resource covering all major AI coding assistants.

Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

Ways to contribute:

  • Share production-ready rule examples
  • Add support for new IDEs or frameworks
  • Improve existing templates with real-world learnings
  • Report issues or suggest enhancements

License

MIT — Use freely in personal and commercial projects.


Built by Obviousworks

This repo is maintained by Obviousworks — we help dev teams ship better software with AI.

Everything in this repository reflects what we teach and implement with real teams: effective agent harness structures, production-grade rule systems, and development processes designed around AI from the ground up.

In our AI Developer Bootcamp we work hands-on with teams to build exactly this — from writing quality AI coding rules to setting up a complete agentic development workflow that actually scales. And in the Agentic Coding Hackathon you get to put it all into practice: build real projects with AI agents in one intensive day, guided by our engineering team.

If your team writes code with AI and wants to do it properly:

agentic-coding
agentic-coding-rules
agent-rules
ai-agents
vibe-coding
vibe-coding-rules