awesome-ai-rules
π€ Curated AI coding assistant rules for Cursor, Claude Code, Copilot, Windsurf, Codex CLI & Gemini CLI. Copy-paste configs for TypeScript, React, Next.js & Python.
Install / Use
npx skills add Lay4U/awesome-ai-rulesInstalls into whichever agent you are using.
.cursorrules
Cursor IDE rules (legacy)
Quality Score
Category
Development & EngineeringSupported Platforms
Skill content
View source on GitHubAwesome AI Rules
The definitive collection of AI coding rules for every tool and stack
Production-ready AI coding rules for 8 tools across 9 stacks, ready to copy into your project in seconds.
English | νκ΅μ΄ | δΈζ | ζ₯ζ¬θͺ
</div>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.
Related Skills
Agent-Reach
84.5kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu β one CLI, zero API fees.
headroom
73.4kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.0kπ The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
career-ops
72.4kOpen-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications β runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravityβ¦)
