Skip to content

Lay4U/awesome-ai-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Awesome AI Rules

The definitive collection of AI coding rules for every tool and stack

Awesome Stars Contributors Last Commit PRs Welcome MIT License Tools Rules

Production-ready AI coding rules for 8 tools across 9 stacks, ready to copy into your project in seconds.

English | 한국어 | 中文 | 日本語

Why This Exists

AI coding output quality depends heavily on instruction quality. Most teams still rewrite the same rules for every new project and tool. This repository standardizes that process with stack-specific rule sets. Each file is practical, opinionated, and designed for real production workflows. Use it to reduce prompt drift, improve consistency, and onboard faster. Copy what fits, customize what matters, and ship with higher confidence.

Quick Start

# Cursor (TypeScript)
cp rules/cursor/typescript/.cursorrules ./.cursorrules

# Claude Code (React)
cp rules/claude-code/react/CLAUDE.md ./CLAUDE.md

# Copilot (Next.js)
mkdir -p ./.github && cp rules/copilot/nextjs/.github/copilot-instructions.md ./.github/copilot-instructions.md

# Windsurf (Python)
cp rules/windsurf/python/.windsurfrules ./.windsurfrules

# Codex (Go)
cp rules/codex/go/AGENTS.md ./AGENTS.md

# Gemini CLI (Rust)
cp rules/gemini-cli/rust/GEMINI.md ./GEMINI.md

# Aider (Vue)
cp rules/aider/vue/.aider.conf.yml ./.aider.conf.yml

# Cline (Java)
cp rules/cline/java/.clinerules ./.clinerules

Full Navigation Matrix

Tool Config File TypeScript React Next.js Python Go Rust Vue Svelte Java
Cursor .cursorrules
Claude Code CLAUDE.md
Copilot copilot-instructions.md
Windsurf .windsurfrules
Codex AGENTS.md
Gemini CLI GEMINI.md
Aider .aider.conf.yml
Cline .clinerules

Tool Rules

Cursor (.cursorrules)

Available stacks: TypeScript, React, Next.js, Python, Go, Rust, Vue, Svelte, Java

cp rules/cursor/<stack>/.cursorrules /path/to/project/.cursorrules

Claude Code (CLAUDE.md)

Available stacks: TypeScript, React, Next.js, Python, Go, Rust, Vue, Svelte, Java

cp rules/claude-code/<stack>/CLAUDE.md /path/to/project/CLAUDE.md

Copilot (copilot-instructions.md)

Available stacks: TypeScript, React, Next.js, Python, Go, Rust, Vue, Svelte, Java

mkdir -p /path/to/project/.github && cp rules/copilot/<stack>/.github/copilot-instructions.md /path/to/project/.github/copilot-instructions.md

Windsurf (.windsurfrules)

Available stacks: TypeScript, React, Next.js, Python, Go, Rust, Vue, Svelte, Java

cp rules/windsurf/<stack>/.windsurfrules /path/to/project/.windsurfrules

Codex (AGENTS.md)

Available stacks: TypeScript, React, Next.js, Python, Go, Rust, Vue, Svelte, Java

cp rules/codex/<stack>/AGENTS.md /path/to/project/AGENTS.md

Gemini CLI (GEMINI.md)

Available stacks: TypeScript, React, Next.js, Python, Go, Rust, Vue, Svelte, Java

cp rules/gemini-cli/<stack>/GEMINI.md /path/to/project/GEMINI.md

Aider (.aider.conf.yml)

Available stacks: TypeScript, React, Next.js, Python, Go, Rust, Vue, Svelte, Java

cp rules/aider/<stack>/.aider.conf.yml /path/to/project/.aider.conf.yml

Cline (.clinerules)

Available stacks: TypeScript, React, Next.js, Python, Go, Rust, Vue, Svelte, Java

cp rules/cline/<stack>/.clinerules /path/to/project/.clinerules

Guides

Contributing

Contributions are welcome. Please read CONTRIBUTING.md and open a PR with clear rationale and examples.

License

Released under the MIT License.

Star This Repo

If this repository helps your team ship faster with AI coding tools, please star the project.

About

🤖 Curated AI coding assistant rules for Cursor, Claude Code, Copilot, Windsurf, Codex CLI & Gemini CLI. Copy-paste configs for TypeScript, React, Next.js & Python.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages